/* =========================================================
   KALLOL DEB — v3. Editorial landing → techno-brutalist spec sheets below.
   Black, paper grey, signal red, pink. PP Hatton for display, Geist for text, JetBrains Mono for data.
   Notched paper panels, crosshair targets, barcodes, hex logs, echoed display type.
   Everything that moves animates transform / opacity only.
   ========================================================= */
@font-face { font-family: "Hatton"; src: url(../assets/fonts/pp-hatton-ultralight-200.otf) format("opentype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Hatton"; src: url(../assets/fonts/pp-hatton-medium-500.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hatton"; src: url(../assets/fonts/pp-hatton-bold-700.otf) format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0b0a;
  --bg-2: #141413;
  --paper: #ecebe4;
  --paper-2: rgba(236, 235, 228, .78);
  --card: #dcdad5;        /* the spec-sheet paper */
  --ink: #111110;
  --steel: #8b8a84;
  --signal: #e3262c;      /* red */
  --pink: #f2b5b8;
  --rule: rgba(236, 235, 228, .16);
  --g: clamp(14px, 1.6vw, 28px);
  --rail: clamp(56px, 5vw, 92px);
  --f-display: "Hatton", Georgia, serif;
  --f-text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --notch: polygon(0 22px, 22px 0, 36% 0, calc(36% + 12px) 10px, calc(100% - 22px) 10px, 100% 32px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 64% 100%, calc(64% - 12px) calc(100% - 10px), 22px calc(100% - 10px), 0 calc(100% - 32px));
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--paper); font-family: var(--f-text); font-weight: 300;
  font-size: 13px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--signal); color: var(--paper); }
.mono { font-family: var(--f-mono); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.hud, .hero__meta, .loader__l, .toast, .hero__scroll { font-family: var(--f-text); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; }
[data-x] { display: inline-block; flex: none; line-height: 0; }
[data-x] svg { display: block; width: 100%; height: 100%; }

/* ---------- the particle canvas + film grain ---------- */
.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }
.grain { position: fixed; inset: -50%; z-index: 45; pointer-events: none; opacity: .07; background: url(../assets/grain.png) 0 0 / 256px 256px;
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); } 60% { transform: translate(-3%, -2%); } 80% { transform: translate(6%, 5%); } 100% { transform: translate(0, 0); } }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: flex-end; justify-content: space-between; padding: var(--g); pointer-events: none; }
.loader__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader.is-out { background: transparent; } /* the dissolve: the character cells do the covering now */
.loader__n, .loader__l { position: relative; z-index: 1; }
.loader__n { font-family: var(--f-display); font-weight: 200; font-size: clamp(90px, 17vw, 300px); line-height: .8; letter-spacing: -.02em; }
.loader__l { font-size: 11px; color: var(--steel); padding-bottom: 1.2em; }

/* ---------- HUD ---------- */
.hud { position: fixed; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--g);
  padding: 12px var(--g); font-size: 11px; mix-blend-mode: difference; color: #fff; pointer-events: none; }
.hud a { pointer-events: auto; }
.hud--top { top: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hud--bottom { bottom: 0; grid-template-columns: 1fr auto 1fr; border-top: 1px solid rgba(255,255,255,.14); }
.hud--bottom > :last-child { text-align: right; }
.hud--bottom > :nth-child(2) { text-align: center; }
.hud__mark { font-family: var(--f-display); font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; }
.hud__mark sup { font-size: 7px; font-family: var(--f-text); }
.hud__clock { font-variant-numeric: tabular-nums; }
.hud--top { grid-template-columns: auto 1fr auto auto auto; }
/* sound toggle: four tiny level bars that dance while it's on */
.hud__sound { pointer-events: auto; display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.hud__sound i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.hud__sound span { margin-left: 8px; align-self: center; }
.hud__sound.is-on i { animation: eq .9s ease-in-out infinite alternate; }
.hud__sound.is-on i:nth-child(2) { animation-delay: -.3s; } .hud__sound.is-on i:nth-child(3) { animation-delay: -.6s; } .hud__sound.is-on i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.hud__nav { display: flex; gap: 22px; }
.hud__nav a { position: relative; }
.hud__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hud__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) { .hud__role, .hud__clock, .hud__sound span { display: none; } .hud--top { grid-template-columns: auto 1fr auto; } .hud__sound { justify-self: end; } .hud__nav { justify-content: flex-end; gap: 14px; } }

/* ---------- side rails (past the landing) ---------- */
.rail { position: fixed; top: 46px; bottom: 40px; z-index: 30; width: var(--rail); display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; color: var(--paper); pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.rail--l { left: 0; } .rail--r { right: 0; }
body:not(.is-loading) .rail { opacity: 1; }
.rail [data-x="cross"] { width: 16px; height: 16px; }
.rail [data-x="globe"] { width: 22px; height: 22px; }
.rail [data-x="barcode"] { width: 22px; height: 70px; }
.rail__txt { writing-mode: vertical-rl; rotate: 180deg; font-family: var(--f-text); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(12px, 1.05vw, 17px); white-space: nowrap; }
.rail--r .rail__txt { rotate: none; }
.rail__txt--hl { color: var(--paper); } .rail__txt--pink { color: var(--pink); }
.rail__line { flex: 1; width: 1px; min-height: 30px; background: rgba(236,235,228,.35); }
.rail__mono { writing-mode: vertical-rl; font-size: 9px; color: var(--steel); }
@media (max-width: 860px) { .rail { display: none; } }

/* ---------- §01 hero: the particle portrait under an editorial frame ---------- */
.hero { position: relative; height: 260vh; z-index: 2; }
.hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__still { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .55; }
.no-gl .hero__still { display: block; }
.poster { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto;
  padding: clamp(84px, 15vh, 180px) clamp(22px, 7vw, 140px) clamp(110px, 17vh, 220px) clamp(40px, 10vw, 200px); } /* text block: a little right, a little up */
.poster::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 62% at 0% 100%, rgba(11, 11, 10, .94), rgba(11, 11, 10, .7) 42%, rgba(11, 11, 10, 0) 100%); }
.poster > * { position: relative; }
.hero__meta { display: grid; gap: 2px; font-size: clamp(11px, .92vw, 15px); line-height: 1.25; color: var(--paper-2); }
.poster__bl { position: relative; grid-area: 3 / 1; align-self: end; display: grid; gap: clamp(18px, 2.4vh, 30px); max-width: 32rem; }
.hero__name { margin: 0; font-family: var(--f-display); font-weight: 500; white-space: nowrap;
  font-size: clamp(44px, 5vw, 96px); line-height: .98; letter-spacing: -.012em; color: var(--pink); } /* the same pink as the page headers */
.hero__name .wd { display: inline-block; white-space: nowrap; }
.hero__name .ch { display: inline-block; will-change: transform, opacity; }
.poster__para { max-width: 27rem; font-family: var(--f-text); font-weight: 300; font-size: clamp(14px, 1.02vw, 17px); line-height: 1.55; letter-spacing: -.005em; color: rgba(236, 235, 228, .72); }
.poster__para p { margin: 0 0 1em; }
.poster__para p:last-child { margin: 0; }
.poster__br { grid-area: 3 / 2; justify-self: end; align-self: end; }
@media (max-width: 760px) {
  .poster { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding: 84px 22px 90px; row-gap: 22px; }
  .poster__bl { grid-area: 3 / 1; } .poster__para { max-width: none; } .poster__br { grid-area: 4 / 1; }
  .hero__name { font-size: 10vw; }
}
/* spec-sheet details on the landing */
.lhud { position: absolute; inset: 0; pointer-events: none; z-index: 1; color: var(--paper); }
.lhud__c { position: absolute; width: 16px; height: 16px; opacity: .75; }
.lhud__c--tl { left: calc(var(--rail) + 14px); top: 66px; } .lhud__c--tr { right: calc(var(--rail) + 14px); top: 66px; }
.lhud__c--bl { left: calc(var(--rail) + 14px); bottom: 58px; } .lhud__c--br { right: calc(var(--rail) + 14px); bottom: 58px; }
.lhud__meta { position: absolute; left: calc(var(--rail) + 44px); top: 64px; font-size: 10px; line-height: 1.55; color: var(--steel); }
.lhud__r { position: absolute; right: calc(var(--rail) + 18px); top: 50%; translate: 0 -50%; display: grid; justify-items: center; gap: 12px; font-size: 9px; color: var(--steel); }
.lhud__r [data-x="globe"] { width: 46px; height: 25px; color: var(--paper); }
.lhud__r [data-x="barcode"] { width: 20px; height: 110px; color: var(--paper); }
.lhud__strip { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px; border: 1px solid rgba(236,235,228,.55); font-size: 10px; letter-spacing: .14em; color: var(--paper-2); }
.lhud__strip b { color: var(--signal); font-weight: 400; }
.lhud__serial { display: grid; gap: 7px; width: 148px; padding: 14px 13px 12px; border-radius: 12px; background: var(--signal); color: #fff; font-size: 8.5px; line-height: 1.45; }
.lhud__serial b { font-family: var(--f-mono); font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: 0; }
.lhud__serial [data-x="barcode"] { width: 100%; height: 22px; }
.lhud__serial [data-x="spark"] { width: 11px; height: 11px; justify-self: end; }
@media (max-width: 860px) { .lhud__meta { left: 22px; } .lhud__r, .lhud__c { display: none; } .lhud__serial { width: 130px; } }
.hero__scroll { position: absolute; left: 50%; bottom: 58px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; color: var(--steel); }
.hero__scroll i { width: 1px; height: 30px; background: var(--steel); transform-origin: top; animation: line 1.8s var(--ease) infinite; }
@keyframes line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- the signal band ---------- */
.band { position: relative; z-index: 3; margin: -72vh 0 0; /* rises over the end of the snap: no blank screen between the dust and the work */ padding: 14px 0; background: var(--signal); color: var(--ink); overflow: hidden; rotate: -2.2deg; scale: 1.06; }
.band__track { display: flex; width: max-content; white-space: nowrap; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 1.3vw, 22px); letter-spacing: .06em; line-height: 1; will-change: transform; }
.band__track span { padding: 0 1.1em; display: inline-flex; align-items: center; gap: 1.1em; }
.band__track span::before { content: "▲"; font-size: .7em; }

/* ---------- pages below the landing ---------- */
.pg { position: relative; z-index: 2; background: var(--bg); padding: 0 calc(var(--rail) + 12px); }
@media (max-width: 860px) { .pg { padding: 0 18px; } }
/* page head: data in the corner, the echoed display title, a bordered status strip */
.phead { position: relative; display: grid; justify-items: center; text-align: center; padding: 20vh 0 9vh; }
.phead__meta { position: absolute; left: 0; top: 13vh; text-align: left; font-size: 10.5px; line-height: 1.55; color: var(--steel); }
.phead__title { margin: 0 0 .44em; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; white-space: nowrap; font-size: clamp(48px, 9vw, 180px); line-height: .86; letter-spacing: -.01em; } /* one line: the echo sits under it (js fits long titles to the width) */
.phead__tag { margin-top: clamp(26px, 4vh, 48px); padding: 9px 16px; border: 1px solid currentColor; font-size: 11px; letter-spacing: .14em; }
.phead__tag b { color: var(--signal); font-weight: 400; margin-right: .6em; }
@media (max-width: 860px) { .phead__meta { position: static; margin-bottom: 28px; justify-self: start; } }

/* echoed display type: a pink copy sits below/behind; hovering it glitches a red slice across */
.echo { position: relative; z-index: 0; display: inline-block; }
/* only one layer shows: on the case-study cards the black title (no pink copy); on the page headers and
   "Say hello" the pink copy alone, sitting where the title is (the white layer is hidden) */
.card__title.echo::after, .phead__title.echo::after, .contact__big.echo::after { display: none; }
.phead__title.echo, .contact__big.echo { color: var(--pink); }
.phead__title.echo { margin-bottom: 0; }
#contact .phead__title.echo { color: var(--paper); } /* the Contact header in white */
.phead__title.echo::before, .contact__big.echo::before, .card__title.echo::before { display: none; } /* no hover glitch anywhere */
.echo::after { content: attr(data-text); position: absolute; left: 0; right: 0; top: .44em; z-index: -1; color: var(--pink); pointer-events: none; white-space: inherit; }
.echo::before { content: attr(data-text); position: absolute; inset: 0; color: var(--signal); opacity: 0; pointer-events: none; white-space: inherit; }
.echo:hover::before, .echo.is-glitch::before { animation: glitch .55s steps(2) 2; }
@keyframes glitch {
  0% { opacity: 1; clip-path: inset(12% 0 70% 0); transform: translate(-8px, 0); }
  20% { clip-path: inset(55% 0 20% 0); transform: translate(10px, 0); }
  40% { clip-path: inset(30% 0 52% 0); transform: translate(-5px, 0); }
  60% { clip-path: inset(78% 0 4% 0); transform: translate(7px, 0); }
  80% { clip-path: inset(4% 0 84% 0); transform: translate(-10px, 0); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
}

/* the spec-sheet paper */
.paper { position: relative; background: var(--card); color: var(--ink); clip-path: var(--notch); }
.paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: multiply; background: url(../assets/grain.png) 0 0 / 200px 200px; }

/* ---------- §02 work: stacked data cards ---------- */
/* the cylinder: a tall scroll track with a sticky WebGL stage; scrolling through it turns the drum of cards */
.work.pg { padding-left: 0; padding-right: 0; margin-top: -72vh; } /* the drum runs edge to edge; the section rises over the end of the snap (no blank screen) */
.work .phead { flex: none; padding: clamp(104px, 15vh, 190px) calc(var(--rail) + 12px) 0; } /* locked to the top of the stage, with room above */
.work .phead__title { font-size: clamp(40px, 5.4vw, 108px); } /* smaller than the other page titles: the deck needs the room */
.work .phead__meta { top: auto; bottom: 0; left: calc(var(--rail) + 12px); } /* level with the status strip, clear of the title */
.work .phead__tag { margin-top: clamp(12px, 2vh, 22px); }
@media (max-width: 860px) { .work .phead { padding-left: 18px; padding-right: 18px; } }
.cyl { position: relative; height: 310vh; } /* about two-thirds of a screen of scroll per card */
.cyl__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.cyl__view { position: relative; flex: 1; min-height: 0; margin: clamp(4px, 1.4vh, 18px) 0 clamp(80px, 11vh, 132px); } /* the drum, under the title, above the counter */
.cyl__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cyl__hud { position: absolute; left: calc(var(--rail) + 12px); right: calc(var(--rail) + 12px); bottom: clamp(44px, 7vh, 80px);
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: clamp(14px, 2vw, 32px); font-size: 11px; letter-spacing: .14em; color: var(--steel); pointer-events: none; }
.cyl__idx b { color: var(--paper); font-weight: 700; }
.cyl__name { color: var(--pink); min-width: 14ch; }
.cyl__bar { position: relative; height: 1px; background: var(--rule); }
.cyl__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 860px) { .cyl__hud { left: 18px; right: 18px; grid-template-columns: auto 1fr; } .cyl__bar, .cyl__hint { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card { position: sticky; top: calc(9vh + var(--i) * 16px); height: min(80vh, 760px); max-width: 1180px; margin: 0 auto 16vh; perspective: 1500px; }
.card:last-child { margin-bottom: 0; }
.card__in { height: 100%; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: clamp(10px, 1.6vh, 18px);
  padding: clamp(26px, 3vh, 36px) clamp(22px, 2.6vw, 40px); transform-style: preserve-3d; will-change: transform; }
.card__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 5; }
.card__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.card__meta { font-size: 10px; line-height: 1.5; }
.card__pill { width: 86px; height: 30px; border-radius: 30px; background: var(--ink); display: grid; place-items: center; }
.card__pill i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px rgba(220,218,213,.5); }
.card__vol { justify-self: end; display: grid; justify-items: end; gap: 4px; font-size: 9px; }
.card__vol [data-x] { width: 52px; height: 28px; }
.card__title { justify-self: center; margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(40px, 6.4vw, 116px); line-height: .86; letter-spacing: -.01em; color: var(--ink); }
.card__strip { justify-self: center; display: flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1.5px solid var(--ink); font-size: 10.5px; letter-spacing: .12em; }
.card__strip b { display: grid; place-items: center; width: 16px; height: 16px; background: var(--ink); color: var(--card); font-size: 8px; font-weight: 400; }
.card__mid { display: grid; grid-template-columns: minmax(130px, 168px) 1fr minmax(140px, 190px); gap: clamp(14px, 2vw, 30px); align-items: stretch; min-height: 0; }
.card__serial { align-self: center; display: grid; gap: 8px; padding: 18px 14px; border-radius: 14px; background: var(--signal); color: #fff; font-size: 9px; line-height: 1.5; }
.card__serial b { font-family: var(--f-mono); font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); line-height: 1; letter-spacing: 0; }
.card__serial [data-x="barcode"] { width: 100%; height: 26px; }
.card__serial [data-x="spark"] { width: 14px; height: 14px; justify-self: center; }
.card__media { position: relative; margin: 0; min-height: 0; overflow: hidden; clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); background: #0b0b0a; transform: translateZ(40px); }
.card__media img, .card__media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.card:hover .card__media img, .card:hover .card__media svg { transform: scale(1.05); }
.card__spec { align-self: center; display: grid; gap: 12px; justify-items: start; font-size: 9.5px; line-height: 1.6; }
.card__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 6vw, 104px); line-height: .8; color: var(--ink); }
.card__spec [data-x="cross"] { width: 18px; height: 18px; }
.card__spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; }
.card__spec dt { color: #6d6b66; } .card__spec dd { margin: 0; }
.card__spec [data-x="barcode"] { width: 100%; height: 30px; }
.card__bottom { display: grid; grid-template-columns: minmax(130px, 168px) 1fr minmax(140px, 190px); gap: clamp(14px, 2vw, 30px); align-items: end; }
.card__log { font-size: 9.5px; line-height: 1.6; color: #3a3936; white-space: pre; }
.card__line { margin: 0; font-family: var(--f-text); font-weight: 400; font-size: clamp(13px, 1vw, 16px); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.card__line a { display: inline-block; margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); }
.card__code { display: grid; gap: 6px; font-size: 10px; }
.card__code [data-x="barcode"] { width: 100%; height: 34px; }
@media (max-width: 860px) {
  .card { height: auto; position: relative; top: auto; margin-bottom: 8vh; }
  .card__mid, .card__bottom { grid-template-columns: 1fr; } .card__media { aspect-ratio: 4 / 3; } .card__title { font-size: 11vw; white-space: normal; }
}

/* ---------- §03 about ---------- */
.about__big { margin: 0 auto; max-width: 1180px; padding: 2vh 0 10vh; font-family: var(--f-display); font-weight: 500; font-size: clamp(38px, 6.2vw, 118px); line-height: 1; letter-spacing: -.012em; text-align: center; perspective: 900px; }
.about__big .w { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.about__big .w--hl { color: var(--signal); }
.about__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: end; padding-bottom: 16vh; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 40px); }
.about__cols p { margin: 0; font-family: var(--f-text); font-weight: 300; font-size: clamp(14px, 1.08vw, 17px); line-height: 1.55; color: var(--paper-2); }
.about__cols b { font-weight: 600; color: var(--paper); }
.idcard { padding: 26px 24px 22px; display: grid; gap: 16px; transform-origin: 50% 100%; }
.idcard__head { font-size: 10px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.idcard__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 11px; }
.idcard__dl dt { color: #6d6b66; } .idcard__dl dd { margin: 0; }
.idcard__dl dd.hl { color: var(--signal); }
.idcard__sw { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idcard__sw i { aspect-ratio: 2.2; display: block; outline: 1px solid rgba(17,17,16,.18); }
.idcard__tone { justify-self: end; font-size: 9px; text-transform: none; }
@media (max-width: 860px) { .about__grid, .about__cols { grid-template-columns: 1fr; } }
/* the philosopher in dust, on the right, with a spec caption beside him */
.about__grid { padding-bottom: 6vh; }
.fig { display: grid; justify-items: center; padding-bottom: 14vh; } /* the philosopher, centred under the statement */
.fig__stage { position: relative; width: min(560px, 82vw); aspect-ratio: 816 / 1456; }
.fig__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- §04 lab: the physics pit, on spec-sheet paper ---------- */
.lab__pit { height: 80vh; max-width: 1180px; margin: 0 auto 14vh; overflow: hidden;
  background-color: var(--card); background-image: radial-gradient(rgba(17,17,16,.22) 1px, transparent 1.2px); background-size: 18px 18px; }
.lab__note { position: absolute; left: 26px; top: 22px; font-size: 10px; color: #55534f; z-index: 1; }
.chip { visibility: hidden; position: absolute; left: 0; top: 0; display: grid; place-items: center; padding: 0 20px; white-space: nowrap; user-select: none; will-change: transform;
  font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1; color: var(--paper); background: var(--ink); }
.chip--o { background: var(--signal); color: #fff; }
.chip--pink { background: var(--pink); color: var(--ink); }
.chip--line { background: transparent; color: var(--ink); outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.chip--dot { padding: 0; border-radius: 50%; background: var(--signal); }
.chip--x { padding: 0; background: transparent; }
.chip--x::before, .chip--x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 22%; background: var(--ink); translate: -50% -50%; rotate: 45deg; }
.chip--x::after { rotate: -45deg; }

/* ---------- §05 contact ---------- */
.contact__big { display: block; width: max-content; margin: 2vh auto 12vh; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(64px, 13.5vw, 270px); line-height: .86; letter-spacing: -.012em; white-space: nowrap; }
.contact__big .ch { display: inline-block; will-change: transform; transition: color .3s; }
.contact__big:hover .ch { color: var(--signal); }
.contact__row { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: var(--g); padding: 3vh 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.contact__mail { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2vw, 34px); }
.contact__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 11px; }
.foot { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--g); padding: 24px 0 70px; font-size: 10.5px; color: var(--steel); }
.foot [data-x="barcode"] { width: 160px; height: 28px; justify-self: center; color: var(--paper); }
.toast { position: fixed; left: 50%; bottom: 60px; z-index: 60; translate: -50% 0; padding: 12px 18px; background: var(--signal); color: #fff; font-size: 11px; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .hero__scroll i, .grain { animation: none; transition: none; } .echo:hover::before { animation: none; } }

/* ---------- §04 fusion: two hands in dust reach for each other; at the touch their dust becomes a machine hand holding a flower (js/fusion.js) ---------- */
.fuse { position: relative; z-index: 2; height: 360vh; background: var(--bg); } /* shorter: no long stretch where nothing moves */
.fuse__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fuse__bg { position: absolute; left: 50%; top: 47%; translate: -50% -50%; z-index: 0; margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  white-space: nowrap; font-size: clamp(40px, 7vw, 150px); line-height: .86; letter-spacing: -.01em; color: rgba(236, 235, 228, .05); pointer-events: none;
  transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.fuse__bg--after { top: 30%; color: rgba(242, 181, 184, .08); opacity: 0; transform: scale(.94); font-size: clamp(44px, 9vw, 190px); }
.fuse.is-touched .fuse__bg:not(.fuse__bg--after) { opacity: 0; transform: scale(1.06); }
.fuse.is-touched .fuse__bg--after { opacity: 1; transform: none; transition-delay: .7s; }
.fuse__cv { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.fuse__flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 47%), #fff 0, rgba(242, 181, 184, .7) 22%, rgba(227, 38, 44, .18) 48%, rgba(227, 38, 44, 0) 72%); }
.fuse__meta { position: absolute; z-index: 2; left: calc(var(--rail) + 12px); top: clamp(64px, 9vh, 110px); font-size: 10.5px; line-height: 1.55; color: var(--steel); }
.fuse__sig { position: absolute; z-index: 2; right: calc(var(--rail) + 12px); top: clamp(64px, 9vh, 110px); display: grid; gap: 10px; justify-items: end; font-size: 11px; letter-spacing: .14em; color: var(--steel); }
.fuse__sig b { color: var(--paper); font-weight: 700; transition: color .4s; }
.fuse.is-touched .fuse__sig b { color: var(--pink); }
.fuse__bar { position: relative; display: block; width: 160px; height: 1px; background: var(--rule); }
.fuse__bar i { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
.fuse__labels { position: absolute; z-index: 2; left: calc(var(--rail) + 12px); right: calc(var(--rail) + 12px); top: 30%; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: var(--steel); transition: opacity .5s; }
.fuse.is-touched .fuse__labels { opacity: 0; }

/* either side of the flower: the story, spec-sheet style */
.fuse__side { position: absolute; z-index: 2; top: clamp(112px, 17vh, 190px); translate: none; display: grid; gap: clamp(16px, 2.6vh, 30px); pointer-events: none; }
.fuse__side--l { left: calc(var(--rail) + clamp(36px, 4.5vw, 90px)); width: min(24vw, 440px); } /* the statement, in from the left edge */
.fuse__side--r { right: calc(var(--rail) + clamp(36px, 4.5vw, 90px)); width: min(21vw, 340px); } /* the subtext, in from the right edge */
.fuse__big { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 2.7vw, 54px); line-height: 1; letter-spacing: -.014em; color: var(--paper);
  opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity .5s var(--ease), transform .8s var(--ease), filter .5s var(--ease); }
.fuse.is-touched .fuse__big { opacity: 1; transform: none; filter: none; transition-delay: 1.3s; } /* arrives with the bloom */
.fuse__big em { font-style: normal; color: var(--pink); }
.fuse__lede { margin: 0; font-family: var(--f-text); font-weight: 300; font-size: clamp(14px, 1vw, 17px); line-height: 1.55; color: var(--paper-2); }
.fuse__h { margin: 0 0 10px; font-size: 10.5px; font-weight: 400; letter-spacing: .16em; color: var(--steel); }
.fuse__h b { color: var(--signal); font-weight: 400; margin-right: .5em; }
.fuse__prods { margin: 0; padding: 0; list-style: none; }
.fuse__prods li { display: grid; grid-template-columns: clamp(34px, 2.8vw, 50px) 1fr; gap: 4px 14px; padding: clamp(10px, 1.6vh, 16px) 0; border-top: 1px solid var(--rule); }
.fuse__prods li:last-child { border-bottom: 1px solid var(--rule); }
.fuse__prods .n { grid-row: span 2; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 32px); line-height: .9; color: var(--pink); }
.fuse__prods .t { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(15px, 1.25vw, 22px); line-height: 1; color: var(--paper); }
.fuse__prods .l { font-family: var(--f-text); font-weight: 300; font-size: clamp(12px, .85vw, 14px); line-height: 1.45; color: var(--steel); }
.fuse__side--r .lhud__serial { text-align: left; }
.fuse__tools { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fuse__tools li { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; font-size: clamp(10px, .78vw, 12.5px); padding: 8px 12px 7px; border: 1px solid rgba(236, 235, 228, .32); color: var(--paper-2); }
.fuse__tools li.is-daily { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.fuse__tools li.is-daily::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }
/* the story builds in as you keep scrolling */
.fuse__rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.fuse__rv.is-on { opacity: 1; transform: none; }
.fuse__prods li, .fuse__tools li { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 55ms); }
.fuse__rv.is-on .fuse__prods li, .fuse__rv.is-on .fuse__tools li { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .fuse__meta, .fuse__sig { left: 18px; right: auto; } .fuse__sig { top: auto; bottom: 18px; justify-items: start; } .fuse__labels { left: 18px; right: 18px; top: 26%; }
  .fuse__side { top: auto; translate: none; width: auto; } .fuse__side--l { left: 18px; right: 18px; top: 12vh; } .fuse__side--r { left: 18px; right: 18px; bottom: 8vh; justify-items: start; text-align: left; }
  .fuse__side--r .lhud__serial, #fuseBuilt { display: none; } .fuse__tools { justify-content: flex-start; } .fuse__big { font-size: 7.4vw; }
}
/* back from a case study: the story is already there, no staggered fade-in */
.fuse.is-instant .fuse__big, .fuse.is-instant .fuse__bg, .fuse.is-instant .fuse__labels, .fuse.is-instant .fuse__rv { transition: none !important; }


/* the standard cursor everywhere: a pointer on what you can click, a hand on what you can drag */
.cyl__cv, .fuse__cv { cursor: default; }
.lab__pit { cursor: grab; } .lab__pit:active { cursor: grabbing; }

/* ---------- soft corners: nothing sharp, a very small radius on every panel, strip and tag ---------- */
:root { --rad: 6px; --rad-s: 4px; }
.paper { clip-path: none; border-radius: var(--rad); overflow: hidden; }
.lab__pit { border-radius: var(--rad); }
.lhud__strip, .phead__tag, .card__strip, .fuse__tools li, .toast, .hud__sound span { border-radius: var(--rad-s); }
.lhud__serial, .card__serial { border-radius: var(--rad); }
.card__media { clip-path: none; border-radius: var(--rad); }
.chip:not(.chip--dot):not(.chip--x) { border-radius: var(--rad-s); }
.cyl__bar i, .fuse__bar i { border-radius: 2px; }

/* ---------- §02 work: the deck of project cards (js/stack.js) ---------- */
.stack { position: absolute; inset: 0; --cw: 800px; --ch: 526px; opacity: 0; will-change: opacity, transform; }
.sc { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); display: block; overflow: hidden; isolation: isolate;
  border-radius: 14px; background: #1a1a19; border: 1px solid rgba(236, 235, 228, .14); color: var(--paper); text-decoration: none;
  container-type: inline-size; transform-origin: 50% 50%; will-change: transform, opacity; cursor: pointer;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); --veil: 0; --body: 1; }
.sc__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.sc.is-front:hover .sc__media { transform: scale(1.025); }
/* a soft blur that rises under the dark fade, so the name sits on frosted glass */
.sc__blur { position: absolute; inset: 0; pointer-events: none; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 26%, rgba(0, 0, 0, .55) 42%, transparent 60%); mask-image: linear-gradient(to top, #000 0%, #000 26%, rgba(0, 0, 0, .55) 42%, transparent 60%); }
/* the dark fade the name sits on */
.sc__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(17, 17, 17, .92) 0%, rgba(17, 17, 17, .78) 26%, rgba(17, 17, 17, .42) 46%, rgba(17, 17, 17, 0) 66%); }
/* cards behind the front one sink into the dark */
.sc__veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #121211; opacity: var(--veil); }
/* the film: a frosted-glass play button over the hero (only for projects with a video) */
.sc__play { position: absolute; z-index: 2; left: 50%; top: 40%; translate: -50% -50%; width: clamp(64px, 10cqw, 116px); aspect-ratio: 1; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; opacity: var(--body); color: var(--ink);
  /* a solid light disc inside a frosted-glass ring */
  background: radial-gradient(circle closest-side, rgba(236, 235, 228, .72) 0 calc(100% - 9px), rgba(255, 255, 255, .2) calc(100% - 8.5px));
  border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .6);
  transition: scale .5s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.sc__play svg { display: block; width: 34%; height: 34%; }
/* a slow ring that breathes out of the button */
.sc__play::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); opacity: 0; pointer-events: none; }
.sc.is-front .sc__play::after { animation: scRing 2.6s var(--ease) infinite; }
@keyframes scRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.sc.is-front .sc__play:hover, .sc.is-front .sc__play:focus-visible { scale: 1.06; background: radial-gradient(circle closest-side, rgba(242, 181, 184, .82) 0 calc(100% - 9px), rgba(255, 255, 255, .26) calc(100% - 8.5px)); }
.sc:not(.is-front) .sc__play { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sc.is-front .sc__play::after { animation: none; } }
.sc__body { position: absolute; z-index: 2; left: 4.2cqw; right: 4.2cqw; bottom: 4.2cqw; display: grid; gap: 0; opacity: var(--body); pointer-events: none; }
.sc__kick { font-size: max(10px, .9cqw); letter-spacing: .14em; color: rgba(236, 235, 228, .62); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); margin-bottom: 1.4cqw; }
.sc__title { font-family: var(--f-display); font-weight: 700; font-size: 6.2cqw; line-height: .95; letter-spacing: -.01em; color: var(--paper); } /* the same face as the section titles (Hatton bold), in normal case */
.sc__line { margin-top: .8cqw; font-family: var(--f-text); font-weight: 300; font-size: max(13px, 1.55cqw); line-height: 1.42; color: rgba(236, 235, 228, .86); max-width: 46cqw; }
@media (max-width: 759px) {
  .sc__body { left: 6cqw; right: 6cqw; bottom: 6cqw; }
  .sc__kick { font-size: 10px; margin-bottom: 3cqw; }
  .sc__title { font-size: 10.4cqw; }
  .sc__line { font-size: 14px; margin-top: 1.6cqw; max-width: none; }
  .sc__shade { background: linear-gradient(to top, rgba(17, 17, 17, .92) 0%, rgba(17, 17, 17, .8) 38%, rgba(17, 17, 17, .4) 54%, rgba(17, 17, 17, 0) 72%); }
  .sc__blur { -webkit-mask-image: linear-gradient(to top, #000 0%, #000 40%, rgba(0, 0, 0, .5) 54%, transparent 70%); mask-image: linear-gradient(to top, #000 0%, #000 40%, rgba(0, 0, 0, .5) 54%, transparent 70%); }
}

/* the two ways in, under the line */
.sc__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.6cqw; pointer-events: auto; }
.sc:not(.is-front) .sc__acts { pointer-events: none; }
.sc__btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 6px; font-family: var(--f-text); font-weight: 500; font-size: 13px;
  letter-spacing: .01em; color: var(--paper); text-decoration: none; border: 1px solid rgba(236, 235, 228, .3); background: rgba(17, 17, 17, .35); cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.sc__btn svg { width: 11px; height: 11px; flex: none; }
.sc__btn--cs { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.sc__btn--cs:hover, .sc__btn--cs:focus-visible { background: var(--paper); border-color: var(--paper); }
.sc__btn--play { gap: 7px; padding-left: 12px; background: rgba(236, 235, 228, .1); border-color: rgba(236, 235, 228, .26); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sc__btn--play svg { width: 16px; height: 16px; }
.sc__btn--play:hover, .sc__btn--play:focus-visible { background: rgba(236, 235, 228, .18); border-color: rgba(236, 235, 228, .55); }
.sc__btn--soon { cursor: default; color: var(--steel); border-style: dashed; }
@media (max-width: 759px) {
  .sc__acts { margin-top: 4cqw; gap: 7px; flex-wrap: nowrap; }
  .sc__btn { height: 36px; padding: 0 11px; font-size: 12px; gap: 7px; white-space: nowrap; }
  .sc__btn--play { padding-left: 9px; gap: 5px; } .sc__btn--play svg { width: 14px; height: 14px; }
  .sc__play { top: 30%; }
}

/* the film overlay: the project's video, big, with sound (js/stack.js) */
.film-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(16px, 5vw, 80px); background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s var(--ease); }
.film-ov.is-on { opacity: 1; }
.film-ov[hidden] { display: none; }
.film-ov__box { width: min(100%, calc((100vh - 2 * clamp(16px, 5vw, 80px)) * 16 / 9)); max-height: 100%; display: grid; place-items: center;
  transform: scale(.96); transition: transform .5s var(--ease); }
.film-ov.is-on .film-ov__box { transform: none; }
.film-ov__v { display: block; max-width: 100%; max-height: calc(100vh - 2 * clamp(16px, 5vw, 80px)); max-height: calc(100svh - 2 * clamp(16px, 5vw, 80px));
  border-radius: 10px; background: #000; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8); }
.film-ov__x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--paper); background: rgba(236, 235, 228, .1); border: 1px solid rgba(236, 235, 228, .24); transition: background .3s var(--ease); }
.film-ov__x:hover, .film-ov__x:focus-visible { background: rgba(236, 235, 228, .22); }
.film-ov__x svg { width: 18px; height: 18px; }
.film-ov__t { position: absolute; left: 20px; top: 28px; font-size: 10.5px; letter-spacing: .14em; color: var(--steel); }

/* a live status in place of the label: a green dot that softly pulses */
.sc__kick--live { display: flex; align-items: baseline; gap: 9px; color: rgba(236, 235, 228, .82); line-height: 1.5; }
.sc__kick--live i { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; translate: 0 -1px; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
.sc.is-front .sc__kick--live i { animation: scLive 2s ease-out infinite; }
@keyframes scLive { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 100% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .sc.is-front .sc__kick--live i { animation: none; } }

/* §04: the strip along the bottom, the same as Selected work's: the card in front, the progress, what scrolling does */
.fuse__hud { z-index: 3; }
@media (max-width: 860px) {
  .fuse .fuse__sig { display: none; } /* the strip takes the bottom on phones */
  .fuse__hud { bottom: 54px; }
  .fuse .fuse__side--r { bottom: 96px; }
}

/* ---------- every section after the work deck is one screen: nothing is cut off between snaps (js/sections.js) ---------- */
.about, .lab, .contact { height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.about .phead, .lab .phead, .contact .phead { flex: none; padding: clamp(92px, 13vh, 160px) 0 clamp(12px, 2.6vh, 32px); }
.about .phead__title, .lab .phead__title, .contact .phead__title { font-size: clamp(40px, 5.4vw, 108px); } /* the same size as Selected work */
.about .phead__tag, .lab .phead__tag, .contact .phead__tag { margin-top: clamp(10px, 1.6vh, 18px); }
/* about: the statement, then the philosopher filling what's left of the screen */
.about__big { flex: none; padding: 0 0 clamp(8px, 2vh, 24px); font-size: clamp(30px, 4.2vw, 80px); }
.about .fig { flex: 1; min-height: 0; padding-bottom: clamp(48px, 7vh, 80px); }
.about .fig__stage { height: 100%; width: auto; max-width: 82vw; }
/* the lab: the pit fills the screen under the title */
.lab .lab__pit { flex: 1; min-height: 0; width: 100%; height: auto; margin: 0 auto clamp(52px, 8vh, 92px); }
/* contact: the big hello in the middle, the row and the footer at the bottom */
.contact .contact__big { margin: auto; font-size: clamp(56px, 12vw, 230px); }
.contact .contact__row { flex: none; width: 100%; }
.contact .foot { flex: none; width: 100%; padding: 18px 0 clamp(52px, 7vh, 72px); }
@media (max-width: 760px) { .contact .contact__big { font-size: 12.4vw; } } /* "Say hello" fits the width of a phone */

/* contact: the heading sits lower, with the landing page's red serial card above it */
.contact .phead { padding-top: clamp(110px, 18vh, 210px); }
.contact__serial { text-align: left; margin-bottom: clamp(18px, 3vh, 34px); }
@media (min-width: 761px) { .contact .contact__big { font-size: min(clamp(56px, 12vw, 230px), 20vh); } } /* on short screens the hello shrinks with the height, so it never touches the title */
.contact .contact__big { margin: auto; padding: clamp(12px, 2.4vh, 28px) 0; }
/* contact: a bigger title, set a little lower under the red card */
.contact .phead__title { font-size: clamp(54px, 8.2vw, 168px); }
.contact__serial { margin-bottom: clamp(30px, 5vh, 60px); }
@media (min-width: 761px) { .contact .contact__big { font-size: min(clamp(56px, 12vw, 230px), 18vh); } }
@media (min-width: 761px) and (max-height: 860px) { /* short screens: the contact block scales with the height so it all fits */
  .contact .phead { padding-top: clamp(84px, 14vh, 210px); }
  .contact .phead__title { font-size: min(clamp(54px, 8.2vw, 168px), 12vh); }
  .contact .contact__big { font-size: min(clamp(56px, 12vw, 230px), 16vh); }
}
/* contact: more air between the red card and the title; the hello sits close under the title (the slack goes below it) */
.contact__serial { margin-bottom: clamp(40px, 6.5vh, 84px); }
.contact .phead { padding-bottom: 0; }
.contact .contact__big { margin: 0 auto auto; padding: clamp(4px, 1vh, 12px) 0 clamp(16px, 3vh, 36px); }
@media (min-width: 761px) and (min-height: 861px) { .contact .phead { padding-top: clamp(110px, 21vh, 250px); } } /* tall screens: the whole block sits lower, so the slack is shared */
.contact .contact__big { padding-top: clamp(18px, 3.4vh, 44px); }
@media (min-width: 761px) and (min-height: 861px) { .contact .phead { padding-top: clamp(110px, 25vh, 320px); } }

/* ---------- §05 what I do: the disciplines stacked in big type, lit one at a time as you scroll (js/craft.js) ---------- */
.craft { position: relative; z-index: 2; background: var(--bg); }
.craft__track { position: relative; }
.craft__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 30vw); grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 80px);
  padding: clamp(84px, 12vh, 140px) calc(var(--rail) + clamp(18px, 3vw, 56px)) clamp(64px, 9vh, 104px); }
.craft__kick { grid-column: 1 / -1; align-self: start; font-size: 11px; letter-spacing: .16em; color: var(--steel); }
.craft__kick b { color: var(--signal); font-weight: 400; margin-right: .6em; }
.craft__list { list-style: none; margin: 0; padding: 0; align-self: center; display: grid; }
.craft__it { position: relative; display: flex; align-items: baseline; gap: 18px; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: min(8.2vw, 11.4vh); line-height: 1.02; letter-spacing: -.012em; white-space: nowrap;
  color: rgba(236, 235, 228, .1); transition: color .55s var(--ease), transform .7s var(--ease); }
.craft__it.is-past { color: rgba(236, 235, 228, .16); }
.craft__it.is-on { color: var(--paper); transform: translateX(clamp(8px, 1.2vw, 22px)); }
.craft__it:not(.is-on):hover { color: rgba(236, 235, 228, .32); }
.craft__i { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; color: transparent; transition: color .4s; align-self: center; }
.craft__it.is-on .craft__i { color: var(--signal); }
/* the note on the right: number, one line, a few tags; it lifts in each time the line changes */
.craft__side { align-self: center; display: grid; gap: 18px; padding-top: 6px; border-top: 1px solid var(--rule); }
.craft__n { font-size: 11px; letter-spacing: .14em; color: var(--steel); padding-top: 14px; }
.craft__n b { color: var(--paper); font-weight: 700; }
.craft__line { margin: 0; font-family: var(--f-text); font-weight: 300; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.55; color: var(--paper-2); }
.craft__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.craft__tags li { font-size: 10.5px; letter-spacing: .1em; padding: 7px 11px 6px; border: 1px solid rgba(236, 235, 228, .26); border-radius: var(--rad-s); color: var(--paper-2); }
.craft__side .craft__line, .craft__side .craft__tags { opacity: 0; transform: translateY(calc(var(--dir, 1) * 14px)); }
.craft__side.is-in .craft__line, .craft__side.is-in .craft__tags { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.craft__side.is-in .craft__tags { transition-delay: .08s; }
@media (max-width: 860px) {
  .craft__stick { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding: 88px 18px 72px; row-gap: 22px; }
  .craft__list { align-self: start; padding-top: 4vh; }
  .craft__it { font-size: 10.4vw; }
  .craft__side { align-self: end; }
}
@media (prefers-reduced-motion: reduce) { .craft__it, .craft__side .craft__line, .craft__side .craft__tags { transition: none !important; } }
.loader__n, .loader__l { text-shadow: 0 0 18px var(--bg), 0 0 36px var(--bg), 0 0 60px var(--bg); } /* a soft dark halo so the counter reads over the character field */
/* layout: the note sits top-right beside the label; the list runs the full width under them (no overlap) */
@media (min-width: 861px) {
  .craft__stick { grid-template-columns: minmax(0, 1fr) minmax(280px, 30vw); grid-template-rows: auto 1fr; row-gap: clamp(12px, 2vh, 28px); }
  .craft__kick { grid-column: 1; grid-row: 1; }
  .craft__side { grid-column: 2; grid-row: 1; align-self: start; }
  .craft__list { grid-column: 1 / -1; grid-row: 2; align-self: center; }
  .craft__it { font-size: var(--craft-fs, min(8.2vw, 9.6vh)); }
}
@media (max-width: 860px) { .craft__it { font-size: var(--craft-fs, 10.4vw); } }
.craft__list { min-width: 0; } /* the column never stretches to fit the longest word (js/craft.js fits the type instead) */
@media (max-width: 860px) { .craft__stick { grid-template-columns: minmax(0, 1fr); } }

/* the splash: the percentage is drawn in the middle out of the characters themselves (js/loader-field.js), so the big
   counter only carries the number for the script; the caption sits small and centred at the bottom */
.loader__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loader { justify-content: center; }
.loader__l { position: absolute; left: 50%; bottom: clamp(22px, 4vh, 40px); translate: -50% 0; padding: 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--steel); }

/* ---------- nav: no IST clock; links get a quiet highlight on hover (no scramble, no underline sweep) ---------- */
.hud--top { grid-template-columns: auto 1fr auto auto; }
@media (max-width: 760px) { .hud--top { grid-template-columns: auto 1fr auto; } }
.hud__nav a { opacity: .62; transition: opacity .25s ease; }
.hud__nav a:hover, .hud__nav a:focus-visible { opacity: 1; }
.hud__nav a::after { display: none; }
.contact__links a, .foot a { transition: color .25s ease; }
.contact__links a:hover, .foot a:hover { color: var(--pink); }

/* ---------- the resume overlay (js/resume.js) ---------- */
.resume-ov { position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s var(--ease); }
.resume-ov.is-on { opacity: 1; }
.resume-ov[hidden] { display: none; }
.resume-ov__bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px var(--g); border-bottom: 1px solid var(--rule); }
.resume-ov__t { flex: 1; font-size: 11px; letter-spacing: .16em; color: var(--steel); }
.resume-ov__t b { color: var(--signal); font-weight: 400; margin-right: .6em; }
.resume-ov__dl { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 6px; background: var(--pink); color: var(--ink);
  font-family: var(--f-text); font-weight: 500; font-size: 13px; text-decoration: none; transition: background .3s var(--ease); }
.resume-ov__dl svg { width: 12px; height: 12px; }
.resume-ov__dl:hover, .resume-ov__dl:focus-visible { background: var(--paper); }
.resume-ov__x { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--paper);
  background: rgba(236, 235, 228, .08); border: 1px solid rgba(236, 235, 228, .22); transition: background .3s var(--ease); }
.resume-ov__x:hover, .resume-ov__x:focus-visible { background: rgba(236, 235, 228, .2); }
.resume-ov__x svg { width: 18px; height: 18px; }
.resume-ov__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(18px, 4vh, 48px) var(--g) clamp(32px, 6vh, 72px); display: grid; justify-items: center; }
.resume-ov__page { display: block; width: min(860px, 100%); height: auto; border-radius: 6px; background: #fff; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
  transform: translateY(14px); transition: transform .6s var(--ease); }
.resume-ov.is-on .resume-ov__page { transform: none; }
@media (max-width: 760px) { .resume-ov__t { display: none; } .resume-ov__bar { justify-content: flex-end; } .resume-ov__dl { margin-right: auto; } }

/* ---------- phone-width fixes ---------- */
@media (max-width: 560px) {
  .work .phead__title { font-size: 8.3vw; } /* "Selected work" fits the screen on one line */
  /* the AI subtext sits on its own panel, so the dust arm doesn't run through the words */
  .fuse .fuse__side--r { padding: 12px 14px; background: rgba(11, 11, 10, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--rule); border-radius: var(--rad-s); }
  .fuse .fuse__lede { font-size: 13px; line-height: 1.5; }
  /* the footer in two rows: nothing runs off the right edge */
  .foot { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .foot [data-x="barcode"] { width: 120px; justify-self: end; }
  .foot > :last-child { justify-self: end; }
}

/* the deck: one more card further back on each side (a sliver only), so the stack reads deeper */
.sc-ghost { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); z-index: 60; pointer-events: none;
  border-radius: 14px; background: linear-gradient(180deg, #2c2c2b, #1f1f1e); border: 1px solid rgba(236, 235, 228, .1); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }


/* ---------- "turn on sound" prompt: shown while the browser is holding the music back (js/sound.js) ---------- */
.sound-cta { position: fixed; left: 50%; top: 74px; z-index: 60; display: flex; align-items: stretch; translate: -50% -14px; opacity: 0; visibility: hidden; pointer-events: none;
  border-radius: 6px; overflow: hidden; background: var(--pink); color: #111110; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  transition: opacity .5s var(--ease), translate .6s var(--ease), visibility 0s .5s; }
body:not(.is-loading) .sound-cta.is-on { opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0; transition: opacity .5s var(--ease) .9s, translate .6s var(--ease) .9s, visibility 0s .9s; }
.sound-cta button { border: 0; background: none; color: inherit; font: 500 14px/1 var(--f-text); cursor: pointer; }
.sound-cta__go { display: inline-flex; align-items: center; gap: 11px; padding: 13px 12px 13px 16px; white-space: nowrap; }
.sound-cta__x { padding: 0 13px 2px 11px; font-size: 18px !important; border-left: 1px solid rgba(17, 17, 16, .2) !important; opacity: .7; }
.sound-cta button:hover, .sound-cta button:focus-visible { background: rgba(255, 255, 255, .28); opacity: 1; }
.sound-cta__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.sound-cta__bars i { width: 2px; height: 4px; background: currentColor; animation: eq .9s ease-in-out infinite alternate; }
.sound-cta__bars i:nth-child(2) { animation-delay: -.3s; } .sound-cta__bars i:nth-child(3) { animation-delay: -.6s; } .sound-cta__bars i:nth-child(4) { animation-delay: -.15s; }
@media (max-width: 560px) { .sound-cta { top: 66px; max-width: calc(100vw - 28px); } .sound-cta button { font-size: 13px; } .sound-cta__go { padding: 12px 10px 12px 13px; gap: 9px; } }
@media (prefers-reduced-motion: reduce) { .sound-cta__bars i { animation: none; height: 9px; } }

/* ---------- touch browsing (js/touch.js): the page moves in whole steps, so the browser's own scrolling is off ---------- */
html.is-touchnav, html.is-touchnav body { overscroll-behavior: none; touch-action: none; }
html.is-touchnav .film-ov, html.is-touchnav .resume-ov, html.is-touchnav .film-ov *, html.is-touchnav .resume-ov * { touch-action: auto; }

/* ---------- the landing on phones: the headline lower, smaller and looser; no red serial card ---------- */
@media (max-width: 760px) {
  .poster__br { display: none; }
  .poster { padding-bottom: 96px; row-gap: 16px; }
  .hero__name { font-size: 8.4vw; line-height: 1.12; }
  .poster__bl { gap: 14px; }
  .poster__para { font-size: 14px; line-height: 1.5; }
}

/* ---------- What I do on touch: a clean list, every line lit, no notes ---------- */
.craft__track.is-static .craft__side { display: none; }
.craft__track.is-static .craft__it { color: var(--paper); cursor: default; transform: none; }
.craft__track.is-static .craft__list { align-self: center; padding-top: 0; row-gap: .08em; }
.craft__track.is-static .craft__stick { grid-template-rows: auto 1fr; }
.craft__track.is-static .craft__it { font-size: min(8.3vw, 64px); line-height: 1.16; }
@media (max-width: 760px) { .poster { padding-bottom: 128px; } }
html.is-touchnav .hero__scroll span { font-size: 0; }
html.is-touchnav .hero__scroll span::after { content: "Swipe up"; font-size: 10px; }

/* the AI section on phones: the subtext sits right under the statement, clear of the cards (no panel needed up there) */
@media (max-width: 860px) {
  .fuse .fuse__side--r { top: calc(12vh + 22.2vw + 16px); bottom: auto; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
  .fuse .fuse__lede { font-size: 13px; line-height: 1.5; }
}
@media (max-width: 860px) and (max-height: 720px) { /* shorter phones: tighter, so the subtext still clears the flower */
  .fuse .fuse__side--l { top: 10vh; } .fuse .fuse__big { font-size: 6.4vw; }
  .fuse .fuse__side--r { top: calc(10vh + 19.2vw + 12px); } .fuse .fuse__lede { font-size: 12px; line-height: 1.45; }
}
