/* The Living Inscription: foreground choreography over one continuous scene.
   Keep every rule local to the homepage; the film studies and brand guide retain
   their own document layouts. Canvas state is owned by the scene controller. */

body.living-page {
  --scene-hero-poster: url('assets/scene/poster-hero.png');
  position: relative;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

body.living-page #scene-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}

body.living-page #inscription-canvas,
body.living-page .scene-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.living-page #inscription-canvas { opacity: 0; }
body.living-page .scene-fallback {
  background: var(--paper) var(--scene-hero-poster) center / cover no-repeat;
}
html.scene-ready body.living-page #inscription-canvas { opacity: 1; }
html.scene-ready body.living-page .scene-fallback { opacity: 0; }
html.scene-static body.living-page #inscription-canvas { opacity: 0; }
html.scene-static body.living-page .scene-fallback { opacity: 1; }

body.living-page .site-header,
body.living-page .noscript-nav,
body.living-page main,
body.living-page .site-footer {
  position: relative;
  z-index: 2;
}

body.living-page .site-header {
  z-index: 12;
  height: 104px;
  background: linear-gradient(180deg, #eeece6f5, #eeece6d6 70%, #eeece600);
}

body.living-page .site-header .brand img { width: 149px; }
body.living-page .header-description { font-size: 8px; letter-spacing: .075em; }
body.living-page .desktop-nav { gap: 27px; }
body.living-page .desktop-nav a { font-size: 11px; }
body.living-page .desktop-nav a > span { font-size: 8px; }
body.living-page .header-join { font-size: 11px; gap: 27px; }
body.living-page .pin-shell { position: relative; width: 100%; }
body.living-page .pin-spacer { max-width: 100%; }

/* HERO: the incision belongs to the whole viewport, not a hero media box. */
body.living-page .hero.hero-agency { position: relative; }
body.living-page .hero.hero-agency .hero-film {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 710px;
  height: calc(100svh - 104px);
  max-height: none;
  margin: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  isolation: isolate;
}

body.living-page .hero.hero-agency .hero-film::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #eeece6f5 0%, #eeece6eb 34%, #eeece69c 49%, #eeece600 70%);
}

body.living-page .hero.hero-agency .hero-film::after { display: none; }
body.living-page .hero.hero-agency .hero-video,
body.living-page .hero.hero-agency .hero-shade { display: none; }

body.living-page .hero.hero-agency .hero-top {
  top: 20px;
  left: var(--gutter);
  right: var(--gutter);
  color: var(--muted);
}

body.living-page .hero.hero-agency .hero-top .eyebrow,
body.living-page .hero.hero-agency .hero-edition { font-size: 8px; letter-spacing: .1em; }

body.living-page .hero.hero-agency .hero-copy {
  position: absolute;
  left: var(--gutter);
  right: auto;
  top: 49%;
  width: min(48%, 660px);
  margin: 0;
  transform: translateY(-48%);
  animation: none;
}

body.living-page .hero.hero-agency h1 {
  font-size: clamp(69px, 7.35vw, 116px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.075em;
  max-width: none;
}

body.living-page .hero.hero-agency .hero-message {
  max-width: 445px;
  margin-top: 26px;
  color: #4d4e4b;
}

body.living-page .hero.hero-agency .hero-message p { font-size: 12px; line-height: 1.85; }
body.living-page .hero.hero-agency .hero-message p + p { margin-top: 11px; }
body.living-page .hero.hero-agency .hero-actions { margin-top: 25px; gap: 16px 26px; }
body.living-page .hero.hero-agency .hero-actions a { font-size: 11px; min-height: 45px; }

body.living-page .hero.hero-agency .hero-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  padding: 13px 18px;
}
body.living-page .hero.hero-agency .hero-primary:hover { background: #424449; }
body.living-page .hero.hero-agency .hero-secondary {
  color: var(--ink);
  border-color: #22232675;
  background: transparent;
}

body.living-page .hero.hero-agency .hero-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 25px;
  margin: 0;
  padding-top: 18px;
  border-color: #22232632;
  color: var(--muted);
  font-size: 8px;
}

body.living-page .hero.hero-agency .hero-scroll { margin-left: auto; color: var(--ink); }
body.living-page .hero.hero-agency .hero-caption {
  position: relative;
  padding-block: 25px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #eeece600, #eeece6b3);
}
body.living-page .hero.hero-agency .hero-domain-nav { font-size: 11px; }

body.living-page .scene-annotation {
  position: absolute;
  right: var(--gutter);
  bottom: 110px;
  max-width: 220px;
  font-size: 9px;
  line-height: 1.75;
  letter-spacing: .045em;
  color: var(--muted);
  text-align: right;
  pointer-events: none;
}

/* A quiet, always-available control for the scene, separate from film playback. */
body.living-page .scene-controls {
  position: fixed;
  z-index: 35;
  right: 24px;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 21px;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px 12px;
  color: var(--ink);
  background: #eeece6eb;
  border: 1px solid #22232628;
  box-shadow: 0 4px 24px #22232608;
  backdrop-filter: blur(16px);
}

body.living-page .scene-controls[hidden] { display: none; }
body.living-page .scene-chapter {
  min-width: 0;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.living-page .scene-controls .motion-toggle {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-height: 30px;
  padding: 4px 0 4px 4px;
  color: var(--ink);
  font-size: 9px;
  gap: 7px;
}
body.living-page .scene-controls .motion-toggle svg { width: 13px; height: 13px; }
body.living-page .scene-progress {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: #22232629;
}
body.living-page .scene-progress > span,
body.living-page .scene-progress-fill,
body.living-page .scene-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #8a5638;
  transform: scaleX(0);
  transform-origin: left center;
}
body.living-page:has(.menu-toggle[aria-expanded='true']) .scene-controls { visibility: hidden; }

/* Keep domain text readable as the scene moves behind it. */
body.living-page .domains-section {
  position: relative;
  padding-block: 62px 68px;
  border: 0;
  isolation: isolate;
}
body.living-page .domains-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #eeece6f7 0%, #eeece6f0 35%, #eeece6db 59%, #eeece600 78%);
}
body.living-page .domains-section .section-heading,
body.living-page .domains-section .domain-list { width: 59%; max-width: 790px; }
body.living-page .domains-section .section-heading { display: block; margin-top: 25px; margin-bottom: 27px; }
body.living-page .domains-section h2 { font-size: clamp(40px, 4.1vw, 62px); }
body.living-page .domains-section .section-heading > p { max-width: 470px; margin-top: 15px; font-size: 12px; line-height: 1.8; }
body.living-page .domains-section .domain-row {
  position: relative;
  grid-template-columns: 25px minmax(125px, .72fr) minmax(0, 1fr);
  gap: 19px;
  padding-block: 18px;
  align-items: baseline;
}
body.living-page .domains-section .domain-number { font-size: 9px; }
body.living-page .domains-section .domain-row h3 { font-size: 22px; line-height: 1.2; }
body.living-page .domains-section .domain-row p { font-size: 12px; line-height: 1.8; }
body.living-page .domains-section .domain-row::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 20px;
  width: 2px;
  height: 22px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(.3);
  transform-origin: top;
  transition: opacity .25s, transform .25s;
}
body.living-page .domains-section .domain-row.is-active::before { opacity: 1; transform: scaleY(1); }
body.living-page .domains-section .domain-row.is-active h3 { font-weight: 500; }

/* The camera draws back here. Foreground layouts stay calm and comfortably read. */
body.living-page .about-content-section,
body.living-page .teams-section,
body.living-page .content-join,
body.living-page .contact-section { position: relative; isolation: isolate; }

body.living-page .about-content-section {
  background: transparent;
  border: 0;
  padding-block: 115px 125px;
}
body.living-page .about-content-section::before,
body.living-page .teams-section::before,
body.living-page .content-join::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #eeece6c9, #eeece6e0 38%, #eeece6c9 76%, #eeece669);
}
body.living-page .about-content-section .collective-layout { margin-top: 43px; gap: 12%; }
body.living-page .about-content-section .collective-layout h2 { font-size: clamp(40px, 4.3vw, 65px); }
body.living-page .about-content-section .collective-copy > p { font-size: 13px; line-height: 1.95; }
body.living-page .about-content-section .collective-copy > p:first-child { font-size: 18px; line-height: 1.75; }

body.living-page .teams-section { padding-block: 95px 110px; border-block: 1px solid var(--line); }
body.living-page .teams-section #team-title { font-size: clamp(42px, 4.6vw, 70px); }
body.living-page .teams-section .team-content-layout { margin-top: 42px; }
body.living-page .teams-section .team-verification-note { padding-top: 23px; margin-top: 41px; }

/* A readable screening atmosphere; colors do not depend on a timing-sensitive
   class change. The fixed scene can still be seen around the outer edges. */
body.living-page .content-work.container {
  --muted: #c0c2b9;
  --line: #eeece632;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-block: 96px 105px;
  padding-inline: max(var(--gutter), calc((100% - 1368px) / 2));
  background: #222326f2;
  color: var(--paper);
  border: 0;
}
body.living-page .content-work .work-introduction { margin-top: 33px; gap: 11%; }
body.living-page .content-work h2 { font-size: clamp(42px, 4.2vw, 64px); }
body.living-page .content-work .work-category { border-top-color: #eeece68a; }
body.living-page .content-work .work-category h3 { font-size: 25px; }
body.living-page .content-work .work-category li { border-color: var(--line); }
body.living-page .content-work .film-grid { gap: 38px; }
body.living-page .content-work .film-secondary { margin-top: 100px; }
body.living-page .content-work .film-info h3 { font-size: 23px; }
body.living-page .content-work .film-info .text-link { color: var(--paper); }
body.living-page .content-work .concept-footnote { max-width: 720px; }
body.living-page .content-work .process-grid figcaption > span:last-child { color: var(--muted); }

body.living-page .content-join {
  background: transparent;
  color: var(--ink);
  padding-block: 115px 120px;
}
body.living-page .content-join .join-heading > .eyebrow { color: var(--muted); }
body.living-page .content-join h2 { font-size: clamp(47px, 5.5vw, 84px); }
body.living-page .content-join .join-aside > p { color: var(--muted); }
body.living-page .content-join .join-aside > .join-question,
body.living-page .content-join .join-aside > .join-invitation { color: var(--ink); }
body.living-page .content-join .action-details > summary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
body.living-page .content-join .action-details > summary:hover { background: #424449; }
body.living-page .content-join .action-details-body { border-color: var(--line); color: var(--muted); background: #eeece6d9; }

/* CONTACT: its lower field remains open for the final pullback / full inscription. */
body.living-page .contact-section { padding-block: 65px 120px; border: 0; }
body.living-page .contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #eeece6eb 0%, #eeece6c9 38%, #eeece64d 66%, #eeece600 90%);
}
body.living-page .contact-section .pin-shell { min-height: calc(100svh - 150px); }
body.living-page .contact-section .section-topline { padding-top: 20px; }
body.living-page .contact-section .contact-layout { margin-top: 41px; grid-template-columns: 1.05fr 1fr; gap: 12%; }
body.living-page .contact-section h2 { font-size: clamp(36px, 3.9vw, 60px); line-height: 1.07; }
body.living-page .contact-section .contact-copy { max-width: 490px; }
body.living-page .contact-section .contact-copy > p { font-size: 16px; }
body.living-page .contact-section .contact-copy > p + p { font-size: 13px; }
body.living-page .contact-section .action-details { background: #eeece6d9; }
body.living-page .contact-section .action-details > summary { background: #eeece6b3; }
body.living-page .contact-section .action-details-body { background: #eeece6eb; }

body.living-page .site-footer {
  background: linear-gradient(180deg, #eeece600, #eeece6eb 35%, var(--paper));
  padding-top: 42px;
}
body.living-page .site-footer .footer-bottom { padding-bottom: 106px; }

/* Scene-matched chapter posters keep the same art direction when WebGL or
   motion is unavailable. Normal document height is retained in these states. */
html:not(.scene-ready) body.living-page .hero-film,
html.scene-static body.living-page .hero-film {
  background: var(--scene-hero-poster) center / cover no-repeat;
}
html:not(.scene-ready) body.living-page .domains-section,
html.scene-static body.living-page .domains-section {
  background: url('assets/scene/poster-domains.png') right center / cover no-repeat;
}
html:not(.scene-ready) body.living-page .contact-section,
html.scene-static body.living-page .contact-section {
  background: linear-gradient(180deg, #eeece6f2, #eeece6cc 42%, #eeece633), url('assets/scene/poster-contact.png') center bottom / cover no-repeat;
}
html.scene-static body.living-page .contact-section .pin-shell { min-height: 650px; }

@media (max-width: 1150px) {
  body.living-page .site-header { height: 98px; gap: 24px; }
  body.living-page .desktop-nav { gap: 21px; }
  body.living-page .hero.hero-agency .hero-film { min-height: 710px; height: calc(100svh - 98px); }
  body.living-page .hero.hero-agency h1 { font-size: clamp(61px, 7.2vw, 84px); }
  body.living-page .hero.hero-agency .hero-copy { width: 52%; }
  body.living-page .hero.hero-agency .hero-message { max-width: 410px; }
  body.living-page .hero.hero-agency .hero-actions { gap: 12px 20px; }
  body.living-page .hero.hero-agency .hero-actions a { font-size: 10px; }
  body.living-page .hero.hero-agency .hero-primary { padding-inline: 14px; }
  body.living-page .domains-section .section-heading,
  body.living-page .domains-section .domain-list { width: 67%; }
  body.living-page .domains-section .domain-row { grid-template-columns: 22px minmax(118px, .75fr) minmax(0, 1fr); gap: 15px; }
  body.living-page .domains-section .domain-row h3 { font-size: 20px; }
  body.living-page .domains-section .domain-row p { font-size: 11px; }
  body.living-page .about-content-section .collective-layout,
  body.living-page .teams-section .team-content-layout { gap: 8%; }
  body.living-page .content-work .film-grid { gap: 26px; }
  body.living-page .content-work .film-secondary { margin-top: 74px; }
  body.living-page .content-work .film-info h3 { font-size: 21px; }
  body.living-page .content-join { padding-block: 95px 100px; }
  body.living-page .contact-section .contact-layout { gap: 7%; }
}

@media (max-width: 760px) {
  body.living-page { --scene-hero-poster: url('assets/scene/poster-hero-mobile.png'); }
  body.living-page .site-header { height: 88px; background: #eeece6e6; }
  body.living-page .site-header .brand img { width: 136px; }
  body.living-page .mobile-nav:not([hidden]) { background: var(--paper); }
  body.living-page .hero.hero-agency .hero-film {
    display: block;
    height: auto;
    min-height: max(750px, calc(100svh - 88px));
    padding: 78px var(--gutter) 115px;
    margin: 0;
    overflow: visible;
  }
  body.living-page .hero.hero-agency .hero-film::before {
    background: linear-gradient(180deg, #eeece6c9 0%, #eeece6b3 36%, #eeece680 67%, #eeece600 100%);
  }
  body.living-page .hero.hero-agency .hero-top { top: 20px; left: var(--gutter); right: var(--gutter); }
  body.living-page .hero.hero-agency .hero-top .eyebrow { font-size: 7px; }
  body.living-page .hero.hero-agency .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin: 0;
    transform: none;
  }
  body.living-page .hero.hero-agency h1 { font-size: clamp(45px, 12.2vw, 77px); line-height: .95; letter-spacing: -.065em; }
  body.living-page .hero.hero-agency .hero-message { max-width: 455px; margin-top: 25px; color: #41423f; }
  body.living-page .hero.hero-agency .hero-message p { font-size: 12px; line-height: 1.85; }
  body.living-page .hero.hero-agency .hero-message p + p { margin-top: 12px; }
  body.living-page .hero.hero-agency .hero-actions { margin-top: 25px; gap: 13px 19px; }
  body.living-page .hero.hero-agency .hero-actions a { font-size: 10px; gap: 12px; }
  body.living-page .hero.hero-agency .hero-primary { padding: 13px 14px; }
  body.living-page .hero.hero-agency .hero-bottom { left: var(--gutter); right: var(--gutter); bottom: 23px; padding-top: 16px; }
  body.living-page .hero.hero-agency .hero-bottom > span:first-child { display: none; }
  body.living-page .hero.hero-agency .hero-scroll { margin-left: 0; font-size: 8px; gap: 20px; }
  body.living-page .hero.hero-agency .hero-caption { padding-block: 23px 27px; background: #eeece6e0; }
  body.living-page .hero.hero-agency .hero-domain-nav { gap: 7px 24px; font-size: 11px; }
  body.living-page .scene-annotation { right: var(--gutter); bottom: 88px; max-width: 150px; font-size: 7px; }
  body.living-page .scene-controls { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-width: 205px; gap: 5px 15px; padding: 8px 11px 10px; }
  body.living-page .scene-chapter { font-size: 7px; }
  body.living-page .scene-controls .motion-toggle { min-height: 29px; font-size: 8px; gap: 6px; }
  body.living-page .scene-controls .motion-toggle svg { width: 12px; height: 12px; }

  body.living-page .domains-section { padding-block: 54px 61px; }
  body.living-page .domains-section::before { background: linear-gradient(90deg, #eeece6e8, #eeece6d9 70%, #eeece699); }
  body.living-page .domains-section .section-heading,
  body.living-page .domains-section .domain-list { width: 100%; max-width: none; }
  body.living-page .domains-section .section-heading { margin-top: 26px; margin-bottom: 29px; }
  body.living-page .domains-section h2 { font-size: 42px; }
  body.living-page .domains-section .section-heading > p { font-size: 12px; margin-top: 19px; line-height: 1.9; }
  body.living-page .domains-section .domain-row { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 14px; padding-block: 24px; align-items: start; }
  body.living-page .domains-section .domain-row h3 { font-size: 24px; }
  body.living-page .domains-section .domain-row p { font-size: 12px; line-height: 1.9; }
  body.living-page .domains-section .domain-row::before { left: -10px; top: 28px; height: 18px; }

  body.living-page .about-content-section { padding-block: 62px 68px; }
  body.living-page .about-content-section .collective-layout { margin-top: 29px; }
  body.living-page .about-content-section .collective-layout h2 { font-size: clamp(37px, 9.8vw, 50px); }
  body.living-page .about-content-section .collective-copy > p { font-size: 12px; line-height: 1.95; }
  body.living-page .about-content-section .collective-copy > p:first-child { font-size: 16px; line-height: 1.8; }
  body.living-page .teams-section { padding-block: 58px 63px; }
  body.living-page .teams-section #team-title { font-size: clamp(37px, 9.8vw, 50px); }
  body.living-page .teams-section .team-content-layout { margin-top: 28px; }
  body.living-page .teams-section .team-verification-note { margin-top: 30px; padding-top: 20px; }

  body.living-page .content-work.container { padding-block: 61px 66px; padding-inline: var(--gutter); }
  body.living-page .content-work .work-introduction { margin-top: 27px; }
  body.living-page .content-work h2 { font-size: 42px; }
  body.living-page .content-work .work-category h3 { font-size: 25px; }
  body.living-page .content-work .film-grid { display: block; }
  body.living-page .content-work .film-secondary { margin-top: 34px; }
  body.living-page .content-work .film-info h3 { font-size: 21px; }

  body.living-page .content-join { padding-block: 63px 68px; }
  body.living-page .content-join h2 { font-size: clamp(37px, 10.5vw, 58px); }
  body.living-page .contact-section { padding-block: 51px 76px; }
  body.living-page .contact-section .pin-shell,
  html.scene-static body.living-page .contact-section .pin-shell { min-height: 0; }
  body.living-page .contact-section .section-topline { padding-top: 0; }
  body.living-page .contact-section .contact-layout { margin-top: 30px; }
  body.living-page .contact-section h2 { font-size: clamp(34px, 9.7vw, 47px); }
  body.living-page .contact-section .contact-copy > p { font-size: 16px; }
  body.living-page .contact-section .contact-copy > p + p { font-size: 12px; }
  body.living-page .site-footer { background: #eeece6e8; padding-top: 32px; }
  body.living-page .site-footer .footer-bottom { padding-bottom: 100px; }
}

@media (max-width: 380px) {
  body.living-page .hero.hero-agency .hero-film { padding-top: 74px; min-height: 790px; }
  body.living-page .hero.hero-agency h1 { font-size: clamp(37px, 12.7vw, 46px); }
  body.living-page .hero.hero-agency .hero-actions { gap: 11px 16px; }
  body.living-page .hero.hero-agency .hero-actions a { font-size: 10px; }
  body.living-page .domains-section h2,
  body.living-page .content-work h2 { font-size: 37px; }
  body.living-page .domains-section .domain-row h3 { font-size: 23px; }
  body.living-page .content-join h2 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  body.living-page .hero.hero-agency .hero-film { min-height: 710px; }
  body.living-page .scene-progress > span,
  body.living-page .scene-progress-fill,
  body.living-page .scene-progress-bar { transition: none; }
  body.living-page .pin-shell { will-change: auto; }
}
