/* Responsive: tablet and mobile adjustments */
@media (max-width: 960px) {
  .rail-spot { display: none; }
  .contact-planet { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { width: min(100%, 540px); min-height: 550px; margin: 0 auto; }
  .hero-shuttle { left: -24px; bottom: 40px; width: 230px; height: 245px; }
  .hero-shuttle-art { --shuttle-base-rotate: -48deg; top: 46%; width: 290px; }
  .hero-photo { top: 10px; right: 0; width: min(78%, 380px); max-width: none; transform: rotate(0.4deg); }
  .hero-visual-caption { width: min(78%, 380px); }
  .hero-grid::after { right: 3%; left: auto; top: auto; bottom: 54px; width: min(72%, 350px); max-width: none; height: 390px; }
  .hero-photo::before { inset: 16px -12px 40px 16px; }
  .sec-grid { grid-template-columns: 1fr; gap: 18px; }
  .sec-label { position: static; }
  .edu-row { grid-template-columns: 1fr; gap: 0; }
  .edu-row .edu { padding: 12px 0; border-bottom: 1px solid var(--pink-soft); }
  .edu-row .edu:first-child { padding-top: 2px; }
  .edu-row .edu:last-child { border-bottom: none; }
  .talk.featured { grid-template-columns: 1fr; gap: 0; }
  .talk.featured .talk-title { margin-top: 14px; }
  .talk.featured .talk-desc { max-width: 660px; }
  .featured-heading { grid-template-columns: 1fr; gap: 18px; }
  .featured-heading > p { max-width: 680px; }
  .case-study.case-primary { grid-template-columns: 1fr; }
  .case-primary .case-visual { min-height: 360px; }
  .case-primary .case-copy { padding: 24px 0 0; }
}
@media (max-width: 720px) {
  .hero { padding: 52px 0 0; }
  .hero-visual { min-height: 475px; }
  .hero-shuttle { left: -22px; bottom: 34px; width: 185px; height: 205px; }
  .hero-shuttle-art { width: 238px; }
  .hero-photo { width: 82%; }
  .hero-visual-caption { width: 82%; font-size: 9.5px; }
  .hero-sig { width: 64px; margin-bottom: 20px; }
  .plane { display: none; }
  section { padding: 64px 0 0; }
  .stats { margin-top: 48px; }
  .stat { flex: 1 1 40%; padding: 16px; }
  .stat b { font-size: 32px; }
  .job, .skills .row { grid-template-columns: 1fr; }
  .jobfold summary { grid-template-columns: 1fr; }
  .jobfold .jbody { margin-left: 0; }
  .job .years { padding-top: 0; font-size: 14px; }
  .talks { grid-template-columns: 1fr; gap: 30px; }
  .folder-body { padding: 4px 18px 10px; }
  .folder-pubs .folder-body { padding: 4px 16px 10px; }
  .folder-pubs .pub .pub-title { font-size: 16.5px; }
  .folder-edu .folder-body { padding: 14px 16px; }
  .diplomas { grid-template-columns: 1fr; gap: 16px; }
  .folder-speaking .folder-body { padding: 14px 16px; }
  .pencils { gap: 5px; padding: 0 6px; }
  .pencil { width: 30px; --ph: 150px; }
  .pencil::before { border-left-width: 14px; border-right-width: 14px; }
  .pencil-name { font-size: 10.5px; letter-spacing: 0.03em; padding: 9px 0 0; }
  .pencils .pencil:nth-child(1){--ph:152px} .pencils .pencil:nth-child(2){--ph:148px} .pencils .pencil:nth-child(3){--ph:144px} .pencils .pencil:nth-child(4){--ph:172px}
  .pencils .pencil:nth-child(5){--ph:146px} .pencils .pencil:nth-child(6){--ph:142px} .pencils .pencil:nth-child(7){--ph:162px} .pencils .pencil:nth-child(8){--ph:146px}
  .case { height: 68px; margin-top: -22px; border-radius: 15px 13px 12px 14px; }
  .tl-node { flex-basis: 150px; width: 150px; padding-right: 14px; }
  .tl-track::before { top: 50px; }
  .tl-pane h3 { font-size: 18px; }
  .folder-tabs { gap: 2px; padding: 0 5px; row-gap: 6px; }
  .project { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .shots { grid-template-columns: 1fr; }
  .pv { width: 64px; height: 64px; }
  .pv .doodle { width: 34px; height: 34px; }
  .pv .pv-inf { width: 42px; }
  .ftab { font-size: 12px; padding: 6px 7px 9px; }
  .ftab[aria-selected="true"] { padding-bottom: 12px; }
  .space-dust { display: none; }
  .contact { padding-bottom: 72px; }
  .featured-work { padding-top: 70px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-study.case-primary { grid-column: auto; }
  .case-grid { margin-top: 40px; row-gap: 52px; }
  .case-primary .case-visual, .case-visual { min-height: 280px; }
  .case-primary .case-copy, .case-copy { padding: 20px 0 0; }
  .case-dashboard .case-copy { padding: 20px 0 0; }
  .idea-constellation { min-height: 270px; }
  .idea-star { width: 23px; height: 23px; }
  .idea-star.is-lead { width: 31px; height: 31px; }
  .idea-star-label { max-width: 150px; font-size: 10.5px; }
  .case-study:hover { transform: none; }
  .skill-path { display: block; padding-left: 38px; }
  .skill-route { left: 13px; width: 34px; transform: none; }
  .skill-stop, .skill-stop:nth-of-type(odd), .skill-stop:nth-of-type(even) { max-width: none; min-height: 168px; padding: 18px 0 24px 14px; text-align: left; transform: none; }
  .skill-stop:nth-of-type(odd) .skill-mark { margin-left: 0; }
  .skill-stop:nth-of-type(odd) .skill-dot, .skill-stop:nth-of-type(even) .skill-dot { left: -32px; right: auto; }
}

/* ===== Mobile pass ===== */

/* ===== Mobile pass: header scrolls away, smaller floating controls ===== */
@media (max-width: 720px) {
  header { position: static; }
  header .wrap { padding: 13px 20px; }
  .brand { font-size: 16px; }
  .header-right { gap: 10px; }
  nav.site { font-size: 13px; gap: 2px 15px; }
  .music-btn { width: 40px; height: 40px; bottom: 64px; left: 14px; }
  .music-btn svg { width: 18px; height: 18px; }
  .to-top { width: 40px; height: 40px; left: 14px; bottom: 14px; }
  .to-top .tt-rocket { width: 19px; }
  .a11y-fab { font-size: 0; gap: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; right: 14px; bottom: 14px; }
  .a11y-fab .doodle { width: 22px; height: 22px; }
}
