/* ==========================================================================
   Sudheesh Sudhan — portfolio
   Ink and sunlit paper from the portrait, signal red from the headphones.
   Type: Tanker (display), General Sans (text), Fragment Mono (labels), Doto (numbers).
   ========================================================================== */

:root {
  --ink: #0d0c0a;
  --ink-2: #171512;
  --ink-3: #24211c;
  --paper: #efe9df;
  --paper-2: #e4ddd0;
  --bone: #f7f3ec;
  --mute: #9a9386;        /* on ink: 6.6:1 */
  --mute-p: #615a4f;      /* on paper: 6.0:1 */
  --signal: #ff4d2e;      /* on ink: 5.6:1 */
  --signal-d: #c2321b;    /* on paper: 5.0:1 */
  --sun: #f2b544;
  --line: rgba(239, 233, 223, .14);
  --line-p: rgba(13, 12, 10, .14);

  --f-display: 'Tanker', 'Impact', sans-serif;
  --f-text: 'General Sans', 'GS Fallback', system-ui, -apple-system, sans-serif;
  --f-mono: 'Fragment Mono', ui-monospace, monospace;
  --f-dot: 'Doto', var(--f-mono);

  --gut: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 2px; }

.mono { font: 400 12px/1.4 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; }
.dot { font-family: var(--f-dot); font-weight: 800; letter-spacing: .02em; }
.eyebrow { color: var(--mute); margin-bottom: 18px; }
.big {
  font: 400 clamp(56px, 10.5vw, 184px)/.86 var(--f-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.outline { -webkit-text-stroke-color: var(--paper); }
.hl { color: var(--signal); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 1000;
  background: var(--paper); color: var(--ink); padding: 10px 14px;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* -------------------------------------------------------------------------- */
/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ink);
  display: grid; place-items: center;
  overflow: hidden;
}
html:not(.js) .loader { display: none; }
.loader__frames { position: absolute; inset: 0; display: grid; place-items: center; }
.loader__frames img {
  position: absolute; width: min(34vw, 420px); aspect-ratio: 4 / 3; object-fit: cover;
  opacity: 0;
}
.loader__count {
  position: relative; z-index: 2;
  font: 800 clamp(96px, 22vw, 320px)/1 var(--f-dot);
  color: var(--paper); mix-blend-mode: difference;
  font-variant-numeric: tabular-nums;
}
.loader__meta {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 28px;
  display: flex; justify-content: space-between; color: var(--mute);
}

/* -------------------------------------------------------------------------- */
/* Cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 800;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--paper);
  pointer-events: none; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-label {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--signal); mix-blend-mode: normal;
}
.cursor__label { font: 500 12px/1 var(--f-mono); text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }

/* -------------------------------------------------------------------------- */
/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gut);
  color: var(--paper);
  transition: color .4s;
}
.nav::before {
  content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,12,10,.7), rgba(13,12,10,0));
  transition: opacity .4s;
}
.nav.is-dark { color: var(--ink); }
.nav.is-dark::before { opacity: 0; }
.nav a { text-decoration: none; }
.nav__mark { display: flex; align-items: center; gap: 12px; }
.nav__mark .dot { font-size: 22px; }
.nav__name { font: 500 14px/1 var(--f-text); }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 36px); font: 500 14px/1 var(--f-text); }
.nav__links a { position: relative; padding: 6px 0; display: inline-block; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__sound { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; font: 400 12px/1 var(--f-mono); text-transform: uppercase; padding: 8px 0; }
.bars { display: flex; gap: 2px; height: 12px; align-items: flex-end; }
.bars i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.nav__sound[aria-pressed="true"] .bars i { animation: bar 1s var(--ease-io) infinite alternate; }
.nav__sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
.nav__sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
.nav__sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bar { from { height: 3px; } to { height: 12px; } }

/* -------------------------------------------------------------------------- */
/* Hero */
.hero { position: relative; height: 240vh; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.wall {
  position: absolute; inset: 0;
  perspective: 900px; perspective-origin: 50% 50%;
}
.wall__cyl {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.tile {
  position: absolute; left: 0; top: 0;
  backface-visibility: hidden;
  border-radius: 6px; overflow: hidden;
  background: var(--ink-3);
}
.tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.66); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110% 80% at 50% 40%, rgba(13,12,10,0) 0%, rgba(13,12,10,.3) 50%, rgba(13,12,10,.9) 100%),
    linear-gradient(180deg, rgba(13,12,10,.6) 0%, rgba(13,12,10,0) 20%, rgba(13,12,10,.15) 45%, rgba(13,12,10,.92) 100%);
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gut) clamp(28px, 5vh, 56px);
  pointer-events: none;
}
.hero__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 2.4vh; color: var(--paper); width: max-content; max-width: 100%; background: rgba(13,12,10,.72); padding: 7px 10px; border-radius: 4px; }
.k-short { display: none; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.hero__title {
  font: 400 clamp(84px, 15.2vw, 300px)/.8 var(--f-display);
  text-transform: uppercase; letter-spacing: -.012em;
  margin-left: -.04em;
}
.hero__line { display: block; overflow: hidden; padding-top: .06em; }
.hero__line:nth-child(2) { padding-left: 14vw; }
.hero__word { display: inline-block; will-change: transform; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 2.4vh; }
.hero__lede { max-width: 30ch; font: 500 clamp(17px, 1.5vw, 22px)/1.3 var(--f-text); }
.hero__tc { font-size: clamp(18px, 1.8vw, 28px); color: var(--signal); font-variant-numeric: tabular-nums; }
.hero__scroll {
  position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  display: flex; align-items: center; gap: 10px; color: var(--mute);
}
.hero__scroll i { width: 48px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--paper); animation: scrollcue 2s var(--ease-io) infinite; }
@keyframes scrollcue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* -------------------------------------------------------------------------- */
/* Manifesto */
.manifesto { padding: clamp(120px, 22vh, 240px) var(--gut) clamp(80px, 14vh, 160px); }
.manifesto__text {
  font: 500 clamp(30px, 4.6vw, 76px)/1.06 var(--f-text);
  letter-spacing: -.025em;
  max-width: 21ch;
}
.manifesto__text .w { opacity: .14; transition: none; }
html:not(.js) .manifesto__text .w { opacity: 1; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(64px, 12vh, 140px);
  border-top: 1px solid var(--line);
}
.stats li { padding: 22px 20px 0 0; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats li + li { padding-left: 20px; }
.stats b { display: block; font: 800 clamp(44px, 6vw, 96px)/1 var(--f-dot); color: var(--paper); font-variant-numeric: tabular-nums; }
.stats span:not(.sr) { display: block; margin-top: 10px; color: var(--mute); font: 400 12px/1.4 var(--f-mono); text-transform: uppercase; }

/* -------------------------------------------------------------------------- */
/* Feature zoom */
.feature { position: relative; height: 260vh; }
.feature__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.feature__label {
  position: absolute; top: 88px; left: var(--gut); right: var(--gut);
  display: flex; justify-content: space-between; color: var(--mute); z-index: 3;
}
.feature__frame {
  position: relative; display: block;
  width: 100vw; height: 100vh; height: 100svh;
  clip-path: inset(25% 30% 25% 30% round 10px);
  will-change: clip-path;
}
.feature__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transform: scale(1.35); will-change: transform; }
.feature__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,10,.2), rgba(13,12,10,.0) 40%, rgba(13,12,10,.7)); }
.feature__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--signal); display: grid; place-items: center;
  transition: transform .5s var(--ease);
}
.feature__play svg { width: 32px; fill: var(--ink); margin-left: 4px; }
.feature__frame:hover .feature__play { transform: scale(1.1); }
.feature__title {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(24px, 5vh, 56px); z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw;
  font: 400 clamp(44px, 8.4vw, 150px)/.86 var(--f-display); text-transform: uppercase;
  pointer-events: none;
}
.feature__title span:last-child { text-align: right; }

/* -------------------------------------------------------------------------- */
/* Section head */
.sec-head { padding: 0 var(--gut); margin-bottom: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 40px; }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head__note { max-width: 30ch; color: var(--mute); font-size: 15px; }

/* Motion index */
.motion { padding: clamp(120px, 20vh, 220px) 0 clamp(100px, 16vh, 180px); position: relative; }
.index { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); position: relative; }
.row__btn {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) 190px 90px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.6vh, 30px) var(--gut);
  position: relative; overflow: hidden;
  transition: color .4s var(--ease);
}
.row__btn::before {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1;
}
.row__btn:hover::before, .row__btn:focus-visible::before { transform: scaleY(1); }
.row__btn:hover, .row__btn:focus-visible { color: var(--ink); }
.row__btn:hover .row__meta, .row__btn:focus-visible .row__meta { color: var(--mute-p); }
.row__btn:focus-visible { outline-offset: -2px; }
.index { isolation: isolate; }
.row__btn { z-index: 0; }
.row__n { font: 800 18px/1 var(--f-dot); color: var(--signal); }
.row__btn:hover .row__n { color: var(--signal-d); }
.row__t { font: 400 clamp(30px, 4.4vw, 72px)/.95 var(--f-display); text-transform: uppercase; transition: transform .55s var(--ease); }
.row__btn:hover .row__t { transform: translateX(14px); }
.row__meta { color: var(--mute); font-size: 15px; transition: color .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__thumb { display: none; }
.row__play { justify-self: end; font: 400 12px/1 var(--f-mono); text-transform: uppercase; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: clamp(260px, 26vw, 420px); aspect-ratio: 4 / 3;
  margin: -150px 0 0 -170px;
  opacity: 0; transform: scale(.6);
}
.peek__in { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; }
.peek__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------------- */
/* Interface horizontal */
.iface { background: var(--paper); color: var(--ink); position: relative; }
.iface .eyebrow { color: var(--mute-p); }
.iface .hl { color: var(--signal-d); }
.iface__pin { height: 100vh; height: 100svh; overflow: hidden; position: relative; display: flex; align-items: center; }
.iface__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gut); will-change: transform; }
.iface__intro { flex: 0 0 min(620px, 80vw); padding-right: 4vw; }
.iface__intro .big { font-size: clamp(56px, 7.4vw, 128px); }
.iface__note { margin-top: 28px; max-width: 34ch; color: var(--mute-p); font-size: 18px; }
.iface__hint { margin-top: 40px; color: var(--ink); display: flex; gap: 10px; }
.iface__hint span { display: inline-block; animation: nudge 1.4s var(--ease-io) infinite alternate; }
@keyframes nudge { to { transform: translateX(8px); } }
.card {
  --h: min(60vh, 600px);
  flex: 0 0 auto; width: calc(var(--h) * .8);
  text-decoration: none; display: block; position: relative;
}
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--tone, var(--paper-2)); }
.card:nth-child(odd) { width: calc(var(--h) * 1.25); }
.card:nth-child(odd) .card__media { aspect-ratio: 5 / 4; }
.card__media img { position: absolute; inset: -6% -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__n { position: absolute; top: 14px; left: 14px; font: 800 16px/1 var(--f-dot); color: var(--ink); background: var(--bone); padding: 6px 8px; border-radius: 4px; }
.card__go {
  position: absolute; right: 14px; bottom: 14px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 22px;
  transform: scale(0); transition: transform .5s var(--ease);
}
.card:hover .card__go, .card:focus-visible .card__go { transform: scale(1); }
.card__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin-top: 16px; align-items: baseline; }
.card__t { font: 400 clamp(30px, 3.2vw, 52px)/.9 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.card__y { font: 400 12px/1 var(--f-mono); color: var(--mute-p); }
.card__s { grid-column: 1 / -1; color: var(--mute-p); font-size: 16px; }
.iface__progress { position: absolute; left: var(--gut); right: var(--gut); bottom: 32px; height: 2px; background: var(--line-p); }
.iface__progress i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* -------------------------------------------------------------------------- */
/* Ring */
.ring { position: relative; height: 300vh; background: var(--ink); }
.ring__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ring__head { position: absolute; top: clamp(90px, 14vh, 140px); left: var(--gut); right: var(--gut); z-index: 2; text-align: center; pointer-events: none; }
.ring__head .eyebrow { margin-bottom: 10px; }
.ring__stage { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50% 40%; touch-action: pan-y; }
.ring__spin { position: absolute; left: 50%; top: 51%; transform-style: preserve-3d; will-change: transform; }
.rcard {
  position: absolute; left: 0; top: 0;
  width: clamp(150px, 15vw, 230px); aspect-ratio: 9 / 16;
  border-radius: 10px; overflow: hidden; background: var(--ink-3);
  backface-visibility: hidden;
}
.rcard img { width: 100%; height: 100%; object-fit: cover; }
.ring__cap { position: absolute; left: 0; right: 0; bottom: 32px; text-align: center; color: var(--mute); }

/* -------------------------------------------------------------------------- */
/* Experience */
.exp { padding: clamp(120px, 20vh, 220px) 0 0; }
.exp__list { border-top: 1px solid var(--line); }
.exp__row {
  display: grid; grid-template-columns: 180px minmax(0, 1.3fr) minmax(0, 1fr) 160px; gap: 16px; align-items: baseline;
  padding: 26px var(--gut); border-bottom: 1px solid var(--line);
  transition: background .4s, padding .5s var(--ease);
}
.exp__row:hover { background: var(--ink-2); }
.exp__y { font: 800 17px/1 var(--f-dot); color: var(--signal); }
.exp__c { font: 500 clamp(22px, 2.3vw, 34px)/1.1 var(--f-text); letter-spacing: -.02em; }
.exp__r { color: var(--mute); }
.exp__p { color: var(--mute); text-align: right; font: 400 12px/1.4 var(--f-mono); text-transform: uppercase; }
.marquee { margin-top: clamp(80px, 12vh, 140px); overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee__in { display: flex; width: max-content; gap: 56px; font: 400 clamp(32px, 4vw, 64px)/1 var(--f-display); text-transform: uppercase; will-change: transform; }
.marquee__run { display: flex; gap: 56px; padding-right: 56px; }
.marquee__in span { display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee__in span::after { content: ''; width: 12px; height: 12px; background: var(--signal); border-radius: 50%; }

/* -------------------------------------------------------------------------- */
/* About */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 120px); align-items: center;
  padding: clamp(120px, 20vh, 220px) var(--gut);
}
.about__img { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 5; }
.about__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.about__img figcaption { position: absolute; left: 14px; bottom: 14px; color: var(--paper); background: rgba(13,12,10,.55); padding: 6px 8px; border-radius: 4px; }
.about__text .big { margin-bottom: 36px; }
.about__text p:not(.mono) { font-size: clamp(18px, 1.4vw, 21px); max-width: 44ch; color: #d8d1c4; }
.about__text p + p { margin-top: 18px; }
.about__langs { margin-top: 32px !important; color: var(--mute); }

/* -------------------------------------------------------------------------- */
/* Contact */
.contact { background: var(--signal); color: var(--ink); padding: 0 var(--gut); position: relative; overflow: hidden; }
.contact .hl { color: var(--paper); -webkit-text-stroke: 0; }
.contact__marquee { margin: 0 calc(-1 * var(--gut)); padding: 18px 0; border-bottom: 1px solid rgba(13,12,10,.2); overflow: hidden; }
.contact__marquee-in { display: flex; width: max-content; font: 400 12px/1 var(--f-mono); text-transform: uppercase; gap: 40px; white-space: nowrap; }
.contact__title {
  font: 400 clamp(60px, 14.4vw, 270px)/.84 var(--f-display); text-transform: uppercase;
  padding: clamp(80px, 16vh, 180px) 0 clamp(40px, 6vh, 64px);
}
.contact__title .hl { color: #fff; }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 20px 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 clamp(16px, 1.5vw, 20px)/1 var(--f-text); text-decoration: none;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--bone); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.contact :focus-visible { outline-color: var(--ink); }
.contact__links { display: flex; gap: 28px; margin-top: 40px; font: 500 18px/1 var(--f-text); }
.contact__links a { text-decoration: none; border-bottom: 1.5px solid; padding-bottom: 4px; }
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(80px, 16vh, 180px); padding: 22px 0 28px; border-top: 1px solid rgba(13,12,10,.25);
}
.foot a { text-decoration: none; padding-block: 6px; }

/* -------------------------------------------------------------------------- */
/* Viewer */
.viewer {
  width: min(1180px, 100vw - 2 * var(--gut)); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: 10px; overflow: auto; overscroll-behavior: contain;
  background: var(--ink-2); color: var(--paper);
  scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.viewer::backdrop { background: rgba(13,12,10,.86); backdrop-filter: blur(6px); }
.viewer[open] { animation: vin .6s var(--ease); }
@keyframes vin { from { opacity: 0; transform: translateY(40px) scale(.98); } }
.viewer__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; }
.viewer__meta { color: var(--mute); margin-bottom: 8px; }
.viewer__title { font: 400 clamp(32px, 4vw, 60px)/.9 var(--f-display); text-transform: uppercase; }
.viewer__close { font: 400 12px/1 var(--f-mono); text-transform: uppercase; padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.viewer__close:hover { background: var(--paper); color: var(--ink); }
.viewer__media { position: relative; height: min(calc((min(1180px, 100vw - 2 * var(--gut))) * .5625), calc(100vh - 250px)); min-height: 220px; background: #000; }
.viewer__media iframe, .viewer__media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.viewer__foot { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 28px; align-items: center; padding: 20px 24px 24px; }
.viewer__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.viewer__tabs button { font: 400 12px/1 var(--f-mono); text-transform: uppercase; padding: 9px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.viewer__tabs button[aria-pressed="true"] { background: var(--signal); color: var(--ink); box-shadow: none; }
.viewer__text { color: #cfc8bb; font-size: 15px; max-width: 70ch; }
.viewer__link { text-decoration: none; color: var(--signal); white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 700; transform: translate(-50%, 200%);
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 999px;
  transition: transform .5s var(--ease), visibility 0s .5s; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }

/* -------------------------------------------------------------------------- */
/* Tablet & phone */
@media (max-width: 900px) {
  .nav__name { display: none; }
  .nav__links { gap: 16px; font-size: 13px; }
  .nav__soundlabel { display: none; }
  .hero__line:nth-child(2) { padding-left: 8vw; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__scroll { display: none; }
  .k-long { display: none; }
  .k-short { display: inline; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 20px 12px 20px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats li:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats li:nth-child(even) { padding-left: 16px !important; }
  .sec-head { grid-template-columns: 1fr; }
  .row__btn { grid-template-columns: 92px minmax(0, 1fr); gap: 4px 16px; }
  .row__thumb { display: block; grid-row: span 3; width: 92px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
  .row__n { display: none; }
  .row__t { font-size: clamp(28px, 7.5vw, 44px); }
  .row__meta { font-size: 14px; }
  .row__play { justify-self: start; color: var(--signal); }
  .peek { display: none; }
  .iface__pin { height: auto; display: block; padding: 72px 0 80px; }
  .iface__track { flex-direction: column; align-items: stretch; gap: 64px; }
  .iface__intro { flex: none; padding: 0; }
  .iface__hint, .iface__progress { display: none; }
  .card, .card:nth-child(odd) { width: 100%; }
  .card__go { transform: scale(1); width: 48px; height: 48px; }
  .exp__row { grid-template-columns: 1fr; gap: 6px; }
  .exp__p { text-align: left; }
  .about { grid-template-columns: 1fr; }
  .viewer__foot { grid-template-columns: 1fr; }
  .feature__title { flex-direction: column; align-items: flex-start; gap: 0; }
  .feature__title span:last-child { text-align: left; }
}
@media (max-width: 520px) {
  .nav__links a[href="#about"] { display: none; }
  .hero__title { font-size: 25vw; }
  .ring__spin { top: 56%; }
}

/* Static path (no GSAP, or reduced motion): no pinning, everything reachable */
html.is-static .loader, html.is-static .cursor { display: none !important; }
html.is-static .hero { height: 100vh; }
html.is-static .feature { height: auto; }
html.is-static .feature__pin { position: relative; height: 80vh; }
html.is-static .feature__frame { clip-path: none; height: 80vh; }
html.is-static .feature__frame img { transform: none; }
html.is-static .manifesto__text .w { opacity: 1 !important; }
html.is-static .ring { height: 100vh; }
html.is-static .iface__pin { overflow-x: auto; height: auto; padding: 120px 0 80px; }

/* Never trap people behind an overlay if a script fails */
.loader, .wipe--in { animation: failsafe 0s 6s forwards; }
@keyframes failsafe { to { visibility: hidden; pointer-events: none; } }


/* Reduced motion: no pinning, no 3D spin, content stays readable */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .loader, .cursor { display: none !important; }
  .hero { height: 100vh; }
  .feature { height: auto; }
  .feature__pin { position: relative; height: 80vh; }
  .feature__frame { clip-path: none; height: 80vh; }
  .feature__frame img { transform: none; }
  .manifesto__text .w { opacity: 1 !important; }
  .ring { height: 100vh; }
  .iface__pin { overflow-x: auto; height: auto; padding: 120px 0 80px; }
}

/* Page timeline (desktop) */
.tl {
  position: fixed; left: 50%; bottom: 16px; z-index: 480; transform: translate(-50%, 160%);
  width: min(760px, calc(100vw - 2 * var(--gut))); padding: 6px;
  background: rgba(13,12,10,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 10px; box-shadow: 0 0 0 1px var(--line);
  transition: transform .8s var(--ease);
  touch-action: none; user-select: none;
}
.tl { visibility: hidden; transition: transform .8s var(--ease), visibility 0s .8s; }
.tl.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .8s var(--ease); }
.tl__track { display: flex; gap: 3px; position: relative; }
.tl__clip {
  flex: var(--g) 1 0; min-width: max-content; height: 26px; border-radius: 4px;
  background: var(--ink-3); color: var(--mute);
  font: 400 10px/26px var(--f-mono); text-transform: uppercase; letter-spacing: .02em;
  text-align: left; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  transition: background .3s, color .3s;
}
.tl__clip:hover { background: #2f2b25; color: var(--paper); }
.tl__clip.is-active { background: var(--paper); color: var(--ink); }
.tl__head { position: absolute; top: 2px; bottom: 2px; left: 6px; width: 2px; pointer-events: none; will-change: transform; }
.tl__head i { position: absolute; inset: 0; background: var(--signal); border-radius: 2px; }
.tl__head i::before { content: ''; position: absolute; left: -4px; top: -2px; width: 10px; height: 6px; background: var(--signal); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@media (max-width: 900px), (hover: none) { .tl { display: none; } }
html.is-static .tl, html.is-static .iface__hint, html.is-static .iface__progress { display: none; }
@media (min-width: 901px) and (hover: hover) { .iface__progress { display: none; } .ring__cap { bottom: 96px; } .motion, .exp { padding-bottom: calc(clamp(100px, 16vh, 180px) + 56px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page wipe between pages */
.wipe { position: fixed; inset: 0; z-index: 950; background: var(--paper); pointer-events: none; }
a.row__btn { text-decoration: none; color: inherit; }
