/* ==========================================================================
   Ahmad Khairulikhwan — cinematic portfolio
   Bodoni Moda for titles and numerals, Archivo for everything else.
   ========================================================================== */
/* fonts are self-hosted (SIL Open Font License): Bodoni Moda by Owen Earl, Archivo by Omnibus-Type */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
:root {
  --ink: #0d0c0b;
  --graphite: #1c1a17;
  --paper: #efeae2;
  --fog: rgba(239, 234, 226, .7);
  --mist: rgba(239, 234, 226, .44);
  --line: rgba(239, 234, 226, .16);
  --brass: #c9a66b;
  --glass: rgba(18, 17, 15, .46);
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4.4vw, 76px);
  --ease: cubic-bezier(.22, .7, .12, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* the site is dark by design; both theme hooks keep the same palette */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #0d0c0b; --paper: #efeae2; } }
:root[data-theme="dark"] { --ink: #0d0c0b; --paper: #efeae2; }

*, *::before, *::after { box-sizing: inherit; }
html { background: var(--ink); scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped, html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 4px; }
::selection { background: rgba(201, 166, 107, .38); color: var(--paper); }
.skip { position: fixed; z-index: 120; left: var(--pad); top: -80px; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 13px; }
.skip:focus { top: calc(12px + var(--safe-t)); }

/* ---------- stage ---------- */
.stage {
  position: fixed; left: 0; top: 0; z-index: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden;
  background: var(--ink) url("../../media/films/serai-first.jpg") 50% 50% / cover no-repeat;
}
@media (orientation: portrait) { .stage { background-image: url("../../media/films/serai-portrait-first.jpg"); } }
.stage::after { /* first paint: the poster graded like the lens opening */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 46%, rgba(13, 12, 11, .3), rgba(13, 12, 11, .76));
  transition: opacity 1.2s var(--ease);
}
.is-gl .stage::after, .is-fallback .stage::after { opacity: 0; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s var(--ease); }
.is-gl .stage__canvas { opacity: 1; }
.stage__fallback { position: absolute; inset: 0; }
.fb { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 50%; }
.fb img, .fb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb video { opacity: 0; }
.is-gl .stage__fallback { opacity: .001; }
.stage__shade { position: absolute; inset: 0; background: #070605; opacity: 0; pointer-events: none; }
.is-gl .stage__shade { display: none; }

/* ---------- scenes ---------- */
.journey { position: relative; z-index: 1; }
.scene { position: relative; }
.scene--opening, .scene--film, .scene--bridge { height: calc(var(--len, 300) * 1vh); }

/* fixed title cards, faded and moved by the timeline */
.card { position: fixed; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.card.is-on { visibility: visible; }
.card--title::before, .card--facts::before {
  content: ""; position: absolute; z-index: -1; inset: -45% -35% -35% -25%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 9, 8, .6), rgba(10, 9, 8, 0));
}

.card--name {
  top: 0; bottom: 0; left: 0; width: 70%; padding: 0 var(--pad);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.name {
  margin: 0; font-family: var(--serif); font-weight: 500; font-size: min(6vw, 11vh);
  line-height: .94; letter-spacing: .035em; text-shadow: 0 2px 50px rgba(0, 0, 0, .45);
}
.name span { display: block; }
.roles { margin: 1.7em 0 0; font-size: 11px; font-weight: 500; font-stretch: 118%; letter-spacing: .4em; color: var(--fog); }
.roles i { font-style: normal; color: var(--brass); margin: 0 .35em; }
.js .name__a, .js .name__b, .js .roles { opacity: 0; }
.is-ready .name__a, .is-ready .name__b, .is-ready .roles { animation: focusIn 2.2s var(--ease) both; }
.is-ready .name__b { animation-delay: .16s; }
.is-ready .roles { animation-delay: .7s; }
@keyframes focusIn { from { opacity: 0; filter: blur(12px); transform: translateY(10px); } to { opacity: 1; filter: blur(0); transform: none; } }

.card--meta {
  left: var(--pad); right: var(--pad); bottom: calc(24px + var(--safe-b));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  font-size: 10.5px; font-weight: 500; font-stretch: 116%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog);
}
.meta__place { justify-self: start; display: flex; gap: 1.6em; align-items: baseline; }
.meta__tc { letter-spacing: .14em; color: var(--mist); font-variant-numeric: tabular-nums; }
.meta__cue { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.meta__cue i { width: 1px; height: 30px; background: linear-gradient(var(--paper), rgba(239, 234, 226, 0)); transform-origin: top; animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.card--journey {
  left: var(--pad); top: 0; bottom: 0; width: min(46vw, 680px);
  display: flex; flex-direction: column; justify-content: center; padding: calc(10vh + var(--safe-t)) 0 calc(10vh + var(--safe-b));
}
.journey-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: min(7.4vw, 12vh); line-height: .9; letter-spacing: .07em; text-shadow: 0 4px 60px rgba(0, 0, 0, .35); }
.journey-line { margin: .9em 0 0; max-width: 26ch; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 28px); line-height: 1.35; }
.chapters { list-style: none; margin: 2.2em 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .55em 2.8em; font-size: 13px; letter-spacing: .04em; color: var(--fog); }
.chapters span { display: inline-block; min-width: 1.4em; font-family: var(--serif); font-size: 15px; color: var(--brass); }

.card--title { left: var(--pad); bottom: calc(var(--pad) + 40px + var(--safe-b)); max-width: min(92vw, 1100px); }
.card__chapter { margin: 0 0 .25em; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.5vw, 24px); color: var(--fog); }
.world-title {
  margin: 0 0 0 -.04em; font-family: var(--serif); font-weight: 400; font-size: min(10.5vw, 188px, calc(88vw / (var(--n, 6) * .78)));
  line-height: .84; letter-spacing: .05em; text-shadow: 0 4px 60px rgba(0, 0, 0, .32);
}
.card__meta { margin: 1.2em 0 0; font-size: 10.5px; font-weight: 500; font-stretch: 116%; letter-spacing: .26em; text-transform: uppercase; color: var(--mist); }
.card__line { margin: .9em 0 0; max-width: 34ch; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.45; }
.card--facts {
  right: var(--pad); bottom: calc(var(--pad) + 40px + var(--safe-b)); width: min(440px, 84vw); padding: 20px 24px 22px; border-radius: 3px;
  background: rgba(14, 13, 12, .44); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(239, 234, 226, .14); box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.card--facts::before { display: none; }
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: .1em 1em; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2vw, 32px); line-height: 1.15; }
.facts b { font-style: normal; font-weight: 500; font-size: 1.7em; margin-right: .16em; letter-spacing: .01em; }
.facts--small { margin-top: 1em; font-size: clamp(16px, 1.35vw, 21px); }
.facts--small b { font-size: 1.45em; }
.card--facts, .card--title .card__line, .work__intro, .tl__note, .end__line { text-shadow: 0 1px 18px rgba(0, 0, 0, .55); }
.card__role { margin: 1em 0 0; font-size: 14px; line-height: 1.5; color: var(--fog); max-width: 40ch; }
.card--facts .card__role:first-child { margin-top: 0; font-size: 15px; color: var(--paper); }
.card__note { margin: .7em 0 0; font-size: 12px; color: var(--mist); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; z-index: 20; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(18px + var(--safe-t)) var(--pad) 18px; pointer-events: none;
}
.bar::before { content: ""; position: absolute; inset: 0 0 -46px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(10, 9, 8, .44), rgba(10, 9, 8, 0)); }
.bar > * { pointer-events: auto; }
.bar__mark { justify-self: start; display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; }
.bar__ak { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; }
.bar__name { font-size: 11px; font-stretch: 116%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog); }
.bar__chapter { justify-self: center; margin: 0; display: flex; align-items: baseline; gap: .5em; font-family: var(--serif); font-style: italic; font-size: 16px; white-space: nowrap; }
.bar__num { font-style: normal; font-size: 14px; color: var(--brass); }
.bar__num:empty { display: none; }
.bar__nav { justify-self: end; display: flex; gap: clamp(16px, 2vw, 30px); }
.bar__link { position: relative; padding: 6px 0; font-size: 13px; letter-spacing: .02em; text-decoration: none; opacity: .84; transition: opacity .3s; }
.bar__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.bar__link:hover { opacity: 1; }
.bar__link:hover::after { transform: scaleX(1); }
.bar__menu { display: none; justify-self: end; padding: 8px 0 8px 12px; font-size: 13px; letter-spacing: .02em; }

/* ---------- HIRE ME ---------- */
.hire {
  position: fixed; z-index: 30; right: var(--pad); bottom: calc(20px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(239, 234, 226, .24); box-shadow: 0 10px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .07);
  font-size: 11px; font-weight: 600; font-stretch: 120%; letter-spacing: .26em; line-height: 1;
  transition: border-color .4s, background-color .4s, transform .4s var(--ease);
}
.hire i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201, 166, 107, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(201, 166, 107, 0); } }
.hire:hover { border-color: rgba(201, 166, 107, .7); background-color: rgba(24, 22, 19, .62); }
.hire:active { transform: scale(.97); }

/* ---------- shared text links and buttons ---------- */
.link { display: inline-flex; align-items: center; gap: .6em; padding: 6px 0; font-size: 13px; letter-spacing: .03em; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .4s, color .4s; }
.link:hover { border-color: var(--brass); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: transform .4s var(--ease), background-color .4s; }
.btn--primary { background: var(--paper); color: #141210; }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--block { width: 100%; }

/* ---------- work sections ---------- */
.work { padding: 26vh var(--pad) 22vh; }
.work__inner { max-width: 1480px; margin: 0 auto; }
.work__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 1.7vw, 30px); align-items: end; }
.work__title { grid-column: 1 / 8; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(58px, 8.6vw, 150px); line-height: .86; letter-spacing: .01em; }
.work__title em { display: block; margin-top: .12em; font-size: .36em; letter-spacing: .01em; color: var(--fog); }
.work__intro { grid-column: 1 / 6; margin: 1.4em 0 0; max-width: 42ch; color: var(--fog); }
.work__actions { grid-column: 1 / 6; margin: 1.2em 0 0; }
.work__index { grid-column: 8 / 13; grid-row: 1 / 4; align-self: end; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; }
.work__cat { padding: .06em 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 40px); line-height: 1.12; opacity: .88; transition: opacity .3s, transform .5s var(--ease); }
.work__cat sup { margin-left: .45em; font-family: var(--sans); font-size: 11px; letter-spacing: .04em; color: var(--brass); vertical-align: super; }
.work__cat:hover { opacity: 1; transform: translateX(6px); }
.work__cat[disabled] { opacity: .34; cursor: default; transform: none; }

.spread { position: relative; margin-top: clamp(120px, 20vh, 240px); }
.spread__head { margin-bottom: clamp(18px, 2.4vh, 30px); }
.spread__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5vw, 88px); line-height: .9; }
.spread__meta { margin: .7em 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1.4em; font-size: 13px; color: var(--fog); }

.tile { position: relative; margin: 0; --rv: 1; --py: 0px; --sc: 1; }
.js .tile.rv { --rv: 0; }
.tile[data-depth] { transform: translate3d(0, var(--py), 0); }
.tile__btn { position: relative; display: block; width: 100%; aspect-ratio: var(--ratio, 3 / 2); overflow: hidden; background: rgba(239, 234, 226, .04); box-shadow: 0 34px 90px -30px rgba(0, 0, 0, .7); }
.tile__btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(239, 234, 226, .07); }
.tile__clip { position: absolute; inset: 0; overflow: hidden; }
.tile__img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.tile__img.is-loaded { opacity: 1; }
.rv--mask .tile__btn { box-shadow: none; background: transparent; }
.rv--mask .tile__clip { clip-path: inset(calc((1 - var(--rv)) * 13%) calc((1 - var(--rv)) * 8%)); }
.rv--mask .tile__img { transform: scale(calc(1.12 - var(--rv) * .12)); }
.rv--rise { transform: translate3d(0, calc(var(--py) + (1 - var(--rv)) * 56px), 0) scale(calc(.95 + var(--rv) * .05)); }
.tile__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__badge { position: absolute; left: 14px; bottom: 12px; padding: 6px 11px; border-radius: 999px; font-size: 11px; letter-spacing: .05em; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.tile__play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 1px solid rgba(239, 234, 226, .55); background: rgba(14, 13, 12, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .5s var(--ease), border-color .4s; }
.tile__play::after { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--paper); }
.tile__btn:hover .tile__play { transform: scale(1.06); border-color: var(--brass); }
.tile__cap { margin-top: .7em; font-size: 12px; color: var(--mist); }
.tile.is-broken { display: none; }

/* hero: one full-bleed frame revealed through a mask, supporting frames overlapping its edge */
.pat-hero__stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.pat-hero__stage .tile__btn { aspect-ratio: auto; height: min(88vh, 56.25vw); }
.pat-hero__stage.is-portrait { width: auto; margin-left: 0; display: flex; justify-content: flex-end; }
.pat-hero__stage.is-portrait .tile { width: min(46vw, 70vh); }
.pat-hero__stage.is-portrait .tile__btn { height: auto; aspect-ratio: 4 / 5; }
.pat-hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 36px); align-items: start; margin-top: clamp(28px, 4vh, 48px); }
.pat-hero__row .spread__head { grid-column: 1 / 6; padding-top: 1vh; }
.pat-hero__row .tile--b { grid-column: 7 / 10; margin-top: -18vh; z-index: 2; }
.pat-hero__row .tile--c { grid-column: 10 / 13; margin-top: 6vh; }

/* editorial: a large frame, with supporting images crossing its edge */
.pat-editorial { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(16px, 2.4vw, 44px); align-items: start; }
.pat-editorial--b { grid-template-columns: 4fr 8fr; }
.pat-editorial--b .spread__main { order: 2; }
.pat-editorial--b .spread__head { text-align: right; }
.pat-editorial--b .spread__meta { justify-content: flex-end; }
.spread__side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 44px); padding-top: clamp(60px, 18vh, 220px); }
.pat-editorial--a .tile--2 { margin-left: -22%; }
.pat-editorial--b .tile--2 { margin-right: -22%; }
.tile--3 { width: 72%; }
.pat-editorial--a .tile--3 { margin-left: auto; }
.tile--4 { width: 70%; margin: clamp(16px, 2.4vw, 44px) 0 0 auto; }
.pat-editorial--b .tile--4 { margin: clamp(16px, 2.4vw, 44px) auto 0 0; }

/* film strip: vertical scroll carries a pinned row of frames sideways */
.pat-strip__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100vw; margin-left: calc(50% - 50vw);
  padding: 0 var(--pad); overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
.pat-strip__head { margin-bottom: 4vh; }
.pat-strip__view { position: relative; width: 100%; }
.pat-strip__track { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 32px); width: max-content; will-change: transform; }
.tile--strip { flex: 0 0 auto; transform: scale(var(--sc)); }
.tile--strip .tile__btn { width: auto; height: min(58vh, 620px); }

/* cinema: films in widescreen; hover previews motion, a tap opens it */
.tile--cinema { margin-top: 2vh; }
.pat-cinema__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 36px); margin-top: clamp(20px, 3vw, 44px); align-items: start; }
.pat-cinema__row .tile:nth-child(2) { margin-top: 6vh; }

.tile--slot .tile__btn { cursor: default; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(239, 234, 226, .035); border: 1px dashed rgba(239, 234, 226, .22); box-shadow: none; }
.tile--slot .tile__btn::after { display: none; }
.slot { margin: 0; max-width: 46ch; text-align: center; }
.slot__t { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 28px); }
.slot__p { display: block; margin-top: .8em; font-size: 13px; line-height: 1.5; color: var(--mist); overflow-wrap: anywhere; }
.slot__p b { font-weight: 500; color: var(--fog); }

/* ---------- experience, about, contact ---------- */
.tail { padding: 20vh var(--pad); }
.tail__inner { max-width: 1280px; margin: 0 auto; }
.tail__title { margin: 0 0 7vh; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8vw, 140px); line-height: .9; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: minmax(150px, 3.4fr) 8.6fr; gap: 14px clamp(20px, 3vw, 56px); padding: clamp(28px, 4.6vh, 50px) 0; border-bottom: 1px solid var(--line); }
.tl__year { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 72px); line-height: 1; white-space: nowrap; }
.tl__year span { color: var(--brass); margin: 0 .04em; }
.tl__org { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.5vw, 40px); line-height: 1.12; }
.tl__role { margin: .4em 0 0; font-size: 16px; }
.tl__dates { margin: .2em 0 0; font-size: 13px; color: var(--fog); }
.tl__note { margin: .9em 0 0; max-width: 54ch; font-size: 14px; color: var(--fog); }
.tl__link { margin-top: 1em; }
.about__text { max-width: 60ch; margin-left: auto; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 26px); line-height: 1.55; }
.about__text p { margin: 0 0 1em; }
.about__text .about__lead { font-size: 1.4em; line-height: 1.25; }

.scene--end { min-height: 160vh; display: flex; align-items: flex-end; padding-bottom: calc(10vh + var(--safe-b)); }
.end { width: 100%; }
.end__title { margin: 0; max-width: 11ch; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 112px); line-height: .95; }
.end__line { margin: 1.1em 0 1.8em; max-width: 44ch; color: var(--fog); }
.end__links { list-style: none; margin: 2.2em 0 0; padding: 0; display: grid; gap: .55em; font-size: 15px; }
.end__links a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .4s; }
.end__links a:hover { border-color: var(--brass); }
.end__foot { margin-top: 11vh; padding-right: 150px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 12px; color: var(--mist); }
.end__foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 901px) { .end { padding-right: 46%; } }

/* ---------- contact sheet ---------- */
.sheet, .index, .gallery { position: fixed; inset: 0; }
.sheet[hidden], .index[hidden], .gallery[hidden] { display: none; }
.sheet { z-index: 50; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s var(--ease); }
.sheet__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: calc(26px + var(--safe-t)) 34px calc(30px + var(--safe-b));
  background: rgba(17, 16, 14, .8); -webkit-backdrop-filter: blur(28px) saturate(130%); backdrop-filter: blur(28px) saturate(130%);
  border-left: 1px solid var(--line); transform: translateX(104%); transition: transform .7s var(--ease);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { display: none; width: 40px; height: 4px; border-radius: 4px; margin: 0 auto 18px; background: rgba(239, 234, 226, .28); }
.sheet__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sheet__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; }
.sheet__close, .index__close, .gallery__close { padding: 8px 0; font-size: 13px; letter-spacing: .02em; color: var(--fog); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.sheet__close:hover, .index__close:hover, .gallery__close:hover { color: var(--paper); border-color: var(--line); }
.sheet__line { margin: .9em 0 1.6em; color: var(--fog); }
.sheet__list { list-style: none; margin: 1.8em 0 0; padding: 0; border-top: 1px solid var(--line); }
.sheet__list li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.sheet__k { font-size: 12px; color: var(--mist); }
.sheet__list a { text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.sheet__list a:hover { color: #fff; }
.sheet__copy { font-size: 12px; color: var(--brass); padding: 4px 0; }
.sheet__foot { margin-top: auto; padding-top: 28px; font-size: 12px; color: var(--mist); }

/* ---------- index / menu ---------- */
.index { z-index: 55; }
.index__panel {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(22px + var(--safe-t)) var(--pad) calc(30px + var(--safe-b));
  background: rgba(13, 12, 11, .82); -webkit-backdrop-filter: blur(30px) saturate(120%); backdrop-filter: blur(30px) saturate(120%);
  opacity: 0; transition: opacity .55s var(--ease);
}
.index.is-open .index__panel { opacity: 1; }
.index__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.index__label { font-size: 11px; font-stretch: 116%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog); }
.index__chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px clamp(20px, 3vw, 56px); margin-top: 10vh; }
.index__world { min-width: 0; }
.index__world { transform: translateY(18px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.index.is-open .index__world { transform: none; opacity: 1; }
.index.is-open .index__world:nth-child(2) { transition-delay: .06s; }
.index.is-open .index__world:nth-child(3) { transition-delay: .12s; }
.index.is-open .index__world:nth-child(4) { transition-delay: .18s; }
.index__ch { display: inline-flex; align-items: baseline; gap: .3em; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 62px); line-height: 1; text-decoration: none; }
.index__ch span { font-size: .38em; color: var(--brass); }
.index__cats { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: .35em; }
.index__cats button, .index__cats a { font-size: 15px; text-decoration: none; color: var(--fog); transition: color .3s; text-align: left; }
.index__cats button:hover, .index__cats a:hover { color: var(--paper); }
.index__cats button[disabled] { opacity: .45; cursor: default; }
.index__cats sup { margin-left: .4em; font-size: 10px; color: var(--brass); }
.index__more { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 12vh; padding-top: 24px; border-top: 1px solid var(--line); }
.index__more a, .index__more button { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); text-decoration: none; }

/* ---------- gallery ---------- */
.gallery { z-index: 60; display: flex; flex-direction: column; background: #090807; opacity: 0; transition: opacity .5s var(--ease); }
.gallery.is-open { opacity: 1; }
.gallery__ambient { position: absolute; inset: -12%; overflow: hidden; opacity: .5; pointer-events: none; }
.gallery__ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(120%); transition: opacity .8s; }
.gallery__ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(9, 8, 7, .3), rgba(9, 8, 7, .88) 75%); }
.gallery__top { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: calc(16px + var(--safe-t)) var(--pad) 10px; }
.gallery__where { margin: 0; display: flex; align-items: baseline; gap: .7em; min-width: 0; }
.gallery__world { font-family: var(--serif); font-size: 22px; }
.gallery__cat { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery__count { margin: 0 0 0 auto; font-family: var(--serif); font-size: 17px; font-variant-numeric: lining-nums tabular-nums; color: var(--fog); }
.gallery__view { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.gallery__view:active { cursor: grabbing; }
.g-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px clamp(14px, 7vw, 112px); transition: transform .65s var(--ease), opacity .65s var(--ease); }
.g-media__el { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.g-media--video .g-media__el { width: 100%; height: 100%; box-shadow: none; }
.gallery__nav {
  position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .3s, background-color .3s;
}
.gallery__nav:hover { border-color: rgba(201, 166, 107, .7); background-color: rgba(24, 22, 19, .6); }
.gallery__nav--prev { left: var(--pad); }
.gallery__nav--next { right: var(--pad); }
.gallery.is-single .gallery__nav, .gallery.is-single .gallery__count { display: none; }
.gallery__bottom { position: relative; padding: 10px var(--pad) calc(16px + var(--safe-b)); }
.gallery__caption { margin: 0 0 10px; min-height: 1.2em; font-size: 13px; color: var(--fog); text-align: center; }
.gallery__caption:empty { display: none; }
.gallery__ctrl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 12px; font-size: 12px; letter-spacing: .04em; }
.gallery__ctrl[hidden] { display: none; }
.gallery__ctrl button { padding: 6px 0; color: var(--fog); border-bottom: 1px solid var(--line); }
.gallery__ctrl button:hover { color: var(--paper); }
.gallery__bar { width: min(240px, 36vw); height: 1px; background: var(--line); overflow: hidden; }
.gallery__bar i { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.gallery__strip { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: 0 0 auto; width: 68px; height: 46px; overflow: hidden; opacity: .42; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb span { display: grid; place-items: center; height: 100%; font-size: 10px; background: rgba(239, 234, 226, .08); }
.gallery__thumb:hover { opacity: .75; }
.gallery__thumb.is-current { opacity: 1; outline-color: var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .index__chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .pat-editorial, .pat-editorial--b { grid-template-columns: 1fr; }
  .pat-editorial--b .spread__main { order: 0; }
  .pat-editorial--b .spread__head { text-align: left; }
  .pat-editorial--b .spread__meta { justify-content: flex-start; }
  .spread__side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding-top: 0; }
  .pat-editorial--a .tile--2, .pat-editorial--b .tile--2 { margin: -12vw 0 0; }
  .tile--3 { width: 100%; margin-top: 14vw; }
  .tile--4, .pat-editorial--b .tile--4 { width: 100%; margin: clamp(16px, 2.4vw, 44px) 0 0; }
  .pat-hero__stage .tile__btn { height: 64vh; }
  .pat-hero__stage.is-portrait .tile { width: 100%; }
  .pat-hero__row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pat-hero__row .spread__head { grid-column: 1 / 7; }
  .pat-hero__row .tile--b { grid-column: 1 / 4; margin-top: 4vh; }
  .pat-hero__row .tile--c { grid-column: 4 / 7; margin-top: 14vh; }
  .tile--strip .tile__btn { height: 46vh; }
  .pat-cinema__row { grid-template-columns: 1fr 1fr; }
  .pat-cinema__row .tile:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  .card--name { top: auto; bottom: calc(15vh + var(--safe-b)); width: 100%; justify-content: flex-end; }
  .name { font-size: 9.4vw; }
  .meta__tc, .meta__cue { display: none; }
  .card--meta { grid-template-columns: 1fr; }
  .roles { letter-spacing: .26em; }
  .card--journey { top: auto; bottom: calc(10vh + var(--safe-b)); right: var(--pad); width: auto; padding: 0; }
  .journey-title { font-size: 13vw; }
  .world-title { font-size: min(19vw, calc(90vw / (var(--n, 6) * .78))); }
  .tile--cinema .tile__btn { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .bar__nav, .bar__name { display: none; }
  .bar__menu { display: block; }
  .bar__chapter { font-size: 15px; }
  .work__head { display: block; }
  .work__index { margin-top: 2.4em; flex-direction: row; flex-wrap: wrap; gap: .3em 1.1em; }
  .work__cat { font-size: 26px; }
  .spread, .spread--b { grid-template-columns: 1fr; }
  .spread--b .spread__main { order: 0; }
  .spread--b .spread__head { text-align: left; }
  .spread--b .spread__meta { justify-content: flex-start; }
  .spread__side, .spread--b .spread__side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding-top: 0; }
  .tile--3 .tile__btn { width: 100%; }
  .tile--3 { margin-top: 14vw; }
  .tile--4, .spread--b .tile--4 { width: 100%; margin: clamp(16px, 2.4vw, 44px) 0 0; }
  .end__foot { padding-right: 0; padding-bottom: 72px; }
}
@media (max-width: 700px) {
  .name { font-size: 9.4vw; }
  .name span { display: block; }
  .card--name { bottom: calc(13vh + var(--safe-b)); }
  .journey-title { font-size: 13.4vw; }
  .journey-line { font-size: 19px; }
  .card--title { right: var(--pad); bottom: calc(var(--pad) + 64px + var(--safe-b)); }
  .card--facts { left: var(--pad); right: var(--pad); width: auto; bottom: calc(var(--pad) + 64px + var(--safe-b)); }
  .tl { grid-template-columns: 1fr; gap: 10px; }
  .spread--empty .tile--slot .tile__btn { aspect-ratio: 4 / 3; }
  .sheet__panel { top: auto; left: 0; width: 100%; max-height: 90vh; max-height: 90svh; border-left: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding-top: 12px; transform: translateY(104%); }
  .sheet__grip { display: block; }
  .sheet__title { font-size: 40px; }
  .sheet__panel { padding-left: 22px; padding-right: 22px; }
  .sheet__list li { grid-template-columns: 74px minmax(0, 1fr) auto; }
  .sheet__list a { font-size: 14px; overflow-wrap: normal; word-break: normal; }
  .index__chapters { grid-template-columns: 1fr; margin-top: 8vh; gap: 28px; }
  .gallery__nav { display: none; }
  .gallery__thumb { width: 54px; height: 38px; }
  .hire { right: 16px; bottom: calc(16px + var(--safe-b)); padding: 12px 16px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- opening: the lens in darkness, the name beside it ---------- */
.stage { background: #050505; }
.stage::after { display: none; }
.card--name { top: 0; bottom: 0; left: var(--pad); right: auto; width: min(36vw, 560px); padding: 0; align-items: flex-start; justify-content: center; text-align: left; }
.card--name::before { content: ""; display: block; width: 44px; height: 1px; margin: 0 0 2.2em; background: var(--brass); opacity: .9; }
.name { font-size: min(3.3vw, 5.8vh); letter-spacing: .08em; line-height: 1.06; }
.roles { margin-top: 1.9em; letter-spacing: .42em; }
.card--journey { width: min(36vw, 560px); }
.journey-title { font-size: min(5.4vw, 9.5vh); }
@media (max-width: 700px) {
  .card--name { top: auto; left: 0; right: 0; width: auto; bottom: calc(13vh + var(--safe-b)); padding: 0 var(--pad); align-items: center; text-align: center; justify-content: flex-end; }
  .card--name::before { margin: 0 auto 1.4em; }
  .name { font-size: 7.4vw; }
  .roles { letter-spacing: .26em; }
  .card--journey { width: auto; }
  .journey-title { font-size: 12vw; }
}
