/* Aroik — editorial, film-language system. Each page sets --bg/--bg2/--ink/--muted/--accent on <body>. */
:root {
  --display: "Instrument Serif", "Times New Roman", serif;
  --ui: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --slow: 1100ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--ui); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display, .display-m { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.display { font-size: clamp(3rem, 9vw, 8.5rem); line-height: .92; }
.display-m { font-size: clamp(2.25rem, 5.2vw, 4.75rem); line-height: .98; }
.display em, .display-m em { font-style: italic; }
.label { font: 500 .75rem/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 34ch; margin: 1.5rem 0 0; }
.meta { font-size: .875rem; color: var(--muted); margin: 0; }
.fine { font-size: .75rem; max-width: 70ch; }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 500 .95rem/1 var(--ui); text-decoration: none; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.is-soon { pointer-events: none; cursor: default; opacity: .85; }
.link-arrow { display: inline-flex; gap: .5em; font-weight: 500; margin-top: 1.5rem; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); color: var(--ink); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  transition: background .4s, color .4s, border-color .4s;
}
.site-header.over-hero:not(.is-scrolled) { background: transparent; border-color: transparent; color: #F4EFE6; backdrop-filter: none; }
.wordmark { font: 400 1.75rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; margin: 0; }
.site-header ul { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.site-header nav a { font-size: .9rem; text-decoration: none; padding: 12px 0; }
.site-header nav a:hover { color: inherit; text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #F4EFE6; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #111; }
.hero-media img, .hero-media .img-missing { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 65%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.hero-copy { padding: 0 var(--gutter) clamp(48px, 9vh, 96px); max-width: var(--max); }
.hero .label { color: rgba(244,239,230,.8); }
.hero .btn-primary:hover { background: #F4EFE6; color: #111; }
.hero .btn-ghost:hover { background: #F4EFE6; color: #111; border-color: #F4EFE6; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 24px; color: rgba(244,239,230,.7); display: none; }
@media (min-width: 900px) { .hero-caption { display: block; } }
.app-kicker { display: flex; align-items: center; gap: 12px; }
.app-kicker img { border-radius: 10px; }
.kenburns { animation: kenburns 28s var(--ease) infinite alternate; transform-origin: 60% 50%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }

/* ---------- sections ---------- */
main > section { padding: clamp(80px, 12vw, 168px) var(--gutter); }
main > .hero { padding: 0; }
.section-head { max-width: var(--max); margin: 0 auto clamp(40px, 6vw, 80px); }
.section-head .display-m { max-width: 18ch; }

/* ---------- reel (home index) ---------- */
.reel-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 48px; }
.reel-stage { display: none; }
.reel-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.reel-row { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.reel-row a {
  display: grid; grid-template-columns: 2.5rem 1fr 56px; gap: 4px 16px; align-items: start;
  padding: 24px 0; text-decoration: none; color: inherit;
}
.reel-thumb { grid-column: 1 / -1; margin: 0 0 16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg2); }
.reel-thumb img, .reel-thumb .img-missing { width: 100%; height: 100%; object-fit: cover; }
.reel-num { font: 500 .8rem/2.4 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.reel-text { display: grid; gap: 6px; }
.reel-name { font: 400 clamp(2rem, 4vw, 3.25rem)/1 var(--display); letter-spacing: -0.02em; transition: color .3s; }
.reel-line { font-size: .95rem; color: var(--muted); max-width: 46ch; }
.reel-kind { grid-column: 2; font: 500 .72rem/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.reel-icon { grid-column: 3; grid-row: 2 / span 2; border-radius: 14px; }
.reel-row a:hover .reel-name, .reel-row a:focus-visible .reel-name, .reel-row.is-active .reel-name { color: var(--accent); }

@media (min-width: 960px) {
  .reel-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .reel-stage { display: block; position: sticky; top: 96px; }
  .reel-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
  .reel-frame { position: absolute; inset: 0; margin: 0; opacity: 0; overflow: hidden; transition: opacity .18s linear; }
  .reel-frame.is-active { opacity: 1; }
  .reel-frame img { transform: scale(calc(1.02 + var(--q, .5) * .12)); will-change: transform; }
  .reel-frame img, .reel-frame .img-missing { width: 100%; height: 100%; object-fit: cover; }
  .reel-caption { margin-top: 14px; }
  .reel-thumb { display: none; }
  .reel-row a { grid-template-columns: 3rem 1fr 56px; padding: 28px 0; }
  .reel-icon { grid-row: 1 / span 2; align-self: center; opacity: .0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
  .reel-row.is-active .reel-icon, .reel-row a:hover .reel-icon { opacity: 1; transform: none; }
}

/* ---------- studio ---------- */
.studio { background: var(--bg2); }
.studio-grid, .contact-grid, .about-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
@media (min-width: 900px) {
  .studio-grid, .contact-grid, .about-grid { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); }
}
.studio-copy .lede { max-width: 40ch; margin-top: 0; }
.studio-copy p { max-width: 58ch; }
.facts { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.facts dt { font: 500 .72rem/1.6 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: .98rem; }

/* ---------- contact ---------- */
.contact-details { display: grid; gap: 18px; margin: 2rem 0 0; }
.contact-details dt { font: 500 .72rem/1.6 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 2px 0 0; font-size: 1.05rem; }
.contact-form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .9rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 0;
  padding: 12px 0; min-height: 48px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }
.field [aria-invalid="true"] { border-bottom: 2px solid #B3261E; }
.field-error { margin: 0; font-size: .85rem; color: #B3261E; }
.field-error::before { content: "⚠ "; }
.contact-form .btn { justify-self: start; }
.form-note { max-width: 46ch; }
.page-pad { padding-top: 72px; }

/* ---------- story (app pages) ---------- */
.story-grid { max-width: var(--max); margin: 0 auto; display: grid; }
.story-stage { display: none; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(72px, 12vw, 120px); }
.chapter-media { margin: 0 0 28px; }
.chapter-media img, .chapter-media .img-missing { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg2); }
.chapter-media figcaption { margin-top: 10px; }
.chapter h3 { margin-bottom: 1.25rem; }
.chapter-copy { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 38ch; margin: 0; }

@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
  .story-stage { display: grid; grid-template-rows: 1fr auto auto; gap: 14px; position: sticky; top: 72px; height: calc(100svh - 96px); order: 2; }
  .story-screen { position: relative; overflow: hidden; background: #000; min-height: 0; }
  /* Opacity and --q (0→1 across a frame's life) are written by the scroll engine. */
  .story-frame { position: absolute; inset: 0; margin: 0; opacity: 0; overflow: hidden; }
  .story-frame.is-active { opacity: 1; }
  .story-frame img { transform: scale(calc(1.02 + var(--q, .5) * .16)) translate3d(0, calc((var(--q, .5) - .5) * -3%), 0); transform-origin: 50% 45%; will-change: transform; }
  .story-progress { height: 2px; background: color-mix(in srgb, var(--ink) 16%, transparent); overflow: hidden; }
  .story-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
  .story-frame img, .story-frame .img-missing { width: 100%; height: 100%; object-fit: cover; }
  .story-under { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
  .story-index { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: .8rem; }
  .story-index a { text-decoration: none; color: var(--muted); }
  .story-index li.is-active a { color: var(--ink); text-decoration: underline; }
  .chapters { order: 1; gap: 0; }
  .chapter { min-height: calc(100svh - 96px); display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; }
  .chapter-media { display: none; }
  /* --o (0→1, how centred the chapter is) is written by the scroll engine. */
  .js .chapter-copy, .js .chapter .facts { opacity: calc(.22 + var(--o, 1) * .78); }
  .js .chapter h3 { opacity: calc(.35 + var(--o, 1) * .65); transform: translate3d(0, calc((1 - var(--o, 1)) * 28px), 0); }
}

/* ---------- gallery + lightbox ---------- */
.gallery { background: var(--bg2); }
.gallery-track {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.gallery-track li { flex: none; scroll-snap-align: start; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.shot img { height: clamp(280px, 44vh, 480px); width: auto; border-radius: 6px; transition: transform .5s var(--ease); }
.shot:hover img { transform: translateY(-4px); }
@media (max-width: 600px) { .shot img { height: auto; max-height: 70vh; width: 78vw; object-fit: contain; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #F4EFE6; color: #111; font-size: 1.6rem; cursor: pointer; }

/* ---------- closing ---------- */
.closing { position: relative; color: #F4EFE6; min-height: 90svh; display: grid; align-items: center; justify-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.closing-media { position: absolute; inset: 0; z-index: -1; }
.closing-media img, .closing-media .img-missing { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.9); }
.closing-copy { display: grid; justify-items: center; gap: 0; max-width: 60rem; }
.closing-copy .display { font-size: clamp(2.6rem, 7vw, 6.5rem); }
.closing-copy .cta-row { justify-content: center; margin: 2.25rem 0 1.75rem; }
.closing-copy .meta { color: rgba(244,239,230,.75); }
.closing-copy .fine { margin-top: 1rem; }
.closing-icon { border-radius: 22px; margin-bottom: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.closing .btn-primary:hover { background: #F4EFE6; color: #111; }
.closing-plain { color: var(--ink); background: var(--bg); min-height: 0; }
.closing-plain .meta { color: var(--muted); }

/* ---------- about (plain app pages) ---------- */
.prose { max-width: 66ch; }
.prose h1 { font: 400 clamp(2.25rem, 5vw, 4rem)/1 var(--display); letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.prose h2, .prose h3 { font: 600 .8rem/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 .75rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin: .3rem 0; }

/* ---------- legal pages: long-form reading ---------- */
.legal { margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(64px, 10vw, 128px); max-width: calc(68ch + 2 * var(--gutter)); }
.legal .label { margin-bottom: 1rem; }
.legal h1 { font: 400 clamp(2.4rem, 6vw, 4.25rem)/1.02 var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.legal .updated { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.legal h1 + :not(.updated), .legal .updated + * { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.legal p, .legal li { font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.72; text-wrap: pretty; }
.legal p { margin: 0 0 1rem; }
.legal h2 {
  font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.05rem)/1.15 var(--display); letter-spacing: -0.01em; text-transform: none; color: var(--ink);
  margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); text-wrap: balance;
}
.legal h1 + h2, .legal .updated + h2 { border-top-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.legal h3 { font: 600 1.02rem/1.4 var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 1.75rem 0 .5rem; }
.legal h2 + h3 { margin-top: 0; }
.legal ul { list-style: none; margin: .25rem 0 1.25rem; padding: 0; }
.legal li { position: relative; padding-left: 1.4rem; margin: .45rem 0; }
.legal li::before { content: ""; position: absolute; left: .2rem; top: .78em; width: .45rem; height: 1px; background: var(--accent); }
.legal strong { font-weight: 600; color: var(--ink); }
.legal a { overflow-wrap: anywhere; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.article-figure { margin: 2.5rem 0 0; }
.article-figure img { width: 100%; border-radius: 6px; }
.legal .article-figure + * { margin-top: 2.5rem; }
.legal-more { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.legal-more ul { display: grid; gap: .25rem; }
.legal-more li { padding-left: 0; margin: 0; }
.legal-more li::before { content: none; }
.legal-more a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 1rem; }
.legal-more a:hover { text-decoration: underline; }

/* ---------- more apps ---------- */
.more { padding: 56px var(--gutter); border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.more a { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.more img { border-radius: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: 72px var(--gutter) 32px; --muted: color-mix(in srgb, var(--bg) 60%, var(--ink)); }
.footer-grid { max-width: var(--max); margin: 0 auto 56px; display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .wordmark { font-size: 3rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .fine { max-width: var(--max); margin: 0 auto; }
.notfound { min-height: 70vh; padding: 160px var(--gutter) 80px; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.img-missing { background: repeating-linear-gradient(135deg, var(--bg2) 0 12px, var(--bg) 12px 24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .reel-frame, .story-frame { transform: none !important; }
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; margin: 0; }
.logo-img { display: block; height: 24px; width: auto; transition: filter .4s; }
.site-footer .logo-img { height: 36px; margin-bottom: 1rem; }
/* The logo file is black on transparent: invert it wherever it sits on a dark surface. */
.dark .site-header .logo-img,
.site-header.over-hero:not(.is-scrolled) .logo-img,
body:not(.dark) .site-footer .logo-img { filter: invert(1); }

/* ---------- services ---------- */
.services { border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.service-list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; gap: clamp(72px, 10vw, 140px); }
.service { display: grid; gap: 28px; align-items: center; }
.service-media { margin: 0; }
.service-media img, .service-media .img-missing { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg2); }
.service-copy { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; max-width: 42ch; margin: 1.25rem 0 0; }
.service .facts { max-width: 40rem; }
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 1.75rem 0 0; }
.partner .label { margin: 0; }
.partner a { display: inline-flex; }
.partner img { height: 34px; width: auto; }
.partner-name { font-weight: 600; letter-spacing: .01em; }
.status { color: var(--ink); }
.status.soon { color: var(--accent); }
.status.soon::before { content: "◌ "; }
@media (min-width: 900px) {
  .service { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 112px); }
  .service-media { max-width: 460px; }
  .service.flip .service-media { order: 2; justify-self: end; }
}

/* ---------- scroll scrubbing ----------
   The scroll engine (site.js) writes --p (0→1) on every [data-scrub] element; the styles below
   map it to motion. Without JS, or with .still (reduced motion / Save-Data), --p is never set
   and every fallback below is the resting, readable state. */
main > .hero-track { padding: 0; }
.hero-track { position: relative; }
.hero-track .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }
.js:not(.still) .hero-track { height: 210svh; }
@media (min-width: 900px) { .js:not(.still) .hero-track { height: 270svh; } }

/* Hero: the still pushes in; a frame sequence, where there is one, takes over once loaded. */
.hero-media { overflow: hidden; clip-path: inset(calc(max(0, var(--p, 0) - .62) * 11%) round calc(max(0, var(--p, 0) - .62) * 48px)); }
.hero-still { transform: scale(calc(1.02 + var(--p, 0) * .16)); transform-origin: 58% 52%; will-change: transform; }
@media (max-aspect-ratio: 4/5) { .hero-still { object-position: var(--focus, 50%) 50%; } }
.hero-seq { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.hero-seq.is-ready { opacity: 1; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: calc(var(--p, 0) * .5); pointer-events: none; }
.hero-media::after { z-index: 2; }
.hero-copy { transform: translate3d(0, calc(var(--p, 0) * -16vh), 0); opacity: calc(1 - max(0, var(--p, 0) - .45) * 2.4); will-change: transform, opacity; }
.hero-caption { opacity: calc(1 - var(--p, 0) * 3); }

/* "Scroll" cue: a hairline with a bead running down it. */
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 52px; background: rgba(244,239,230,.28); opacity: calc(1 - var(--p, 0) * 8); overflow: hidden; }
.scroll-cue span { position: absolute; left: -1px; top: 0; width: 3px; height: 14px; background: #F4EFE6; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-14px); } to { transform: translateY(52px); } }
.still .scroll-cue, html:not(.js) .scroll-cue { display: none; }

/* Services: the picture unmasks from the top and drifts against the scroll. */
.service-media { overflow: hidden; clip-path: inset(calc(max(0, .3 - var(--p, 1)) * 333%) 0 0 0); }
.service-media img { transform: translate3d(0, calc((var(--p, .5) - .5) * -12%), 0) scale(1.14); will-change: transform; }

/* Mobile story: each chapter picture drifts as it passes. */
.chapter-pic { overflow: hidden; }
.chapter-pic img { transform: translate3d(0, calc((var(--p, .5) - .5) * -10%), 0) scale(1.12); }

/* Closing: the last scene settles as it arrives. */
.closing-media img { transform: scale(calc(1.22 - var(--p, .5) * .22)); will-change: transform; }

/* Gallery: on wide screens the section pins and the strip moves sideways with the scroll. */
.gallery.is-hscroll { padding: 0; }
.is-hscroll .gallery-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: clip; padding: 72px var(--gutter) 24px; }
.is-hscroll .gallery-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.is-hscroll .shot img { height: clamp(300px, 56vh, 620px); }
.is-hscroll .section-head { margin-bottom: clamp(24px, 4vh, 48px); width: 100%; }

.still .hero-still, .still .story-frame img, .still .reel-frame img, .still .service-media img,
.still .chapter-pic img, .still .closing-media img, .still .chapter h3 { transform: none !important; }
@media (max-width: 760px) { .scroll-cue { display: none; } }
