/* ==========================================================================
   3HA — Othman Al-Shahrani, Issue 01
   The scene: a grading room at night. Film black for the screen, a neutral
   suite grey around it, bone proof prints on the desk, one gold thread.
   Tokens and rules live in DESIGN.md. Proportions follow φ = 1.618.
   ========================================================================== */

@font-face { font-family: 'Thmanyah Serif Display'; src: url('../fonts/thmanyahserifdisplay-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('../fonts/thmanyahserifdisplay-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('../fonts/thmanyahserifdisplay-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('../fonts/thmanyahserifdisplay-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Thmanyah Serif Text'; src: url('../fonts/thmanyahseriftext-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah Serif Text'; src: url('../fonts/thmanyahseriftext-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('../fonts/thmanyahsans-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('../fonts/thmanyahsans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('../fonts/thmanyahsans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('../fonts/thmanyahsans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

@property --dot   { syntax: '<length>';     inherits: false; initial-value: 0px; }
@property --wave  { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --split { syntax: '<percentage>'; inherits: false; initial-value: 50%; }

:root {
  --film: #000000;
  --suite: #1A1A1A;
  --suite-2: #222222;
  --bone: #F4F1EC;
  --bone-2: #EBE6DE;
  --card: #FBFAF7;
  --ink: #141312;
  --stone: #8C887F;
  --stone-dark: #5C5A54;
  --gold: #B8975F;
  --gold-soft: #D8C39B;
  --gold-ink: #7E6236;
  --line-paper: rgba(20, 19, 18, .12);
  --line-dark: rgba(244, 241, 236, .12);
  --mute: rgba(244, 241, 236, .62);

  --f-display: 'Thmanyah Serif Display', 'Noto Naskh Arabic', 'Times New Roman', serif;
  --f-serif: 'Thmanyah Serif Text', 'Noto Naskh Arabic', 'Times New Roman', serif;
  --f-text: 'Thmanyah Sans', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --f-lat: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* φ modular scale */
  --t1: 1.272rem;
  --t2: 1.618rem;
  --t3: 2.618rem;
  --t4: 4.236rem;
  --t5: 6.854rem;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--film);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--film); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
/* device data only: timecodes, frame numbers, instrument readouts */
.mono {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.4;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
.skip {
  position: fixed; top: 10px; right: 10px; z-index: 200;
  padding: .6rem 1rem; background: var(--bone); color: var(--ink);
  transform: translateY(-200%); transition: transform .3s;
}
.skip:focus { transform: none; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.js-motion .grain { animation: grain 1s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* photographs develop out of a dot screen as they enter */
.dotmask {
  --dot: 0px; --wave: -15%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 var(--wave), transparent calc(var(--wave) + 15%)), radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + .6px));
          mask-image: radial-gradient(circle at 50% 50%, #000 var(--wave), transparent calc(var(--wave) + 15%)), radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + .6px));
  -webkit-mask-size: 100% 100%, 10px 10px; mask-size: 100% 100%, 10px 10px;
  -webkit-mask-repeat: no-repeat, repeat; mask-repeat: no-repeat, repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* ---------- shared editorial parts ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(var(--t3), 1.5rem + 3.2vw, var(--t4));
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}
[data-lines] .line { display: block; overflow: hidden; padding: .12em 0 .3em; margin: -.12em 0 -.3em; }
[data-lines] .line > span { display: inline-block; }
.js-motion [data-lines] .line > span { transform: translateY(108%); }

/* dotted-leader contents (a real table of contents) */
.toc { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: baseline; gap: .8rem; padding: .3rem 0; text-decoration: none; transition: color .35s; }
.toc__dots {
  flex: 1; min-width: 2rem; height: 3px; align-self: center; transform: translateY(.18em);
  background: radial-gradient(circle, currentColor .9px, transparent 1.2px) 0 50% / 7px 3px repeat-x;
  opacity: .4; transition: opacity .35s;
}
.toc__p { opacity: .65; }
.toc a:hover, .toc a:focus-visible { color: var(--gold-soft); }
.toc a:hover .toc__dots { opacity: 1; }

.link-under { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s; }
.link-under:hover { color: var(--gold-soft); }

/* ---------- masthead ---------- */
.bar {
  position: fixed; top: 0; inset-inline: 0; z-index: 70;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  padding: 14px var(--gutter);
  color: var(--bone);
  transition: color .45s, background-color .45s, opacity .8s var(--ease), transform .8s var(--ease), backdrop-filter .45s;
}
.bar[data-theme="paper"] { color: var(--ink); }
.bar.is-scrolled { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bar.is-scrolled[data-theme="paper"] { background: rgba(244, 241, 236, .84); }
.js-motion .bar { opacity: 0; transform: translateY(-14px); }
.js-motion .bar.is-ready { opacity: 1; transform: none; }
.bar__brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.bar__mark { display: block; height: 24px; width: auto; fill: currentColor; align-self: center; }
.bar__name { font-family: var(--f-display); font-size: 1rem; opacity: .75; }
.bar__nav { display: flex; gap: clamp(1.1rem, 2.2vw, 2rem); margin-inline-start: auto; }
.bar__nav a { position: relative; font-size: .95rem; text-decoration: none; opacity: .6; transition: opacity .3s; }
.bar__nav a:hover, .bar__nav a.is-current { opacity: 1; }
.bar__nav a.is-current::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 3px;
  background: radial-gradient(circle, var(--gold) .9px, transparent 1.2px) 0 50% / 6px 3px repeat-x;
}
.bar__cta {
  padding: .5rem 1.15rem; border: 1px solid currentColor; border-radius: 999px;
  font-size: .88rem; text-decoration: none; white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s;
}
.bar__cta:hover { background: var(--bone); border-color: var(--bone); color: var(--film); }
.bar[data-theme="paper"] .bar__cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.bar__menu {
  display: none; align-items: center; gap: .6rem; margin-inline-start: auto;
  padding: .45rem .95rem; border: 1px solid currentColor; border-radius: 999px; background: none; cursor: pointer; font-size: .88rem;
}
.bar__menu i { position: relative; width: 16px; height: 8px; }
.bar__menu i::before, .bar__menu i::after { content: ""; position: absolute; inset-inline: 0; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.bar__menu i::before { top: 0; } .bar__menu i::after { top: 7px; }
.menu-open .bar__menu i::before { top: 3.5px; transform: rotate(45deg); }
.menu-open .bar__menu i::after { top: 3.5px; transform: rotate(-45deg); }
.menu-open .bar { color: var(--bone); background: transparent; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 60; overflow: auto;
  display: grid; place-items: center; padding: 96px var(--gutter) 48px;
  background: var(--film); color: var(--bone);
}
.menu[hidden] { display: none; }
.menu__inner { width: min(640px, 100%); }
.menu__kicker { color: var(--stone); margin: 0 0 1.2rem; }
.toc--menu a { font-family: var(--f-display); font-size: clamp(2rem, 1.2rem + 3.6vw, var(--t3)); font-weight: 400; line-height: 1.4; }
.toc--menu .toc__p { font-family: var(--f-mono); font-size: .72rem; }
.menu__foot { display: flex; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 0; }
.menu__foot a { text-decoration: none; color: var(--mute); }

/* ---------- cover (title sequence) ---------- */
.opening { position: relative; background: var(--film); }
.opening__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.js-motion .opening { height: 260vh; height: 260svh; }
.js-motion .opening__stage { position: sticky; top: 0; }

/* three golden rectangles (1 : φ): two proof prints and the sky */
.opening__stage { --ph: 68svh; --pw: calc(var(--ph) / 1.618); --pg: clamp(16px, 2.4vw, 40px); }
.panel { position: absolute; margin: 0; overflow: hidden; }
.panel--a, .panel--b, .panel-slot { top: calc((100% - var(--ph)) / 2); height: var(--ph); width: var(--pw); border-radius: 2px; }
.panel--a, .panel--b { z-index: 1; background: var(--suite); }
.panel--a { left: calc(50% + var(--pw) / 2 + var(--pg)); }
.panel--b { right: calc(50% + var(--pw) / 2 + var(--pg)); }
.panel-slot { position: absolute; left: calc(50% - var(--pw) / 2); visibility: hidden; pointer-events: none; }
.panel--a img, .panel--b img { width: 100%; height: 100%; object-fit: cover; }
.panel--a img, .panel--b img { object-position: 50% 30%; }
.panel--c { inset: 0; z-index: 2; }
.js-motion .panel--c { clip-path: inset(calc((100% - var(--ph)) / 2) calc(50% - var(--pw) / 2) calc((100% - var(--ph)) / 2) calc(50% - var(--pw) / 2) round 2px); }
.opening__curtain { position: absolute; inset: 0; z-index: 9; background: var(--film); pointer-events: none; }
@media (max-aspect-ratio: 1/1) {
  .opening__stage { --ph: 66svh; --pw: 27vw; --pg: 2.5vw; }
}

/* dusk over the Asir ridge: physical light, not decoration */
.horizon {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg,
    #03050C 0%, #071330 16%, #15356B 31%, #3966A8 42%, #93B1D7 50.5%,
    #EBD3B5 55%, #E69B62 57.4%, #B8572E 59.2%, #4A1E0F 62%, #1A0F0A 66%, #000 74%);
}
.horizon__stars {
  position: absolute; inset: 0 0 58% 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 31%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 27%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 83% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 35%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 48%, #fff 50%, transparent 51%);
}
.horizon__glow {
  position: absolute; left: 50%; top: 57%; width: 130%; height: 44%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 196, 140, .45), rgba(230, 120, 60, .14) 45%, transparent 72%);
  mix-blend-mode: screen; pointer-events: none;
}
.horizon__land {
  position: absolute; left: 0; top: 56%; width: 100%; height: 44%;
  object-fit: cover; object-position: 50% 0%;
  filter: brightness(.56) saturate(.72) contrast(1.1);
}
.horizon__fog {
  position: absolute; left: -900px; right: -900px; top: 58%; height: 16%; opacity: .16; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='220'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0045 .022' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 1.7 -.66'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 900px 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 70%, transparent);
          mask-image: linear-gradient(transparent, #000 35%, #000 70%, transparent);
}
.js-motion .horizon__fog { animation: fog 90s linear infinite; }
@keyframes fog { to { transform: translateX(900px); } }
.horizon__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, .55) 80%, rgba(0, 0, 0, .95) 100%); }

/* the 3HA ident: bar, machined letters with a light sweep, signature band */
.ident {
  --iw: min(230px, calc(var(--pw) * .7));
  position: absolute; left: calc(50% - var(--iw) / 2); top: 30%; z-index: 3; display: none; pointer-events: none;
  width: var(--iw);
}
.js-motion .ident { display: block; }
.ident__bar { display: block; aspect-ratio: 450 / 50; background: var(--bone); transform-origin: left center; }
.ident__letters { position: relative; display: block; margin-top: 4.4%; }
.ident__letters svg { width: 100%; height: auto; }
.ident__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) 150% 0 / 260% 100% no-repeat;
  -webkit-mask: url('../brand/3ha-letters.svg') center / 100% 100% no-repeat;
          mask: url('../brand/3ha-letters.svg') center / 100% 100% no-repeat;
  mix-blend-mode: screen;
}
.ident__band { position: relative; display: block; margin-top: 4.4%; aspect-ratio: 450 / 60; background: var(--bone); transform-origin: left center; direction: ltr; }
.ident__band img { position: absolute; left: 3.5%; top: 50%; width: 58%; transform: translateY(-50%); }

.opening__title {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 19svh var(--gutter) 7svh;
}
.js-motion .opening__title > * { opacity: 0; }
.opening__title .kicker { margin: 0 0 1.2rem; font-size: .95rem; color: var(--gold-soft); }
.opening__h1 { margin: 0; font-weight: inherit; }
.opening__name {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3rem, 1rem + 7.4vw, var(--t5)); line-height: 1.12; color: var(--card);
  text-shadow: 0 2px 40px rgba(3, 5, 12, .35);
}
.opening__role { display: block; margin-top: .9rem; font-size: clamp(1rem, .92rem + .4vw, var(--t1)); font-weight: 300; color: rgba(244, 241, 236, .88); }
.opening__latin { margin: .35rem 0 0; direction: ltr; font-family: var(--f-lat); font-size: clamp(1.05rem, .95rem + .5vw, 1.5rem); color: rgba(244, 241, 236, .66); }
.opening__film { margin-top: 1.3rem; }

/* ---------- the film ---------- */
.film { background: var(--film); }
.film__screen {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh; overflow: hidden; isolation: isolate;
  background: #000 url('../img/film-poster.webp') center / cover no-repeat;
}
.film__ambient, .film__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.film__full { object-fit: contain; background: #000; z-index: 3; }
.film__full[hidden] { display: none; }
.film__ambient { opacity: 0; transition: opacity 1.2s var(--ease); }
.film__ambient.is-on { opacity: 1; }
.film__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 58%); transition: opacity .6s var(--ease); }
.film__title { position: absolute; z-index: 2; bottom: clamp(1.4rem, 4vw, 3.6rem); right: clamp(1.2rem, 4vw, 3.6rem); max-width: min(620px, 86vw); transition: opacity .6s var(--ease); }
.film__title .display { margin: 0 0 1.3rem; font-size: clamp(var(--t3), 1.4rem + 3.4vw, var(--t4)); line-height: 1.12; color: var(--card); }
.film__note { margin: 1.1rem 0 0; font-size: .8rem; color: var(--mute); }
.film.is-playing .film__title, .film.is-playing .film__veil { opacity: 0; pointer-events: none; }
.film__play, .opening__film {
  display: inline-flex; align-items: center; gap: .85rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--bone); font: 400 1rem/1 var(--f-text); text-decoration: none;
}
.film__play .mono, .opening__film .mono { font-size: .72rem; color: var(--mute); }
.film__play i, .opening__film i {
  position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(244, 241, 236, .55); transition: border-color .35s, background-color .35s;
}
.opening__film i { width: 38px; height: 38px; }
.film__play i::before, .opening__film i::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--bone);
  transform: translate(-38%, -50%);
}
.opening__film i::before { border-top-width: 5px; border-bottom-width: 5px; border-left-width: 8px; }
.film__play:hover i, .film__play:focus-visible i, .opening__film:hover i, .opening__film:focus-visible i { border-color: var(--bone); background-color: rgba(244, 241, 236, .08); }
@media (max-width: 899px) {
  .film__screen { aspect-ratio: 4 / 5; max-height: 88svh; }
  .film.is-playing .film__screen { aspect-ratio: 16 / 9; }
}
.toc--cover { margin-top: auto; width: min(400px, 86vw); font-size: 1rem; color: var(--bone); }
.toc--cover .toc__p { font-size: .7rem; }
.opening__cue {
  position: absolute; left: 50%; bottom: 2.4svh; z-index: 4; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .5rem; margin: 0;
  font-size: .78rem; color: rgba(244, 241, 236, .62);
}
.js-motion .opening__cue { display: flex; }
.opening__cue i { position: relative; width: 1px; height: 34px; background: rgba(244, 241, 236, .22); overflow: hidden; }
.opening__cue i::after { content: ""; position: absolute; left: -1px; top: -6px; width: 3px; height: 6px; border-radius: 2px; background: var(--bone); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { to { transform: translateY(46px); } }

/* ---------- story: the profile ---------- */
.story { background: var(--bone); color: var(--ink); padding: clamp(6rem, 13vw, 11rem) 0 clamp(5rem, 10vw, 8rem); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: clamp(2.4rem, 7vw, 6.854rem); align-items: start; }
/* the aperture: eight blades open as the story is read, revealing the kit */
.story__lens { margin: 0; position: sticky; top: 110px; }
.lens { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #0B0B0B; }
.lens__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.lens__iris { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens__iris .blade { stroke: rgba(244, 241, 236, .14); stroke-width: .45; stroke-linejoin: round; }
.lens__iris .blade:nth-child(odd) { fill: #1C1C1C; }
.lens__iris .blade:nth-child(even) { fill: #232323; }
.lens__iris .rim { fill: none; stroke: #2E2E2E; stroke-width: 1.4; }
.lens__barrel { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 9px #141414, inset 0 0 0 10px rgba(244, 241, 236, .1), inset 0 0 40px rgba(0, 0, 0, .75); }
.story__lens figcaption { display: flex; align-items: baseline; gap: .9rem; margin-top: 1.1rem; font-size: .88rem; color: var(--stone-dark); }
.lens__f { color: var(--gold-ink); font-size: .85rem; min-width: 3.4rem; }
.story__title { font-size: clamp(var(--t3), 1.4rem + 3.6vw, 5.2rem); margin-bottom: clamp(2rem, 4vw, var(--t3)); }
.story__text p { margin: 0 0 1.3rem; max-width: 34em; color: #3A3935; font-family: var(--f-serif); font-size: 1.1em; line-height: 1.85; }
.story__text .lede { font-size: clamp(1.25rem, 1.05rem + .6vw, var(--t2)); line-height: 1.7; color: var(--ink); max-width: 28em; margin-bottom: 2rem; }
.story__sign { width: min(240px, 60%); margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- interlude: the light table, scrubbed by scroll ---------- */
.lab { position: relative; background: var(--film); }
.js-motion .lab { height: 240vh; height: 240svh; }
.lab__pin { position: relative; height: 100vh; height: 100svh; }
.js-motion .lab__pin { position: sticky; top: 0; }
.lab__screen { position: absolute; inset: 0; overflow: hidden; background: #000; }
.lab__poster, .lab__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lab__canvas { opacity: 0; transition: opacity .6s var(--ease); }
.lab.is-ready .lab__canvas { opacity: 1; }
.lab__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 42%); }
.lab__caption { position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(1.6rem, 5vh, 3rem); max-width: 30rem; }
.lab__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(var(--t2), 1.2rem + 2.4vw, var(--t4)); line-height: 1.15; }
.lab__caption p { margin: .5rem 0 0; font-family: var(--f-serif); color: rgba(244, 241, 236, .8); }
.lab__note { display: block; margin-top: .6rem; font-size: .8rem; color: rgba(244, 241, 236, .45); }

/* living films layered over their still fallbacks */
.horizon__film, .booking__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.horizon__film { object-position: 50% 57%; }
.booking__film { object-position: 50% 62%; }
.horizon__film.is-on, .booking__film.is-on { opacity: 1; }

/* ---------- works: the contact sheet ---------- */
.works { position: relative; background: var(--film); color: var(--bone); padding: clamp(5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.works__head { display: flex; justify-content: space-between; align-items: end; gap: 1.6rem 3rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.works__head .display { font-size: clamp(var(--t3), 1.6rem + 4vw, 5.6rem); }
.works__meta { max-width: 26rem; color: var(--mute); font-size: .98rem; }
.works__meta p { margin: 0; }
.works__count { margin-top: .9rem !important; color: var(--gold); font-size: .8rem; }

.strip { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); }
.strip::-webkit-scrollbar { display: none; }
.strip__track { display: flex; align-items: flex-end; gap: clamp(.8rem, 1.6vw, 1.6rem); width: max-content; padding: 1.4rem 0 .4rem; }
.plate { position: relative; flex: none; margin: 0; scroll-snap-align: center; }

/* each frame sits in its strip of film base: sprocket holes above and below */
.plate__btn {
  position: relative; display: block; padding: 26px 10px; border: 0; cursor: zoom-in; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(244, 241, 236, .82) 7px 17px, transparent 17px 26px) 0 8px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(244, 241, 236, .82) 7px 17px, transparent 17px 26px) 0 calc(100% - 8px) / 100% 10px no-repeat,
    #0B0A09;
}
.plate img { height: min(52vh, 560px); width: auto; border-radius: 1px; }
.plate__edge { position: absolute; top: 1.6rem; left: 18px; z-index: 2; color: #E2B04A; opacity: .8; font-size: .6rem; letter-spacing: .14em; transform: translateY(-100%); pointer-events: none; }
.plate figcaption { display: grid; gap: .1rem; margin-top: .9rem; width: 0; min-width: 100%; padding-inline: 10px; }
.plate figcaption b { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.3; }
.plate figcaption span { font-size: .9rem; color: rgba(244, 241, 236, .56); }
.plate__exif { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .2rem .9em; margin-top: .3rem; font-style: normal; font-size: .62rem; letter-spacing: .04em; color: rgba(244, 241, 236, .4); }
.plate figcaption .plate__exif span { font-size: inherit; color: inherit; }

/* the gold grease-pencil circle around the select */
.plate__circle { position: absolute; z-index: 3; top: -2.5%; left: -4%; width: 108%; height: 84%; overflow: visible; pointer-events: none; }
.plate__circle path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .95; }
.js-motion .plate__circle path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io) .3s; }
.js-motion .plate--select.is-circled .plate__circle path { stroke-dashoffset: 0; }

.plate--end {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  width: min(360px, 74vw); height: calc(min(52vh, 560px) + 52px); padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 3px; align-self: flex-start; background: var(--suite);
}
.plate--end p { margin: 0; }
.plate__end-k { color: var(--gold-soft); font-size: .95rem; }
.plate__end-t { font-family: var(--f-display); font-size: clamp(1.8rem, 1.3rem + 1.4vw, var(--t3)); font-weight: 300; line-height: 1.3; }
.plate--end p:nth-child(3) { color: var(--mute); font-size: .95rem; }
.plate--end .link-under { align-self: flex-start; }
.works__rail { height: 1px; margin-top: clamp(1.6rem, 3vw, 2.4rem); background: var(--line-dark); }
.works__rail span { display: block; height: 100%; background: var(--gold); transform-origin: right; transform: scaleX(var(--p, 0)); }

.works.is-pinned { padding: 0; }
.works.is-pinned .works__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 3vh; }
.works.is-pinned .strip { overflow: hidden; overflow: clip; scroll-snap-type: none; }
.works.is-pinned .strip__track { will-change: transform; }
.works.is-pinned .plate img { height: min(44vh, 540px); }
.works.is-pinned .plate--end { height: calc(min(44vh, 540px) + 70px); }

/* ---------- interlude: the film ---------- */
.reel { background: var(--film); padding: clamp(2rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem); }
.reel__screen { position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; background: #000; isolation: isolate; }
.reel__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%);
  opacity: 0; animation: reel 32s linear infinite; animation-delay: calc(var(--i, 0) * 4s); animation-play-state: paused;
}
.reel.is-playing .reel__slides img { animation-play-state: running; }
.reel.is-paused .reel__slides img { animation-play-state: paused !important; }
@keyframes reel { /* eight shots of 4 s: each holds 12.5% of the loop and crossfades into the next */
  0% { opacity: 0; transform: scale(1.02); }
  2.2% { opacity: 1; }
  12.5% { opacity: 1; }
  14.8% { opacity: 0; transform: scale(1.11); }
  100% { opacity: 0; transform: scale(1.11); }
}
.reel__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 50%);
}
.reel__hud { position: absolute; z-index: 2; top: 1.1rem; inset-inline: 1.3rem; display: flex; justify-content: space-between; color: rgba(244, 241, 236, .78); font-size: .68rem; }
.reel__rec { display: flex; align-items: center; gap: .45rem; }
.reel__rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.reel.is-paused .reel__rec::before { opacity: .35; }
.reel__title { position: absolute; z-index: 2; bottom: clamp(1.4rem, 3vw, 2.618rem); right: clamp(1.2rem, 3vw, 2.618rem); }
.reel__k { margin: 0 0 .3rem; color: var(--gold-soft); font-size: .95rem; }
.reel__title .display { font-size: clamp(var(--t3), 1.4rem + 3.4vw, var(--t4)); line-height: 1.12; }
.reel__chapter { display: flex; align-items: baseline; gap: .9rem; margin: .4rem 0 0; font-family: var(--f-display); font-size: clamp(1.1rem, .9rem + .5vw, var(--t1)); color: rgba(244, 241, 236, .9); }
.reel__chapter .mono { color: var(--gold); font-size: .66rem; }
.reel__bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244, 241, 236, .12); }
.reel__bar span { display: block; height: 100%; background: var(--gold); transform-origin: right; transform: scaleX(var(--p, 0)); }
.reel__toggle {
  position: absolute; z-index: 3; left: clamp(1.2rem, 3vw, 2.618rem); bottom: clamp(1.4rem, 3vw, 2.618rem);
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(244, 241, 236, .42);
  background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
  display: grid; place-items: center; transition: background-color .3s, border-color .3s;
}
.reel__toggle:hover { background: var(--bone); border-color: var(--bone); }
.reel__toggle i { display: block; width: 13px; height: 15px; border-inline: 4px solid var(--card); box-sizing: border-box; }
.reel__toggle:hover i { border-color: var(--film); }
.reel__toggle[aria-pressed="false"] i { width: 0; height: 0; border: 0; border-left: 14px solid var(--card); border-top: 8px solid transparent; border-bottom: 8px solid transparent; transform: translateX(2px); }
.reel__toggle[aria-pressed="false"]:hover i { border-left-color: var(--film); }

/* ---------- the session: a proof sheet on its real clock ---------- */
.session { background: var(--bone); color: var(--ink); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); }
.session__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.6rem 3rem; }
.session__title { font-size: clamp(var(--t3), 1.5rem + 3.6vw, 5.2rem); }
.session__deck { max-width: 30em; margin: 0; font-family: var(--f-serif); color: var(--stone-dark); }
.sheet { margin-top: clamp(3rem, 6vw, var(--t4)); }
.sheet__head { display: flex; justify-content: flex-end; gap: 1.6em; margin: 0 0 .9rem; font-size: .66rem; letter-spacing: .06em; color: var(--stone-dark); }
.sheet__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.sheet__frame { position: relative; display: grid; align-content: start; }
/* the six frames share one strip of film base, so the buttons touch */
.sheet__btn { padding: 26px 5px; border-radius: 0; }
.sheet__frame:first-child .sheet__btn { border-radius: 0 3px 3px 0; }
.sheet__frame:last-child .sheet__btn { border-radius: 3px 0 0 3px; }
.sheet__btn img { display: block; width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 1px; }
.sheet__n { position: absolute; top: 15px; left: 12px; z-index: 2; color: #E2B04A; opacity: .8; font-size: .56rem; letter-spacing: .14em; pointer-events: none; }
.sheet__t { margin-top: .9rem; padding-inline: 6px; font-size: .82rem; color: var(--ink); text-align: right; }
.sheet__x { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .1rem .8em; padding-inline: 6px; margin-top: .2rem; font-size: .6rem; letter-spacing: .04em; color: var(--stone-dark); }
.sheet__clock { display: block; width: 100%; height: 80px; margin-top: .6rem; overflow: visible; }
.sheet__clock path, .sheet__clock line { vector-effect: non-scaling-stroke; fill: none; }
.sheet__links path { stroke: var(--stone); stroke-width: 1; transition: stroke .3s, stroke-width .3s; }
.sheet__axis { stroke: rgba(20, 19, 18, .45); stroke-width: 1; }
.sheet__min line { stroke: rgba(20, 19, 18, .35); stroke-width: 1; }
.sheet__marks line { stroke: var(--ink); stroke-width: 1.6; transition: stroke .3s; }
.sheet__links path.is-on { stroke: var(--ink); stroke-width: 1.6; }
.sheet__marks line.is-on { stroke: var(--gold-ink); }
.js-motion .sheet__links path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-io) calc(var(--i, 0) * .12s), stroke .3s, stroke-width .3s; }
.js-motion .sheet__marks line { opacity: 0; transition: opacity .5s var(--ease) .9s, stroke .3s; }
.js-motion .sheet.is-timed .sheet__links path { stroke-dashoffset: 0; }
.js-motion .sheet.is-timed .sheet__marks line { opacity: 1; }
.sheet__scale { position: relative; height: 1.2rem; margin: .2rem 0 0; font-size: .66rem; color: var(--stone-dark); }
.sheet__scale span { position: absolute; top: 0; }
.sheet__scale span:first-child { left: 8.333%; transform: translateX(-50%); }
.sheet__scale span:last-child { right: 8.333%; transform: translateX(50%); }

/* ---------- the archive: all 28 photographs, in the order they were taken ---------- */
.gal { background: var(--bone); color: var(--ink); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); }
.gal__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.6rem 3rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.gal__title { font-size: clamp(var(--t3), 1.5rem + 3.6vw, 5.2rem); }
.gal__deck { max-width: 30em; margin: 0; font-family: var(--f-serif); color: var(--stone-dark); }
.gal__grid { columns: 4; column-gap: clamp(.8rem, 1.4vw, 1.2rem); margin: 0; padding: 0; list-style: none; }
.gal__item { break-inside: avoid; margin-bottom: clamp(.9rem, 1.6vw, 1.4rem); }
.gal__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: 1px; background: var(--suite); cursor: zoom-in; }
.gal__btn img { width: 100%; height: auto; }
.gal__n { display: block; margin-top: .35rem; font-size: .58rem; color: var(--stone); }
.gal.is-collapsed .gal__item:nth-child(n + 13) { display: none; }
.gal__more { display: block; margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; padding: .9rem 1.9rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .3s, color .3s; }
.gal__more:hover { background: var(--ink); color: var(--bone); }
.has-cursor .gal__btn { cursor: none; }

/* ---------- animation & motion: two films ---------- */
.motion { background: var(--suite); color: var(--bone); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); }
.motion__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.6rem 3rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.motion__title { font-size: clamp(var(--t3), 1.5rem + 3.6vw, 5.2rem); }
.motion__deck { max-width: 30em; margin: 0; font-family: var(--f-serif); color: var(--mute); }
.motion__grid { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start; }
.reelcard { display: grid; gap: 1.1rem; }
.reelcard__screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: #000; cursor: pointer; }
.reelcard__screen video { width: 100%; height: 100%; object-fit: cover; }
.reelcard__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 48%); pointer-events: none; }
.reelcard__play { position: absolute; z-index: 1; right: 1.1rem; bottom: 1rem; display: flex; align-items: center; gap: .75rem; color: var(--bone); font-size: .95rem; }
.reelcard__play i { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(244, 241, 236, .6); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.reelcard__play i::before { content: ""; border-left: 12px solid var(--bone); border-block: 7px solid transparent; transform: translateX(2px); transition: border-color .3s; }
.reelcard__screen:hover .reelcard__play i { background: var(--bone); border-color: var(--bone); }
.reelcard__screen:hover .reelcard__play i::before { border-left-color: var(--film); }
.reelcard__play .mono { color: var(--mute); }
.reelcard__text { display: flex; flex-direction: column; }
.reelcard__text h3 { order: -1; margin: 0 0 .5rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 1.6vw, var(--t3)); line-height: 1.25; }
.reelcard--lead .reelcard__text h3 { font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem); }
.reelcard__desc { margin: 0 0 .7rem; max-width: 36em; font-family: var(--f-serif); color: rgba(244, 241, 236, .8); }
.reelcard__kind, .reelcard__client { margin: 0; font-size: .88rem; color: var(--mute); }
.reelcard__meta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .2rem .9em; margin: .7rem 0 0; font-size: .6rem; color: rgba(244, 241, 236, .45); }
.motion__note { margin: clamp(2rem, 4vw, 3rem) 0 0; font-size: .8rem; color: rgba(244, 241, 236, .45); }
.player { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .97); color: var(--bone); overflow: hidden; }
.player[open] { display: grid; place-items: center; }
.player::backdrop { background: rgba(0, 0, 0, .6); }
.player video { width: min(100vw - 2 * var(--gutter), (100dvh - 150px) * 16 / 9); aspect-ratio: 16 / 9; background: #000; }
.player__title { position: absolute; top: 20px; right: 24px; margin: 0; font-family: var(--f-display); font-size: var(--t1); }

/* ---------- disciplines: a contents page ---------- */
.disc { background: var(--bone); color: var(--ink); padding: clamp(6rem, 12vw, 10rem) 0; }
.disc__title { font-size: clamp(var(--t3), 1.5rem + 3.6vw, 5.2rem); max-width: 12em; }
.disc__grid { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, var(--t4)); align-items: start; }
.disc__list { order: 1; list-style: none; margin: 0; padding: 0; }
.disc__stage { order: 2; position: sticky; top: 15vh; height: 70vh; overflow: hidden; border-radius: 2px; background: var(--suite); color: var(--bone); }

.disc__item { position: relative; padding: 1.25rem 0 1.4rem; }
.disc__item::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease);
}
.disc__item.is-active::before { transform: scaleX(1); }
.disc__item h3 { margin: 0 0 .3rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 1.8vw, var(--t3)); line-height: 1.25; color: #ADA99F; transition: color .45s; }
.disc__item p { margin: 0; max-width: 34em; font-family: var(--f-serif); color: var(--stone-dark); opacity: .5; transition: opacity .5s var(--ease); }
.disc__item.is-active h3 { color: var(--ink); }
.disc__item.is-active p { opacity: 1; }

.vis {
  position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s, --dot 1s var(--ease);
  --dot: 0px;
  -webkit-mask-image: radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + .6px));
          mask-image: radial-gradient(circle, #000 var(--dot), transparent calc(var(--dot) + .6px));
  -webkit-mask-size: 10px 10px; mask-size: 10px 10px;
}
.vis.is-active { opacity: 1; visibility: visible; --dot: 8px; transition: opacity .5s var(--ease), visibility 0s, --dot 1.1s var(--ease); }
.disc:not(.is-live) .vis *, .disc:not(.is-live) .vis *::before, .disc:not(.is-live) .vis *::after,
.vis:not(.is-active) *, .vis:not(.is-active) *::before, .vis:not(.is-active) *::after { animation-play-state: paused !important; }
.vis > img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slowpush { to { transform: scale(1.06); } }

.vis--photo img { object-position: 50% 36%; animation: slowpush 14s ease-in-out infinite alternate; }
.vf { position: absolute; inset: 7%; color: #fff; }
.vf i { position: absolute; width: 24px; height: 24px; border: 0 solid rgba(255, 255, 255, .9); }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.vf__focus { position: absolute; left: 50%; top: 32%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border: 1px solid #fff; animation: focus 4s var(--ease) infinite; }
@keyframes focus {
  0% { transform: scale(1.4); opacity: 0; border-color: #fff; }
  12% { opacity: 1; }
  30% { transform: scale(.9); }
  42% { transform: scale(1.03); }
  52%, 88% { transform: scale(1); border-color: var(--gold-soft); }
  100% { transform: scale(1); opacity: 0; border-color: var(--gold-soft); }
}
.vf__meter { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 140%); color: rgba(255, 255, 255, .85); font-size: .6rem; white-space: nowrap; }
.vf__af { position: absolute; top: 0; left: 50%; transform: translate(-50%, -160%); color: rgba(255, 255, 255, .85); font-size: .6rem; }

.cine { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
.cine img { width: 100%; aspect-ratio: 2.39 / 1; object-fit: cover; object-position: 50% 22%; animation: slowpush 12s ease-in-out infinite alternate; }
.cine__rec { position: absolute; top: 1.1rem; left: 1.2rem; display: flex; align-items: center; gap: .45rem; font-size: .62rem; color: rgba(244, 241, 236, .85); }
.cine__rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C8433A; }
.cine__tc { position: absolute; top: 1.1rem; right: 1.2rem; font-size: .62rem; color: rgba(244, 241, 236, .85); }

.vis--motion { background: var(--suite); }
.graph { position: absolute; inset: 8% 7% 24%; width: 86%; height: 68%; color: var(--bone); overflow: visible; }
.graph__handle { stroke: rgba(244, 241, 236, .38); stroke-width: 1; fill: none; }
.graph__key { fill: var(--bone); }
.graph__ctl { fill: var(--suite); stroke: var(--gold); stroke-width: 1.5; }
.graph__curve { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 4.8s var(--ease-io) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 40%, 100% { stroke-dashoffset: 0; } }
.graph__time { stroke: rgba(244, 241, 236, .5); stroke-width: 1; stroke-dasharray: 3 4; }
.graph__runner { fill: var(--bone); }
.graph__track { position: absolute; left: 7%; right: 7%; bottom: 13%; height: 1px; background: rgba(244, 241, 236, .22); direction: ltr; }
.graph__box { position: absolute; top: -11px; left: 0; width: 22px; height: 22px; background: var(--bone); border-radius: 2px; animation: ease-box 2.4s var(--ease-io) infinite alternate; }
@keyframes ease-box { to { left: calc(100% - 22px); transform: rotate(180deg); } }

.vis--drone { background: #0F1416; }
.drone__photo, .voice__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drone__photo { animation: slowpush 18s ease-in-out infinite alternate; }
.topo { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: .4; mix-blend-mode: screen; }
.topo__g { transform-origin: 200px 200px; animation: orbit 120s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.topo path { fill: none; stroke: rgba(244, 241, 236, .5); stroke-width: .6; }
.topo path.idx { stroke: rgba(216, 195, 155, .95); stroke-width: 1; }
.topo .flight { stroke: #fff; stroke-width: 1.1; stroke-dasharray: 4 5; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.topo .drone { fill: var(--gold-soft); }
.vis--drone::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 10, 12, .35), transparent 30%, transparent 70%, rgba(8, 10, 12, .45)); }
.hud { position: absolute; z-index: 2; inset: 1.1rem 1.2rem; color: rgba(244, 241, 236, .9); font-size: .6rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hud span { position: absolute; }
.hud__tl { top: 0; left: 0; } .hud__tr { top: 0; right: 0; } .hud__bl { bottom: 0; left: 0; } .hud__br { bottom: 0; right: 0; }
.hud__cross { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(244, 241, 236, .75); border-radius: 50%; }
.hud__cross::before, .hud__cross::after { content: ""; position: absolute; background: rgba(244, 241, 236, .75); }
.hud__cross::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.hud__cross::after { top: 50%; left: -14px; right: -14px; height: 1px; }
.hud__scan { position: absolute; inset-inline: -1.2rem; top: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(216, 195, 155, .08) 85%, rgba(216, 195, 155, .35) 100%); animation: scan 5s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

.grade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.grade--rec { filter: saturate(1.1) contrast(1.05); }
.grade--log { filter: saturate(.22) contrast(.7) brightness(1.16); clip-path: inset(0 calc(100% - var(--split)) 0 0); animation: wipe 6s var(--ease-io) infinite alternate; }
.grade__split { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: var(--bone); animation: wipe 6s var(--ease-io) infinite alternate; }
@keyframes wipe { from { --split: 22%; } to { --split: 78%; } }
.grade__l, .grade__r { position: absolute; top: 1.1rem; font-size: .62rem; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.grade__l { left: 1.2rem; } .grade__r { right: 1.2rem; }

.vis--voice { background: var(--suite); }
.voice__photo { filter: brightness(.6) saturate(.85); animation: slowpush 16s ease-in-out infinite alternate; }
.wave { position: absolute; z-index: 1; inset: auto 7% 15% 7%; height: 24%; display: flex; align-items: center; gap: 3px; direction: ltr; }
.wave span { flex: 1; height: 100%; border-radius: 2px; background: var(--bone); opacity: .9; transform: scaleY(var(--h)); animation: vo var(--t, 1.1s) ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.wave span.hot { background: var(--gold-soft); }
@keyframes vo { from { transform: scaleY(calc(var(--h) * .22)); } to { transform: scaleY(var(--h)); } }
.wave__db { position: absolute; z-index: 2; right: 1.2rem; bottom: 1.1rem; font-size: .62rem; color: var(--gold-soft); }

.vis--product img { object-position: 50% 50%; animation: slowpush 16s ease-in-out infinite alternate; }

/* ---------- kit: anatomy of a frame ---------- */
.kit { background: var(--suite); color: var(--bone); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); }
.kit__title { font-size: clamp(var(--t3), 1.8rem + 5vw, 6.4rem); }
.kit__deck { margin: 1.2rem 0 0; max-width: 32em; font-family: var(--f-serif); font-size: var(--t1); line-height: 1.7; color: var(--mute); }

.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, var(--t4)); }
.anatomy__figure { order: 2; position: sticky; top: 92px; margin: 0; height: max-content; width: min(100%, calc((100vh - 140px) / 1.02)); justify-self: end; }
.anatomy__steps { order: 1; list-style: none; margin: 0; padding: 0; }
.anatomy__frame { position: relative; aspect-ratio: 1280 / 912; overflow: hidden; background: #000; }
.anatomy__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1.1s var(--ease), clip-path 1.1s var(--ease-io); }
.anatomy__img--log { filter: saturate(.22) contrast(.66) brightness(1.18); }
.anatomy__img--grade { filter: saturate(1.08) contrast(1.06); clip-path: inset(0 0 0 100%); }
.anatomy[data-step="3"] .anatomy__img--grade { clip-path: inset(0 0 0 50%); }
.anatomy[data-step="4"] .anatomy__img--grade { clip-path: inset(0 0 0 0); }
.anatomy__nodes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.anatomy[data-step="3"] .anatomy__nodes { opacity: 1; }
.anatomy__nodes .node rect { fill: rgba(26, 26, 26, .86); stroke: rgba(244, 241, 236, .4); }
.anatomy__nodes .node text { direction: ltr; text-anchor: start; }
.anatomy__nodes .node text.n { fill: var(--gold-soft); font: 400 10px var(--f-mono); }
.anatomy__nodes .node text.t { fill: var(--bone); font: 500 11.5px var(--f-mono); letter-spacing: .02em; }
.anatomy__nodes .link { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 4; fill: none; }
.anatomy__nodes .window { fill: none; stroke: var(--gold-soft); stroke-width: 2.2; stroke-dasharray: 6 5; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .85)); }
/* 2.39:1 letterbox inside a 1280x912 frame: each bar is (1 - 1.4035 / 2.39) / 2 = 20.6% */
.anatomy__letter { position: absolute; inset: 0; pointer-events: none; }
.anatomy__letter::before, .anatomy__letter::after { content: ""; position: absolute; inset-inline: 0; height: 0; background: #000; transition: height 1.1s var(--ease); }
.anatomy__letter::before { top: 0; } .anatomy__letter::after { bottom: 0; }
.anatomy[data-step="4"] .anatomy__letter::before, .anatomy[data-step="4"] .anatomy__letter::after { height: 20.6%; }
/* the waveform sits inside the viewer, as in a grading suite */
.anatomy__scopes { position: absolute; z-index: 2; left: 2.2%; top: 3%; width: 34%; }
.scope { position: relative; aspect-ratio: 300 / 140; background: rgba(8, 8, 8, .82); border: 1px solid rgba(244, 241, 236, .12); border-radius: 2px; overflow: hidden; transition: opacity .8s var(--ease); }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .9s var(--ease); }
.scope canvas + canvas { opacity: 0; }
.anatomy[data-step="3"] .scope canvas + canvas, .anatomy[data-step="4"] .scope canvas + canvas { opacity: 1; }
.anatomy[data-step="3"] .scope canvas:first-child, .anatomy[data-step="4"] .scope canvas:first-child { opacity: 0; }
.scope .mono { position: absolute; top: .4rem; left: .55rem; font-size: .52rem; color: rgba(244, 241, 236, .55); }
.anatomy[data-step="1"] .scope { opacity: .55; }

/* the grading panel: only the knurled rings turn, the balls stay put */
.grade-panel { position: relative; margin-top: .8rem; background: #000; border-radius: 2px; overflow: hidden; }
.grade-panel__deck { position: relative; }
.grade-panel__deck > img { display: block; width: 100%; height: auto; }
/* rings fitted to the photo: centres (289.8, 509.2), (765.2, 510.2), (1239.6, 509.4), r 178.
   Only the knurled band (r 141-175) turns; the bevel's fixed lighting stays put. */
.grade-panel__ring {
  position: absolute; width: 23.177%; height: 82.791%;
  background: url('../img/kit/panel-top.webp') var(--x) var(--y) / 431.46% 120.79% no-repeat;
  -webkit-mask: radial-gradient(closest-side, transparent 78.6%, #000 79.6%, #000 97.6%, transparent 98.6%);
          mask: radial-gradient(closest-side, transparent 78.6%, #000 79.6%, #000 97.6%, transparent 98.6%);
  transform: rotate(var(--rot, 0deg)); will-change: transform;
}
/* an index notch rides on each ring so its rotation reads */
.grade-panel__ring::after { content: ""; position: absolute; left: 50%; top: 1.8%; width: 2.4%; height: 8.2%; border-radius: 2px; background: var(--bone); box-shadow: 0 0 6px rgba(244, 241, 236, .5); transform: translateX(-50%); }
.grade-panel__read { position: relative; height: 30px; background: #0B0B0B; direction: ltr; }
.grade-panel__read span { position: absolute; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: .62rem; color: rgba(244, 241, 236, .55); }
.grade-panel__read b { font-weight: 500; color: var(--gold-soft); margin-left: .45em; }

.anatomy__step { min-height: 62vh; padding: 2rem 0; opacity: .32; transition: opacity .6s var(--ease); }
.anatomy__step:first-child { padding-top: 0; }
.anatomy__step.is-on { opacity: 1; }
.anatomy__n { display: block; color: var(--gold); font-size: .75rem; margin-bottom: .5rem; }
.anatomy__step h3 { margin: 0 0 .7rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(var(--t2), 1.2rem + 1.4vw, var(--t3)); line-height: 1.25; }
.anatomy__step p { margin: 0; max-width: 30em; font-family: var(--f-serif); color: var(--mute); font-size: 1.05em; line-height: 1.85; }

.kit__sub { margin: clamp(4rem, 8vw, 6.854rem) 0 1.4rem; font-family: var(--f-display); font-size: var(--t3); line-height: 1.2; }
.bento__top { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(.8rem, 1.4vw, 1.3rem); }
.bento__stack { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(.8rem, 1.4vw, 1.3rem); }
.bento__bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.8rem, 1.4vw, 1.3rem); margin-top: clamp(.8rem, 1.4vw, 1.3rem); }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 2px; background: #000; min-height: 200px; }
.tile--a { aspect-ratio: 1.618 / 1; }
.tile--d, .tile--e { height: clamp(220px, 23.6vw, 380px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: .1rem; padding: 2.6rem 1.3rem 1.1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.tile figcaption b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + .6vw, var(--t2)); line-height: 1.3; }
.tile figcaption span { font-size: .88rem; color: rgba(244, 241, 236, .72); }
.kit__note { margin: 1.2rem 0 0; font-size: .82rem; color: rgba(244, 241, 236, .4); }

/* ---------- the bag: the real kit, as a catalogue page ---------- */
.gear { background: var(--bone); color: var(--ink); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); }
.gear__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.6rem 3rem; margin-bottom: clamp(3rem, 6vw, var(--t4)); }
.gear__title { font-size: clamp(var(--t3), 1.5rem + 3.6vw, 5.2rem); }
.gear__deck { max-width: 30em; margin: 0; font-family: var(--f-serif); color: var(--stone-dark); }
.gear__group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4.236fr); gap: 1.6rem clamp(2rem, 4vw, 4rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line-paper); }
.gear__label h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 1.4vw, var(--t3)); line-height: 1.2; }
.gear__label p { margin: .4rem 0 0; font-size: .9rem; color: var(--stone-dark); }
.gear__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start; }
.item { margin: 0; display: grid; align-content: start; }
.item__stage { aspect-ratio: 1.618 / 1; padding: 3%; }
.item__stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.item figcaption { display: grid; gap: .2rem; margin-top: .5rem; }
.item__code { font-size: .62rem; letter-spacing: .1em; color: var(--stone-dark); text-align: right; }
.item__name { font-family: var(--f-text); font-weight: 500; font-size: 1.15rem; line-height: 1.35; text-align: right; }
.item__role { font-family: var(--f-serif); font-size: .95rem; line-height: 1.7; color: var(--stone-dark); }
.item__spec { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .2rem .9em; margin-top: .25rem; font-size: .62rem; letter-spacing: .05em; color: var(--ink); }
/* how many of this issue's 28 photographs came through this piece, read from the files */
.item__use { display: grid; gap: .4rem; margin-top: .8rem; font-size: .82rem; color: var(--stone-dark); }
.tally { position: relative; display: block; height: 7px; background: repeating-linear-gradient(to left, rgba(20, 19, 18, .13) 0 calc(100% / 28 - 2px), transparent calc(100% / 28 - 2px) calc(100% / 28)); }
.tally::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to left, var(--ink) 0 calc(100% / 28 - 2px), transparent calc(100% / 28 - 2px) calc(100% / 28)); clip-path: inset(0 0 0 calc(100% - var(--n) * 100% / 28)); }
.licence { grid-column: span 2; align-self: start; padding: clamp(1.6rem, 3vw, 2.6rem); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -7px; }
.licence__k { margin: 0; font-size: .72rem; letter-spacing: .22em; text-align: right; }
.licence__t { margin: .7rem 0 .2rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 1.4vw, var(--t3)); line-height: 1.3; }
.licence__en { margin: 0 0 1.1rem; font-size: .72rem; color: var(--stone-dark); text-align: right; }
.licence__d { margin: 0 0 1.3rem; max-width: 34em; font-family: var(--f-serif); color: var(--stone-dark); }
.gear__note { margin: 1.6rem 0 0; font-size: .8rem; color: var(--stone); }
.gear .link-under:hover, .disc .link-under:hover, .qa .link-under:hover { color: var(--gold-ink); }

/* ---------- method ---------- */
.method { background: var(--suite); color: var(--bone); padding: clamp(3rem, 6vw, 5rem) 0 clamp(6rem, 12vw, 10rem); }
.timeline {
  --p: 0;
  position: relative; list-style: none; margin: clamp(3rem, 6vw, var(--t4)) 0 0; padding: 3rem 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.4rem);
}
.timeline__rail {
  position: absolute; top: 0; inset-inline: 0; height: 3px; transform: translateY(-1px);
  background: radial-gradient(circle, rgba(244, 241, 236, .45) .9px, transparent 1.2px) 0 50% / 8px 3px repeat-x;
}
.timeline__rail span { position: absolute; inset: 1px 0; background: var(--gold); transform-origin: right; transform: scaleX(var(--p)); }
.timeline__rail b {
  position: absolute; top: 50%; right: calc(var(--p) * 100%); width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); transform: translate(50%, -50%);
}
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -3rem; right: 0; width: 9px; height: 9px; border-radius: 50%;
  transform: translateY(-50%); background: var(--suite); border: 1px solid rgba(244, 241, 236, .4); transition: background .4s, border-color .4s;
}
.step.is-on::before { background: var(--gold); border-color: var(--gold); }
.step__tc { color: var(--gold); font-size: .62rem; }
.step h3 { margin: .7rem 0 .55rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + .8vw, var(--t2)); line-height: 1.25; }
.step p { margin: 0; font-size: .95rem; color: var(--mute); }
.js-motion .step { opacity: .35; transition: opacity .6s var(--ease); }
.js-motion .step.is-on { opacity: 1; }

/* ---------- booking: commissions ---------- */
.booking { position: relative; isolation: isolate; overflow: hidden; background: var(--suite); color: var(--bone); padding: clamp(6rem, 12vw, 10rem) 0 clamp(17rem, 38vw, 34rem); }
.booking__land {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(440px, 52vw, 960px); pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, #0A1630 30%, #1F3F75 44%, #5F84BD 52.5%, #E3C6A6 58%, #E39A64 60.4%, #B05530 62.6%, #3A190C 70%, #000 86%);
}
.booking__land img { position: absolute; left: 0; top: 60%; width: 100%; height: 40%; object-fit: cover; object-position: 50% 0%; filter: brightness(.9) saturate(.95); }
.booking__land::after { content: ""; position: absolute; inset: 0 0 auto; height: 30%; background: linear-gradient(var(--suite), transparent); pointer-events: none; }
.booking__glow { position: absolute; left: 50%; top: 60%; width: 120%; height: 40%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 190, 130, .36), rgba(230, 120, 60, .1) 50%, transparent 74%); mix-blend-mode: screen; }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: clamp(2.4rem, 6vw, 6.854rem); align-items: start; }
.booking__lede { margin: 1.4rem 0 0; max-width: 30rem; font-family: var(--f-serif); font-size: var(--t1); line-height: 1.75; color: rgba(244, 241, 236, .8); }
.contact { margin: 2.4rem 0 0; display: grid; gap: .9rem; }
.contact div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; gap: 1rem; }
.contact dt { color: var(--stone); font-size: .9rem; }
.contact dd { margin: 0; }
.contact a { text-decoration: none; font-size: 1.06rem; transition: color .3s; }
.contact a:hover { color: var(--gold-soft); }
.booking__hours { margin: 1.6rem 0 0; color: var(--stone); font-size: .9rem; }

.brief { background: var(--card); color: var(--ink); border-radius: 3px; padding: clamp(1.5rem, 3vw, 2.618rem); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75); }
.brief__t { margin: 0 0 1.6rem; font-family: var(--f-display); font-weight: 400; font-size: var(--t3); line-height: 1.2; }
.field { display: grid; gap: .3rem; margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { padding: 0; font-size: .88rem; color: var(--stone-dark); }
.field legend { margin-bottom: .6rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .55rem 0; border: 0; border-bottom: 1px solid rgba(20, 19, 18, .22); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; outline: none; transition: border-color .3s; color-scheme: light;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #A5A29A; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-left: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23141312' stroke-width='1.2'/%3E%3C/svg%3E") left 2px center / 10px 6px no-repeat;
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.25rem; }
.field--row .field { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chips span { display: inline-block; padding: .42rem .95rem; border: 1px solid rgba(20, 19, 18, .18); border-radius: 999px; font-size: .9rem; line-height: 1.6; transition: background-color .25s, color .25s, border-color .25s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.chips input:focus-visible + span { outline: 1px solid var(--gold-ink); outline-offset: 3px; }
.brief__error { margin: 0 0 1rem; color: #8A3B22; font-size: .92rem; }
.btn {
  display: block; width: 100%; padding: 1.05rem 1.5rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--bone);
  font-weight: 500; text-align: center; cursor: pointer; transition: background-color .35s, color .35s;
}
.btn:hover { background: var(--gold-ink); }
.brief__note { margin: .85rem 0 0; text-align: center; font-size: .82rem; color: var(--stone); }

/* ---------- appendix: Q&A ---------- */
.qa { background: var(--bone-2); color: var(--ink); padding: clamp(5rem, 10vw, 7rem) 0; }
.qa__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.qa .display { font-size: clamp(2.4rem, 1.4rem + 3vw, var(--t4)); }
.qa__list details + details { border-top: 1px solid var(--line-paper); }
.qa__list summary {
  display: flex; align-items: baseline; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.05rem + .7vw, var(--t2)); line-height: 1.4;
}
.qa__list summary::-webkit-details-marker { display: none; }
.qa__list summary::after { content: "+"; margin-inline-start: auto; font-family: var(--f-mono); font-size: 1.2rem; color: var(--gold-ink); transition: transform .35s var(--ease); }
.qa__list details[open] summary::after { transform: rotate(45deg); }
.qa__list details p { margin: 0 0 1.4rem; max-width: 34em; color: #45433E; font-family: var(--f-serif); }
.qa__list details a { color: var(--gold-ink); }

/* ---------- colophon ---------- */
.colophon { background: var(--film); color: var(--bone); padding: clamp(4rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.colophon__logo { width: min(760px, 78vw); margin: 0 auto clamp(2.6rem, 5vw, 4.236rem); }
.colophon__logo svg { width: 100%; height: auto; }
.colophon__band { margin-top: 4.4%; padding: 1.4% 2.2%; background: var(--bone); direction: ltr; }
.colophon__band img { width: 56%; }
.colophon__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.colophon h3 { margin: 0 0 .9rem; color: var(--stone); font-size: .9rem; font-weight: 500; }
.colophon p { margin: 0; font-size: .95rem; color: rgba(244, 241, 236, .7); }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.colophon a { text-decoration: none; opacity: .86; transition: color .3s, opacity .3s; }
.colophon a:hover { color: var(--gold-soft); opacity: 1; }
.colophon__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--stone); }

/* ---------- floating whatsapp ---------- */
.wa {
  position: fixed; left: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: .55rem; padding: .6rem 1.05rem;
  border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease), background-color .3s;
}
.wa:hover { background: #fff; }
.js-motion .wa { transform: translateY(170%); }
.js-motion .wa.is-on { transform: none; }
.wa__dot { width: 7px; height: 7px; border-radius: 50%; background: #25D366; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .97); color: var(--bone); overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__fig { height: 100%; margin: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 70px clamp(16px, 7vw, 96px) 26px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox__fig figcaption { margin-top: 1rem; font-family: var(--f-display); font-size: var(--t1); text-align: center; }
.lightbox__count { position: absolute; top: 22px; right: 24px; margin: 0; color: var(--gold); }
.lightbox__btn { position: absolute; padding: .5rem 1rem; border: 1px solid rgba(244, 241, 236, .26); border-radius: 999px; background: rgba(0, 0, 0, .5); cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.lightbox__btn:hover { background: var(--bone); border-color: var(--bone); color: var(--film); }
.lightbox__close { top: 16px; left: 16px; font-size: .88rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; font-size: 1.4rem; line-height: 1; }
.lightbox__prev { right: 16px; } .lightbox__next { left: 16px; }

/* ---------- cursor label over the strip ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 85; pointer-events: none; width: 0; height: 0; }
.cursor span {
  position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bone); color: var(--film); font-size: .88rem; font-weight: 500;
  transform: scale(0); transition: transform .45s var(--ease);
}
.cursor.is-on span { transform: scale(1); }
.has-cursor .plate__btn { cursor: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .bar__name { display: none; }
}
@media (max-width: 1040px) {
  .bar__nav, .bar__cta { display: none; }
  .bar__menu { display: flex; }
}
@media (max-width: 899px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__lens { position: relative; top: 0; width: min(340px, 82%); margin-inline: auto; }

  .plate img { height: auto; width: 68vw; max-height: 58svh; object-fit: cover; }
  .plate--wide img { width: 82vw; }
  .plate--end { height: auto; min-height: 50svh; }

  .sheet__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
  .sheet__frame .sheet__btn { border-radius: 0; }
  .sheet__frame:nth-child(3n + 1) .sheet__btn { border-radius: 0 3px 3px 0; }
  .sheet__frame:nth-child(3n) .sheet__btn { border-radius: 3px 0 0 3px; }
  .sheet__clock, .sheet__scale { display: none; }
  .gal__grid { columns: 3; }
  .motion__grid { grid-template-columns: 1fr; }
  .reelcard__play { inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
  .reelcard__play > span { display: none; }
  .reelcard__play i { width: 56px; height: 56px; background: rgba(0, 0, 0, .45); }
  .reelcard__screen::after { display: none; }

  .reel__screen { aspect-ratio: 4 / 5; }
  .reel__screen::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-block: 9vw solid #000; }
  .reel__toggle { bottom: auto; top: calc(9vw + 2.4rem); }

  .disc__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .disc__stage { order: 0; top: 64px; height: 38svh; z-index: 2; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35); }
  .disc__list { order: 1; }

  .anatomy { grid-template-columns: 1fr; }
  .anatomy__figure { order: 0; top: 64px; z-index: 2; background: var(--suite); padding-bottom: .6rem; }
  .anatomy__steps { order: 1; }
  .anatomy__step { min-height: 46svh; }
  .anatomy__figure { width: 100%; }

  .gear__group { grid-template-columns: 1fr; }
  .gear__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .licence { grid-column: 1 / -1; }

  .bento__top, .bento__bottom { grid-template-columns: 1fr; }
  .bento__stack { grid-template-rows: none; }
  .tile, .tile--a, .tile--d, .tile--e { aspect-ratio: 4 / 3; height: auto; }

  .timeline { grid-template-columns: 1fr; gap: 2.2rem; padding: 0; padding-inline-start: 2.2rem; }
  .timeline__rail { top: 0; bottom: 0; right: 0; left: auto; width: 3px; height: auto; transform: translateX(1px);
    background: radial-gradient(circle, rgba(244, 241, 236, .45) .9px, transparent 1.2px) 50% 0 / 3px 8px repeat-y; }
  .timeline__rail span { inset: 0 1px; transform-origin: top; transform: scaleY(var(--p)); }
  .timeline__rail b { top: calc(var(--p) * 100%); right: 50%; transform: translate(50%, -50%); }
  .step::before { top: .55rem; right: -2.2rem; transform: translate(50%, -50%); }

  .booking__grid { grid-template-columns: 1fr; }
  .qa__grid { grid-template-columns: 1fr; }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .field--row { grid-template-columns: 1fr; }
  .sheet__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gear__items { grid-template-columns: 1fr; }
  .gal__grid { columns: 2; }
  .sheet__frame:nth-child(n) .sheet__btn { border-radius: 0; }
  .sheet__frame:nth-child(odd) .sheet__btn { border-radius: 0 3px 3px 0; }
  .sheet__frame:nth-child(even) .sheet__btn { border-radius: 3px 0 0 3px; }
  .sheet__head { flex-wrap: wrap; gap: .3rem 1.2em; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reel__slides img:first-child { opacity: 1; }
  .vis { -webkit-mask-image: none; mask-image: none; }
  .anatomy__step { opacity: 1; min-height: 0; }
}
