/* ==========================================================
   DAGIM DEBREWORK — portfolio 2026
   paper / ink / one hot colour. Archivo (variable width),
   Instrument Serif, Martian Mono.
   ========================================================== */

:root {
  --paper: #E8E3D6;
  --paper-2: #DDD7C7;
  --ink: #0C0C0B;
  --ink-2: #1A1A18;
  --hot: #FF4313;
  --pad: clamp(16px, 2.8vw, 44px);
  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --snap: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--hot); color: var(--ink); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- reveal primitives ---------- */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%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;
  mix-blend-mode: multiply;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-2%, 3%); } 80% { transform: translate(4%, 1%); } 100% { transform: translate(0, 0); }
}

/* ---------- cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--paper); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .2s, opacity .2s;
  opacity: 0;
}
.has-cursor .cursor.on { opacity: 1; }
.cursor span { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--ink); opacity: 0; white-space: nowrap; }
.cursor.link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--hot); mix-blend-mode: normal; }
.cursor.label span { opacity: 1; }
.cursor.down { transform-origin: center; filter: brightness(.9); }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 80; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--hot); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  padding: var(--pad); display: grid; grid-template-rows: 1fr auto;
  transition: transform 1s var(--snap);
}
html:not(.js) .loader { display: none; }
.loader.done { transform: translateY(-101%); }
.loader__log { font-family: var(--mono); font-size: 12px; line-height: 2; color: #8d897e; }
.loader__log p { opacity: 0; transform: translateY(6px); transition: .25s; }
.loader__log p.on { opacity: 1; transform: none; }
.loader__log p:last-child.on { color: var(--hot); }
.loader__name { position: absolute; right: var(--pad); top: var(--pad); text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.8; }
.loader__count {
  font-variation-settings: "wdth" 70, "wght" 900; font-size: clamp(7rem, 30vw, 28rem); line-height: .78;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; align-self: end; margin-left: -.04em;
}
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }
.loader__bar i { display: block; height: 100%; background: var(--hot); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--paper); mix-blend-mode: difference;
}
.on-hot .bar { mix-blend-mode: normal; color: var(--ink); }
.bar__logo { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 900; font-size: 19px; letter-spacing: -.01em; }
.bar__logo sup { font-size: .5em; }
.bar__nav { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.bar__nav a, .bar__status { position: relative; padding: 6px 0; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.bar__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.bar__status { display: flex; align-items: center; gap: 9px; }
.bar__status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 16px 22px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transition: box-shadow .25s var(--ease), background .2s, color .2s;
  will-change: transform;
}
.btn span { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover { box-shadow: 10px 10px 0 var(--ink); }
.btn:hover span { transform: translateX(5px); }
.btn:active { box-shadow: 0 0 0 var(--ink); }
.btn--hot { background: var(--hot); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--paper); }
.btn--ink:hover { box-shadow: 10px 10px 0 var(--paper); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  padding: 78px var(--pad) 22px;
  display: grid; grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "a" "meta" "b" "foot";
}
.hero__name { display: contents; }
.vf {
  display: flex; width: max-content; max-width: none;
  font-family: var(--display); text-transform: uppercase; line-height: .8; white-space: nowrap;
  letter-spacing: -.012em; padding-block: .045em; overflow: hidden;
}
.vf .ch { display: inline-block; font-variation-settings: "wdth" var(--w, 90), "wght" 900; will-change: font-variation-settings; }
.vf .sp { display: inline-block; width: .22em; }
.js .vf .ch { transform: translateY(112%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 38ms + var(--ld, 0ms)); }
.js .ready .hero .vf .ch, .js .vf.in .ch { transform: none; }

.hero .vf { color: var(--paper); mix-blend-mode: difference; position: relative; z-index: 3; font-size: var(--fs, 15vw); }
.hero .vf--a { grid-area: a; }
.hero .vf--b { grid-area: b; --ld: 160ms; }

.hero__portrait {
  position: absolute; right: clamp(0px, 5vw, 90px); bottom: 0; z-index: 1;
  height: min(88svh, 66vw); aspect-ratio: 1075 / 1463;
  mix-blend-mode: multiply;
}
.hero__portrait canvas { width: 100%; height: 100%; display: block; }
.hero__hint {
  position: absolute; left: 8%; top: 9%;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 6px 9px; rotate: -6deg;
  opacity: 0; transition: opacity .6s 2.6s;
}
.ready .hero__hint { opacity: 1; }
.hero__hint.gone { opacity: 0; transition-delay: 0s; }

.hero__meta { grid-area: meta; align-self: center; max-width: 27rem; position: relative; z-index: 4; padding-block: 18px; }
.hero__lede { font-size: clamp(1.05rem, 1.45vw, 1.4rem); line-height: 1.28; font-variation-settings: "wdth" 88, "wght" 560; margin: 14px 0 26px; }
.hero__lede em { font-size: 1.14em; color: var(--hot); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__sticker {
  position: absolute; z-index: 5; width: clamp(96px, 10.5vw, 158px); aspect-ratio: 1;
  right: clamp(8px, 3vw, 50px); top: 15%;
  animation: spin 16s linear infinite;
}
.hero__sticker svg { width: 100%; height: 100%; display: block; }
.hero__sticker text { font-family: var(--mono); font-size: 13.4px; font-weight: 700; letter-spacing: .09em; fill: var(--ink); }
@keyframes spin { to { rotate: 360deg; } }

.hero__foot {
  grid-area: foot; position: relative; z-index: 4;
  display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper);
  box-shadow: 0 30px 0 30px var(--paper);
}

/* ==========================================================
   BANDS
   ========================================================== */
.bands { position: relative; z-index: 6; height: clamp(150px, 19vw, 260px); margin-top: -10px; overflow-x: clip; }
.band {
  position: absolute; left: -6vw; right: -6vw; top: 50%;
  overflow: hidden; white-space: nowrap; border-block: 3px solid var(--ink);
  font-variation-settings: "wdth" 72, "wght" 900; text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1; padding: .2em 0 .16em;
}
.band--ink { background: var(--ink); color: var(--paper); transform: translateY(-50%) rotate(-3.2deg); }
.band--hot { background: var(--hot); color: var(--ink); transform: translateY(-50%) rotate(2.4deg); font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.band__in { display: inline-flex; align-items: center; gap: .5em; padding-right: .5em; will-change: transform; }
.band__in b { font-weight: 400; font-style: normal; font-family: var(--display); color: var(--hot); }
.band--hot .band__in b { color: var(--ink); }

/* ==========================================================
   MANIFESTO
   ========================================================== */
.manifesto {
  display: grid; grid-template-columns: minmax(200px, 1fr) 3.2fr; gap: clamp(24px, 5vw, 90px);
  padding: clamp(80px, 12vw, 190px) var(--pad) clamp(70px, 9vw, 140px);
}
.manifesto__side { display: flex; flex-direction: column; gap: 34px; position: sticky; top: 90px; align-self: start; }
.facts { display: grid; gap: 14px; font-size: 13.5px; line-height: 1.4; max-width: 19rem; }
.facts div { border-top: 2px solid var(--ink); padding-top: 9px; display: grid; grid-template-columns: 62px 1fr; gap: 10px; }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.facts dd { font-variation-settings: "wdth" 90, "wght" 520; }
.manifesto__text {
  font-size: clamp(2rem, 5.3vw, 5.6rem); line-height: .98; letter-spacing: -.022em;
  font-variation-settings: "wdth" 74, "wght" 800; text-transform: uppercase; text-wrap: balance;
}
.manifesto__text em { text-transform: none; color: var(--hot); font-size: 1.06em; letter-spacing: -.02em; }
.manifesto__text .w { display: inline-block; opacity: .1; transition: opacity .35s linear; }
.manifesto__text .w.on { opacity: 1; }

/* ==========================================================
   STATS
   ========================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 3px solid var(--ink); }
.stat {
  position: relative; padding: clamp(22px, 2.6vw, 40px) var(--pad) clamp(26px, 3vw, 46px);
  border-right: 3px solid var(--ink); overflow: hidden; isolation: isolate;
  min-height: clamp(220px, 24vw, 360px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.stat:last-child { border-right: 0; }
.stat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hot); transform: translateY(101%); transition: transform .6s var(--ease); }
.stat:hover::before { transform: none; }
.stat__n {
  font-variation-settings: "wdth" 66, "wght" 900; font-size: clamp(3.6rem, 8.4vw, 8.6rem);
  line-height: .8; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__n s { text-decoration-thickness: .07em; opacity: .35; }
.stat__n small { font-family: var(--mono); font-size: .14em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-left: .5em; }
.stat__l { font-size: 14px; line-height: 1.35; max-width: 17rem; font-variation-settings: "wdth" 92, "wght" 520; }

/* ==========================================================
   WORK
   ========================================================== */
.work { background: var(--ink); color: var(--paper); position: relative; }
.work__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.work__hud {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; z-index: 5;
  display: flex; align-items: center; gap: 22px; pointer-events: none;
}
.work__counter { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.work__counter b { color: var(--hot); font-weight: 600; }
.work__rail { flex: 1; height: 2px; background: rgba(232, 227, 214, .2); }
.work__rail i { display: block; height: 100%; background: var(--hot); transform-origin: 0 50%; transform: scaleX(0); }

.work__track { display: flex; align-items: center; height: 100%; gap: clamp(60px, 9vw, 170px); padding: 0 var(--pad) 30px; width: max-content; will-change: transform; }
.panel {
  position: relative; flex: 0 0 auto; width: min(1240px, 86vw);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr); gap: clamp(26px, 4vw, 70px); align-items: center;
}
.panel--intro, .panel--outro { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px; width: auto; min-width: min(720px, 78vw); }
.work__title {
  font-variation-settings: "wdth" 68, "wght" 900; text-transform: uppercase;
  font-size: clamp(4.2rem, 13.5vw, 14.5rem); line-height: .8; letter-spacing: -.025em;
}
.work__title sup { font-family: var(--mono); font-size: .09em; font-weight: 500; letter-spacing: .04em; vertical-align: top; position: relative; top: 1.2em; margin-left: .8em; color: var(--hot); }
.outline { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.work__sub { max-width: 30rem; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.35; font-variation-settings: "wdth" 90, "wght" 480; }
.work__go { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hot); }
.only-s { display: none; }

.panel__num {
  position: absolute; right: -2vw; top: -.36em; z-index: 0; pointer-events: none;
  font-variation-settings: "wdth" 62, "wght" 900; font-size: clamp(9rem, 25vw, 26rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(232, 227, 214, .2);
  transform: translateX(var(--px, 0px));
}
.panel__body { position: relative; z-index: 2; }
.panel__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--hot); margin-bottom: 14px; }
.panel h3 {
  font-variation-settings: "wdth" 66, "wght" 900; text-transform: uppercase;
  font-size: clamp(2.7rem, 6.2vw, 6.6rem); line-height: .82; letter-spacing: -.02em; text-wrap: balance;
}
.panel__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.95rem); line-height: 1.1; margin: 14px 0 18px; }
.panel__desc { font-size: 15px; line-height: 1.5; color: #bdb8ab; max-width: 31rem; font-variation-settings: "wdth" 94, "wght" 420; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 24px; }
.chips li { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border: 1.5px solid rgba(232, 227, 214, .45); }
.link {
  display: inline-flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .03em;
  padding-bottom: 5px; border-bottom: 2px solid var(--hot); transition: color .2s, gap .4s var(--ease);
}
.link:hover { color: var(--hot); gap: 16px; }

.frame {
  position: relative; z-index: 2; display: block; background: var(--paper); color: var(--ink);
  border: 3px solid var(--paper); box-shadow: 14px 14px 0 var(--hot);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform .7s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.frame.live { transition: transform .12s linear, box-shadow .5s var(--ease); }
.frame:hover { box-shadow: 24px 24px 0 var(--hot); }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-bottom: 3px solid var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.frame__bar i { width: 10px; height: 10px; background: var(--ink); }
.frame__bar i:first-child { background: var(--hot); }
.frame__bar span { margin-left: auto; }
.frame__img { aspect-ratio: 16 / 9.2; overflow: hidden; background: var(--ink-2); }
.frame__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.04) translate3d(var(--ix, 0px), var(--iy, 0px), 0); transition: transform .9s var(--ease); }
.frame.live .frame__img img { transition: transform .15s linear; }

/* ==========================================================
   SECTION HEADS
   ========================================================== */
.sec-head { display: grid; grid-template-columns: minmax(200px, 1fr) 3.2fr; gap: clamp(24px, 5vw, 90px); align-items: start; margin-bottom: clamp(40px, 6vw, 90px); }
.sec-title { font-variation-settings: "wdth" 68, "wght" 900; text-transform: uppercase; font-size: clamp(3.2rem, 10vw, 10.5rem); line-height: .8; letter-spacing: -.025em; }
.sec-title em { text-transform: none; font-size: 1.05em; letter-spacing: -.02em; color: var(--hot); }

/* ==========================================================
   EXPERIENCE
   ========================================================== */
.xp { padding: clamp(80px, 11vw, 170px) var(--pad) clamp(70px, 9vw, 140px); }
.xp__list { border-top: 3px solid var(--ink); }
.row { position: relative; border-bottom: 3px solid var(--ink); isolation: isolate; transition: color .35s; }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.row.open::before, .row:hover::before { transform: scaleY(1); }
.row.open, .row:hover { color: var(--paper); }
.row__head {
  width: 100%; text-align: left; display: grid; grid-template-columns: minmax(150px, 1fr) 2.1fr 1.1fr 44px; gap: clamp(14px, 3vw, 50px); align-items: center;
  padding: clamp(20px, 2.4vw, 36px) clamp(10px, 1.4vw, 22px);
}
.row__when { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.row__who { font-variation-settings: "wdth" 70, "wght" 900; text-transform: uppercase; font-size: clamp(1.9rem, 4.6vw, 4.6rem); line-height: .86; letter-spacing: -.02em; transition: transform .6s var(--ease); }
.row:hover .row__who, .row.open .row__who { transform: translateX(14px); }
.row__who small { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: .4em; letter-spacing: 0; margin-top: .45em; line-height: 1; }
.row__metric { font-variation-settings: "wdth" 66, "wght" 900; font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: .86; color: var(--hot); white-space: nowrap; text-align: right; }
.row__metric small { display: block; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; margin-top: 8px; color: inherit; }
.row__plus { position: relative; width: 30px; height: 30px; justify-self: end; }
.row__plus::before, .row__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: currentColor; transition: transform .5s var(--ease); }
.row__plus::after { transform: rotate(90deg); }
.row.open .row__plus::after { transform: rotate(0deg); }
.row__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.row.open .row__more { grid-template-rows: 1fr; }
.row__more > div { overflow: hidden; }
.row__more ul {
  margin-left: calc((100% - 44px) * .238 + clamp(14px, 3vw, 50px) * .9); max-width: 46rem;
  padding: 0 20px clamp(26px, 3vw, 44px) clamp(10px, 1.4vw, 22px); display: grid; gap: 11px;
  font-size: 15.5px; line-height: 1.45; font-variation-settings: "wdth" 94, "wght" 420;
}
.row__more li { position: relative; padding-left: 26px; }
.row__more li::before { content: "→"; position: absolute; left: 0; color: var(--hot); font-family: var(--mono); font-size: 12px; top: 2px; }
.row__more b { color: var(--hot); font-variation-settings: "wdth" 94, "wght" 750; }

/* ==========================================================
   STACK
   ========================================================== */
.stack { background: var(--hot); padding: clamp(70px, 9vw, 140px) var(--pad) clamp(50px, 6vw, 90px); border-top: 3px solid var(--ink); }
.stack .sec-head { grid-template-columns: minmax(200px, 1fr) 2.2fr auto; align-items: end; margin-bottom: clamp(28px, 3.4vw, 50px); }
.stack .sec-head .tag { align-self: start; }
.stack .sec-title em { color: var(--paper); }
.stack__ctl { display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 10px; }
.stack .btn { box-shadow: 6px 6px 0 var(--ink); }
.stack .btn:hover { box-shadow: 10px 10px 0 var(--ink); }
.stack .btn--ink { border-color: var(--ink); }

.pit { position: relative; border: 3px solid var(--ink); background: var(--hot); min-height: 300px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.pit__ghost {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-variation-settings: "wdth" 125, "wght" 900; font-size: clamp(5rem, 23vw, 25rem); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px rgba(12, 12, 11, .22);
}
.pit__list { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 22px; }
.pill {
  font-variation-settings: "wdth" 84, "wght" 800; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(13px, 1.25vw, 19px); line-height: 1; padding: .72em 1.15em .66em; border-radius: 99px;
  border: 2.5px solid var(--ink); letter-spacing: -.005em;
}
.pill--l { font-size: clamp(16px, 1.9vw, 30px); }
.pill--xl { font-size: clamp(22px, 3vw, 50px); }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--paper { background: var(--paper); color: var(--ink); }
.pill--line { background: var(--hot); color: var(--ink); }
.pit.live { height: min(76svh, 720px); touch-action: pan-y; }
.pit.live .pit__list { position: absolute; inset: 0; display: block; padding: 0; }
.pit.live .pill { position: absolute; left: 0; top: 0; will-change: transform; }
.has-cursor .pit.live { cursor: none; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { background: var(--ink); color: var(--paper); padding: clamp(70px, 9vw, 140px) var(--pad) 0; overflow: hidden; }
.contact__big { margin: clamp(26px, 3vw, 46px) 0 clamp(40px, 5vw, 80px); }
.contact .vf { font-size: var(--fs, 13vw); }
.contact .vf .ch { font-variation-settings: "wdth" var(--w, 84), "wght" 900; }
.vf--hot { color: var(--hot); --ld: 120ms; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(26px, 5vw, 90px) clamp(24px, 5vw, 90px); align-items: start; padding-bottom: clamp(60px, 8vw, 120px); }
.contact__lede { font-size: clamp(1.05rem, 1.5vw, 1.45rem); line-height: 1.32; font-variation-settings: "wdth" 90, "wght" 480; max-width: 26rem; grid-row: span 2; }
.contact__lede em { color: var(--hot); font-size: 1.16em; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.mail {
  font-variation-settings: "wdth" 70, "wght" 800; font-size: clamp(1.5rem, 4.5vw, 4.5rem); line-height: 1; letter-spacing: -.015em;
  background: linear-gradient(var(--hot), var(--hot)) 0 100% / 100% 4px no-repeat; padding-bottom: .16em;
  transition: background-size .5s var(--ease), color .3s;
}
.mail:hover { background-size: 100% 100%; color: var(--ink); }
.copy { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 12px 16px; border: 2px solid var(--paper); transition: background .2s, color .2s; }
.copy:hover, .copy.ok { background: var(--paper); color: var(--ink); }
.contact__links { display: flex; flex-wrap: wrap; gap: 0 30px; border-top: 2px solid rgba(232, 227, 214, .3); }
.contact__links li { flex: 1 1 180px; border-bottom: 2px solid rgba(232, 227, 214, .3); }
.contact__links a { display: flex; justify-content: space-between; padding: 18px 14px 18px 0; font-variation-settings: "wdth" 76, "wght" 800; text-transform: uppercase; font-size: clamp(1.1rem, 1.7vw, 1.6rem); transition: color .2s, padding .5s var(--ease); }
.contact__links a:hover { color: var(--hot); padding-left: 12px; }
.contact__links span { font-family: var(--mono); font-size: .7em; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 22px; border-top: 2px solid var(--paper); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.foot b { color: var(--hot); font-weight: 600; font-variant-numeric: tabular-nums; }
.foot a:hover { color: var(--hot); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 3px solid var(--ink); }
  .stack .sec-head { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .bar__nav { display: none; }
  .hide-s { display: none; }

  .hero { padding-top: 70px; grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "a" "b" "." "meta" "foot"; }
  .hero__portrait { right: -20vw; bottom: 40px; height: min(80svh, 150vw); }
  .hero__meta { max-width: 58%; padding-bottom: 8px; }
  .hero__meta .tag { background: var(--paper); box-shadow: 0 0 0 6px var(--paper); display: inline-block; }
  .hero__lede { background: var(--paper); box-shadow: 0 0 0 8px var(--paper); font-size: 1rem; }
  .hero__cta .btn { padding: 13px 15px; font-size: 11px; }
  .hero__sticker { top: auto; bottom: 24%; right: 10px; }
  .hero__hint { display: none; }

  .manifesto, .sec-head { grid-template-columns: 1fr; }
  .manifesto__side { position: static; }
  .manifesto__text { font-size: clamp(2rem, 9.4vw, 4rem); }

  /* work becomes a vertical stack */
  .work__sticky { position: static; height: auto; overflow: visible; }
  .work__hud { display: none; }
  .work__track { flex-direction: column; align-items: stretch; width: auto; height: auto; gap: 90px; padding: 90px var(--pad); transform: none !important; }
  .panel { width: 100%; grid-template-columns: 1fr; gap: 26px; }
  .panel--intro, .panel--outro { min-width: 0; }
  .panel .frame { order: -1; box-shadow: 9px 9px 0 var(--hot); }
  .panel__num { top: auto; bottom: -.1em; right: 0; font-size: 9rem; opacity: .7; }
  .only-l { display: none; } .only-s { display: inline; }

  .row__head { grid-template-columns: 1fr 34px; gap: 10px 14px; }
  .row__when { grid-column: 1 / -1; }
  .row__metric { grid-column: 1; grid-row: 3; text-align: left; }
  .row__metric small { display: inline; margin-left: 8px; }
  .row__plus { grid-row: 2; grid-column: 2; }
  .row__more ul { margin-left: 0; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__lede { grid-row: auto; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 3px solid var(--ink); min-height: 190px; }
  .stat:last-child { border-bottom: 0; }
  .stat__n { font-size: 5.4rem; }
  .bar__status { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero__sticker, .bar__status i { animation: none; }
  .js .rv, .js .vf .ch { transition-duration: .01s; transition-delay: 0s; }
  .manifesto__text .w { opacity: 1; }
  .loader { transition-duration: .01s; }
}
