/* Responsive adaptations of the existing chapter compositions.
   All rules stop below the locked 1122px desktop canvas. */
@media (max-width: 1121px) {
  .career-chapter,
  .experience-chapter,
  .contact-chapter,
  .portfolio-footer {
    min-width: 0;
  }

  .career-canvas,
  .experience-chapter > .chapter-container,
  .contact-chapter > .chapter-container,
  .portfolio-footer > .chapter-container {
    width: calc(100% - 4rem);
    min-width: 0;
  }

  .career-canvas {
    padding-block: 2rem 4rem;
  }

  .career-opening {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 29%);
    gap: 1.5rem;
    min-height: 19rem;
    margin-bottom: 2.5rem;
  }

  .career-opening::before {
    width: 100vw;
  }

  .career-opening-copy {
    min-width: 0;
  }

  .career-opening h2 {
    font-size: clamp(2.5rem, 4.8vw, 3.5rem);
  }

  .career-opening .career-eyebrow {
    margin-bottom: 1.3rem;
    font-size: 0.875rem;
  }

  .career-tagline {
    margin-top: 1.35rem;
    font-size: clamp(1.125rem, 2.1vw, 1.4rem);
  }

  .career-character {
    width: 100%;
    max-width: 17.85rem;
  }

  .career-project-grid {
    column-gap: clamp(2rem, 4.3vw, 3rem);
  }

  .cv-product-visual {
    --cv-phone-height: clamp(23rem, 44vw, 31.25rem);
    width: 100%;
    max-width: 28.375rem;
    height: calc(var(--cv-phone-height) * 0.82);
  }

  .cv-sensei-device,
  .cv-my11-device {
    top: calc(var(--cv-phone-height) * -0.07);
    height: var(--cv-phone-height);
  }

  .cv-sensei-device { left: 47%; }
  .cv-my11-device { left: 53%; }

  .cv-metric {
    gap: 0.3rem;
    padding: 0.65rem;
    max-width: 34%;
    border-radius: 0.8rem;
  }

  .cv-outcomes dd {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  }

  .cv-outcomes dt {
    font-size: 0.75rem;
  }

  .cv-metric-arpu,
  .cv-metric-my11-one {
    top: 19%;
    width: 7.5rem;
  }

  .cv-metric-arpu { left: 0; }
  .cv-metric-my11-one { right: 0; }

  .cv-metric-usage,
  .cv-metric-my11-two {
    top: 44%;
    width: 8rem;
  }

  .cv-metric-usage { left: auto; right: 0; }
  .cv-metric-my11-two { left: 0; }

  .cv-metric-saves,
  .cv-metric-my11-three {
    top: auto;
    bottom: 4%;
    width: 6.5rem;
  }

  .cv-metric-saves { left: 0; }
  .cv-metric-my11-three { right: 0; }

  .cv-project-caption {
    padding-top: 1.5rem;
  }

  .cv-project-heading h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  }

  .cv-project-description {
    max-width: 100%;
    min-height: 0;
    font-size: 1.0625rem;
  }

  .cv-project-cta {
    min-height: 2.75rem;
    margin-top: 1rem;
    padding-block: 0.65rem 0.4rem;
  }

  .career-motion {
    margin-top: 6rem;
  }

  .cv-motion-opening h3 {
    font-size: clamp(2.5rem, 4.6vw, 3rem);
  }

  .cv-motion-note {
    right: 0.5rem;
    font-size: 1rem;
  }

  .cv-motion-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 1.5rem;
    margin-top: 2rem;
  }

  .cv-motion-art {
    height: clamp(19rem, 36vw, 26rem);
    align-items: center;
  }

  .cv-motion-project-rummy .cv-motion-art img {
    width: 108%;
    margin-left: -4%;
  }

  .cv-motion-art-snakes {
    justify-content: center;
  }

  .cv-motion-art-snakes img {
    width: auto;
    height: auto;
    max-width: 108%;
    max-height: 100%;
    margin: 0;
  }

  .cv-motion-caption {
    gap: 0.75rem;
  }

  .cv-motion-caption > div {
    min-width: 0;
  }

  .cv-motion-caption h4 {
    font-size: 1.1875rem;
  }

  /* The same five chronological stops follow a vertical dashed path once
     their desktop coordinates can no longer provide readable columns. */
  .experience-chapter {
    padding-block: 3rem 3.5rem;
  }

  .experience-chapter > .chapter-container {
    height: auto;
  }

  .experience-header {
    max-width: 38rem;
  }

  .experience-header h2 {
    font-size: clamp(2.5rem, 4.8vw, 3.5rem);
  }

  .experience-journey {
    position: relative;
    inset: auto;
    margin-top: 3rem;
  }

  .experience-path {
    display: none;
  }

  .experience-journey-list {
    position: relative;
    inset: auto;
    display: grid;
    gap: 2rem;
    width: 100%;
  }

  .experience-journey-list::before {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: 5rem;
    left: 0.375rem;
    border-left: 1.2px dashed #a18af0;
    pointer-events: none;
  }

  .experience-stop,
  .experience-stop-licious {
    position: relative;
    left: auto;
    top: auto;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 1.25rem;
    align-content: start;
    align-items: start;
    width: 100%;
    min-width: 0;
    min-height: 7rem;
    padding: 0 0 0 2.25rem;
  }

  .experience-stop::before,
  .experience-stop-licious::before {
    z-index: 1;
    left: 0;
    top: 1.625rem;
    width: 0.75rem;
    height: 0.75rem;
  }

  .experience-stop-licious::before,
  .experience-stop-licious::after {
    left: -0.125rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
  }

  .experience-stop .experience-brand {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 4rem;
    height: 4rem;
    margin: 0;
  }

  .experience-stop h3,
  .experience-stop p {
    grid-column: 2;
    max-width: 25rem;
  }

  .experience-stop h3 {
    margin-block: 0 0.4rem;
  }

  .experience-stop .experience-years {
    margin-top: 0.25rem;
  }

  .experience-doodle {
    left: auto;
    right: 3%;
    top: 14rem;
  }

  .contact-chapter {
    padding-block: 3rem 2rem;
  }

  .contact-chapter > .chapter-container {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 1.5rem;
    min-height: 0;
  }

  .contact-message,
  .contact-art {
    min-width: 0;
  }

  .contact-heading {
    font-size: clamp(2.8rem, 5.2vw, 3.75rem);
  }

  .contact-copy {
    margin-block: 1.5rem 1.75rem;
    font-size: 1.0625rem;
  }

  .contact-copy br {
    display: none;
  }

  .contact-details {
    margin-top: 2rem;
  }

  .contact-socials {
    gap: 1rem 1.25rem;
  }

  .contact-art {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: auto;
    padding-top: 9rem;
  }

  .contact-art .contact-character {
    position: relative;
    left: auto;
    bottom: 0;
    width: 100%;
    transform: none;
  }

  .contact-art-glow {
    left: -1rem;
    right: -0.5rem;
  }

  .contact-doodle {
    top: 0;
    right: 0;
    width: 12rem;
    font-size: 1.125rem;
  }

  .contact-spark {
    left: 0;
    top: 35%;
    width: 2.75rem;
    height: 2.75rem;
  }

  .portfolio-footer > .chapter-container {
    min-height: 6rem;
    gap: 1.25rem;
  }
}

@media (max-width: 700px) {
  .career-canvas,
  .experience-chapter > .chapter-container,
  .contact-chapter > .chapter-container,
  .portfolio-footer > .chapter-container {
    width: calc(100% - 2.5rem);
  }

  .career-canvas {
    padding-block: 2rem 3rem;
  }

  .career-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    margin-bottom: 1rem;
  }

  .career-opening h2 {
    font-size: clamp(2rem, 8.4vw, 3.25rem);
  }

  .career-opening .career-eyebrow {
    margin-bottom: 1.2rem;
    font-size: 0.8125rem;
  }

  .career-tagline {
    max-width: 22rem;
    margin-top: 1.25rem;
    font-size: 1.125rem;
  }

  .career-character {
    justify-self: end;
    width: clamp(10rem, 41vw, 14rem);
    margin-top: -0.25rem;
  }

  .career-project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
    margin-top: 0;
  }

  .cv-project {
    width: 100%;
    max-width: 30rem;
    margin-inline: auto;
  }

  .cv-product-visual {
    --cv-phone-height: clamp(24rem, 110vw, 34rem);
    max-width: 29rem;
    height: calc(var(--cv-phone-height) * 0.83);
  }

  .cv-sensei-device,
  .cv-my11-device {
    left: 50%;
  }

  .cv-metric {
    padding: 0.625rem;
    max-width: 32%;
  }

  .cv-metric-arpu,
  .cv-metric-my11-one {
    top: 18%;
    width: 7rem;
  }

  .cv-metric-usage,
  .cv-metric-my11-two {
    top: 47%;
    width: 7.5rem;
    max-width: 36%;
  }

  .cv-metric-saves,
  .cv-metric-my11-three {
    bottom: 5%;
    width: 6rem;
  }

  .cv-outcomes dd {
    font-size: 1.0625rem;
  }

  .cv-outcomes dt {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .cv-project-caption {
    padding-top: 1.25rem;
  }

  .cv-project-heading h3 {
    font-size: 1.625rem;
  }

  .cv-project-description {
    max-width: 28rem;
    margin-top: 0.85rem;
  }

  .career-motion {
    margin-top: 5rem;
  }

  .cv-motion-opening h3 {
    font-size: clamp(2rem, 8.2vw, 2.75rem);
  }

  .cv-motion-intro {
    max-width: 28rem;
    font-size: 1rem;
  }

  .cv-motion-intro br {
    display: none;
  }

  .cv-motion-note {
    position: relative;
    top: auto;
    right: auto;
    width: 9rem;
    margin: 1.75rem 0 -0.25rem auto;
    font-size: 1rem;
  }

  .cv-motion-note svg {
    width: 6.5rem;
    height: 4.5rem;
  }

  .cv-motion-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    margin-top: 0.5rem;
  }

  .cv-motion-project {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
  }

  .cv-motion-project-rummy .cv-motion-art {
    height: auto;
    min-height: 0;
    padding-block: 0.75rem 1.25rem;
  }

  .cv-motion-project-rummy .cv-motion-art img {
    width: 108%;
    margin-left: -4%;
  }

  .cv-motion-art-snakes {
    height: clamp(25rem, 100vw, 33rem);
    padding-block: 1rem;
  }

  .cv-motion-art-snakes img {
    height: 100%;
    width: auto;
    max-width: 82%;
    object-fit: contain;
  }

  .cv-motion-caption,
  .cv-motion-project-rummy .cv-motion-caption {
    margin-top: 0.5rem;
    padding-left: 0;
  }

  .cv-motion-caption h4 {
    font-size: 1.25rem;
  }

  .experience-chapter {
    padding-block: 2.5rem 3rem;
  }

  .experience-header .chapter-kicker,
  .contact-message .chapter-kicker {
    margin-bottom: 1.25rem;
  }

  .experience-header h2 {
    font-size: clamp(2.125rem, 9vw, 3rem);
  }

  .experience-intro {
    font-size: 1.0625rem;
  }

  .experience-intro br {
    display: none;
  }

  .experience-journey {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
  }

  .experience-doodle {
    position: relative;
    order: -1;
    align-self: flex-end;
    top: auto;
    right: auto;
    left: auto;
    width: 9rem;
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
  }

  .experience-doodle svg {
    position: absolute;
    left: -2.5rem;
    bottom: -.5rem;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
  }

  .experience-stop,
  .experience-stop-licious {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 0.875rem;
    padding-left: 1.75rem;
  }

  .experience-stop .experience-brand {
    width: 3.25rem;
    height: 3.25rem;
  }

  .experience-stop h3 {
    font-size: 1.125rem;
  }

  .experience-stop p {
    font-size: 0.9375rem;
  }

  .experience-stop .brand-mech { font-size: 2rem; }
  .experience-stop .brand-mpl { font-size: 1.0625rem; }
  .experience-stop .brand-freo { font-size: 1.75rem; }
  .experience-stop .brand-games { font-size: 2.5rem; }
  .experience-stop .brand-licious { font-size: 0.875rem; }

  .contact-chapter {
    padding-block: 2.5rem 1.5rem;
  }

  .contact-chapter > .chapter-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .contact-heading {
    font-size: clamp(2.5rem, 10.9vw, 4rem);
  }

  .contact-copy {
    max-width: 28rem;
    margin-inline: 0;
    margin-top: 1.4rem;
  }

  .contact-destination {
    min-height: 3.25rem;
    padding: 0.9rem 1.5rem;
    font-size: 1.125rem;
  }

  .contact-details {
    margin-top: 2rem;
  }

  .contact-email {
    min-height: 2.75rem;
  }

  .contact-resource {
    min-height: 2.75rem;
    font-size: 0.9375rem;
  }

  .contact-resource a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .contact-socials {
    column-gap: 1.25rem;
    row-gap: 0.25rem;
    margin-top: 0.5rem;
  }

  .contact-art {
    width: 100%;
    max-width: 30rem;
    height: auto;
    margin: 1.25rem auto 0;
  }

  .contact-art .contact-character {
    width: min(100%, 26rem);
    bottom: 0;
  }

  .contact-art-glow {
    inset: 6rem 0 0;
  }

  .contact-doodle {
    top: 0;
    right: 0;
    width: 11rem;
    font-size: 1.0625rem;
  }

  .contact-doodle svg {
    width: 5.5rem;
    height: 4.5rem;
    margin-top: 0.4rem;
  }

  .contact-spark {
    left: 6%;
    top: 30%;
    width: 2.5rem;
    height: 2.5rem;
  }

  .portfolio-footer {
    padding-block: 0 1.5rem;
  }

  .portfolio-footer > .chapter-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 0.75rem;
    min-height: 0;
    padding-top: 1.25rem;
  }

  .portfolio-footer .footer-credit {
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
  }

  .portfolio-footer .footer-top {
    grid-column: 2;
    grid-row: 1;
    min-height: 2.75rem;
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .portfolio-footer .footer-thought {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0.25rem 0 0.5rem;
  }
}

@media (max-width: 390px) {
  .cv-outcomes dd {
    font-size: 1rem;
    letter-spacing: -0.045em;
  }

  .cv-metric {
    padding-inline: 0.5rem;
  }

  .contact-heading {
    font-size: clamp(2.4rem, 10.8vw, 2.65rem);
  }
}
