/* ==========================================================================
   Cate Legal Group — private design concept
   Palette: ink #0d1b2a · deep #08121d · gold #c9a14a · gold-hi #e7c873 · ivory #f7f5f0
   Type: system faces only (condensed display, serif accent, UI sans)
   ========================================================================== */

@font-face {
  font-family: 'CLG Display';
  src: local('HelveticaNeue-CondensedBlack'), local('Helvetica Neue Condensed Black'),
       local('AvenirNextCondensed-Heavy'), local('Avenir Next Condensed Heavy'),
       local('Impact'), local('RobotoCondensed-Bold'), local('Roboto Condensed Bold'),
       local('ArialNarrow-Bold'), local('Arial Narrow Bold');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d1b2a;
  --ink-deep: #08121d;
  --ink-2: #132538;
  --gold: #c9a14a;
  --gold-hi: #e7c873;
  --ivory: #f7f5f0;
  --paper: #f3eee3;
  --paper-2: #ebe4d5;
  --bronze-ink: #765716;
  --text: rgba(247, 245, 240, 0.92);
  --text-dim: rgba(247, 245, 240, 0.74);
  --hair: rgba(247, 245, 240, 0.16);
  --hair-ink: rgba(13, 27, 42, 0.16);
  --pad: clamp(1.25rem, 4vw, 3.25rem);
  --header-h: 4.5rem;
  --font-display: 'CLG Display', Impact, 'Haettenschweiler', 'Roboto Condensed', 'Arial Narrow', sans-serif-condensed, 'Franklin Gothic Bold', sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vb: 0px; /* height of the browser UI that can cover the bottom of a 100vh stage */
}
@supports (height: 100svh) { :root { --vb: calc(100vh - 100svh); } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 161, 74, 0.5) var(--ink-deep);
  background: var(--ink-deep);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}
.allan :focus-visible, .expect :focus-visible { outline-color: var(--ink); }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 300;
  background: var(--gold); color: var(--ink); padding: 0.75rem 1.1rem;
  font-weight: 600; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }

.i { width: 0.95em; height: 0.95em; display: inline-block; vertical-align: -0.12em; flex: none; }

/* ---------------- grain ---------------- */
#grain {
  position: fixed; inset: -120px; z-index: 90; pointer-events: none;
  opacity: 0.07; background-repeat: repeat;
}
@media (hover: hover) and (pointer: fine) { #grain { mix-blend-mode: overlay; opacity: 0.09; } }

/* ---------------- shared type ---------------- */
.kicker {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-dim);
}
.k-index { font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 1rem; letter-spacing: 0.08em; color: var(--gold); }
.k-rule { display: inline-block; width: 3.5rem; height: 1px; background: var(--gold); opacity: 0.7; }
.k-word { color: var(--ivory); }
.kicker-ink { color: rgba(13, 27, 42, 0.7); }
.kicker-ink .k-index { color: var(--bronze-ink); }
.kicker-ink .k-rule { background: var(--bronze-ink); }
.kicker-ink .k-word { color: var(--ink); }

.display-h {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none;
  text-transform: uppercase; line-height: 0.9; letter-spacing: 0.005em;
  font-size: clamp(3rem, 9vw, 8.5rem);
  color: var(--ivory);
  display: flex; flex-direction: column; align-items: flex-start;
  margin: 1.4rem 0 1.4rem;
}
.display-h .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.display-h .line-gold { color: var(--gold-hi); }
.display-ink { color: var(--ink); }
.display-h .line-gold-ink { color: var(--bronze-ink); }
.section-lede { max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-dim); }
.lede-ink { color: rgba(13, 27, 42, 0.78); }

/* split characters */
[data-split] .ch, [data-split-line] .ch { display: inline-block; will-change: transform; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.85rem 1.3rem;
  font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; border: 1px solid var(--gold);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-ghost { color: var(--ivory); background: rgba(8, 18, 29, 0.35); }
.btn-ghost:hover { background: rgba(201, 161, 74, 0.16); color: var(--gold-hi); }
.btn-lg { min-height: 3.6rem; padding: 1.1rem 2rem; font-size: 0.86rem; }
.text-link {
  color: var(--gold-hi); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.25em; text-decoration-color: rgba(231, 200, 115, 0.45);
  transition: text-decoration-color 0.3s ease;
}
.text-link:hover { text-decoration-color: var(--gold-hi); }

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 var(--pad);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -2.5rem; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 18, 29, 0.78), rgba(8, 18, 29, 0));
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 18, 29, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--hair);
}
.site-header.is-scrolled::before { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ivory); flex: none; }
.brand-mark { width: 2.1rem; height: 2.1rem; color: var(--ivory); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 1.45rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-hi); margin-top: 0.3rem; }

.concept-tag {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247, 245, 240, 0.62);
  border: 1px solid var(--hair); padding: 0.3rem 0.6rem; border-radius: 99px;
  white-space: nowrap;
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.8rem; }
.site-nav a {
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text); padding: 0.4rem 0; position: relative;
}
.site-nav ul a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-hi); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current='true']::after { transform: scaleX(1); }
.site-nav ul a[aria-current='true'] { color: var(--gold-hi); }
.nav-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--gold); padding: 0.55rem 0.95rem !important;
  color: var(--ivory) !important; letter-spacing: 0.1em !important;
  transition: background-color 0.3s ease;
}
.nav-call svg { width: 1rem; height: 1rem; color: var(--gold-hi); }
.nav-call:hover { background: rgba(201, 161, 74, 0.16); }
.nav-concept { display: none; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.7rem;
  min-height: 2.75rem; padding: 0 0.25rem 0 0.75rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory);
}
.nav-toggle-icon { position: relative; width: 1.6rem; height: 0.8rem; }
.nav-toggle-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ivory);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle-icon i:first-child { top: 0; }
.nav-toggle-icon i:last-child { top: calc(100% - 1.5px); }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon i:first-child { top: 50%; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-icon i:last-child { top: 50%; transform: rotate(-45deg); }

@media (max-width: 1180px) { .concept-tag { display: none; } }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--pad) 1.6rem;
    background: rgba(8, 18, 29, 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hair);
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-0.75rem);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a {
    display: block; padding: 1rem 0; border-bottom: 1px solid var(--hair);
    font-family: var(--font-display); font-weight: 800; font-synthesis: none;
    font-size: 1.9rem; letter-spacing: 0.02em;
  }
  .js .site-nav ul a::after { display: none; }
  .js .nav-call { margin-top: 1.3rem; justify-content: center; min-height: 3.1rem; font-size: 0.85rem; }
  .js .nav-concept { display: block; margin-top: 1.1rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); text-align: center; }

  /* without JavaScript: a plain wrapping nav row */
  .no-js .site-header { position: absolute; height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .no-js .site-nav { width: 100%; flex-wrap: wrap; gap: 0.8rem 1.4rem; }
  .no-js .site-nav ul { flex-wrap: wrap; gap: 0.4rem 1.2rem; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.25rem; }
  .brand-mark { width: 1.85rem; height: 1.85rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: var(--ink-deep); }
.hero-stage {
  position: relative; height: 100vh; min-height: 36rem; overflow: hidden;
  background: var(--ink-deep);
}
html.motion .hero { height: 480vh; }
html.motion .hero-stage { position: sticky; top: 0; height: 100vh; }

.hero-visual { position: absolute; inset: 0; }
.hero-still, .hero-still img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still img { object-fit: cover; object-position: 50% 55%; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.9s ease;
}
.hero-visual.is-live .hero-canvas { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 18, 29, 0.9) 0%, rgba(8, 18, 29, 0.55) 30%, rgba(8, 18, 29, 0) 58%),
    linear-gradient(to bottom, rgba(8, 18, 29, 0.55) 0%, rgba(8, 18, 29, 0) 20%, rgba(8, 18, 29, 0) 72%, rgba(8, 18, 29, 0.75) 100%),
    radial-gradient(130% 100% at 62% 50%, transparent 55%, rgba(8, 18, 29, 0.55) 100%);
}

.hero-content {
  position: absolute; z-index: 4;
  left: var(--pad); top: calc(var(--header-h) + 1rem); bottom: calc(var(--vb) + 4.5rem);
  width: min(48vw, 46rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-kicker {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none;
  text-transform: uppercase; color: var(--ivory);
  font-size: clamp(3.6rem, min(15.5vh, 12vw), 12.5rem);
  line-height: 0.84; letter-spacing: 0.01em;
  display: flex; flex-direction: column;
}
.ht-line { display: block; overflow: hidden; padding-top: 0.04em; margin-top: -0.04em; }
.ht-line.is-gold .ht-word { color: var(--gold-hi); }
.ht-word { display: inline-block; white-space: nowrap; }

.hero-lede { margin-top: clamp(1.4rem, 3.5vh, 2.6rem); max-width: 34rem; }
.hero-prop {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.15;
  color: var(--ivory);
}
.hero-prop em { color: var(--gold-hi); font-style: italic; }
.hero-sub { margin-top: 0.9rem; font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--text-dim); max-width: 32rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* loading state: hide the title until the opening animation is armed */
html.is-loading .hero-title .ht-word,
html.is-loading .hero-lede,
html.is-loading .hero-kicker { opacity: 0; }

/* chapters (static layout first) */
.hero-chapters {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--hair); border-top: 1px solid var(--hair);
}
.chapter { background: var(--ink-deep); padding: clamp(2rem, 4vw, 3.5rem) var(--pad); }
.chapter-no {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-hi);
}
.chapter-no span { font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 1rem; letter-spacing: 0.06em; color: var(--gold); }
.chapter-title {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.2vw, 3.4rem); line-height: 0.95; color: var(--ivory);
  margin: 0.8rem 0 0.9rem; max-width: 14ch;
}
.chapter-copy { color: var(--text-dim); max-width: 40ch; }

html.motion .hero-chapters { position: absolute; inset: 0; display: block; background: none; border: 0; pointer-events: none; }
html.motion .chapter {
  position: absolute; left: var(--pad); bottom: calc(var(--vb) + 5.5rem);
  width: min(34rem, calc(100% - 2 * var(--pad)));
  padding: 0; background: none; opacity: 0;
}

/* HUD */
.hero-hud { display: none; }
html.motion .hero-hud {
  display: flex; gap: 1rem; align-items: stretch;
  position: absolute; z-index: 5; right: var(--pad); top: 50%; transform: translateY(-50%);
}
.hud-rail { width: 2px; background: var(--hair); position: relative; overflow: hidden; }
.hud-fill { position: absolute; inset: 0; background: linear-gradient(var(--gold-hi), var(--gold)); transform: scaleY(0); transform-origin: top; }
.hud-steps { display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem; }
.hud-steps li {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(247, 245, 240, 0.5);
  transition: color 0.4s ease;
}
.hud-steps li.is-on { color: var(--gold-hi); }

.hero-corner {
  position: absolute; z-index: 5; left: var(--pad); bottom: calc(var(--vb) + 1.6rem);
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(247, 245, 240, 0.6);
}
.hero-corner span { color: var(--gold); }
.hero-hint { display: none; }
html.motion .hero-hint {
  position: absolute; z-index: 5; left: 50%; bottom: calc(var(--vb) + 1.4rem); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(247, 245, 240, 0.7);
}
.hint-line { width: 1px; height: 2.6rem; background: linear-gradient(to bottom, transparent, var(--gold)); animation: hintPulse 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes hintPulse { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 1240px) and (min-width: 961px) {
  html.motion .hud-steps { justify-content: center; }
  html.motion .hud-steps li { display: none; }
  html.motion .hud-steps li.is-on { display: block; writing-mode: vertical-rl; }
}
@media (max-width: 960px) {
  .hero-chapters { grid-template-columns: minmax(0, 1fr); }
  html.motion .hero-hud { top: auto; transform: none; bottom: calc(var(--vb) + 1.5rem); right: var(--pad); }
  html.motion .hud-rail { display: none; }
  html.motion .hud-steps { gap: 0; }
  html.motion .hud-steps li { display: none; }
  html.motion .hud-steps li.is-on { display: block; }
  html.motion .hero-hint { left: auto; right: var(--pad); transform: none; bottom: calc(var(--vb) + 3.4rem); align-items: flex-end; }
  html.motion .hero-hint .hint-line { display: none; }
}

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(8, 18, 29, 0.82) 0%, rgba(8, 18, 29, 0.35) 30%, rgba(8, 18, 29, 0) 46%, rgba(8, 18, 29, 0) 52%, rgba(8, 18, 29, 0.86) 76%, rgba(8, 18, 29, 0.96) 100%);
  }
  .hero-content {
    left: var(--pad); right: var(--pad); width: auto;
    top: calc(var(--header-h) + 0.6rem); bottom: calc(var(--vb) + 3.8rem);
    justify-content: space-between;
  }
  .hero-kicker { font-size: 0.7rem; letter-spacing: 0.22em; margin-bottom: 0.8rem; }
  .hero-kicker .k-rule { width: 1.6rem; }
  .hero-title { font-size: clamp(3.4rem, 23vw, 8rem); }
  .hero-lede { margin-top: 1rem; }
  .hero-prop { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .hero-sub { font-size: 0.98rem; }
  .hero-ctas { margin-top: 1.1rem; gap: 0.6rem; }
  .hero-ctas .btn { flex: 1 1 10rem; padding: 0.8rem 0.9rem; letter-spacing: 0.12em; font-size: 0.76rem; }
  html.motion .chapter { bottom: calc(var(--vb) + 4.6rem); }
  .hero-corner { display: none; }
  /* one quiet row under the CTAs: hint left, chapter label right */
  html.motion .hero-hint { left: var(--pad); right: auto; bottom: calc(var(--vb) + 1.25rem); align-items: flex-start; letter-spacing: 0.3em; font-size: 0.64rem; }
  html.motion .hero-hud { bottom: calc(var(--vb) + 1.25rem); }
  html.motion .hud-steps li { font-size: 0.64rem; }
}
@media (max-height: 640px) and (max-width: 760px) {
  .hero-sub { display: none; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .hero-sub { display: none; }
  .hero-title { font-size: clamp(3rem, 15vh, 8rem); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  position: relative; z-index: 6; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: var(--ink); padding: 1.05rem 0;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2.2rem; padding-left: 2.2rem; will-change: transform;
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1;
}
.marquee-track span { color: var(--gold-hi); }
.marquee-track i { font-style: normal; color: var(--gold); font-size: 0.5em; }

/* ==========================================================================
   CHAPTER TWO — practice colonnade (CSS 3D)
   ========================================================================== */
.practice { position: relative; background: var(--ink-deep); }
.practice-stage {
  position: relative; overflow: hidden;
  min-height: 100vh;
  padding: calc(var(--header-h) + 8vh) 0 12vh;
}
html.motion .practice { height: 420vh; }
html.motion .practice-stage { position: sticky; top: 0; height: 100vh; padding: 0; }

.corridor {
  position: absolute; inset: 0; overflow: hidden;
  --spread: clamp(10rem, 27vw, 25rem);
  --cw: 5.4rem;
  --ch: 34rem;
  --floor: 15rem;
  --vx: 64%;
  --vy: 46%;
  background: linear-gradient(to bottom, #07101b 0%, #0f2033 38%, #2a2f3a 58%, #3b2c1f 66%, #0b1520 100%);
}
.cc-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 20% at var(--vx) calc(var(--vy) + 7%), rgba(242, 190, 110, 0.75), rgba(201, 141, 74, 0.25) 45%, transparent 75%),
    radial-gradient(90% 40% at var(--vx) calc(var(--vy) + 10%), rgba(201, 141, 74, 0.25), transparent 70%);
  opacity: var(--glow, 0.75);
}
.cc-view { position: absolute; inset: 0; perspective: 800px; perspective-origin: var(--vx) var(--vy); }
.cc-world {
  position: absolute; left: var(--vx); top: var(--vy); width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, var(--cam, 900px));
}
.cc-col {
  position: absolute; width: var(--cw); height: var(--ch);
  left: calc(var(--side) * var(--spread) - var(--cw) / 2);
  top: calc(var(--floor) - var(--ch));
  transform: translateZ(var(--z));
  transform-style: preserve-3d;
}
.cc-col i { position: absolute; top: 0; height: 100%; backface-visibility: hidden; }
.cc-front {
  left: 0; width: 100%;
  transform: translateZ(calc(var(--cw) / 2));
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.0) 0%, rgba(8, 18, 29, 0.0) 70%, rgba(201, 141, 74, 0.22) 100%),
    linear-gradient(90deg, #efe8d8 0%, #d9cfba 55%, #b9ad95 100%);
}
.cc-front::before, .cc-front::after {
  content: ''; position: absolute; left: -6%; right: -6%; height: 4.5%; background: #cfc4ad;
}
.cc-front::before { top: 0; box-shadow: 0 2px 0 rgba(13, 27, 42, 0.2); }
.cc-front::after { bottom: 0; box-shadow: 0 -2px 0 rgba(13, 27, 42, 0.2); }
.cc-side { left: 0; width: var(--cw); }
.is-left .cc-side {
  transform: rotateY(90deg) translateZ(calc(var(--cw) / 2));
  background: linear-gradient(90deg, #7b725f, #5d5647 70%, #4b4538);
}
.is-right .cc-side {
  transform: rotateY(-90deg) translateZ(calc(var(--cw) / 2));
  background: linear-gradient(90deg, #fff8ea, #efe4cc 60%, #dcccaa);
}
.cc-col.is-hidden { visibility: hidden; }

.cc-floor {
  position: absolute; width: calc(var(--spread) * 2 + 40rem); height: 1600px;
  left: calc(-1 * (var(--spread) + 20rem)); top: var(--floor);
  transform-origin: top center;
  transform: translateZ(var(--z)) rotateX(-90deg);
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), rgba(231, 200, 115, 0.95) calc(50% - 2px), rgba(231, 200, 115, 0.95) calc(50% + 2px), transparent calc(50% + 2px)),
    repeating-linear-gradient(0deg, rgba(247, 245, 240, 0.09) 0 2px, transparent 2px 200px),
    repeating-linear-gradient(90deg, rgba(247, 245, 240, 0.06) 0 2px, transparent 2px 160px),
    linear-gradient(90deg, #0c1826, #1a2433 40%, #1a2433 60%, #0c1826);
}
.cc-gate {
  position: absolute;
  left: calc(-1 * var(--spread) + var(--cw) * 0.5);
  width: calc(var(--spread) * 2 - var(--cw));
  height: calc(var(--ch) * 0.86);
  top: calc(var(--floor) - var(--ch) * 0.86);
  transform: translateZ(var(--z));
  border: 1.4rem solid #d6ccb6; border-bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, 0.0);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}
.cc-gate::before {
  content: ''; position: absolute; inset: -0.6rem -0.6rem 0; border: 2px solid rgba(201, 161, 74, 0.55); border-bottom: 0;
}
.cc-gate.is-active { border-color: #ead9ae; box-shadow: 0 0 60px rgba(231, 200, 115, 0.35), inset 0 0 40px rgba(231, 200, 115, 0.25); }
.cc-gate-num {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -1.2rem);
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 9rem; line-height: 0.8;
  color: var(--gold-hi);
}
.cc-haze {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(28% 34% at var(--vx) var(--vy), rgba(214, 160, 92, 0.42), rgba(120, 90, 60, 0.12) 55%, transparent 80%),
    linear-gradient(to bottom, rgba(8, 18, 29, 0.6), transparent 26%, transparent 80%, rgba(8, 18, 29, 0.7));
}
.practice-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 18, 29, 0.94) 0%, rgba(8, 18, 29, 0.82) 34%, rgba(8, 18, 29, 0.2) 58%, rgba(8, 18, 29, 0) 70%);
}

.practice-copy {
  position: relative; z-index: 4;
  padding: 0 var(--pad);
  width: min(100%, 44rem);
}
html.motion .practice-copy {
  position: absolute; left: 0; top: calc(var(--header-h) + 3vh); bottom: calc(var(--vb) + 8vh);
  display: flex; flex-direction: column;
}
.practice-title { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.06em; color: var(--text-dim); margin: 0.9rem 0 0; }
.pillars { display: flex; flex-direction: column; gap: 4.5rem; margin-top: 2.5rem; }
html.motion .pillars { display: grid; margin-top: auto; gap: 0; }
html.motion .pillar { grid-area: 1 / 1; align-self: end; opacity: 0; }
.pillar-no {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none;
  font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: 1;
  color: var(--gold);
}
.pillar-name {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 0.92; letter-spacing: 0.005em;
  color: var(--ivory); margin: 0.5rem 0 1.2rem;
  display: flex; flex-direction: column;
}
.pillar-name span { display: block; }
.pillar-name span:last-child { color: var(--gold-hi); }
.pillar-copy {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.65;
  color: rgba(247, 245, 240, 0.88); max-width: 46ch;
  border-left: 2px solid var(--gold); padding-left: 1.1rem;
}
.pillar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.pillar-tags li {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(231, 200, 115, 0.45); padding: 0.4rem 0.7rem; color: var(--ivory);
  background: rgba(8, 18, 29, 0.45);
}

.pillar-progress { display: none; }
html.motion .pillar-progress {
  display: flex; flex-direction: column; gap: 0.8rem;
  position: absolute; z-index: 5; right: var(--pad); top: 50%; transform: translateY(-50%);
}
.pillar-progress span { width: 2px; height: 3.2rem; background: var(--hair); position: relative; overflow: hidden; }
.pillar-progress span::after {
  content: ''; position: absolute; inset: 0; background: var(--gold-hi);
  transform: scaleY(0); transform-origin: top; transition: transform 0.5s ease;
}
.pillar-progress span.on::after { transform: scaleY(1); }

@media (max-width: 760px) {
  .corridor { --spread: 9.5rem; --cw: 3.6rem; --ch: 26rem; --floor: 11rem; --vx: 50%; --vy: 37%; }
  .cc-gate-num { display: none; }
  .cc-gate { border-width: 0.9rem; }
  .practice-scrim {
    background: linear-gradient(to bottom, rgba(8, 18, 29, 0.94) 0%, rgba(8, 18, 29, 0.8) 15%, rgba(8, 18, 29, 0.1) 26%, rgba(8, 18, 29, 0) 34%, rgba(8, 18, 29, 0.85) 58%, rgba(8, 18, 29, 0.97) 100%);
  }
  html.motion .practice-copy { bottom: calc(var(--vb) + 2.2rem); }
  html.motion .pillar-progress { top: auto; bottom: calc(var(--vb) + 2.4rem); transform: none; flex-direction: row; }
  html.motion .pillar-progress span { width: 2.2rem; height: 2px; }
  .pillar-name { font-size: clamp(2.3rem, 12vw, 3.6rem); }
  .pillar-no { font-size: 3rem; }
  .pillar-copy { font-size: 1rem; }
}
/* static (no-motion) corridor: a calm backdrop behind stacked pillars */
html:not(.motion) .practice-scrim { background: linear-gradient(90deg, rgba(8, 18, 29, 0.95), rgba(8, 18, 29, 0.85) 50%, rgba(8, 18, 29, 0.55)); }

/* ==========================================================================
   Practice detail — tabs
   ========================================================================== */
.detail {
  position: relative; z-index: 6;
  background: var(--ink);
  border-top: 1px solid var(--hair);
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(5rem, 12vh, 8rem);
}
.section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.tabs { display: grid; grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 2.4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tab-list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.tab {
  display: flex; align-items: baseline; gap: 1rem; text-align: left; width: 100%;
  padding: 1.25rem 0.4rem 1.25rem 0; border-bottom: 1px solid var(--hair);
  color: rgba(247, 245, 240, 0.62); position: relative;
  transition: color 0.3s ease;
}
.tab::before {
  content: ''; position: absolute; left: -0.9rem; top: 1.2rem; bottom: 1.2rem; width: 2px;
  background: var(--gold-hi); transform: scaleY(0); transition: transform 0.4s var(--ease);
}
.tab:hover { color: var(--ivory); }
.tab[aria-selected='true'] { color: var(--ivory); }
.tab[aria-selected='true']::before { transform: scaleY(1); }
.tab-no { font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 0.95rem; color: var(--gold); letter-spacing: 0.06em; }
.tab-name {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1; letter-spacing: 0.01em;
}
.tab[aria-selected='true'] .tab-name { color: var(--gold-hi); }

.panel {
  border: 1px solid var(--hair); background: linear-gradient(160deg, rgba(19, 37, 56, 0.9), rgba(8, 18, 29, 0.9));
  padding: clamp(1.5rem, 3.4vw, 3rem);
}
.panel + .panel { margin-top: 1.5rem; }
.js .panel + .panel { margin-top: 0; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 4px; }
.panel-head { display: flex; gap: clamp(1rem, 2.5vw, 2rem); align-items: flex-start; margin-bottom: 2rem; }
.panel-glyph { width: clamp(4.5rem, 8vw, 6.5rem); height: auto; flex: none; fill: none; stroke: rgba(247, 245, 240, 0.85); stroke-width: 2; stroke-linecap: square; }
.panel-glyph .g-gold { stroke: var(--gold-hi); stroke-width: 3; }
.panel-title {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase;
  font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 0.95; color: var(--ivory);
}
.panel-intro { margin-top: 0.8rem; color: var(--text-dim); max-width: 54ch; font-size: 1.05rem; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2.5rem); border-top: 1px solid var(--hair); padding-top: 1.8rem; }
.panel-col h4 { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi); font-weight: 600; margin-bottom: 1rem; }
.list li { position: relative; padding: 0.5rem 0 0.5rem 1.1rem; border-bottom: 1px solid rgba(247, 245, 240, 0.07); color: var(--text); }
.list li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: 5px; height: 5px; background: var(--gold); }
.list-plain li::before { background: transparent; border: 1px solid var(--gold); }
.route { counter-reset: r; }
.route li { counter-increment: r; display: flex; align-items: center; gap: 0.8rem; padding: 0.45rem 0; color: var(--text); }
.route li::before {
  content: counter(r); flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.74rem; color: var(--gold-hi); border: 1px solid rgba(231, 200, 115, 0.5);
}
.note { margin-top: 0.9rem; font-size: 0.92rem; color: var(--text-dim); }
.panel-foot {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; align-items: center;
  font-size: 0.92rem; color: var(--text-dim);
}
.no-js .tab-list { display: none; }
.no-js .tabs { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1080px) {
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tab-list { position: static; }
  .panel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel-grid .panel-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-head { flex-direction: column; }
  .panel-glyph { width: 4rem; }
  .tab { padding: 1rem 0.2rem 1rem 0.9rem; }
  .tab::before { left: 0; }
}

/* ==========================================================================
   CHAPTER THREE — Meet Allan Cate (daylight)
   ========================================================================== */
.allan, .expect { color: var(--ink); position: relative; z-index: 6; }
.allan {
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(231, 200, 115, 0.18), transparent 70%),
    linear-gradient(var(--paper), var(--paper));
  padding: clamp(5rem, 13vh, 9rem) 0 clamp(4rem, 10vh, 7rem);
}
.allan-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.allan-role { font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bronze-ink); font-weight: 600; }
.allan-lead {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.25;
  color: var(--ink); margin: 1.1rem 0 1.6rem; max-width: 30ch;
}
.allan-body p { font-size: 1.06rem; line-height: 1.75; color: rgba(13, 27, 42, 0.82); max-width: 60ch; margin-bottom: 1rem; }
.values-h { margin-top: 2.2rem; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-ink); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair-ink); border: 1px solid var(--hair-ink); margin-top: 0.9rem; }
.values li { background: var(--paper); padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.v-k { font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase; font-size: 1.3rem; line-height: 1; color: var(--ink); }
.v-v { font-size: 0.95rem; color: rgba(13, 27, 42, 0.76); line-height: 1.5; }
.creds { margin-top: 2.4rem; border-top: 1px solid var(--hair-ink); }
.creds div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hair-ink); }
.creds dt { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-ink); font-weight: 600; padding-top: 0.2rem; }
.creds dd { font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.creds .yr { font-family: var(--font-display); font-weight: 800; font-synthesis: none; color: var(--bronze-ink); margin-left: 0.4rem; letter-spacing: 0.04em; }

.portal { position: sticky; top: calc(var(--header-h) + 3vh); }
.portal-frame { position: relative; width: 100%; max-width: 30rem; margin-left: auto; aspect-ratio: 400 / 520; }
.portal-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portal-lines path { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.portal-lines .thin { stroke-width: 0.8; stroke: rgba(13, 27, 42, 0.55); }
.portal-lines .draw-gold path { stroke: var(--gold); stroke-width: 2.2; }
.portal-lines text { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; fill: rgba(13, 27, 42, 0.6); }
.portal-lines .lbl-gold { fill: var(--bronze-ink); }
.portal-door-wrap {
  position: absolute; left: 30%; top: 45.4%; width: 40%; height: 45%;
  perspective: 900px; perspective-origin: 30% 50%;
}
.portal-light {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(231, 200, 115, 0.95), rgba(201, 161, 74, 0.55) 45%, rgba(201, 141, 74, 0.2) 80%),
    linear-gradient(#f6e7c2, #e9cf92);
}
.portal-door {
  position: absolute; inset: 0; transform-origin: 0 50%;
  transform: rotateY(-58deg);
  background: linear-gradient(90deg, #1a2c40, #0d1b2a 70%);
  box-shadow: inset 0 0 0 1px rgba(231, 200, 115, 0.5);
  display: grid; grid-template-rows: 1fr 1fr; gap: 8%; padding: 12% 14%;
}
.portal-door span { border: 1px solid rgba(231, 200, 115, 0.45); }
.portal-door::after { content: ''; position: absolute; right: 10%; top: 52%; width: 6%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.portal-cap { margin-top: 1rem; max-width: 30rem; margin-left: auto; font-size: 0.8rem; color: rgba(13, 27, 42, 0.62); letter-spacing: 0.04em; }

@media (max-width: 960px) {
  .allan-grid { grid-template-columns: minmax(0, 1fr); }
  .portal { position: relative; top: 0; }
  .portal-frame { margin: 0 auto; max-width: 22rem; }
  .portal-cap { margin: 0.8rem auto 0; text-align: center; }
  .values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .creds div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}

/* ==========================================================================
   What to expect
   ========================================================================== */
.expect {
  background: var(--paper-2);
  border-top: 1px solid var(--hair-ink);
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(5rem, 12vh, 8rem);
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.2rem); position: relative; }
.step { position: relative; padding-top: 2.4rem; }
.step::before { content: ''; position: absolute; left: 0; top: 0.95rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--bronze-ink); z-index: 2; }
.step-no {
  display: block; font-family: var(--font-display); font-weight: 800; font-synthesis: none;
  font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; color: var(--bronze-ink);
}
.step-title {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; margin: 0.8rem 0 0.8rem; color: var(--ink);
}
.step p { color: rgba(13, 27, 42, 0.8); font-size: 1rem; line-height: 1.65; }
.ink-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--bronze-ink); text-underline-offset: 0.2em; }
.steps { --line-top: 1.3rem; }
.steps::after {
  content: ''; position: absolute; left: 0; right: 0; top: var(--line-top); height: 1px; background: var(--hair-ink);
}
.steps::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(var(--line-top) - 0.5px); height: 2px; z-index: 1;
  background: linear-gradient(90deg, var(--bronze-ink), var(--gold));
  transform-origin: left; transform: scaleX(var(--prog, 1));
}
.expect-note {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 0.4rem 2rem;
  border-top: 1px solid var(--hair-ink); padding-top: 1.6rem;
}
.en-k { grid-row: span 2; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-ink); font-weight: 600; padding-top: 0.2rem; }
.expect-note p { color: rgba(13, 27, 42, 0.82); }
.expect-note .en-fine { font-size: 0.9rem; color: rgba(13, 27, 42, 0.7); }

@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 3rem; }
  .steps::after, .steps::before { display: none; }
  .step { padding-top: 0; padding-left: 1.4rem; border-left: 2px solid var(--bronze-ink); }
  .step::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
  .expect-note { grid-template-columns: minmax(0, 1fr); }
  .en-k { grid-row: auto; }
}

/* ==========================================================================
   Finale + footer
   ========================================================================== */
.finale {
  position: relative; z-index: 6; overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(201, 161, 74, 0.12), transparent 70%),
    var(--ink);
  padding: clamp(6rem, 16vh, 11rem) 0 clamp(4rem, 9vh, 6rem);
}
.finale-mark {
  position: absolute; right: -12vw; top: 50%; width: min(70vw, 62rem); height: auto;
  transform: translateY(-50%); overflow: visible; pointer-events: none; opacity: 0.55;
}
.finale-mark path { fill: none; vector-effect: non-scaling-stroke; }
.finale-mark .fm-c { stroke: rgba(247, 245, 240, 0.14); stroke-width: 60; }
.finale-mark .fm-path { stroke: rgba(231, 200, 115, 0.45); stroke-width: 2; }
.finale-inner { position: relative; }
.finale-title {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 11.5rem); line-height: 0.88; letter-spacing: 0.005em;
  color: var(--ivory); margin: 1.6rem 0 0; display: flex; flex-direction: column;
}
.ft-line { display: block; overflow: hidden; padding-bottom: 0.04em; white-space: nowrap; }
.ft-line:last-child { color: var(--gold-hi); }
.finale-sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--ivory); margin-top: 1.6rem; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.6rem 0 clamp(3.5rem, 9vh, 6rem); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.cg-item { padding: 1.6rem 1.6rem 1.6rem 0; }
.cg-item + .cg-item { border-left: 1px solid var(--hair); padding-left: 1.6rem; }
.cg-k { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.cg-v { font-size: 1.08rem; color: var(--ivory); line-height: 1.5; }
.cg-v a { text-decoration: none; border-bottom: 1px solid rgba(231, 200, 115, 0.45); }
.cg-v a:hover { color: var(--gold-hi); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cg-item, .cg-item + .cg-item { border-left: 0; padding: 1.2rem 0; border-bottom: 1px solid var(--hair); }
  .cta-row .btn { width: 100%; }
  .finale-mark { right: -40vw; width: 120vw; opacity: 0.4; }
}

.site-footer { background: var(--ink-deep); border-top: 1px solid var(--hair); padding: 3.5rem 0 calc(3rem + env(safe-area-inset-bottom)); position: relative; z-index: 6; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 2.5rem; }
.footer-brand .brand-mark { width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; }
.fb-name { font-family: var(--font-display); font-weight: 800; font-synthesis: none; text-transform: uppercase; font-size: 1.6rem; letter-spacing: 0.04em; color: var(--ivory); }
.fb-addr, .fb-phone { color: var(--text-dim); margin-top: 0.4rem; font-size: 0.95rem; }
.fb-phone a { text-decoration: none; border-bottom: 1px solid rgba(231, 200, 115, 0.45); }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-fine p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.7rem; max-width: 52ch; }
.footer-fine .concept-label { color: var(--gold-hi); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .hint-line { animation: none; }
}
html.no-js .hero-canvas { display: none; }

/* Unpinned fallback: keep the artwork and copy in the first row, chapters below. */
html:not(.motion) .hero-stage {
  display: grid; grid-template-columns: minmax(0, 1fr); height: auto;
}
html:not(.motion) .hero-visual {
  position: relative; inset: auto; grid-area: 1 / 1;
}
html:not(.motion) .hero-content {
  position: relative; inset: auto; grid-area: 1 / 1;
  box-sizing: content-box; min-height: 24rem;
  padding: calc(var(--header-h) + 2rem) var(--pad) 3rem;
}
html:not(.motion) .hero-corner { display: none; }
html:not(.motion) .hero-canvas { display: none; }

html.mobile-scroll #grain { display: none; }
html.mobile-scroll .site-header,
html.mobile-scroll .site-nav {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.mobile-scroll .site-header { transition: none; }
html.mobile-scroll .site-header.is-scrolled { background: var(--ink-deep); }
html.mobile-scroll .site-header::before { transition: none; }
html.mobile-scroll .hero-content {
  width: auto; box-sizing: border-box; min-height: 32rem; min-height: max(32rem, 100svh);
  justify-content: center;
}
html.mobile-scroll .hero-title { font-size: clamp(2.9rem, 18vw, 7rem); }
html.mobile-scroll .hero-sub { display: block; }
html.mobile-scroll .marquee { white-space: normal; }
html.mobile-scroll .marquee-track {
  display: flex; flex-wrap: wrap; gap: 0.65rem 0.9rem; padding: 0 var(--pad);
  font-size: clamp(1rem, 4vw, 1.8rem); will-change: auto;
}
html.mobile-scroll .practice-stage { min-height: auto; }
html.mobile-scroll .cc-view { display: none; }
html.mobile-scroll .portal { position: relative; top: auto; }

/* Stable portrait-film stage. The poster stays behind the canvas at all times. */
.hero#top { height: auto; }
.hero-cinematic { position: relative; background: #0a1521; }
.has-portrait-scroll .hero-cinematic { min-height: 1450px; min-height: 172svh; }
.hero#top .hero-stage {
  display: block; position: relative; overflow: clip; height: auto;
  min-height: 670px; min-height: max(670px,100svh); isolation: isolate;
}
.has-portrait-scroll .hero#top .hero-stage { position: sticky; top: 0; }
.hero#top .hero-visual {
  position: absolute; inset: 0 0 0 34%; overflow: hidden; pointer-events: none;
  background: #101d2a;
}
.hero#top .hero-visual img, .hero#top .motion-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 31%;
}
.hero#top .motion-canvas { visibility: hidden; }
.hero#top .motion-canvas[data-painted] { visibility: visible; }
.hero#top .hero-shade { background:
  linear-gradient(90deg,#0a1521 0%,rgba(10,21,33,.92) 7%,rgba(10,21,33,.3) 24%,transparent 53%),
  linear-gradient(0deg,#08121d 0%,transparent 39%,transparent 86%,rgba(8,18,29,.54) 100%); }
.hero#top .hero-content {
  position:absolute; max-width:min(47vw,43rem); width:auto; min-height: 0; box-sizing:border-box;
  inset:calc(var(--header-h) + 2rem) auto 6rem var(--pad); padding:0;
  justify-content:center;
}
.hero#top .hero-title { font-size:clamp(3.4rem,min(13vh,10vw),11rem); }
.hero#top .hero-chapters {
  position:relative; inset:auto; display:grid; background:var(--hair);
  border-top:1px solid var(--hair); pointer-events:auto;
}
.hero#top .chapter {
  position:relative; inset:auto; width:auto; padding:clamp(2rem,4vw,3.5rem) var(--pad);
  background:var(--ink-deep); opacity:1;
}
.portrait-credit,.portrait-hint {
  position:absolute; z-index:5; bottom:1.6rem; font-size:.73rem;
  letter-spacing:.16em; color:var(--ivory); text-transform:uppercase;
}
.portrait-credit { right:var(--pad); }
.portrait-credit span { color:var(--gold-hi); }
.portrait-hint { display:none; left:var(--pad); color:var(--gold-hi); }
.portrait-hint span { display:inline-block; width:1.65rem; vertical-align:middle; height:1px; margin-right:.5rem; background:var(--gold-hi); }
.has-portrait-scroll .portrait-hint { display:block; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .has-portrait-scroll .hero-cinematic { min-height: calc(max(645px,100svh) + 67svh); }
  .hero#top .hero-stage { min-height: 645px; min-height: max(645px,100svh); }
  .hero#top .hero-content {
    inset:auto var(--pad) 3.2rem; max-width:none; row-gap:.35rem;
  }
  .hero#top .hero-kicker { margin-bottom:.08rem; font-size:.66rem; }
  .hero#top .hero-title { font-size:clamp(2.6rem,min(11vw,9svh),5rem); }
  .hero#top .hero-lede { margin-top:.5rem; max-width:32rem; }
  .hero#top .hero-prop { font-size:clamp(1.4rem,5vw,2rem); }
  .hero#top .hero-sub { margin-top:.4rem; font-size:.9rem; line-height:1.45; }
  .hero#top .hero-ctas { margin-top:.72rem; gap:.4rem; }
  .hero#top .hero-ctas .btn { flex:1 1 8rem; }
  .hero#top .hero-visual { inset:0 0 24%; }
  .hero#top .hero-visual img, .hero#top .motion-canvas { object-position:51% 16%; }
  .hero#top .hero-shade { background:
    linear-gradient(0deg,#0a1521 0%,rgba(10,21,33,.91) 20%,rgba(10,21,33,.38) 43%,transparent 58%,transparent 83%,rgba(8,18,29,.56) 100%); }
  .portrait-credit,.portrait-hint { font-size:.61rem; bottom:1.06rem; }
}
@media (max-height: 490px) and (orientation:landscape) {
  .hero#top .hero-stage { min-height: max(390px,100svh); }
  .has-portrait-scroll .hero-cinematic { min-height: calc(max(390px,100svh) + 67svh); }
  .hero#top .hero-visual { inset:0 0 0 43%; }
  .hero#top .hero-shade { background:linear-gradient(90deg,#0a1521 0%,transparent 58%); }
  .hero#top .hero-content { inset:calc(var(--header-h) + .6rem) auto 2.8rem var(--pad); max-width:52vw; }
  .hero#top .hero-title { font-size:clamp(2rem,7.5vh,3rem); }
}

.hero#top .portrait-photo-fallback { display:none; }
.hero#top .hero-visual.show-photo .portrait-photo-fallback { display:block; }
.hero#top .hero-visual .motion-poster[hidden] { display:none; }

/* Chapters 02 and 03: the actual Higgsfield films, scrubbed as still frames. */
.cinematic-sequence { background:#0a1521; position:relative; }
html.motion .practice.cinematic-sequence, .practice.cinematic-sequence { height:auto; }
.cinematic-sequence .practice-stage, html.motion .cinematic-sequence .practice-stage,
.closing-stage {
  position:relative; height:auto; min-height: min(47rem,100svh);
  padding:0; overflow:clip; isolation:isolate;
}
html.film-motion .cinematic-sequence { min-height:calc(var(--scene-h) + var(--scrub-span)); }
html.film-motion .cinematic-sequence :is(.practice-stage,.closing-stage) {
  position:sticky; top:0; min-height:var(--scene-h); height:var(--scene-h);
}
.cinematic-sequence { --scene-h:max(40rem,100svh); --scrub-span:110svh; }
.closing-cinematic { --scrub-span:76svh; }
.cinematic-sequence .scene-media, .cinematic-sequence .scene-shade { position:absolute; inset:0; pointer-events:none; }
.cinematic-sequence .scene-media { inset:0 0 0 29%; }
.cinematic-sequence .scene-media :is(img,canvas) {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:58% 42%;
}
.cinematic-sequence .scene-media canvas { visibility:hidden; }
.cinematic-sequence .scene-media canvas[data-frame] { visibility:visible; }
.cinematic-sequence .scene-shade {
  background:linear-gradient(90deg,#0a1521 0%,#0a1521 24%,rgba(10,21,33,.9) 33%,rgba(10,21,33,.25) 53%,transparent 70%),
             linear-gradient(0deg,#0a1521 0%,transparent 30%,transparent 80%,rgba(10,21,33,.65) 100%);
}
html.motion .cinematic-sequence .practice-copy, .cinematic-sequence .practice-copy, .closing-copy {
  position:relative; inset:auto; width:min(45%,43rem); box-sizing:border-box; z-index:1;
  padding:calc(var(--header-h) + 2rem) var(--pad) 3rem; display:flex; flex-direction:column; justify-content:center;
}
html.film-motion .cinematic-sequence :is(.practice-copy,.closing-copy) { height:100%; }
.cinematic-sequence .practice-title { margin-top:.55rem; color:var(--text-dim); font-size:1.05rem; }
.cinematic-sequence :is(.kicker,.closing-role) { color:var(--ivory); }
.cinematic-sequence :is(.pillars,html.motion .pillars) { display:grid; gap:2.75rem; margin-top:1.75rem; }
html.motion .cinematic-sequence .pillar, .cinematic-sequence .pillar { grid-area:auto; opacity:1; }
html.film-motion .cinematic-sequence .pillars { grid-template-columns:minmax(0,1fr); gap:0; }
html.film-motion .cinematic-sequence .pillar {
  grid-area:1/1; align-self:center; opacity:0; transform:translateY(.65rem);
  transition:opacity .18s linear,transform .25s ease-out;
}
html.film-motion .cinematic-sequence .pillar:first-child,
html.film-motion .cinematic-sequence[data-active-pillar="0"] .pillar:nth-child(1),
html.film-motion .cinematic-sequence[data-active-pillar="1"] .pillar:nth-child(2),
html.film-motion .cinematic-sequence[data-active-pillar="2"] .pillar:nth-child(3) { opacity:1; transform:none; }
html.film-motion .cinematic-sequence:is([data-active-pillar="1"],[data-active-pillar="2"]) .pillar:first-child { opacity:0; transform:translateY(.65rem); }
.cinematic-sequence .pillar-name { font-size:clamp(2.15rem,4.3vw,5.25rem); }
.cinematic-sequence .pillar-no { font-size:clamp(2.15rem,3.7vw,4rem); }
.cinematic-sequence .pillar-copy { max-width:35rem; }
.cinematic-sequence .pillar-progress { display:none; }
html.film-motion .cinematic-sequence .pillar-progress {
  position:absolute; right:var(--pad); bottom:1.1rem; top:auto; display:flex; flex-direction:row; gap:.4rem; transform:none;
}
.cinematic-sequence .pillar-progress span { width:1.4rem; height:2px; }
.cinematic-sequence .pillar-progress span::after { transform-origin:left; transform:scaleX(0); }
.cinematic-sequence .pillar-progress span.on::after { transform:scaleX(1); }
.closing-title {
  margin:.65rem 0 .85rem; font-size:clamp(3.2rem,7vw,8rem); line-height:.84; text-transform:uppercase;
  letter-spacing:-.045em; color:var(--ivory); font-family:var(--font-display); font-weight:800;
}
.closing-title span { display:block; color:var(--gold-hi); }
.closing-role { letter-spacing:.13em; text-transform:uppercase; font-size:.78rem; }
.scene-end { position:absolute; right:var(--pad); bottom:1.15rem; color:var(--gold-hi); font-size:.65rem; letter-spacing:.18em; }
.allan:has(.closing-cinematic) { padding-block-start:0; }
.allan:has(.closing-cinematic) .allan-grid { padding-top:clamp(3rem,7vw,7rem); }

@media(max-width:900px) {
  .cinematic-sequence { --scene-h:max(39rem,100svh); }
  .cinematic-sequence .scene-media { inset:0 0 38%; }
  .cinematic-sequence .scene-media :is(img,canvas) { object-position:50% 40%; }
  .cinematic-sequence .scene-shade { background:linear-gradient(0deg,#0a1521 0%,#0a1521 38%,rgba(10,21,33,.42) 53%,transparent 68%,transparent 86%,rgba(10,21,33,.38) 100%); }
  html.motion .cinematic-sequence .practice-copy, .cinematic-sequence .practice-copy, .closing-copy {
    width:100%; padding:calc(min(53svh,32rem) + 1rem) var(--pad) 3rem; justify-content:flex-start;
  }
  html.film-motion .cinematic-sequence :is(.practice-copy,.closing-copy) { position:absolute; inset:auto 0 0; height:auto; padding-top:0; }
  .cinematic-sequence .pillar-name { font-size:clamp(1.45rem,6.3vw,3.5rem); margin:.2rem 0 .45rem; }
  .cinematic-sequence .pillar-no { font-size:clamp(1.3rem,5vw,2.5rem); }
  .cinematic-sequence .pillar-copy { font-size:.94rem; line-height:1.5; }
  .cinematic-sequence .pillar-tags { margin-top:.65rem; gap:.25rem; }
  .cinematic-sequence .pillar-tags li { font-size:.62rem; padding:.2rem .38rem; }
  .cinematic-sequence :is(.pillars,html.motion .pillars) { margin-top:.7rem; }
  .cinematic-sequence .practice-title { margin:.28rem 0; font-size:.84rem; }
  .cinematic-sequence .kicker { font-size:.65rem; letter-spacing:.11em; }
  .closing-cinematic { --scene-h:max(31rem,88svh); }
  .closing-cinematic .scene-media { inset:0 0 20%; }
  .closing-cinematic .scene-shade { background:linear-gradient(0deg,#0a1521 0%,rgba(10,21,33,.85) 18%,transparent 57%); }
  .closing-title { font-size:clamp(3.2rem,12vw,6rem); }
}
@media(max-width:900px) and (max-height:680px) and (orientation:portrait) {
  .cinematic-sequence { --scene-h:max(525px,100svh); }
  .closing-cinematic { --scene-h:max(470px,88svh); }
}
@media(max-height:490px) and (orientation:landscape) {
  .cinematic-sequence { --scene-h:max(340px,100svh); }
  .cinematic-sequence .scene-media { inset:0 0 0 43%; }
  .cinematic-sequence .scene-shade { background:linear-gradient(90deg,#0a1521 0%,#0a1521 35%,transparent 78%); }
  html.motion .cinematic-sequence .practice-copy,.cinematic-sequence .practice-copy,.closing-copy {
    position:relative; inset:auto; height:auto; width:55%; padding:calc(var(--header-h) + .7rem) var(--pad) 1rem;
  }
  html.film-motion .cinematic-sequence :is(.practice-copy,.closing-copy) { position:relative; inset:auto; height:var(--scene-h); }
  .closing-title { font-size:clamp(2.1rem,7vw,4rem); }
}
html.motion .cinematic-sequence .pillars { margin-top:1.75rem; gap:2.75rem; }
html.motion.film-motion .cinematic-sequence .pillars { gap:0; }
@media(max-width:900px) { html.motion .cinematic-sequence .pillars { margin-top:.7rem; } }
.closing-values { margin-top:clamp(1rem,4vh,2.7rem); }
.closing-values .values-h {
  margin:0 0 .55rem; color:var(--gold-hi); font-size:.66rem;
  text-transform:uppercase; letter-spacing:.17em;
}
.closing-values .values { display:grid; gap:.65rem; margin:0; padding:0; list-style:none; }
.closing-values .values li {
  display:grid; grid-template-columns:1fr; gap:.15rem;
  margin:0; padding:.7rem .85rem; border:1px solid rgba(232,213,170,.32);
  border-left:2px solid var(--gold); background:rgba(8,18,30,.82);
}
.closing-values .v-k { color:var(--ivory); font-size:.82rem; }
.closing-values .v-v { color:var(--text-dim); font-size:.78rem; }
html.film-motion .closing-values .values { grid-template-columns:minmax(0,1fr); gap:0; }
html.film-motion .closing-values .values li {
  grid-area:1/1; opacity:0; transform:translateY(.45rem);
  transition:opacity .18s linear,transform .22s ease-out;
}
html.film-motion .closing-values .values li:first-child,
html.film-motion .closing-cinematic[data-active-card="0"] .values li:nth-child(1),
html.film-motion .closing-cinematic[data-active-card="1"] .values li:nth-child(2),
html.film-motion .closing-cinematic[data-active-card="2"] .values li:nth-child(3) { opacity:1; transform:none; }
html.film-motion .closing-cinematic:is([data-active-card="1"],[data-active-card="2"]) .values li:first-child { opacity:0; transform:translateY(.45rem); }
@media(max-width:900px){
  .closing-cinematic .scene-media { inset:0 0 32%; }
  .closing-cinematic .scene-shade { background:linear-gradient(0deg,#0a1521 0%,#0a1521 25%,rgba(10,21,33,.42) 44%,transparent 68%); }
  .closing-values { margin-top:.8rem; }
  .closing-title { font-size:clamp(2.6rem,10vw,6rem); }
}
@media(max-height:490px) and (orientation:landscape) {
  .closing-cinematic .scene-media { inset:0 0 0 43%; }
  .closing-cinematic .scene-shade { background:linear-gradient(90deg,#0a1521 0%,#0a1521 35%,transparent 78%); }
  .closing-title { font-size:clamp(2.1rem,7vw,4rem); }
}

/* Phones: protect the full square portrait below the fixed header. No cover
   crop or scroll-driven video seeks; the original three films play inline. */
.mobile-film, .mobile-film-play { display:none; }
html.mobile-films { --film-headroom:calc(var(--header-h) + .35rem); --film-width:min(100vw, 34rem); }
html.mobile-films.has-portrait-scroll .hero-cinematic { min-height:calc(max(645px,100svh) + 28svh); }
html.mobile-films .hero#top .hero-visual,
html.mobile-films .cinematic-sequence .scene-media {
  inset:0; overflow:hidden; background:#0a1521;
}
html.mobile-films .hero#top .hero-visual img,
html.mobile-films .cinematic-sequence .scene-media img,
html.mobile-films .mobile-film {
  position:absolute; display:block; inset:var(--film-headroom) auto auto 50%;
  width:var(--film-width); height:var(--film-width); object-fit:contain;
  object-position:center top; transform:translateX(-50%);
}
html.mobile-films .hero#top .hero-visual .portrait-photo-fallback { display:none; }
html.mobile-films .hero#top .hero-visual.show-photo .portrait-photo-fallback { display:block; }
html.mobile-films .hero#top .hero-visual .motion-poster[hidden] { display:none; }
html.mobile-films .mobile-film { visibility:hidden; pointer-events:none; }
html.mobile-films .mobile-film[data-playing] { visibility:visible; }
html.mobile-films .motion-canvas, html.mobile-films .scene-canvas { display:none; }
html.mobile-films .hero#top .hero-shade,
html.mobile-films .cinematic-sequence .scene-shade {
  inset:var(--film-headroom) 0 0;
  background:linear-gradient(180deg,#0a1521 0,transparent 1.35rem,
    transparent calc(var(--film-width) * .67),#0a1521 var(--film-width));
}
html.mobile-films .cinematic-sequence { --scrub-span:70svh; }
html.mobile-films .closing-cinematic { --scrub-span:62svh; }
html.mobile-films .mobile-film-play:not([hidden]) {
  display:block; position:absolute; z-index:8; top:calc(var(--film-headroom) + .6rem); right:var(--pad);
  min-height:44px; border:1px solid var(--hair); border-radius:2px; padding:.4rem .75rem;
  color:var(--ivory); background:var(--ink-deep); font:inherit; cursor:pointer;
}
@media(orientation:portrait) {
  html.mobile-films:not(.film-motion) .cinematic-sequence :is(.practice-copy,.closing-copy) {
    padding-top:calc(var(--film-headroom) + var(--film-width) + .25rem);
  }
}
@media(max-height:490px) and (orientation:landscape) {
  html.mobile-films { --film-headroom:var(--header-h); --film-width:min(49vw, calc(100svh - var(--header-h))); }
  html.mobile-films.has-portrait-scroll .hero-cinematic { min-height:calc(max(390px,100svh) + 28svh); }
  html.mobile-films .hero#top .hero-visual,
  html.mobile-films .cinematic-sequence .scene-media { inset:0 0 0 48%; }
  html.mobile-films .hero#top .hero-shade,
  html.mobile-films .cinematic-sequence .scene-shade {
    background:linear-gradient(90deg,#0a1521 0%,transparent 14%,transparent 92%,#0a1521 100%);
  }
}
@media(orientation:portrait) {
  /* Keep headlines and cards out of Allan's face, even at 320 × 568. */
  html.mobile-films .hero#top .hero-cinematic { min-height:0; }
  html.mobile-films .hero#top .hero-stage {
    position:relative; top:auto; padding-top:calc(var(--film-headroom) + var(--film-width) * .78);
  }
  html.mobile-films .hero#top .hero-content {
    position:relative; inset:auto; min-height:0; padding:0 var(--pad) 3.2rem; width:100%;
  }
  html.mobile-films.film-motion .cinematic-sequence :is(.practice-copy,.closing-copy) {
    inset:max(calc(var(--film-headroom) + var(--film-width) * .73), 49svh) 0 auto; padding-bottom:0;
  }
  html.mobile-films.film-motion .cinematic-sequence .pillar-progress { bottom:.6rem; }
}
html.mobile-films.film-motion .cinematic-sequence .pillar,
html.mobile-films.film-motion .closing-cinematic .values li {
  transition:opacity 110ms ease;
}
@media(prefers-reduced-motion:reduce) {
  html.mobile-films .mobile-film { visibility:hidden !important; }
}
@media(orientation:portrait) {
  html.mobile-films.has-portrait-scroll .hero#top .hero-stage { position:sticky; top:0; }
  html.mobile-films.has-portrait-scroll .hero#top .hero-cinematic::after {
    content:''; display:block; height:clamp(75px,17svh,145px);
  }
}
@media(max-height:680px) and (orientation:portrait) {
  html.mobile-films.film-motion .cinematic-sequence :is(.practice-copy,.closing-copy) {
    top:max(calc(var(--film-headroom) + var(--film-width) * .56), 42svh);
  }
  html.mobile-films .closing-title { font-size:clamp(2.15rem,10vw,3.15rem); }
}
