/* Phone-only layout and motion. The desktop rules stay in styles.css. */
@media (max-width: 600px) {
  .grain { display: none; }

  .site-header {
    height: 70px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .wordmark { gap: 9px; }
  .wordmark-mark { flex: 0 0 41px; }
  .wordmark-name { display: block; font-size: 12px; white-space: nowrap; }
  .site-header nav { flex: 0 0 auto; }

  .hero {
    padding: 100px 20px 23px;
    min-height: 0;
    background: radial-gradient(ellipse 115% 55% at 55% 78%, #f6e8e9 0%, transparent 65%), #f5f3ee;
  }
  .hero h1 {
    font-size: clamp(40px, 10.9vw, 61px);
    line-height: 1.05;
    margin: 22px 0 15px;
  }
  .hero-lede {
    font-size: 14px;
    line-height: 1.57;
    max-width: 345px;
    margin-bottom: 0;
  }
  .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 22px;
  }
  .hero-actions .button {
    min-height: 48px;
    padding: 11px 15px 11px 17px;
    gap: 14px;
    font-size: 12px;
    box-shadow: 0 9px 18px rgba(35, 31, 34, .13);
    white-space: nowrap;
  }
  .hero-actions .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
    white-space: nowrap;
    padding: 8px 0;
  }
  .hero-actions .text-link span { margin-left: 3px; }
  .hero-meta { display: none; }
  .hero-world {
    width: min(100%, 430px);
    height: min(54svh, 470px);
    min-height: 395px;
    margin-top: -8px;
  }
  .hero-sphere { width: 88%; left: 6%; top: 9%; }
  .hero-person {
    inset: 0 0 4% 1%;
    width: 98%;
    height: 96%;
    filter: none;
    animation: mobile-breathe 4.5s ease-in-out infinite;
    will-change: transform;
  }
  .hero-person:hover { animation: mobile-breathe 4.5s ease-in-out infinite; }
  .hero-person.has-greeted,
  .hero-person.has-greeted:hover { animation: mobile-greet .58s cubic-bezier(.25,.8,.3,1) both; }
  .hero-plinth { bottom: 3%; }
  .hello-bubble {
    top: 10%;
    right: 0;
    padding: 10px 12px;
    font-size: 11px;
    animation: mobile-bubble 4.5s ease-in-out infinite;
  }
  .hero-glint { animation: none; }
  .hero-caption { display: none; }

  .story-intro { padding: 68px 20px 72px; }
  .story-intro-grid { padding-top: 29px; gap: 19px; }
  .story-intro h2 { font-size: clamp(42px, 10.5vw, 61px); }
  .story-intro-copy { font-size: 15px; line-height: 1.65; }
  .story-intro-copy p { margin-bottom: 11px; }

  .timeline-shell { padding: 0 20px; }
  .timeline-rail {
    margin: 0 -20px;
    padding: 9px 20px 10px;
    border-bottom: 1px solid #e4ddda;
    background: #f5f3ee;
    box-shadow: 0 9px 19px rgba(43, 34, 42, .045);
    backdrop-filter: none;
  }
  .timeline-rail ol {
    gap: 7px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
    overscroll-behavior-inline: contain;
  }
  .timeline-rail li { scroll-snap-align: center; }
  .timeline-rail a {
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 14px;
    background: #eae6e2;
    font-size: 12px;
    white-space: nowrap;
    transition: background .22s ease, color .22s ease;
  }
  .timeline-rail a:hover { transform: none; }

  .chapter {
    min-height: 0;
    padding: 27px 0 70px;
    scroll-margin-top: 64px;
  }
  .chapter-topline {
    font-size: 10px;
    letter-spacing: .11em;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }
  .chapter-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
  }
  .chapter-scene {
    order: 0;
    align-self: stretch;
    width: 100%;
    height: clamp(390px, 113vw, 510px);
    min-height: 0;
    max-width: none;
    border-radius: 27px;
    box-shadow: 0 17px 32px rgba(53, 45, 54, .09), inset 0 1px rgba(255,255,255,.7);
    transform: none;
    transition: none;
  }
  .chapter-scene:hover { box-shadow: 0 17px 32px rgba(53, 45, 54, .09), inset 0 1px rgba(255,255,255,.7); }
  .chapter-scene img {
    left: 1%;
    width: 98%;
    height: 96%;
    bottom: 1%;
    filter: none;
    transform: none;
    transition: none;
  }
  .scene-card {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: none;
    transform: rotate(4deg);
  }
  .scene-card-a { top: 3%; right: 5%; }
  .scene-year { font-size: clamp(112px, 36vw, 170px); }
  .scene-label { bottom: 16px; left: 16px; font-size: 9px; }
  .chapter-copy {
    order: 1;
    padding: 33px 1px 0;
    max-width: none;
  }
  .chapter-tag { font-size: 11px; }
  .chapter h2 {
    font-size: clamp(42px, 10.8vw, 60px);
    line-height: 1.06;
    margin: 18px 0 15px;
  }
  .chapter-role { font-size: 14px; margin-bottom: 19px; }
  .chapter-description { font-size: 16px; line-height: 1.65; margin-bottom: 22px; }
  .fact-list > div {
    grid-template-columns: 29px 1fr;
    padding: 16px 0;
    font-size: 16px;
    line-height: 1.58;
  }
  .chapter-copy.reveal { opacity: 1; transform: none; transition: none; }
  .chapter-scene.reveal { opacity: 1; transform: none; transition: none; }
  .chapter-scene.reveal.is-visible { animation: mobile-scene-in .52s cubic-bezier(.2,.7,.2,1) both; }

  .highlights { padding: 75px 20px 84px; }
  .highlights-heading { margin: 32px 0 35px; }
  .highlight-card { min-height: 0; padding-bottom: 72px; }
  .closing { padding: 92px 20px 100px; }
  .site-footer { padding: 23px 20px max(23px, env(safe-area-inset-bottom)); }
}

/* Keep Xavier central while the place artwork remains visible behind him. */
@media (max-width: 800px) {
  .chapter-scene img {
    left: 1%;
    right: auto;
    bottom: 0;
    width: 98%;
    height: 87%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 14px 17px rgba(35, 27, 37, .25));
  }
  .chapter-scene .scene-card-a { top: auto; right: auto; bottom: 56px; left: 14px; }
}

@media (max-width: 350px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 39px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding: 10px 12px; font-size: 11px; gap: 8px; }
  .hero-actions .text-link { font-size: 10px; }
  .chapter h2 { font-size: 40px; }
}

@keyframes mobile-breathe {
  0%,100% { transform: translate3d(0,0,0) rotate(-.5deg); }
  50% { transform: translate3d(0,-5px,0) rotate(.5deg); }
}
@keyframes mobile-greet {
  0%,100% { transform: translate3d(0,0,0) rotate(-1deg); }
  35% { transform: translate3d(0,-6px,0) rotate(3deg); }
  70% { transform: translate3d(0,-4px,0) rotate(-2deg); }
}
@keyframes mobile-bubble {
  0%,100% { transform: translate3d(0,0,0) rotate(4deg); }
  50% { transform: translate3d(0,-5px,0) rotate(3deg); }
}
@keyframes mobile-scene-in {
  from { opacity: .82; transform: translate3d(0,14px,0) scale(.985); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .hero-person, .hero-person:hover, .hero-person.has-greeted,
  .hello-bubble, .chapter-scene.reveal.is-visible { animation: none; }
}

/* Phone: contact icons, "now looking for" line, next-role section (2026-10-03) */
@media (max-width: 600px) {
  .contact-icons { gap: 6px; }
  .contact-icon { width: 36px; height: 36px; }
  .contact-icon svg { width: 15px; height: 15px; }
  .contact-icon:after { display: none; }
  .hero-seeking { margin-top: 20px; padding-left: 14px; }
  .seeking-roles { font-size: 21px; margin: 8px 0 7px; }
  .seeking-terms { font-size: 12px; gap: 8px; }
  .hero-seeking + .hero-actions { margin-top: 22px; }
  .hero-actions .button-pink { box-shadow: 0 9px 18px rgba(194, 48, 111, .24); }
  .next-role { padding: 68px 20px 72px; }
  .next-role-top { padding-top: 29px; }
  .next-role h2 { font-size: clamp(42px, 10.5vw, 61px); }
  .next-role-top p { font-size: 15px; line-height: 1.65; }
  .lane-card { padding: 24px 22px 28px; }
  .lane-num { font-size: 104px; top: -10px; }
  .lane-card strong { font-size: 25px; margin: 20px 0 10px; }
  .lane-card p { font-size: 15px; }
  .promise-panel { padding: 28px 22px 30px; }
  .next-orbit { display: none; }
  .promise-grid p { font-size: 15px; }
}
@media (max-width: 350px) {
  .wordmark-name { font-size: 11px; }
  .contact-icons { gap: 4px; }
  .contact-icon { width: 33px; height: 33px; }
}

@media (max-width: 350px) {
  .seeking-terms i:last-of-type { display: none; }
  .lane-num { font-size: 80px; top: -6px; }
}

@media (max-width: 600px) {
  .hero-proof { gap: 7px; margin-top: 19px; }
  .hero-proof span { padding: 7px 9px; font-size: 11px; }
}

/* Compact phone layout (Boss, 2026-10-03): less scrolling. Text and cards only — hero and chapter pictures unchanged. */
@media (max-width: 600px) {
  .next-role { padding: 46px 20px 50px; }
  .next-role-top { padding-top: 22px; gap: 12px; margin-bottom: 22px; }
  .next-role h2 { font-size: clamp(36px, 9.6vw, 50px); }
  .next-role-top p { font-size: 14.5px; line-height: 1.6; }
  .lane-grid { gap: 10px; }
  .lane-card { padding: 18px 18px 20px; border-radius: 20px; }
  .lane-num { font-size: 76px; top: -8px; right: 12px; }
  .lane-card strong { font-size: 21px; margin: 12px 0 6px; }
  .lane-card p { font-size: 14px; line-height: 1.55; }
  .promise-panel { margin-top: 10px; padding: 18px 18px 20px; border-radius: 20px; }
  .promise-title { margin-bottom: 14px; }
  .promise-grid { gap: 14px; }
  .promise-grid > div { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
  .promise-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; font-size: 15px; margin: 2px 0 0; }
  .promise-grid strong { font-size: 17px; margin-bottom: 3px; }
  .promise-grid p { font-size: 13.5px; line-height: 1.5; }
  .next-role-facts { gap: 7px; margin-top: 14px; }
  .next-role-facts span { padding: 7px 12px; font-size: 12px; }

  .story-intro { padding: 46px 20px 44px; }
  .story-intro-grid { padding-top: 22px; gap: 12px; }
  .story-intro h2 { font-size: clamp(36px, 9.6vw, 50px); }
  .story-intro-copy { font-size: 14.5px; line-height: 1.6; }
  .story-intro-copy p { margin-bottom: 8px; }

  .chapter { padding: 20px 0 42px; }
  .chapter-topline { padding-bottom: 12px; margin-bottom: 14px; }
  .chapter-copy { padding-top: 22px; }
  .chapter h2 { font-size: clamp(34px, 9.2vw, 48px); margin: 12px 0 10px; }
  .chapter-role { font-size: 13.5px; margin-bottom: 12px; }
  .chapter-description { font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; }
  .fact-list > div { grid-template-columns: 24px 1fr; padding: 10px 0; font-size: 14px; line-height: 1.5; }

  .highlights { padding: 46px 20px 50px; }
  .highlights-heading { margin: 22px 0 22px; }
  .highlights h2 { font-size: clamp(36px, 9.6vw, 50px); }
  .highlights-heading p { margin-top: 10px; font-size: 14.5px; }
  .highlight-grid { gap: 10px; }
  .highlight-card { padding: 18px 18px 20px; border-radius: 20px; }
  .highlight-card strong { font-size: 22px; margin: 10px 0 6px; }
  .highlight-card p { font-size: 14px; line-height: 1.55; max-width: 85%; margin: 0; }
  .highlight-symbol { font-size: 34px; right: 16px; bottom: auto; top: 12px; }

  .closing { padding: 64px 20px 70px; }
  .closing h2 { font-size: clamp(40px, 10.5vw, 56px); }
  .closing-actions { margin-top: 28px; }
}
@media (max-width: 350px) {
  .chapter h2 { font-size: 33px; }
}
