:root {
  --bg: #07080a;
  --surface: #111317;
  --line: rgba(255, 255, 255, .12);
  --text: #f2f1ee;
  --muted: #9b9da3;
  --accent: #ff5a1f;
  --gutter: clamp(16px, 4vw, 64px);
  --gap: 6px;
  --display: "Barlow Condensed", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { display: inline-flex; gap: 12px; align-items: center; font: 600 14px/1 var(--display); text-transform: uppercase; letter-spacing: .22em; color: #e7e5e0; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; text-decoration: none; background: none;
  font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: .14em; border: 1px solid rgba(255,255,255,.5); color: var(--text);
}
.btn:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter); transition: background .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.solid, body:not(.has-hero) .nav { background: rgba(7,8,10,.88); backdrop-filter: blur(12px); padding-block: 12px; border-color: var(--line); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark b { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--text); font: 800 17px/1 var(--display); }
.mark span { font: 700 18px/1 var(--display); text-transform: uppercase; letter-spacing: .12em; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; }
.nav nav a { text-decoration: none; font: 600 15px/1 var(--display); text-transform: uppercase; letter-spacing: .14em; color: #d7d6d2; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: #fff; }
.nav nav a[aria-current="page"] { color: #fff; border-color: var(--accent); }
.nav .cta { border: 1px solid var(--text) !important; padding: 10px 16px !important; }
.nav .cta:hover { background: var(--text); color: var(--bg); }
@media (max-width: 640px) { .mark span { display: none; } .nav .cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #000; }
.hero-media, .hero-media > * { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-media .slide.on { opacity: 1; }
.hero-media .slide.on img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-media .yt { overflow: hidden; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.hero-media .yt.on { opacity: 1; }
.hero-media .yt iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100%, 177.78svh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.02);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,8,10,.7) 0%, rgba(7,8,10,0) 20%),
              linear-gradient(90deg, rgba(7,8,10,.82) 0%, rgba(7,8,10,.3) 50%, rgba(7,8,10,0) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7,8,10,0) 35%);
}
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(120px, 18vh, 180px); max-width: 980px; }
.hero h1 { margin: 18px 0 14px; font: 800 clamp(64px, 13vw, 190px)/.82 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.hero p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); color: #dcdbd7; max-width: 50ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid var(--line); background: rgba(7,8,10,.5); backdrop-filter: blur(10px); }
.marquee { display: flex; width: max-content; padding: 20px 0; animation: marquee 45s linear infinite; }
.marquee span { display: flex; align-items: center; font: 800 clamp(22px, 2.4vw, 36px)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: #fff; white-space: nowrap; }
.marquee span::after { content: ""; width: 8px; height: 8px; margin: 0 clamp(20px, 2.4vw, 40px); background: var(--accent); transform: rotate(45deg); }
.hero-foot:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.slide-caption { position: absolute; z-index: 2; right: var(--gutter); bottom: 110px; font: 600 13px/1.3 var(--display); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); text-align: right; }
.slide-caption strong { display: block; color: var(--text); font-size: 15px; }
@media (max-width: 760px) { .slide-caption { display: none; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; padding: clamp(64px, 9vw, 120px) var(--gutter) 28px; }
.section-head h2 { margin: 0; font: 800 clamp(44px, 7vw, 96px)/.9 var(--display); text-transform: uppercase; }
.section-head .side { display: flex; gap: 20px; align-items: center; color: var(--muted); flex-wrap: wrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font: inherit; }
.linkish:hover { color: var(--text); }

.filters { display: flex; gap: 22px; flex-wrap: wrap; }
.filters button { background: none; border: 0; padding: 0 0 6px; color: var(--muted); font: 700 17px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.filters .n { color: var(--muted); margin-left: 4px; font-weight: 500; }

/* ---------- Image-first grid ---------- */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); padding: 0 var(--gap); }
.grid { row-gap: 18px; }
.tile { display: flex; flex-direction: column; text-decoration: none; grid-column: span 2; }
.tile.lead { grid-column: span 3; }
.tile-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.tile-img img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
/* Wide covers (e.g. 2:1 title cards) are shown whole over a blurred copy instead of being cropped. */
.tile-img.wide img { object-fit: contain; }
.tile-img.wide::before { content: ""; position: absolute; inset: -20px; background: var(--bg-img) center / cover; filter: blur(22px) brightness(.55); }
.tile-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px 0; }
.tile-title { font: 500 15px/1.35 var(--body); color: #e4e2de; transition: color .2s; }
.tile.lead .tile-title { font-size: 17px; }
.tile-sub { font: 400 13px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .badge { position: absolute; z-index: 1; top: 12px; right: 12px; background: rgba(0,0,0,.65); padding: 5px 8px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.tile:hover .tile-img img, .tile:focus-visible .tile-img img { transform: scale(1.04); }
.tile:hover .tile-img::after, .tile:focus-visible .tile-img::after { transform: scaleX(1); }
.tile:hover .tile-title { color: #fff; }
@media (max-width: 900px) { .tile, .tile.lead { grid-column: span 3; } }
@media (max-width: 560px) { .tile, .tile.lead { grid-column: span 6; } }

/* ---------- Project page ---------- */
.p-hero { position: relative; height: min(92svh, 1100px); min-height: 520px; overflow: hidden; background: #000; }
.p-hero > img, .p-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { scale: 1.06; opacity: .4; } to { scale: 1; opacity: 1; } }
.p-hero > img { cursor: zoom-in; }
.p-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,8,10,.7) 0%, rgba(7,8,10,0) 20%), linear-gradient(0deg, var(--bg) 0%, rgba(7,8,10,.35) 30%, rgba(7,8,10,0) 55%); }
.p-hero-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vw, 64px); }
.p-hero h1 { margin: 14px 0 0; font: 800 clamp(48px, 9vw, 140px)/.85 var(--display); text-transform: uppercase; max-width: 16ch; }
.p-hero .play { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(28px, 5vw, 64px); }
.back { position: absolute; z-index: 3; left: var(--gutter); top: 92px; text-decoration: none; font: 600 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #e3e1dc; background: rgba(0,0,0,.35); padding: 9px 12px; backdrop-filter: blur(6px); }
.back:hover { color: #fff; background: rgba(0,0,0,.6); }

.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px 72px; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(32px, 5vw, 56px); max-width: 1600px; }
.brief .desc { color: #cfcdc8; max-width: 68ch; white-space: pre-line; overflow-wrap: anywhere; font-size: 17px; }
.brief .desc a { color: var(--accent); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; align-content: start; }
.facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 500; }
@media (max-width: 860px) { .brief { grid-template-columns: 1fr; } }

.media { display: grid; gap: var(--gap); padding: 0 var(--gap); }
.media figure { margin: 0; background: var(--surface); }
.media img { width: 100%; height: auto; cursor: zoom-in; }
.media video { width: 100%; height: auto; background: #000; }
.media figcaption { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; opacity: .7; }
.embed iframe, .embed .mv { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed .btn { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; z-index: 1; }

.next { position: relative; display: block; height: 70svh; min-height: 420px; margin-top: clamp(48px, 8vw, 120px); overflow: hidden; text-decoration: none; background: #000; }
.next img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .5s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.next:hover img { opacity: .75; transform: scale(1.03); }
.next div { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vw, 64px); }
.next strong { display: block; margin-top: 14px; font: 800 clamp(44px, 8vw, 120px)/.85 var(--display); text-transform: uppercase; }
.prev-link { display: inline-block; margin: 20px var(--gutter) 0; color: var(--muted); text-decoration: none; font: 600 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.prev-link:hover { color: var(--text); }

/* ---------- Contact band ---------- */
.contact { position: relative; padding: clamp(100px, 15vw, 200px) var(--gutter); text-align: center; overflow: hidden; margin-top: clamp(64px, 9vw, 120px); }
.contact > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.contact > *:not(img) { position: relative; }
.contact h2 { margin: 0 0 22px; font: 800 clamp(56px, 11vw, 160px)/.85 var(--display); text-transform: uppercase; }
.contact .mail { font: 600 clamp(20px, 3vw, 34px)/1.2 var(--display); letter-spacing: .06em; color: var(--accent); overflow-wrap: anywhere; }
.contact .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px 80px; padding: clamp(120px, 14vw, 180px) var(--gutter) 40px; max-width: 1400px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about h1 { margin: 18px 0 20px; font: 800 clamp(56px, 10vw, 150px)/.85 var(--display); text-transform: uppercase; }
.about h2 { font: 600 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 40px 0 14px; }
.about p { color: #cfcdc8; max-width: 62ch; font-size: 17px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.timeline .when { color: var(--muted); font: 600 14px/1.5 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.timeline b { font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.timeline .where { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 500px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { border: 1px solid var(--line); padding: 7px 12px; font: 600 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.contact-card { border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; margin-top: 20px; }
.contact-card strong { font: 700 22px/1 var(--display); text-transform: uppercase; }
.contact-card a { overflow-wrap: anywhere; }

/* ---------- Private gate ---------- */
.gate { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 100px var(--gutter) 60px; overflow: hidden; }
.gate > .hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(7,8,10,.72); }
.gate form { position: relative; z-index: 2; width: min(520px, 100%); text-align: left; }
.gate h1 { margin: 18px 0 10px; font: 800 clamp(56px, 9vw, 120px)/.85 var(--display); text-transform: uppercase; }
.gate p { margin: 0 0 26px; color: #cfcdc8; }
.gate .row { display: flex; gap: 0; }
.gate input { flex: 1; min-width: 0; padding: 16px 18px; border: 1px solid rgba(255,255,255,.4); border-right: 0; background: rgba(0,0,0,.45); color: var(--text); font: inherit; backdrop-filter: blur(6px); }
.gate input:focus { outline: none; border-color: var(--accent); }
.gate .err { color: #ff9a76; margin-top: 12px; min-height: 1.5em; }

.empty { padding: 160px var(--gutter) 80px; color: var(--muted); }
.empty h1 { font: 800 64px/.9 var(--display); text-transform: uppercase; color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(4,4,5,.97); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; cursor: zoom-out; }
.lb-frame { width: min(96vw, calc(92vh * 16 / 9)); aspect-ratio: 16 / 9; }
.lb-frame:empty { display: none; }
.lb-frame iframe, .lb-frame video { width: 100%; height: 100%; border: 0; background: #000; }
.lightbox button { position: absolute; z-index: 2; background: rgba(0,0,0,.4); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.12); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--muted); font: 600 13px/1 var(--display); letter-spacing: .16em; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- Premium motion layer ---------- */
:root { --ease: cubic-bezier(.16, .84, .24, 1); }

/* Intro card */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .8s var(--ease), visibility .8s; }
html.seen .intro { display: none; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-inner { display: grid; justify-items: center; gap: 18px; animation: introIn 1s var(--ease) both; }
.intro-inner b { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--text); font: 800 28px/1 var(--display); }
.intro-inner span { font: 600 14px/1 var(--display); letter-spacing: .5em; text-transform: uppercase; color: var(--muted); padding-left: .5em; }
.intro-inner i { position: relative; width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.intro-inner i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: introBar 1.3s var(--ease) .1s both; }
@keyframes introIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes introBar { from { transform: scaleX(0); } }

/* Headline words rise out of masks; supporting copy fades up after */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; transform: translateY(108%); }
#app.play .line > span { transform: none; transition: transform 1.15s var(--ease) var(--d, 0s); }
.fade { opacity: 0; transform: translateY(14px); }
#app.play .fade { opacity: 1; transform: none; transition: opacity 1s ease var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Images fade in once decoded instead of popping */
.tile-img img, .media img, .next img { opacity: 0; transition: opacity .9s ease, transform 1s var(--ease); }
.tile-img img.loaded, .media img.loaded { opacity: 1; }
.next img.loaded { opacity: .5; }
.next:hover img.loaded { opacity: .75; }

/* Film grain over everything, vignette on heroes */
body::after {
  content: ""; position: fixed; inset: -100%; z-index: 45; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
.hero::before, .p-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 60% 45%, transparent 45%, rgba(0,0,0,.55) 100%); }

/* Scroll cue */
.scroll-cue { position: absolute; z-index: 2; right: var(--gutter); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scroll-cue span { writing-mode: vertical-rl; font: 600 12px/1 var(--display); letter-spacing: .4em; text-transform: uppercase; color: #cfcdc8; }
.scroll-cue i { position: relative; width: 1px; height: 64px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* Section labels */
.section-head .eyebrow { margin-bottom: 16px; }

/* Cursor */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 60; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; transform: scale(0);
  background: rgba(242,241,238,.94); color: #07080a; font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase;
}
.has-cursor .tile, .has-cursor .next, .has-cursor .media img, .has-cursor .p-hero > img { cursor: none; }

/* Page transitions */
#app { transition: opacity .3s ease, transform .3s ease; }
body.leaving #app { opacity: 0; transform: translateY(10px); }

/* Refinements */
.nav { letter-spacing: .01em; }
.tile-img { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.btn { transition: background .25s, border-color .25s, color .25s, filter .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }

/* ---------- AAA layer ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.hero > .hero-media, .p-hero > img, .p-hero > video { will-change: transform; }

/* Featured titles: sticky full-screen panels that stack */
.stack { position: relative; }
.panel { position: sticky; top: 0; height: 100svh; min-height: 560px; }
.panel-inner { position: relative; height: 100%; overflow: hidden; background: #000; transform-origin: 50% 20%; will-change: transform, filter; }
.panel-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
.panel-inner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,8,10,.85) 0%, rgba(7,8,10,.35) 45%, rgba(7,8,10,0) 70%), linear-gradient(0deg, rgba(7,8,10,.85) 0%, rgba(7,8,10,0) 45%); }
.panel-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 10vh, 120px); max-width: 960px; }
.panel h2 { margin: 18px 0 18px; font: 800 clamp(48px, 8.4vw, 140px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.panel p { margin: 0 0 28px; color: #d8d6d1; max-width: 54ch; font-size: clamp(15px, 1.2vw, 18px); }
.panel-meta { position: absolute; z-index: 2; right: var(--gutter); top: 110px; display: flex; gap: 28px; font: 600 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #cfcdc8; }
.panel-meta span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 14px 2px 0; background: var(--accent); transform: rotate(45deg); }
@media (max-width: 700px) { .panel-meta { display: none; } .panel p { display: none; } }

/* By the numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats > div { padding: clamp(36px, 5vw, 72px) var(--gutter); border-right: 1px solid var(--line); display: grid; gap: 10px; }
.stats > div:last-child { border-right: 0; }
.stats b { font: 800 clamp(56px, 7.5vw, 120px)/.85 var(--display); font-variant-numeric: tabular-nums; }
.stats sup { color: var(--accent); font-size: .45em; vertical-align: top; margin-left: 4px; }
.stats > div > span { font: 600 13px/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Hover previews */
.tile-img .pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.tile.previewing .pv { opacity: 1; }
.tile.previewing .tile-img > img:not(.pv) { transform: scale(1.04); }

/* Reading progress + project name in the nav */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .3s; }
body.on-project .progress { opacity: 1; }
.nav-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); opacity: 0; pointer-events: none; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 16px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; transition: opacity .35s, transform .35s var(--ease); }
.nav.show-title .nav-title { opacity: 1; transform: translate(-50%, -50%); }
@media (max-width: 900px) { .nav-title { display: none; } }

.btn { transition: background .25s, border-color .25s, color .25s, filter .25s, transform .25s var(--ease), translate .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .panel-inner img { transform: none; }
  .line > span, .fade, .reveal, .tile-img img, .media img { opacity: 1 !important; transform: none !important; }
  .next img { opacity: .5 !important; }
}
