/* =========================================================
   Habibie Eka Perdhana — Portfolio
   Type: Google Sans (structure) × Instrument Serif (voice)
   ========================================================= */

:root {
  --paper: #eeeae2;
  --paper-2: #e5e0d5;
  --paper-3: #dcd6c9;
  --ink: #16140f;
  --ink-2: #5d584e;
  --ink-3: #8f897d;
  --line: rgba(22, 20, 15, 0.14);
  --line-2: rgba(22, 20, 15, 0.28);
  --accent: #0e7177;          /* deep teal — 4.7:1 on paper */
  --accent-rgb: 14, 113, 119;
  --accent-bright: #4fc4bd;   /* same hue, lifted for use over the dark video */
  --night: #0f0e0c;
  --cream: #f2eee6;

  --sans: "Google Sans", "Google Sans Flex", "Product Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4vw, 56px);
  --rail-space: 168px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* rail + topbar colour, flipped over dark areas */
  --chrome: var(--ink);
  --chrome-dim: rgba(22, 20, 15, 0.45);
  --chrome-line: rgba(22, 20, 15, 0.16);
}

html[data-zone="dark"] {
  --chrome: var(--cream);
  --chrome-dim: rgba(242, 238, 230, 0.5);
  --chrome-line: rgba(242, 238, 230, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--cream); }

.micro {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.dim { color: var(--ink-3); }
.serif { font-family: var(--serif); font-style: italic; font-size: 1.08em; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ast-s { color: var(--accent); font-family: var(--sans); font-style: normal; margin-right: 2px; }

/* ---------- DUST ---------- */
.dust {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 120;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor__label {
  color: var(--cream); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  opacity: 0; transition: opacity .2s;
}
.cursor.has-label { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.has-label .cursor__label { opacity: 1; transition-delay: .12s; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- TOP BAR ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 22px var(--gutter);
  color: var(--chrome);
  transition: color .5s var(--ease), background-color .5s var(--ease), padding .5s var(--ease);
}
.topbar::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--paper) 30%, rgba(238, 234, 226, 0));
  opacity: 0; transition: opacity .5s;
}
html[data-zone="light"] .topbar.is-scrolled::after { opacity: .92; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand__mark svg { width: 22px; height: 22px; fill: currentColor; }
.brand__mark rect { fill: currentColor; }
.brand__mark path { fill: var(--accent); transition: fill .5s; }
html[data-zone="dark"] .brand__mark path { fill: var(--accent-bright); }
html[data-zone="dark"] .cursor { background: var(--accent-bright); }
html[data-zone="dark"] .cursor__label { color: var(--night); }
.brand sup { font-size: .5em; font-weight: 500; margin-left: 1px; }
.topbar__loc { font-size: 11px; letter-spacing: .16em; font-weight: 500; opacity: .85; }
.topbar__loc em { letter-spacing: .04em; font-size: 1.25em; }
.menu-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.menu-toggle__lines { display: grid; gap: 5px; width: 24px; }
.menu-toggle__lines i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-toggle:hover .menu-toggle__lines i:first-child { transform: translateX(-4px); }
.menu-toggle:hover .menu-toggle__lines i:last-child { transform: translateX(4px); }

/* ---------- MENU ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper-2);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__inner { height: 100%; display: flex; flex-direction: column; padding: 26px var(--gutter) 34px; }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.menu__close { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.menu__close svg { width: 16px; height: 16px; stroke: var(--accent); stroke-width: 1.8; fill: none; transition: transform .5s var(--ease); }
.menu__close:hover svg { transform: rotate(90deg); }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(2px, .6vh, 8px); }
.menu__nav a {
  display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 22px);
  font-size: clamp(38px, 6.6vh, 76px); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em;
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.menu__nav a .num { font-size: 11px; letter-spacing: .1em; color: var(--ink-3); width: 22px; font-weight: 500; }
.menu__nav a em { font-size: .48em; letter-spacing: 0; color: var(--ink-2); transition: color .3s, transform .5s var(--ease); }
.menu__nav a:hover .t { color: var(--accent); }
.menu__nav a:hover em { transform: translateX(8px); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .29s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .33s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .37s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .41s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .45s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: .49s; }
.menu__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--line-2); gap: 20px; flex-wrap: wrap; }
.serif-link { font-family: var(--serif); font-style: italic; font-size: 22px; }
.micro-links { display: flex; gap: 22px; }
.micro-links a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; position: relative; }
.micro-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.micro-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.micro-links.stack { flex-direction: column; gap: 6px; }

/* ---------- RAIL ---------- */
.rail {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 55;
  width: 200px; pointer-events: none;
  color: var(--chrome);
}
.rail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail__base { fill: none; stroke: var(--chrome-line); stroke-width: 1; transition: stroke .5s; }
.rail__fill { fill: none; stroke: var(--chrome); stroke-width: 1.25; opacity: .75; transition: stroke .5s; }
.rail__items { position: absolute; inset: 0; }
.rail__item {
  position: absolute; top: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  height: 22px; margin-top: -11px;
  pointer-events: auto; cursor: pointer;
  will-change: transform;
}
.rail__item { --c: var(--ink); --cd: rgba(22, 20, 15, .42); --bg: var(--paper); }
.rail__item.is-dark { --c: var(--cream); --cd: rgba(242, 238, 230, .55); --bg: #1b1916; }
.rail__label {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--cd);
  transition: color .4s, transform .6s var(--ease);
  white-space: nowrap;
}
.rail__num { font-variant-numeric: tabular-nums; }
.rail__name { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; }
.rail__item:hover .rail__label { color: var(--c); }
.rail__item.is-active .rail__label { color: var(--c); }
.rail__item.is-active .rail__num { color: var(--accent); }
.rail__item.is-active .rail__name { font-size: 17px; }
.rail__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); box-shadow: 0 0 0 1px var(--cd);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
  flex: none;
}
.rail__item:hover .rail__dot { transform: scale(1.4); }
.rail__item.is-past .rail__dot { background: var(--c); box-shadow: 0 0 0 1px var(--c); }
.rail__item.is-active .rail__dot {
  background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18);
  transform: scale(1.5);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 640px;
  color: var(--cream);
  background: var(--night);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  --fade: clamp(170px, 28vh, 300px);
  padding: 0 var(--gutter) calc(var(--fade) * 0.5);
  padding-right: calc(var(--gutter) + var(--rail-space) - 40px);
  isolation: isolate;
}
/* soft landing: video blurs and dissolves into the paper below */
.hero__fade { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--fade); pointer-events: none; }
.hero__fade::before {
  content: ""; position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 60%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 60%);
}
.hero__fade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(238, 234, 226, 0) 0%,
    rgba(238, 234, 226, .12) 30%,
    rgba(238, 234, 226, .5) 58%,
    rgba(238, 234, 226, .88) 82%,
    var(--paper) 100%);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  position: absolute; inset: -4% 0; width: 100%; height: 108%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 9, 8, .2) 0%, rgba(10, 9, 8, .62) 30%, rgba(10, 9, 8, .25) 62%, rgba(10, 9, 8, .32) 100%),
    rgba(10, 9, 8, .18);
}
/* spotlight: base dim + a soft lifted circle under the cursor */
.hero__lens {
  position: absolute; inset: 0;
  --mx: 60%; --my: 40%;
  background: radial-gradient(circle 260px at var(--mx) var(--my), rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, .26) 100%);
  transition: opacity .6s;
}
.hero__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .09; mix-blend-mode: overlay;
  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); }
}

.hero__file {
  position: absolute; top: 92px; left: var(--gutter);
  display: flex; gap: 34px; font-size: 13.5px;
}
.hero__file .micro { margin-right: 10px; }
.hero__file .dim { color: rgba(242, 238, 230, .55); }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5fd17a; margin: 0 6px 1px 0; position: relative; vertical-align: middle; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.hero__title {
  font-weight: 700;
  font-size: clamp(64px, 12.4vw, 210px);
  line-height: .86;
  letter-spacing: -0.055em;
  margin-bottom: clamp(26px, 4.5vh, 52px);
}
.line { display: block; overflow: hidden; padding: .04em 0 .06em; margin: -.04em 0 -.06em; }
.line__in { display: inline-flex; align-items: baseline; transform: translateY(110%); transition: transform 1.3s var(--ease); }
/* Headline letters: rise in on load, sweep out upward once scrolling starts, return on the way back */
.hero__title .line__in { transform: none; transition: none; }
.hero__title .ch {
  display: inline-block;
  transform: translate3d(0, 118%, 0) rotate(6deg);
  transform-origin: 0 100%;
  opacity: 0;
  transition:
    transform 1.25s var(--ease) calc(var(--i) * 45ms + 80ms),
    opacity .6s linear calc(var(--i) * 45ms + 80ms);
}
.is-loaded .hero__title .ch { transform: none; opacity: 1; }
.is-loaded .hero__title.is-out .ch {
  transform: translate3d(0, -118%, 0) rotate(-4deg);
  opacity: 0;
  transition:
    transform .75s cubic-bezier(.6, 0, .8, .3) calc(var(--i) * 28ms),
    opacity .5s linear calc(var(--i) * 28ms + 150ms);
}
.hero__title .the {
  font-size: .5em; letter-spacing: -0.01em; margin-right: .14em; font-weight: 400;
  transform: translateY(-.08em);
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
  letter-spacing: -0.04em;
}
.ast {
  color: var(--accent-bright); font-size: .52em; font-weight: 700; line-height: 1;
  align-self: flex-start; margin-left: .04em; transform: translateY(.12em);
  transition: transform .8s var(--ease);
}
.ast:hover { transform: translateY(.12em) rotate(180deg); }

.hero__bottom { display: flex; justify-content: space-between; align-items: end; gap: clamp(20px, 4vw, 64px); }
.hero__controls { display: grid; gap: 10px; justify-items: start; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.sound, .title-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 14px; border-radius: 999px;
  border: 1px solid rgba(242, 238, 230, .35);
  background: rgba(15, 14, 12, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  transition: background-color .4s, border-color .4s, color .4s;
}
.sound b, .title-toggle b { font-weight: 700; display: inline-block; min-width: 3ch; }
.sound:hover, .title-toggle:hover { border-color: var(--cream); }
.title-toggle__icon {
  position: relative; display: inline-grid; place-items: center; width: 14px; height: 14px;
  font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; line-height: 1; text-transform: none;
}
/* strike-through when the headline is hidden */
.title-toggle__icon::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px; background: currentColor;
  transform: rotate(-40deg) scaleX(0); transition: transform .4s var(--ease);
}
.title-toggle[aria-pressed="false"] .title-toggle__icon::after { transform: rotate(-40deg) scaleX(1); }
.sound[aria-pressed="true"] { background: var(--cream); color: var(--night); border-color: var(--cream); }
.sound__bars { display: flex; align-items: center; gap: 2px; height: 14px; }
.sound__bars i { display: block; width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.1s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .7s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(5) { animation-delay: -.45s; animation-duration: .95s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.timecode { color: rgba(242, 238, 230, .6); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; padding-left: 4px; }
.rec { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.badge { position: relative; width: 112px; height: 112px; display: grid; place-items: center; color: var(--cream); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { font-size: 9.6px; letter-spacing: .26em; fill: currentColor; font-family: var(--sans); font-weight: 500; }
.badge__arrow { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.4; fill: none; transition: transform .6s var(--ease); }
.badge:hover .badge__arrow { transform: translateY(6px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; border-bottom: 1px solid var(--line);
  padding: 22px 0; white-space: nowrap; position: relative; z-index: 2;
  background: var(--paper);
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  font-size: clamp(26px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; text-transform: uppercase;
  padding-right: .3em;
}
.marquee__track i { font-family: var(--serif); text-transform: none; font-weight: 400; letter-spacing: 0; font-size: 1.12em; }
.marquee__track em { color: var(--accent); font-family: var(--sans); font-style: normal; font-size: .6em; vertical-align: middle; margin: 0 .5em; }

/* ---------- SECTIONS ---------- */
.sec {
  position: relative; z-index: 2;
  padding: clamp(90px, 14vh, 150px) var(--gutter) clamp(70px, 10vh, 110px);
  padding-right: calc(var(--gutter) + var(--rail-space));
}
.sec-head {
  display: flex; align-items: center; gap: 18px;
  padding-top: 22px; border-top: 1px solid var(--line-2);
  margin-bottom: clamp(48px, 8vh, 88px);
}
.tag {
  display: inline-block; font-size: 10px; letter-spacing: .14em; font-weight: 700;
  color: var(--accent); border: 1px solid var(--accent); padding: 4px 7px 3px; border-radius: 3px;
  transform: translateY(-3px);
}
.sec-title { font-size: clamp(30px, 3.3vw, 46px); font-weight: 500; letter-spacing: -0.035em; text-transform: uppercase; line-height: 1; }
.sec-title em { text-transform: none; letter-spacing: 0; font-size: .58em; color: var(--ink-2); margin-left: .25em; }
.sec-meta { margin-left: auto; color: var(--ink-3); display: flex; align-items: center; gap: 18px; }
.split { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.split > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.sec-head.in .split > span { transform: none; }
.sec-head .tag, .sec-head em, .sec-head .sec-meta { opacity: 0; transition: opacity 1s var(--ease) .25s; }
.sec-head.in .tag, .sec-head.in em, .sec-head.in .sec-meta { opacity: 1; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.footnote { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); margin-top: clamp(40px, 6vh, 64px); }

.meta-list { display: grid; gap: 14px; align-content: start; padding-top: 6px; border-top: 1px solid var(--line); }
.meta-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; align-items: baseline; padding-top: 10px; }
.meta-list dd { font-size: 13.5px; font-weight: 500; }

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2.4fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 70px); align-items: start; }
.facts { display: grid; gap: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.fact dt { font-size: clamp(44px, 4.2vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; display: flex; }
.fact dd { margin-top: 10px; color: var(--ink-2); line-height: 1.5; }
.roll__pre { font-weight: 400; color: var(--ink-3); margin-right: .04em; }
.roll .digit { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.roll .digit > span { display: flex; flex-direction: column; transition: transform 1.8s var(--ease); }
.roll .digit > span > i { font-style: normal; height: 1em; }
.statement {
  font-size: clamp(26px, 2.65vw, 40px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500;
}
.about__id {
  margin-top: clamp(32px, 5vh, 48px); padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; max-width: 640px;
}
.about__id .micro { padding-top: 4px; }
.about__id p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.about__id em { font-size: 1.1em; color: var(--ink); }
@media (max-width: 860px) { .about__id { grid-template-columns: 1fr; gap: 8px; } }
.statement .w { opacity: .14; transition: opacity .35s linear; }
.statement .w.on { opacity: 1; }
.statement .w.serif-w { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; font-size: 1.08em; }

.exhibit { position: relative; margin-top: clamp(40px, 10vh, 120px); }
.exhibit__img {
  background: #f7f4ee; padding: 10px 10px 10px; box-shadow: 0 30px 60px -30px rgba(22, 20, 15, .45), 0 2px 6px rgba(22, 20, 15, .08);
  transform: rotate(2deg); transition: transform 1s var(--ease);
}
.exhibit:hover .exhibit__img { transform: rotate(0deg) scale(1.02); }
.exhibit__img img { aspect-ratio: 860 / 700; width: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.9) contrast(1.02); }
.exhibit__tag {
  position: absolute; top: -12px; right: 14px; z-index: 2;
  color: var(--accent); border: 1px solid var(--accent); background: var(--paper);
  padding: 4px 8px 3px; transform: rotate(-4deg); border-radius: 2px; font-size: 9.5px;
}
.exhibit__clip {
  position: absolute; top: -10px; left: 18px; z-index: 2; width: 12px; height: 30px;
  border: 1.5px solid #8a857a; border-radius: 6px; border-bottom-color: transparent; transform: rotate(-6deg);
}
.exhibit figcaption { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-top: 18px; font-size: 16px; }

/* ---------- CRAFT ---------- */
.craft__grid { display: grid; grid-template-columns: minmax(180px, 0.9fr) minmax(0, 3.2fr); gap: clamp(28px, 5vw, 90px); }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: flex; align-items: baseline; gap: clamp(14px, 2vw, 26px); text-align: left;
  padding: clamp(16px, 2.4vh, 24px) 0;
}
.acc__num { font-size: clamp(18px, 1.7vw, 26px); color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.acc__name { font-size: clamp(26px, 3.1vw, 48px); font-weight: 500; letter-spacing: -0.035em; text-transform: uppercase; line-height: 1.05; transition: color .4s, transform .6s var(--ease); }
.acc__head:hover .acc__name { color: var(--accent); transform: translateX(6px); }
.acc__plus { margin-left: auto; width: 14px; height: 14px; position: relative; flex: none; align-self: center; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0deg); }
.acc__item.is-open .acc__name { font-weight: 700; }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc__body > div { overflow: hidden; padding-left: calc(clamp(18px, 1.7vw, 26px) + clamp(14px, 2vw, 26px) + 6px); }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body p { max-width: 620px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.chips li { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 6px 10px 5px; border: 1px solid var(--line-2); border-radius: 3px; }
.chips li:first-child { border-color: var(--accent); color: var(--accent); }

/* ---------- WORK ---------- */
.reels { border-top: 1px solid var(--line); }
.reel {
  position: relative;
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 28px; align-items: center; gap: 18px;
  padding: clamp(16px, 2.3vh, 24px) 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  isolation: isolate;
}
.reel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.reel:hover::before { transform: scaleY(1); transform-origin: top; }
.reel:hover { color: var(--cream); }
.reel__num { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; font-weight: 500; }
.reel__t h3 { font-size: clamp(26px, 3.2vw, 50px); font-weight: 500; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1; transition: transform .6s var(--ease); }
.reel:hover .reel__t h3 { transform: translateX(10px); }
.reel__a { color: inherit; text-decoration: none; }
.reel__a:focus-visible, .reel:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.reel__t p { margin-top: 8px; color: var(--ink-3); transition: color .4s; }
.reel:hover .reel__t p, .reel:hover .reel__num { color: rgba(242, 238, 230, .55); }
.reel__role { color: var(--ink-2); transition: color .4s; }
.reel:hover .reel__role { color: var(--cream); }
.reel__arrow { font-size: 18px; transition: transform .6s var(--ease), color .4s; }
.reel:hover .reel__arrow { transform: rotate(45deg); color: var(--accent); }
.work__foot, .frames__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: clamp(240px, 24vw, 380px);
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.8);
  transition: opacity .35s var(--ease);
}
.peek.is-on { opacity: 1; }
.peek__frame { position: relative; background: #f7f4ee; padding: 8px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.peek.is-portrait { width: clamp(170px, 14vw, 220px); }
/* highlight stills cut one after another, with a slow push-in on each */
.peek__stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #14120f; }
.peek.is-portrait .peek__stage { aspect-ratio: 9 / 15; }
.peek__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1);
  transition: opacity .22s linear, transform 1.4s cubic-bezier(.22, 1, .36, 1);
}
.peek__stage img.is-on { opacity: 1; transform: scale(1); }
.peek__tag {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 8.5px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.peek__tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); animation: blink 1.2s steps(2) infinite; }
.peek__bars { position: absolute; left: 16px; right: 16px; bottom: 15px; display: flex; gap: 4px; }
.peek__bars i { position: relative; flex: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.peek__bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.peek__bars i.done::after { transform: scaleX(1); }
.peek__bars i.run::after { transform: scaleX(1); transition: transform var(--dur, 800ms) linear; }
.peek__clip { position: absolute; top: -10px; left: 16px; width: 11px; height: 28px; border: 1.5px solid #8a857a; border-radius: 6px; border-bottom-color: transparent; }

/* ---------- SCREENING ROOM (film cards) ---------- */
body.screening-open { overflow: hidden; }
.screening {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  pointer-events: none; visibility: hidden;
  transition: visibility 0s linear .7s;
}
.screening.is-open { pointer-events: auto; visibility: visible; transition: none; }
.screening__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 9, 8, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .6s var(--ease);
}
.screening.is-open .screening__backdrop { opacity: 1; }

.screening__deck {
  position: relative; width: 100%; height: 100%;
  opacity: 0; transform: translateY(70px) scale(.92);
  transition: opacity .6s var(--ease), transform .9s var(--ease);
  touch-action: pan-y;
}
.screening.is-open .screening__deck { opacity: 1; transform: none; }

/* Card = liquid-glass frame wrapping a paper card */
.film {
  /* 110% of the original 620px card, but never taller than the screen allows */
  --w: min(682px, 88vw, calc((100vh - 300px) * 1.5));
  position: absolute; left: 50%; top: 47%;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  transform: translate3d(0, -50%, 0);
  padding: 14px;
  border-radius: 37px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .14) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    inset 1px 0 0 rgba(255, 255, 255, .18),
    inset -1px 0 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(255, 255, 255, .1),
    0 50px 100px -30px rgba(0, 0, 0, .85);
  transition: transform .9s var(--ease), opacity .6s var(--ease);
  will-change: transform;
  cursor: pointer;
}
/* specular sheen across the glass rim */
.film::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen; opacity: .8;
}
.film.is-active { cursor: default; }
.film__paper {
  position: relative;
  background: #ece8df; color: #16140f;
  border-radius: 23px;
  padding: 14px 14px 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px -12px rgba(0, 0, 0, .45);
}
/* dim side cards with an overlay (filters would break the glass blur) */
.film__paper::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgba(10, 9, 8, .48); opacity: 0; transition: opacity .6s var(--ease);
}
.film:not(.is-active) .film__paper::after { opacity: 1; }
.film:not(.is-active):hover .film__paper::after { opacity: .25; }

.film__screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px; background: #1a1815;
}
.film__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__player { position: absolute; inset: 0; }
.film__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s; }
.film__player iframe.is-ready { opacity: 1; }
.film__note {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(to top, rgba(10, 9, 8, .82), transparent);
  color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 17px;
}
.film__note b { font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--accent-bright); margin-right: 8px; text-transform: uppercase; }

.film__body { padding: 16px 8px 0; }
.film__title {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px;
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: .95;
  text-transform: uppercase;
}
.film__title em { font-size: .52em; text-transform: none; letter-spacing: 0; color: #5d584e; }
.film__meta { display: grid; gap: 3px; margin-top: 14px; }
.film__meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.film__meta dt { font-family: var(--serif); font-style: italic; font-size: 15px; color: #5d584e; }
.film__meta dd { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.film__meta .film__credit { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(22, 20, 15, .14); }

.screening__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 24px;
  padding: 22px var(--gutter) 26px;
  color: var(--cream);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease) .15s, transform .8s var(--ease) .15s;
}
.screening.is-open .screening__bar { opacity: 1; transform: none; }
.screening__bar .micro { color: rgba(242, 238, 230, .6); }
.screening__nav { display: flex; gap: 8px; margin: 0 auto; }
.screening__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(242, 238, 230, .3); font-size: 17px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.screening__btn:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.screening__close { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.screening__close svg { width: 16px; height: 16px; stroke: var(--accent-bright); stroke-width: 1.8; fill: none; transition: transform .5s var(--ease); }
.screening__close:hover svg { transform: rotate(90deg); }
body.screening-open .cursor { background: var(--accent-bright); }
body.screening-open .cursor__label { color: var(--night); }
body.screening-open .peek { opacity: 0 !important; }

@media (max-width: 860px) {
  .film { --w: 92vw; top: 44%; padding: 8px; border-radius: 26px; }
  .film__paper { padding: 10px 10px 16px; border-radius: 19px; }
  .film__meta > div { grid-template-columns: 78px 1fr; }
  .screening__bar { gap: 12px; }
  .screening__bar .micro { display: none; }
  .screening__nav { margin: 0; }
  .screening__close { margin-left: auto; }
}

/* ---------- FRAMES ---------- */
.grade-toggle { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 3px; padding: 3px; }
.grade-toggle button { font-size: 10px; letter-spacing: .14em; font-weight: 700; padding: 5px 9px 4px; border-radius: 2px; color: var(--ink-3); transition: background-color .3s, color .3s; }
.grade-toggle button.is-on { background: var(--ink); color: var(--cream); }
.grade-toggle i { color: var(--ink-3); font-style: normal; font-size: 10px; }
.strip-wrap { overflow: hidden; }
.strip { display: flex; gap: clamp(10px, 1.2vw, 18px); will-change: transform; width: 118%; margin-left: -9%; }
.still { flex: 1 1 0; min-width: 0; }
.still > .micro { display: block; color: var(--ink-3); margin-bottom: 10px; }
.still__img { position: relative; aspect-ratio: 3 / 4.3; overflow: hidden; background: var(--paper-3); }
.still__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.still:hover .still__img img { transform: scale(1.05); }
/* simulate a flat LOG capture */
.still__img .flat { filter: saturate(.32) contrast(.66) brightness(1.16) sepia(.08); }
.still__img .graded {
  --lx: 50%; --ly: 50%; --lr: 0px;
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 98%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 98%, transparent 100%);
  filter: saturate(1.08) contrast(1.06);
}
.frames.is-graded .still__img .graded { -webkit-mask-image: none; mask-image: none; }
.frames__foot { margin-top: 0; }
.frames__foot .footnote { margin-top: clamp(30px, 5vh, 50px); }

/* ---------- AWARDS ---------- */
.awards__grid, .record__grid { display: grid; grid-template-columns: minmax(180px, 0.9fr) minmax(0, 3.2fr); gap: clamp(28px, 5vw, 90px); }
.honours { border-top: 1px solid var(--line); }
.honour {
  display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr) 34px; align-items: center; gap: 20px;
  padding: clamp(18px, 2.6vh, 26px) 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease);
}
.honour:hover { padding-left: 10px; }
.yr { font-size: 10px; letter-spacing: .1em; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 4px 6px 3px; border-radius: 3px; justify-self: start; }
.honour h3 { white-space: nowrap; font-size: clamp(20px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.035em; text-transform: uppercase; line-height: 1.05; transition: color .4s; }
.honour:hover h3 { color: var(--accent); }
.honour__cat { font-size: 13px; color: var(--ink-2); }
.honour__proj { font-size: 18px; color: var(--ink); }
.honour__icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 13px; transition: background-color .4s, color .4s, transform .6s var(--ease); }
.honour:hover .honour__icon { background: var(--accent); color: var(--cream); transform: rotate(45deg); }

/* ---------- RECORD ---------- */
.timeline { position: relative; padding-top: 10px; }
.timeline__cols { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 30px; }
.timeline__cols span:last-child { text-align: right; }
.timeline__axis { position: absolute; left: 50%; top: 60px; bottom: 60px; width: 1px; background: var(--line); transform: translateX(-.5px); }
.timeline__fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.timeline__head { position: absolute; left: -4px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .14); }
.tl-year { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 90px; padding-bottom: clamp(40px, 7vh, 70px); }
.tl-year h3 {
  grid-column: 1 / -1; justify-self: center; position: relative; z-index: 1;
  font-size: clamp(40px, 4.4vw, 66px); font-weight: 400; letter-spacing: -0.04em; line-height: 1;
  background: var(--paper); padding: 6px 14px; margin-bottom: 22px;
}
.tl-entry { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px; align-content: start; padding-top: 14px; border-top: 1px solid var(--line); }
.tl-entry .micro { grid-column: 1 / -1; margin-bottom: 4px; }
.tl-entry .acc { color: var(--accent); }
.tl-entry b { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.tl-entry span:not(.micro):not(.tl-date) { grid-column: 1; color: var(--ink-2); font-size: 14px; }
.tl-date { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-left { grid-column: 1; }
.tl-right { grid-column: 2; }
.timeline__end { text-align: center; padding-top: 10px; }

/* ---------- CONTACT ---------- */
.contact { padding-top: clamp(110px, 18vh, 190px); padding-bottom: 28px; overflow: hidden; }
.contact__kicker { display: flex; align-items: center; gap: 14px; font-size: 19px; color: var(--ink-2); margin-bottom: 26px; }
.contact__title { font-weight: 700; font-size: clamp(68px, 12.6vw, 220px); line-height: .86; letter-spacing: -0.06em; }
.contact__title em { color: var(--accent); font-weight: 400; letter-spacing: -0.03em; font-size: 1.12em; line-height: .8; padding-right: .06em; }
.contact__title .line__in { transform: translateY(110%); }
.contact__title.in .line__in { transform: none; }
.contact__title.in .line:nth-child(2) .line__in { transition-delay: .14s; }
.contact__title.in .line:nth-child(3) .line__in { transition-delay: .28s; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(40px, 6vh, 64px);
  font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.03em;
  padding-bottom: 6px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 1.5px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.contact__mail:hover { color: var(--accent); }
.contact__mail span { transition: transform .5s var(--ease); }
.contact__mail:hover span { transform: rotate(45deg); }
.contact__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: clamp(48px, 8vh, 80px); font-size: 14px; max-width: 980px; }
.contact__cols p + p { margin-top: 2px; }
.stamp {
  position: absolute; right: calc(var(--gutter) + var(--rail-space)); bottom: 110px;
  font-size: 10.5px; letter-spacing: .18em; font-weight: 700; color: var(--accent);
  border: 1.5px solid var(--accent); padding: 6px 10px 5px; border-radius: 3px; transform: rotate(-7deg);
}
.foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: baseline;
  margin-top: clamp(80px, 14vh, 140px); padding-top: 20px; border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2);
}
.foot a { color: var(--ink); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 11px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-size: 12px; letter-spacing: .04em;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 16px);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.toast::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); margin-right: 10px; vertical-align: middle; transform: translateY(-1px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  :root { --rail-space: 120px; }
  .about__grid { grid-template-columns: minmax(130px, .8fr) minmax(0, 2.4fr); }
  .exhibit { grid-column: 2; max-width: 420px; margin-top: 10px; }
  .honour { grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) 30px; }
  .honour__cat { display: none; }
}

@media (max-width: 860px) {
  :root { --rail-space: 26px; }
  .rail__label { display: none; }
  .topbar__loc { display: none; }
  .hero__file { flex-direction: column; gap: 6px; top: 80px; font-size: 13px; }
  .badge { width: 92px; height: 92px; }
  .sec-head { flex-wrap: wrap; }
  .sec-meta { margin-left: 0; width: 100%; }
  .about__grid, .craft__grid, .awards__grid, .record__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .exhibit { grid-column: auto; }
  .reel { grid-template-columns: 34px minmax(0, 1fr) 22px; padding-left: 0; padding-right: 0; }
  .reel__role { display: none; }
  .peek { display: none; }
  .strip-wrap { overflow: visible; }
  .strip { width: auto; margin-left: 0; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); transform: none !important; }
  .still { flex: 0 0 62%; scroll-snap-align: start; }
  .honour { grid-template-columns: 54px minmax(0, 1fr) 30px; row-gap: 4px; }
  .honour__proj { grid-column: 2; }
  .honour__icon { grid-row: 1; grid-column: 3; }
  .timeline__axis { left: 6px; }
  .timeline__cols { display: none; }
  .tl-year { grid-template-columns: 1fr; padding-left: 32px; }
  .tl-year h3 { justify-self: start; padding-left: 0; }
  .tl-left, .tl-right { grid-column: 1; }
  .contact__cols { grid-template-columns: 1fr; }
  .stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
