/* ═══════════════════════════════════════════════
   MERIDIAN — editorial portfolio
   design tokens mirrored from the reference build
   ═══════════════════════════════════════════════ */

:root{
  /* palette */
  --bg:        #050609;
  --bg-2:      #0b0d12;
  --bg-3:      #040403;
  --accent:    #81ff28;
  --light:     #d9d9d9;
  --white:     #ffffff;
  --ink:       #050609;
  --dim:       rgba(255,255,255,.42);
  --dim-ink:   rgba(5,6,9,.5);
  --hair:      rgba(255,255,255,.14);
  --hair-ink:  rgba(5,6,9,.16);

  /* type */
  --sans: "Inter", "Inter Placeholder", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Fragment Mono", ui-monospace, monospace;

  /* display scale — tight tracking, 1.0 leading, uppercase */
  --fs-xl: clamp(44px, 8.6vw, 120px);
  --fs-lg: clamp(36px, 6.2vw, 90px);
  --fs-md: clamp(28px, 3.8vw, 52px);
  --fs-sm: clamp(20px, 2.1vw, 30px);
  --fs-xs: clamp(15px, 1.15vw, 17px);

  --ls-xl: -.07em;
  --ls-lg: -.06em;
  --ls-md: -.06em;
  --ls-sm: -.04em;

  /* body */
  --fs-body:    clamp(17px, 1.55vw, 24px);
  --fs-body-sm: clamp(14px, 1.05vw, 17px);
  --fs-mono:    12px;

  /* rhythm */
  --pad:   24px;
  --gutter: 24px;
  --sec:   clamp(80px, 10vw, 160px);
  --sec-sm: clamp(56px, 6vw, 80px);

  /* motion */
  --e-out:  cubic-bezier(.16,1,.3,1);
  --e-io:   cubic-bezier(.65,0,.35,1);
  --t:      .8s var(--e-out);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html.is-locked{ overflow:hidden; }

body{
  background:var(--bg);
  color:var(--white);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.4;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
li{ list-style:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

::selection{ background:var(--accent); color:var(--ink); }

/* ── TYPE PRIMITIVES ─────────────────────────── */

.display{
  font-family:var(--sans);
  font-weight:700;
  text-transform:uppercase;
  line-height:1;
  letter-spacing:var(--ls-md);
}
.display--xl{ font-size:var(--fs-xl); letter-spacing:var(--ls-xl); }
.display--lg{ font-size:var(--fs-lg); letter-spacing:var(--ls-lg); }
.display--md{ font-size:var(--fs-md); letter-spacing:var(--ls-md); }
.display--sm{ font-size:var(--fs-sm); letter-spacing:var(--ls-sm); }
.display--xs{ font-size:var(--fs-xs); letter-spacing:-.04em; }

.body{
  font-size:var(--fs-body);
  font-weight:600;
  letter-spacing:-.06em;
  line-height:1.2;
  text-transform:uppercase;
  max-width:22ch;
}
.body-sm{
  font-size:var(--fs-body-sm);
  font-weight:500;
  letter-spacing:-.03em;
  line-height:1.35;
  color:rgba(255,255,255,.7);
  max-width:46ch;
}
.mono{
  font-family:var(--mono);
  font-size:var(--fs-mono);
  font-weight:400;
  letter-spacing:-.04em;
  line-height:1.2;
  text-transform:uppercase;
}
.dim{ color:var(--dim); }
.tag{ display:block; color:var(--accent); margin-bottom:1.4em; }

/* line-mask reveal — hidden state only applies when JS is running, so a
   script failure degrades to plain visible text instead of a blank page */
.line{ display:block; overflow:hidden; }
.js .line__i{
  transform:translateY(110%) rotate(2deg);
  opacity:0;
  transition:transform 1.05s var(--e-out), opacity .9s var(--e-out);
  transition-delay:var(--d, 0ms);
}
.line__i{ display:block; }
.js .in .line__i,
.js .line__i.in{ transform:none; opacity:1; }

.js .reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .9s var(--e-out), transform .9s var(--e-out);
  transition-delay:var(--d, 0ms);
}
.js .reveal.in{ opacity:1; transform:none; }

/* loader is JS-driven; never show it to a non-JS visitor */
.loader{ display:none; }
.js .loader{ display:flex; }

/* ── GRAIN + CURSOR + CHROME ─────────────────── */

.grain{
  position:fixed; inset:-50%;
  z-index:9998; pointer-events:none;
  opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 1.1s steps(4) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)} 25%{transform:translate(-2%,1%)}
  50%{transform:translate(1%,-2%)} 75%{transform:translate(-1%,-1%)}
  100%{transform:translate(0,0)}
}

.cursor{ position:fixed; top:0; left:0; z-index:9999; pointer-events:none; mix-blend-mode:difference; }
.cursor__dot,.cursor__ring{ position:absolute; border-radius:50%; transform:translate(-50%,-50%); }
.cursor__dot{ width:6px; height:6px; background:var(--white); }
.cursor__ring{
  width:36px; height:36px; border:1px solid rgba(255,255,255,.6);
  transition:width .35s var(--e-out), height .35s var(--e-out), background .35s var(--e-out), border-color .35s var(--e-out);
}
.cursor.is-hot .cursor__ring{ width:66px; height:66px; background:rgba(255,255,255,.12); border-color:transparent; }
.cursor.is-hot .cursor__dot{ opacity:0; }
@media (hover:none),(max-width:900px){ .cursor{ display:none; } }

.progress{ position:fixed; left:0; bottom:0; width:100%; height:2px; z-index:9997; background:rgba(255,255,255,.08); }
.progress i{ display:block; height:100%; width:0%; background:var(--accent); }

/* loader */
.loader{
  position:fixed; inset:0; z-index:10000;
  background:var(--bg);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:var(--pad);
  transition:transform 1.1s var(--e-out), opacity .6s ease .5s;
}
.loader.is-done{ transform:translateY(-101%); opacity:0; pointer-events:none; }
.loader__inner{ display:flex; justify-content:space-between; align-items:flex-end; padding-bottom:14px; }
.loader__count{ font-family:var(--sans); font-weight:700; font-size:var(--fs-lg); letter-spacing:var(--ls-lg); line-height:1; }
.loader__bar{ height:1px; background:var(--hair); }
.loader__bar i{ display:block; height:100%; width:0%; background:var(--accent); transition:width .2s linear; }

/* ── NAV ─────────────────────────────────────── */

.nav{
  position:fixed; top:0; left:0; width:100%; z-index:9000;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px var(--pad);
  mix-blend-mode:difference;
  transition:transform .55s var(--e-out);
}
.nav.is-hidden{ transform:translateY(-110%); }

.nav__mark{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:13px; letter-spacing:-.04em; text-transform:uppercase; }
.nav__mark-glyph{ color:var(--accent); font-size:11px; }

.nav__links{ display:flex; gap:28px; }
.nav__link{
  position:relative; display:block; overflow:hidden; height:13px;
  font-family:var(--mono); font-size:11px; letter-spacing:-.03em; text-transform:uppercase;
}
.nav__link span{ display:block; transition:transform .5s var(--e-out); }
.nav__link:hover span{ transform:translateY(-13px); }
.nav__link span:last-child{ color:var(--accent); }

.nav__meta{ display:flex; align-items:center; gap:10px; font-size:11px; }
.nav__dot{ width:5px; height:5px; border-radius:50%; background:var(--accent); animation:pulse 2s infinite; }
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.25} }

.nav__burger{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav__burger i{ display:block; height:1.5px; background:var(--white); transition:transform .4s var(--e-out); }
.nav__burger.is-open i:first-child{ transform:translateY(3.2px) rotate(45deg); }
.nav__burger.is-open i:last-child{ transform:translateY(-3.2px) rotate(-45deg); }

.menu{
  position:fixed; inset:0; z-index:8900;
  background:var(--bg);
  display:flex; align-items:center; padding:0 var(--pad);
  clip-path:inset(0 0 100% 0);
  transition:clip-path .9s var(--e-out);
}
.menu.is-open{ clip-path:inset(0 0 0 0); }
.menu__list{ display:flex; flex-direction:column; gap:6px; width:100%; }
.menu__item{
  display:flex; align-items:baseline; gap:16px;
  font-weight:700; text-transform:uppercase;
  font-size:clamp(34px,10vw,68px); letter-spacing:-.06em; line-height:1;
  border-bottom:1px solid var(--hair); padding-bottom:10px;
  transition:color .3s, padding-left .5s var(--e-out);
}
.menu__item span{ font-size:11px; color:var(--accent); }
.menu__item:hover{ color:var(--accent); padding-left:14px; }

/* ── 01 HERO ─────────────────────────────────── */

.hero{
  position:relative;
  height:100svh; min-height:640px;
  overflow:hidden;
  background:var(--bg);
}

/* — phase columns (vertical hairlines, full bleed) — */
.phases{
  position:absolute; inset:0; z-index:1;
  display:grid; grid-template-columns:repeat(4,1fr);
  padding:96px var(--pad) 30px;
  pointer-events:none;
}
.phase{ position:relative; display:flex; flex-direction:column; }
.phase__n{ color:var(--white); margin-bottom:10px; }
.phase__rule{
  flex:1; width:1px; background:var(--hair);
  transform-origin:top;
  transition:transform 1.4s var(--e-out);
}
.js .phase__rule{ transform:scaleY(0); }
.phase:nth-child(1) .phase__rule{ transition-delay:.25s; }
.phase:nth-child(2) .phase__rule{ transition-delay:.37s; }
.phase:nth-child(3) .phase__rule{ transition-delay:.49s; }
.phase:nth-child(4) .phase__rule{ transition-delay:.61s; }
.is-ready .phase__rule{ transform:scaleY(1); }
.phase__lbl{ color:var(--white); margin-top:12px; }
.phase__lbl b{ color:var(--accent); font-weight:400; }
.phase__bars{ display:flex; gap:2px; margin-top:6px; }
.phase__bars i{ width:5px; height:5px; background:var(--accent); opacity:.35; }
.phase__bars i:first-child{ opacity:1; }

/* — portrait — */
.hero__portrait{
  position:absolute; z-index:2;
  right:calc(var(--pad) * -1); bottom:0;
  width:min(58vw, 780px); height:100%;
  display:flex; align-items:flex-end; justify-content:center;
}
.hero__portrait img{
  width:100%; height:100%; object-fit:cover; object-position:center 18%;
  /* Background is already pure black, so this only needs to soften the
     frame edges — kept wide so the lime rim light isn't clipped. */
  -webkit-mask-image:radial-gradient(82% 92% at 50% 42%, #000 58%, transparent 92%);
  mask-image:radial-gradient(82% 92% at 50% 42%, #000 58%, transparent 92%);
  transition:opacity 1.6s var(--e-out), transform 2.2s var(--e-out);
  transition-delay:.15s;
}
.js .hero__portrait img{ opacity:0; transform:scale(1.14); }
.is-ready .hero__portrait img{ opacity:1; transform:scale(1); }

/* — the giant wordmark — */
.wordmark{
  position:absolute; inset:0; z-index:3;
  display:flex; flex-direction:column; justify-content:center;
  padding:70px var(--pad) 40px;
  pointer-events:none;
  font-weight:700; text-transform:uppercase;
  font-size:clamp(84px, 25.5vw, 400px);
  line-height:.72;
  letter-spacing:-.055em;
  color:var(--accent);
}
.wordmark__l{ display:block; overflow:hidden; }
/* staggered diagonal: left → centre → right */
.wordmark__l:nth-child(1){ text-align:left; }
.wordmark__l:nth-child(2){ text-align:center; }
.wordmark__l:nth-child(3){ text-align:right; }
.wordmark__i{
  display:inline-block;
  transition:transform 1.5s var(--e-out);
}
.js .wordmark__i{ transform:translateY(105%); }
.wordmark__l:nth-child(1) .wordmark__i{ transition-delay:0s; }
.wordmark__l:nth-child(2) .wordmark__i{ transition-delay:.13s; }
.wordmark__l:nth-child(3) .wordmark__i{ transition-delay:.26s; }
.is-ready .wordmark__i{ transform:none; }

/* — headline, top right — */
.hero__head{
  position:absolute; z-index:4;
  top:88px; right:var(--pad);
  text-align:right;
  max-width:min(46vw, 620px);
}
.hero__h1 .line:first-child .line__i{ color:var(--accent); }
.hero__h1{ font-weight:700; }

.hero__id{
  display:flex; align-items:flex-start; justify-content:flex-end;
  gap:12px; margin-top:16px;
}
.hero__rule{
  width:3px; align-self:stretch; min-height:34px;
  background:var(--accent); flex:none;
  transform-origin:top;
  transition:transform .8s var(--e-out) 1.1s;
}
.js .hero__rule{ transform:scaleY(0); }
.is-ready .hero__rule{ transform:scaleY(1); }
.hero__name{ color:var(--accent); }
.hero__role{ color:var(--white); margin-top:5px; }

/* — bottom-left index — */
.hero__foot{
  position:absolute; z-index:4;
  left:var(--pad); bottom:30px;
  display:flex; align-items:flex-start; gap:22px;
}
.hero__idx{ display:flex; flex-direction:column; gap:3px; }
.hero__year{ color:var(--accent); }
.hero__cats{
  display:flex; flex-direction:column; gap:1px;
  border-left:1px solid var(--hair); padding-left:18px;
}
.hero__cats li{
  font-weight:700; text-transform:uppercase;
  font-size:clamp(14px,1.45vw,21px); letter-spacing:-.045em; line-height:1.22;
  transition:opacity .7s var(--e-out), transform .7s var(--e-out), color .3s;
}
.js .hero__cats li{ opacity:0; transform:translateX(-14px); }
.hero__cats li:nth-child(1){ transition-delay:.90s; }
.hero__cats li:nth-child(2){ transition-delay:.97s; }
.hero__cats li:nth-child(3){ transition-delay:1.04s; }
.hero__cats li:nth-child(4){ transition-delay:1.11s; }
.hero__cats li:nth-child(5){ transition-delay:1.18s; }
.is-ready .hero__cats li{ opacity:1; transform:none; }
.hero__cats li:hover{ color:var(--accent); }

/* Hero headline is driven by the intro sequence, not the scroll observer —
   otherwise it animates while the loader is still covering the screen. */
.js .hero .line__i{ transition-delay:0s; }
.hero__h1 .line:nth-child(1) .line__i{ transition-delay:.55s !important; }
.hero__h1 .line:nth-child(2) .line__i{ transition-delay:.65s !important; }
.hero__h1 .line:nth-child(3) .line__i{ transition-delay:.75s !important; }
.is-ready .hero .line__i{ transform:none; opacity:1; }

.hero__name,.hero__role{
  transition:opacity .8s var(--e-out) 1.15s, transform .8s var(--e-out) 1.15s;
}
.js .hero__name,.js .hero__role{ opacity:0; transform:translateY(12px); }
.is-ready .hero__name,.is-ready .hero__role{ opacity:1; transform:none; }

/* ── 02 MANIFESTO ────────────────────────────── */

.manifesto{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(32px,5vw,90px);
  padding:var(--sec) var(--pad);
  align-items:start;
}
.fig__frame{ overflow:hidden; background:var(--bg-2); }
.fig__frame img{ width:100%; aspect-ratio:4/5; object-fit:cover; filter:grayscale(1) contrast(1.15); transform:scale(1.06); will-change:transform; }
.fig figcaption{ margin-top:12px; }

.manifesto__cols{ display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:clamp(28px,3.5vw,54px); }
.manifesto__body h2{ margin-bottom:6px; }

.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:clamp(40px,5vw,80px); border-top:1px solid var(--hair); padding-top:22px; }
.stat{ display:flex; flex-direction:column; gap:7px; }
.stat__n{ color:var(--accent); }

/* ── 03 WORK ─────────────────────────────────── */

.work{ padding:0 var(--pad) var(--sec); }
.sec-head{ padding:var(--sec-sm) 0 clamp(30px,4vw,60px); border-top:1px solid var(--hair); }

.work__grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(20px,2.4vw,40px) var(--gutter);
}
.card{ cursor:pointer; }
.card--up{ transform:translateY(clamp(20px,4vw,64px)); }
.card__media{ overflow:hidden; background:var(--bg-2); }
.card__media img{
  width:100%; aspect-ratio:4/5; object-fit:cover;
  filter:grayscale(1) contrast(1.1) brightness(.92);
  transition:transform 1.1s var(--e-out), filter .7s var(--e-out);
}
.card:hover .card__media img{ transform:scale(1.07); filter:grayscale(0) contrast(1.05) brightness(1); }
.card__meta{ display:flex; flex-direction:column; gap:6px; padding-top:13px; }
.card__meta .mono{ color:var(--dim); transition:color .4s; }
.card:hover .card__meta .mono{ color:var(--accent); }

/* ── 04 STICKY STACK ─────────────────────────── */

.stack{ position:relative; }
.panel{
  position:sticky; top:0;
  min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding:var(--sec-sm) var(--pad);
  overflow:hidden;
}
.panel--dark  { background:var(--bg);   border-top:1px solid var(--hair); }
.panel--mid   { background:var(--bg-2); border-top:1px solid var(--hair); }
.panel--accent{ background:var(--accent); color:var(--ink); }

.panel__grid{ display:grid; grid-template-columns:.42fr 1fr; gap:clamp(24px,4vw,80px); position:relative; z-index:2; }
.panel__l{ display:flex; flex-direction:column; gap:9px; }
.panel__r > h2{ margin-bottom:22px; }
.panel__r > p{ margin-bottom:clamp(26px,3vw,48px); }

.panel--accent .tag{ color:var(--ink); }
.panel--accent .body-sm{ color:rgba(5,6,9,.72); }
.panel--accent .dim{ color:var(--dim-ink); }

.panel__notes{ display:grid; grid-template-columns:1fr 1fr; gap:18px; border-top:1px solid var(--hair); padding-top:20px; }
.modlist{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px 26px; border-top:1px solid var(--hair); padding-top:22px; }
.modlist__row .mono{ color:var(--accent); }

/* hoverable cards — panels 01 + 02 */
.note,.modlist__row{
  display:flex; flex-direction:column; gap:10px;
  position:relative; isolation:isolate;
  padding:16px 18px;
  border-left:1px solid var(--hair);
  transition:transform .5s var(--e-out), border-color .45s var(--e-out);
}
/* wash sits behind the text so it can fade independently */
.note::before,.modlist__row::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg, rgba(129,255,40,.13), rgba(129,255,40,0));
  opacity:0; transition:opacity .45s var(--e-out);
}
/* accent bar wipes down the left edge */
.note::after,.modlist__row::after{
  content:""; position:absolute; left:-1px; top:0; bottom:0; width:2px;
  background:var(--accent);
  transform:scaleY(0); transform-origin:top;
  transition:transform .5s var(--e-out);
}
.note:hover,.modlist__row:hover{ transform:translateX(7px); border-left-color:transparent; }
.note:hover::before,.modlist__row:hover::before{ opacity:1; }
.note:hover::after,.modlist__row:hover::after{ transform:scaleY(1); }
.note:hover .mono{ color:var(--accent); }
.note:hover .body-sm,.modlist__row:hover .body-sm{ color:rgba(255,255,255,.94); }

.artifacts{ display:flex; flex-direction:column; border-top:1px solid var(--hair-ink); }
.artifact{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0; border-bottom:1px solid var(--hair-ink);
  transition:padding-left .55s var(--e-out), opacity .4s;
}
.artifact:hover{ padding-left:16px; }
.artifact i{ font-style:normal; }

.panel__ghost{
  position:absolute; left:50%; bottom:-4%;
  transform:translateX(-50%);
  font-weight:900; font-size:22vw; letter-spacing:-.08em; line-height:.78;
  color:rgba(255,255,255,.035); white-space:nowrap; pointer-events:none; z-index:1;
}
.panel__ghost--dark{ color:rgba(5,6,9,.09); }

/* ── 05 ARCHIVE ──────────────────────────────── */

.archive{ background:var(--bg); padding:var(--sec-sm) var(--pad) var(--sec); position:relative; z-index:5; }
.archive__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:clamp(22px,2.6vw,40px); }
.archive__head .tag{ margin-bottom:.7em; }

.rows{ position:relative; border-top:1px solid var(--hair); }
.row{
  position:relative; z-index:2;
  display:grid; grid-template-columns:130px 1.1fr 1fr 60px;
  gap:24px; align-items:center;
  padding:clamp(20px,2.4vw,34px) 0;
  border-bottom:1px solid var(--hair);
  transition:padding-left .6s var(--e-out);
}
.row::before{
  content:""; position:absolute; inset:0 -14px;
  background:var(--accent); z-index:-1;
  transform:scaleY(0); transform-origin:bottom;
  transition:transform .55s var(--e-out);
}
.row:hover::before{ transform:scaleY(1); transform-origin:top; }
.row:hover{ padding-left:18px; color:var(--ink); }
.row:hover .mono,.row:hover .row__body{ color:rgba(5,6,9,.72); }
.row__mod{ color:var(--dim); }
.row__body{ color:rgba(255,255,255,.55); }
.row__n{ text-align:right; color:var(--dim); }

.rows__peek{
  position:fixed; top:0; left:0; z-index:6;
  width:260px; height:325px; overflow:hidden;
  pointer-events:none; opacity:0;
  transform:translate(-50%,-50%) scale(.86);
  transition:opacity .45s var(--e-out), transform .55s var(--e-out);
}
.rows__peek.is-on{ opacity:1; transform:translate(-50%,-50%) scale(1); }
.rows__peek img{ width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.15); }

/* ── 06 LIGHT ────────────────────────────────── */

.light{
  background:var(--light); color:var(--ink);
  padding:var(--sec) 0;
  position:relative; z-index:5;
  display:flex; flex-direction:column; gap:clamp(50px,7vw,110px);
  overflow:hidden;
}
.light__top,.light__bottom{ padding:0 var(--pad); }
.light__top{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
/* minmax(0,…) so the highlighted heading can't overflow its column */
.light__bottom{ display:grid; grid-template-columns:minmax(0,1.42fr) minmax(0,.58fr); gap:32px; align-items:end; }
.light .body{ color:rgba(5,6,9,.72); }

.words{ overflow:hidden; border-top:1px solid var(--hair-ink); border-bottom:1px solid var(--hair-ink); padding:16px 0; }
.words__track{
  display:flex; gap:34px; white-space:nowrap;
  font-weight:800; font-size:clamp(38px,7vw,96px); letter-spacing:-.06em; line-height:1;
  text-transform:uppercase;
  animation:slide2 26s linear infinite;
}
.words__track span:nth-child(even){ color:rgba(5,6,9,.28); }
@keyframes slide2{ to{ transform:translateX(-50%); } }

/* highlighter treatment — the lime block hugs each line of text.
   Slightly smaller than --fs-xl: the heading column and the vw-based font
   scale together, so without headroom the longest line overflows at every
   viewport width, not just narrow ones. */
.hl{ font-size:clamp(38px, 7.9vw, 110px); }
.hl .line{ line-height:0; }
.hl .line + .line{ margin-top:6px; }
.hl .line__i{
  display:inline-block;
  background:var(--accent);
  color:var(--ink);
  line-height:.94;
  padding:.09em .085em .11em;
}

/* ── 07 FEATURE ──────────────────────────────── */

.feature{ background:var(--bg); padding:var(--sec) var(--pad); position:relative; z-index:5; display:grid; grid-template-columns:1.35fr .65fr; gap:clamp(28px,4vw,70px); align-items:end; }
.feature__fig{ cursor:pointer; }
.feature__frame{
  overflow:hidden; position:relative;
  /* scale lives on the frame — the img carries an inline parallax transform */
  transition:transform 1s var(--e-out);
}
.feature__frame img{
  width:100%; aspect-ratio:16/9; object-fit:cover;
  filter:grayscale(1) contrast(1.2);
  transition:filter .8s var(--e-out);
  will-change:transform;
}
.feature__veil{
  position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(129,255,40,.16), rgba(129,255,40,0) 55%);
  opacity:0; transition:opacity .6s var(--e-out);
}
.feature__badge{
  position:absolute; left:16px; bottom:16px;
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px;
  background:var(--accent); color:var(--ink);
  transform:translateY(140%);
  transition:transform .6s var(--e-out);
}
.feature__badge i{ font-style:normal; transition:transform .5s var(--e-out); }

.feature__fig:hover .feature__frame{ transform:scale(1.012); }
.feature__fig:hover .feature__frame img{ filter:grayscale(0) contrast(1.06) brightness(1.06); }
.feature__fig:hover .feature__veil{ opacity:1; }
.feature__fig:hover .feature__badge{ transform:none; }
.feature__fig:hover .feature__badge i{ transform:translate(3px,-3px); }
.feature__fig:hover figcaption{ color:var(--accent); }

.feature__fig figcaption{ margin-top:12px; transition:color .45s var(--e-out); }
.feature__txt h3{ margin-bottom:18px; }
.feature__txt p + p{ margin-top:16px; }

/* ── 08 QUOTE ────────────────────────────────── */

.quote{
  background:var(--accent); color:var(--ink);
  position:relative; z-index:5;
  min-height:100svh;
  display:grid; grid-template-columns:1fr 104px 46%;
  overflow:hidden;
}

.quote__col{
  display:flex; flex-direction:column; justify-content:space-between;
  gap:32px; padding:var(--sec-sm) 0 34px var(--pad);
}
.quote__labels{ display:flex; flex-direction:column; gap:2px; margin-top:16px; font-weight:500; }

/* rule + quote block */
.quote__note{
  border-left:3px solid var(--ink);
  padding-left:18px;
  margin-top:clamp(26px,3.2vw,54px);
}
.quote__note blockquote{ margin-bottom:14px; max-width:none; }
.quote__sub{
  font-size:var(--fs-body-sm); font-weight:600;
  letter-spacing:-.04em; line-height:1.28;
  text-transform:uppercase; max-width:48ch;
}

.quote__bottom{ display:flex; flex-direction:column; gap:18px; }
.quote__thumbs{ display:flex; gap:13px; }
.quote__thumbs img{
  width:clamp(62px,5.6vw,88px); aspect-ratio:3/4;
  object-fit:cover; background:var(--white);
}
.quote__foot{
  display:flex; justify-content:space-between; gap:16px;
  border-top:1px solid var(--hair-ink); padding-top:14px;
  padding-right:var(--pad);
}

/* hatched divider band */
.quote__stripes{
  background-image:repeating-linear-gradient(90deg,
    rgba(5,6,9,.62) 0 1px, transparent 1px 5px);
}

/* full-bleed render with overlaid stamp */
.quote__fig{ position:relative; overflow:hidden; }
.quote__fig img{ width:100%; height:100%; object-fit:cover; }
.quote__stamp{
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  color:var(--white); font-weight:700; text-transform:uppercase;
  font-size:clamp(26px,3.5vw,58px); letter-spacing:-.05em;
  white-space:nowrap; pointer-events:none;
}

/* ── 09 STUDIO ───────────────────────────────── */

.studio{
  background:var(--white); color:var(--ink);
  padding:var(--sec) var(--pad);
  position:relative; z-index:5;
  display:grid; grid-template-columns:1.25fr .75fr; gap:clamp(28px,4vw,70px); align-items:center;
}
.studio__fig img{ width:100%; aspect-ratio:16/9; object-fit:cover; filter:grayscale(1) contrast(1.1); }
.studio__fig figcaption{ margin-top:12px; color:var(--dim-ink); }
.studio .tag{ color:var(--ink); opacity:.5; }
.studio .body-sm{ color:rgba(5,6,9,.66); }
.studio h3{ margin-bottom:16px; }

.specs{ display:flex; flex-direction:column; gap:12px; margin:26px 0; border-top:1px solid var(--hair-ink); padding-top:16px; }
.specs > div{ display:flex; justify-content:space-between; gap:16px; }
.specs .dim{ color:var(--dim-ink); }

.btn{
  display:inline-flex; align-items:center; gap:12px;
  padding:14px 22px; background:var(--ink); color:var(--white);
  font-family:var(--mono); font-size:12px; letter-spacing:-.03em; text-transform:uppercase;
  position:relative; overflow:hidden;
}
.btn i{ font-style:normal; transition:transform .5s var(--e-out); }
.btn::before{
  content:""; position:absolute; inset:0; background:var(--accent);
  transform:translateY(101%); transition:transform .5s var(--e-out); z-index:0;
}
.btn:hover::before{ transform:translateY(0); }
.btn:hover{ color:var(--ink); }
.btn:hover i{ transform:translateX(6px); }
.btn span,.btn i{ position:relative; z-index:1; }

/* ── 10 EXHIBITION ───────────────────────────── */

.exhib{ background:var(--bg); position:relative; z-index:5; display:grid; grid-template-columns:1fr 1fr; align-items:stretch; }
.exhib__media{ overflow:hidden; }
.exhib__media img{ width:100%; height:100%; min-height:70svh; object-fit:cover; filter:grayscale(1) contrast(1.2); transform:scale(1.08); will-change:transform; }
.exhib__panel{ display:flex; flex-direction:column; justify-content:center; padding:var(--sec-sm) var(--pad); gap:16px; }
.exhib__meta{ display:flex; flex-direction:column; gap:7px; color:var(--dim); border-top:1px solid var(--hair); padding-top:16px; margin-top:14px; }

/* ── 11 SHOWROOM ─────────────────────────────── */

.showroom{ background:var(--accent); color:var(--ink); overflow:hidden; padding:14px 0; position:relative; z-index:5; }
.showroom__track{
  display:flex; gap:26px; white-space:nowrap;
  font-weight:800; font-size:clamp(26px,4.4vw,58px); letter-spacing:-.05em; line-height:1;
  animation:slide2 20s linear infinite;
}

/* ── 12 PROJECT ──────────────────────────────── */

.project{ background:var(--bg-3); padding:var(--sec) var(--pad); position:relative; z-index:5; }
.project__head{ margin-bottom:clamp(34px,4vw,64px); }
.project__grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,4vw,70px); margin-bottom:clamp(34px,4vw,64px); }
.project__lead{ max-width:30ch; }
.project__specs{ display:flex; flex-direction:column; gap:14px; border-top:1px solid var(--hair); padding-top:18px; }
.project__specs > div{ display:grid; grid-template-columns:110px 1fr; gap:16px; }
.project__media{ overflow:hidden; }
.project__media img{ width:100%; aspect-ratio:21/9; object-fit:cover; filter:grayscale(1) contrast(1.2); transform:scale(1.08); will-change:transform; }

/* ── 13 ABOUT ────────────────────────────────── */

.about{ background:var(--bg-3); padding:var(--sec-sm) var(--pad) var(--sec); position:relative; z-index:5; display:grid; grid-template-columns:.75fr 1.25fr; gap:clamp(28px,4vw,70px); align-items:center; }
.about__media img{ width:100%; aspect-ratio:3/4; object-fit:cover; }
/* mirrored so it faces into the copy instead of off the page */
.about__media img.is-flipped{ transform:scaleX(-1); }
.about__cap{ display:block; margin-top:12px; }
.about h2{ margin-bottom:20px; }

.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.tags li{
  font-family:var(--mono); font-size:11px; letter-spacing:-.03em; text-transform:uppercase;
  border:1px solid var(--hair); padding:8px 13px;
  transition:background .35s, color .35s, border-color .35s;
}
.tags li:hover{ background:var(--accent); color:var(--ink); border-color:var(--accent); }

/* ── FOOTER ──────────────────────────────────── */

.footer{ background:var(--bg); padding:var(--sec) var(--pad) 0; position:relative; z-index:5; border-top:1px solid var(--hair); overflow:hidden; }
.footer__top{ display:grid; grid-template-columns:1.3fr .7fr; gap:32px; align-items:end; margin-bottom:clamp(50px,6vw,100px); }

.mail{ display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--hair); padding-bottom:14px; transition:border-color .4s, color .4s; }
.mail i{ font-style:normal; transition:transform .5s var(--e-out); }
.mail:hover{ color:var(--accent); border-color:var(--accent); }
.mail:hover i{ transform:translate(5px,-5px); }

.footer__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; padding-bottom:clamp(40px,5vw,80px); }
.footer__col{ display:flex; flex-direction:column; gap:9px; }
.flink{
  font-family:var(--mono); font-size:12px; letter-spacing:-.03em; text-transform:uppercase;
  width:fit-content; position:relative;
}
.flink::after{ content:""; position:absolute; left:0; bottom:-2px; width:0; height:1px; background:var(--accent); transition:width .45s var(--e-out); }
.flink:hover{ color:var(--accent); }
.flink:hover::after{ width:100%; }

.footer__mark{
  font-weight:900; font-size:19.5vw; letter-spacing:-.075em; line-height:.76;
  text-align:center; white-space:nowrap;
  background:linear-gradient(180deg, rgba(129,255,40,.34), rgba(129,255,40,.05));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  margin:0 -2vw;
}
.footer__bar{ display:flex; justify-content:space-between; gap:16px; color:var(--dim); border-top:1px solid var(--hair); padding:16px 0; }

/* ── RESPONSIVE ──────────────────────────────── */

@media (max-width:1080px){
  .work__grid{ grid-template-columns:repeat(2,1fr); }
  .panel__grid{ grid-template-columns:1fr; gap:26px; }
  .light__bottom{ grid-template-columns:1fr; }
  .quote{ grid-template-columns:1fr 64px 42%; }
}

@media (max-width:860px){
  :root{ --pad:18px; }
  .nav__links,.nav__meta{ display:none; }
  .nav__burger{ display:flex; }

  /* hero keeps its layered composition, scaled down */
  .phases{ grid-template-columns:repeat(2,1fr); padding-top:104px; }
  .phase:nth-child(n+3){ display:none; }
  .hero__portrait{ width:96vw; right:-14vw; opacity:.45; }
  .wordmark{
    font-size:clamp(76px,30vw,230px);
    padding-top:130px; padding-bottom:120px;
  }
  .hero__head{
    top:78px; left:var(--pad); right:var(--pad);
    max-width:none; text-align:left;
  }
  .hero__h1{ font-size:clamp(21px,6.4vw,30px); }
  .hero__id{ justify-content:flex-start; }
  .hero__foot{ bottom:22px; gap:16px; }
  .hero__cats{ padding-left:14px; }
  .hero__cats li{ font-size:13px; }

  .manifesto,
  .feature,.studio,.exhib,.about,
  .footer__top,.project__grid,
  .light__top,.manifesto__cols{ grid-template-columns:1fr; }

  .work__grid{ grid-template-columns:1fr; }
  .card--up{ transform:none; }
  /* quote: image drops below the copy, stripes become a thin rule */
  .quote{ grid-template-columns:1fr; min-height:0; }
  .quote__col{ padding:var(--sec-sm) var(--pad) 28px; }
  .quote__foot{ padding-right:0; }
  .quote__stripes{ height:26px; background-image:repeating-linear-gradient(90deg, rgba(5,6,9,.62) 0 1px, transparent 1px 5px); }
  .quote__fig img{ aspect-ratio:4/5; height:auto; }

  .stats{ grid-template-columns:1fr; gap:14px; }
  .panel__notes,.modlist{ grid-template-columns:1fr; }

  .row{ grid-template-columns:1fr auto; gap:6px 14px; }
  .row__body{ grid-column:1/-1; }
  .row__n{ text-align:right; }
  .rows__peek{ display:none; }

  .archive__head{ flex-direction:column; align-items:flex-start; }
  .exhib__media img{ min-height:52svh; }
  .footer__grid{ grid-template-columns:1fr 1fr; }
  .footer__bar{ flex-direction:column; gap:5px; }
  .body{ max-width:100%; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
  .js .line__i,.js .reveal{ opacity:1 !important; transform:none !important; }
}
