/* Responsive layout pass. Keep video and landing-image camera geometry intact. */
#home-work-prototype .site-stage { min-height:100svh; }
#home-work-prototype .menu-overlay { overflow-y:auto; overscroll-behavior:contain; padding:84px 32px 32px; }
#home-work-prototype .overlay-nav { max-width:100%; }
#home-work-prototype .overlay-nav button { font-size:clamp(32px,min(8vw,9svh),112px); min-height:44px; }
#home-work-prototype .project-footer > * { min-width:0; }
#home-work-prototype .project-title-row { overflow-wrap:anywhere; }
.cp-intro-pond__interstitial > span { max-width:90%; line-height:1.6; }

@media (max-width:1100px), (max-height:800px) {
  #home-work-prototype .chapter-menu { left:51%; width:46%; gap:8px; }
  #home-work-prototype .chapter-menu button { font-size:min(9.5vw,11svh); min-height:44px; }
  #home-work-prototype .home-statement { left:27%; width:21%; bottom:7%; font-size:11px; }
}

@media (max-width:720px) {
  #home-work-prototype .site-stage { height:100svh; min-height:540px; }
  #home-work-prototype .home-screen .chapter-menu { left:48%; width:49%; top:43%; gap:12px; }
  #home-work-prototype .home-screen .chapter-menu button { font-size:min(10.4vw,8svh); min-height:44px; }
  #home-work-prototype .home-screen .home-statement { left:48%; width:47%; bottom:84px; top:auto; padding:8px 0; font-size:11px; line-height:1.6; background:#fffffff0; }
  #home-work-prototype .home-statement .home-statement-keep { white-space:normal; }
  #home-work-prototype .home-screen .transition-preview-control { right:16px; bottom:18px; min-width:140px; }
  #home-work-prototype .work-screen .work-replay { left:16px; bottom:18px; min-width:0; padding:0 12px; font-size:9px; }
  #home-work-prototype .work-screen .work-explore { left:auto; right:16px; bottom:18px; transform:none; min-width:108px; padding:0 14px; }
  #home-work-prototype .work-screen .work-journey-next { top:24%; right:16px; max-width:calc(100% - 32px); min-height:44px; }
  #home-work-prototype .work-screen .menu-trigger { width:64px; height:76px; }
  #home-work-prototype .work-grid { padding-inline:20px; row-gap:44px; }
  #home-work-prototype .project-media,
  #home-work-prototype .project-entry.full .project-media,
  #home-work-prototype .project-entry.tall .project-media { min-height:0; height:auto; aspect-ratio:4/5; }
  #home-work-prototype .project-entry.full .project-media { aspect-ratio:4/3; }
  #home-work-prototype .menu-overlay { padding:88px 32px 32px; place-items:start center; }
  #home-work-prototype .overlay-nav { gap:12px; }
  #home-work-prototype .overlay-nav button { font-size:clamp(32px,9vw,60px); }
  .cp-intro-pond__hint { max-width:90%; }
}

/* Short landscape screens retain a reachable menu and controls. */
@media (max-width:1440px) {
  #home-work-prototype .home-screen .character-crop {
    top:88px; bottom:0; height:calc(100% - 88px);
  }
}
@media (max-width:1100px) and (max-aspect-ratio:4/3) {
  #home-work-prototype .home-screen .character-crop img { object-position:8% top; }
}
@media (max-width:720px) and (orientation:portrait) {
  /* Move the subject toward the left edge, leaving the chapter menu clear. */
  #home-work-prototype .home-screen .character-crop img { object-position:calc(18% - 55px) top; }
}
@media (max-height:540px) and (min-width:600px) {
  #home-work-prototype .site-stage { min-height:100svh; }
  #home-work-prototype .home-screen .chapter-menu { top:54%; left:54%; width:43%; gap:0; }
  #home-work-prototype .home-screen .chapter-menu button { font-size:8svh; min-height:40px; }
  #home-work-prototype .home-screen .home-statement { left:27%; width:23%; bottom:16px; font-size:10px; }
  #home-work-prototype .menu-overlay .overlay-nav { grid-template-columns:1fr 1fr; gap:12px 35px; }
  #home-work-prototype .overlay-nav button { font-size:32px; }
}

/* Keep the Home impact statement directly on the artwork. */
#home-work-prototype .home-screen .home-statement {background:transparent;}

/* Center the mobile menu takeover; safe alignment allows short-screen scrolling. */
@media (max-width:720px) {
  #home-work-prototype .menu-overlay {place-items:safe center;}
}
@media (max-width:720px) {
  #home-work-prototype .menu-overlay {padding:76px 32px;}
}

/* Separate the quote, credit and controls on landscape phones. */
@media (orientation:landscape) and (max-height:500px) {
  .cp-intro-pond__enter {bottom:18px;min-height:44px;}
  .cp-intro-pond__tagline {bottom:82px;font-size:18px;line-height:1.3;}
  .cp-intro-pond__hint {top:18px;font-size:8px;}
  .cp-intro-pond__accessible-copy {top:58px;bottom:134px;transform:translateX(-50%);display:flex;flex-direction:column;justify-content:center;gap:12px;}
  .cp-intro-pond__accessible-copy .cp-intro-pond__kicker {margin:0;font-size:9px;}
  .cp-intro-pond__accessible-copy blockquote {font-size:clamp(22px,6svh,30px);line-height:1.05;}
  .cp-intro-pond__accessible-copy cite {margin:8px 0 0;font-size:10px;}
}

.cp-intro-pond__bottom-row {display:contents;}
@media (orientation:landscape) and (max-height:500px) {
  .cp-intro-pond__bottom-row {position:absolute;z-index:5;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:24px;width:max-content;max-width:calc(100% - 32px);}
  .cp-intro-pond__bottom-row .cp-intro-pond__tagline {position:static;transform:none;margin:0;max-width:none;width:auto;font-size:18px;white-space:nowrap;}
  .cp-intro-pond__bottom-row .cp-intro-pond__enter {position:static;transform:none;flex:none;min-width:112px;}
  .cp-intro-pond__hint {top:88px;max-width:calc(100% - 48px);}
  .cp-intro-pond__accessible-copy {top:116px;bottom:88px;}
}

/* Small portrait phones: reserve distinct menu and statement bands. */
@media (max-width:379px) and (orientation:portrait) {
  #home-work-prototype .home-screen .chapter-menu {top:128px;transform:none;gap:4px;}
  #home-work-prototype .home-screen .chapter-menu button {min-height:44px;font-size:36px;}
  #home-work-prototype .home-screen .home-statement {top:390px;bottom:auto;font-size:10px;line-height:1.5;}
}

/* Work phone navigation sits midway down the right edge. */
@media (max-width:720px) {
  #home-work-prototype .work-screen .work-journey-next {top:50%;right:16px;transform:translateY(-50%);}
}

/* Keep the Work portrait and incoming movie below the transparent phone header. */
@media (max-width:720px) {
  #home-work-prototype .work-screen .work-landing-image,
  #home-work-prototype .transition-frame-deck {
    top:88px;
    bottom:0;
    height:calc(100% - 88px);
  }
}

/* Laptop Home -> Work shares the same header inset for every visual layer. */
@media (min-width:1101px) and (max-width:1440px) {
  #home-work-prototype .transition-frame-deck,
  #home-work-prototype .work-screen .work-landing-image {top:88px;bottom:0;height:calc(100% - 88px);}
  #home-work-prototype .transition-frame {object-position:center top;transform:none;}
}

/* Tablet portrait Home: slide the subject clear of the menu and impact copy. */
@media (min-width:721px) and (max-width:1100px) and (orientation:portrait) {
  #home-work-prototype .home-screen .character-crop img {
    object-position:calc(8% - 24vw) top;
  }
}

/* Landscape tablets need a smaller leftward adjustment beside the impact copy. */
@media (min-width:721px) and (max-width:1180px) and (min-height:600px) and (orientation:landscape) {
  #home-work-prototype .home-screen .character-crop img {
    transform:translateX(-6vw);
  }
}

/* Tablet animation and destination share the Home image viewport. */
@media (min-width:721px) and (max-width:1100px), (min-width:1101px) and (max-width:1180px) and (min-height:600px) and (orientation:landscape) {
 #home-work-prototype .transition-frame-deck,
 #home-work-prototype .work-screen .work-landing-image {top:88px;bottom:0;height:calc(100% - 88px);}
 #home-work-prototype .transition-frame {object-position:center top;transform:none;}
}
@media (min-width:721px) and (max-width:1100px) and (orientation:portrait) {
 #home-work-prototype .transition-frame[data-transition-frame="a"] {object-position:calc(8% - 24vw) top;}
}
@media (min-width:721px) and (max-width:1180px) and (min-height:600px) and (orientation:landscape) {
 #home-work-prototype .transition-frame[data-transition-frame="a"] {object-position:center top;transform:translateX(-6vw);}
}
@media (min-width:721px) and (max-width:1100px) and (max-aspect-ratio:4/3) and (orientation:landscape) {
 #home-work-prototype .transition-frame[data-transition-frame="a"] {object-position:8% top;}
}
