/* =========================================================
   Praneet R.S · portfolio · palette M3 "Abacus wood"
   60% walnut · 30% bone · 10% bead red

   Tokens in three layers:
     1. primitive  raw values, named for what they are
     2. semantic   named for what they mean
     3. component  named for where they are used
   Change a primitive to retheme; change a semantic to remap.
   ========================================================= */
:root {
  /* 1 · primitive */
  --walnut-950: #1C110A;
  --walnut-900: #2A1B12;
  --walnut-800: #35241A;
  --walnut-700: #433024;
  --bone-100: #EFE4D0;
  --bone-200: #E2D3B8;
  --sand-400: #B9A890;
  --umber-600: #5E4A39;
  --bead-500: #E8432A;
  --bead-700: #A8281A;

  /* 2 · semantic */
  --black: var(--walnut-900);            /* the 60%: page ground */
  --black-2: var(--walnut-800);          /* raised surfaces on the ground */
  --black-3: var(--walnut-700);
  --cream: var(--bone-100);              /* the 30%: paper chapters, cards */
  --cream-2: var(--bone-200);
  --blaze: var(--bead-500);              /* the 10%: signal, minima, actions */
  --blaze-ink: var(--bead-700);          /* signal as text on paper */
  --on-black: var(--bone-100);
  --on-black-soft: var(--sand-400);
  --on-cream: var(--walnut-900);
  --on-cream-soft: var(--umber-600);
  --line-b: rgba(239, 228, 208, .14);
  --line-c: rgba(42, 27, 18, .18);

  /* 3 · component: the calm background (read by js/calm.js) */
  --calm-thread: var(--blaze);           /* the red thread and its beads */
  --calm-guide: .14;                     /* the faint dotted path still to come */
  --calm-light: 255, 214, 160;           /* window light colour (r, g, b) */
  --calm-light-strength: .26;            /* how bright the patch of sun is */

  /* the 3D loss landscape (js/terrain.js, not loaded any more; kept for reference) */
  --terrain-night-bg: var(--black);
  --terrain-day-bg: var(--cream);
  --terrain-night-ink: var(--on-black);
  --terrain-day-ink: var(--on-cream);
  --terrain-signal: var(--blaze);
  --terrain-line-night: .24;             /* contour strength over walnut */
  --terrain-line-day: .17;               /* contour strength over paper */
  --terrain-valley-glow: .34;            /* how much the minima ember */
  --terrain-horizon-haze: .13;           /* warm haze where land meets sky */
  --terrain-fog: .0105;                  /* distance falloff */

  --f-display: "Panchang", "Arial Black", system-ui, sans-serif;
  --f-serif: "Zodiak", Georgia, serif;
  --f-text: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Consolas, monospace;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.88 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2600' height='900'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.94 0 0 0 0 0.86 0 0 0 0 0.74 0.10 0 0 0 -0.015'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --gutter: clamp(16px, 3.2vw, 48px);
  --nav-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background-color: var(--black); background-image: var(--grain); background-attachment: fixed; color: var(--on-black);
  font-family: var(--f-text); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--blaze); color: var(--black); }
:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--blaze); color: var(--black); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-stretch: 87.5%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-family: var(--f-text); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease-out), background-color .3s, color .3s;
}
.btn--accent { background: var(--blaze); color: var(--black); }
.btn--accent:hover { background: var(--cream); }

/* ---------- curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 150; background: var(--blaze); color: var(--black);
  display: grid; place-items: center; pointer-events: none;
  animation: curtain-up 1s var(--ease-io) 1.05s forwards;
}
.curtain__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 7vw, 96px); letter-spacing: -.02em; display: flex; overflow: hidden; }
.curtain__name span { display: inline-block; transform: translateY(110%); animation: rise .7s var(--ease-out) forwards; }
.curtain__name span:nth-child(2) { animation-delay: .04s; } .curtain__name span:nth-child(3) { animation-delay: .08s; }
.curtain__name span:nth-child(4) { animation-delay: .12s; } .curtain__name span:nth-child(5) { animation-delay: .16s; }
.curtain__name span:nth-child(6) { animation-delay: .2s; }  .curtain__name span:nth-child(7) { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes curtain-up { to { transform: translateY(-100%); visibility: hidden; } }
html:not(.js) .curtain { display: none; }

/* ---------- cursor + progress rail ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--blaze); transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
  }
  .cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .cursor__label { font: 500 11px/1 var(--f-mono); color: var(--black); text-transform: uppercase; letter-spacing: .04em; opacity: 0; transition: opacity .2s; }
  .cursor.is-big .cursor__label { opacity: 1; }
}
.rail { position: fixed; right: 14px; top: 50%; z-index: 85; width: 2px; height: 32vh; margin-top: -16vh; background: var(--line-b); border-radius: 2px; overflow: hidden; transition: background-color .4s; }
.rail i { display: block; width: 100%; height: 100%; background: var(--blaze); transform-origin: 50% 0; transform: scaleY(var(--rp, 0)); }
body.is-light .rail { background: var(--line-c); }
@media (max-width: 860px) { .rail { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  color: var(--on-black); transition: color .4s, transform .5s var(--ease-out);
}
.nav.is-light { color: var(--on-cream); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .nav__mark { font-size: 12px; gap: 8px; } }
.nav__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blaze); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 67, 42, .55); } 70% { box-shadow: 0 0 0 10px rgba(232, 67, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 67, 42, 0); } }
.nav__now { margin-left: auto; margin-right: auto; font: 400 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; }
.nav__now-label { opacity: .55; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--blaze); color: var(--black); font-weight: 600; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .5s var(--ease-out), background-color .3s; }
.nav__cta:hover { background: var(--cream); }
.nav.is-light .nav__cta:hover { background: var(--black); color: var(--cream); }
.nav__menu { display: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid currentColor; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; }
.sheet {
  position: fixed; inset: 0; z-index: 80; background: var(--black); color: var(--on-black);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 100px var(--gutter) 40px;
}
.sheet[hidden] { display: none; }
.sheet nav { display: grid; gap: 10px; }
.sheet nav a { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 9vw, 52px); line-height: 1.1; text-decoration: none; }
.sheet nav a:hover { color: var(--blaze); }
.sheet .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .nav__links, .nav__now { display: none; }
  .nav__menu { display: inline-flex; align-items: center; margin-left: auto; }
}

/* =========================================================
   HERO: network, copy, giant name, swinging lanyard badge, chips
   ========================================================= */
.hero {
  position: relative; height: 100svh; min-height: 660px; overflow: hidden;
  background: radial-gradient(90% 70% at 78% 0%, rgba(232, 67, 42, .16), transparent 62%);
}
.terrain { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
/* the red thread lives in the left margin, so it may sit above the content (below the nav) */
.descent { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: var(--noise); opacity: .45; }
main { position: relative; z-index: 1; }
.hero__copy { position: absolute; z-index: 6; left: var(--gutter); top: calc(var(--nav-h) + 6vh); max-width: min(560px, 46vw); will-change: transform, opacity; }
.hero__title { font-family: var(--f-text); font-weight: 500; font-size: clamp(26px, 2.7vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
.hero__title em { color: var(--blaze); font-size: 1.1em; }
.hero__meta { display: grid; gap: 6px; margin-top: 26px; font: 400 11.5px/1.3 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; color: var(--on-black-soft); }
.hero__meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--blaze); vertical-align: 1px; }

.hero__name { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 44px); pointer-events: none; }
.hero__first {
  display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 800;
  font-size: var(--name-size, 17.5vw); line-height: .8; letter-spacing: -.02em; color: var(--cream); white-space: nowrap;
}
.hero__first i { font-style: normal; display: inline-block; will-change: transform; transform: translate3d(0, var(--ly, 0px), 0); }
.hero__first i:last-child { color: var(--blaze); }

.lanyard {
  position: absolute; z-index: 3; right: 24vw; top: 0; width: clamp(200px, 17vw, 290px);
  transform-origin: 50% 0; will-change: transform;
  transform: translate3d(0, var(--ly, 0px), 0) rotate(var(--swing, 0deg));
  perspective: 1200px;
}
.lanyard__strap {
  position: relative; width: 30px; height: calc(var(--nav-h) + 8vh); margin: 0 auto; overflow: hidden;
  background: var(--blaze); color: var(--black);
  box-shadow: inset 4px 0 0 rgba(0, 0, 0, .12), inset -4px 0 0 rgba(0, 0, 0, .12);
}
.lanyard__strap span { position: absolute; left: 50%; top: 0; transform-origin: 0 0; transform: rotate(90deg) translate(0, -50%); white-space: nowrap; font: 600 10px/1 var(--f-mono); font-stretch: 75%; letter-spacing: .12em; padding-top: 1px; }
.badge { position: relative; margin: 0; transform-style: preserve-3d; }
.badge__clip { position: relative; z-index: 2; width: 56px; height: 24px; margin: -4px auto -8px; border-radius: 6px 6px 4px 4px; background: linear-gradient(#B9B0A0, #8E8577); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.badge__clip::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 22px; height: 6px; margin-left: -11px; border-radius: 4px; background: #5B5449; }
.badge__card { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--flip, 0deg) + var(--ry, 0deg))); will-change: transform; }
.badge__face {
  border-radius: 16px; padding: 12px 12px 16px; background: var(--cream); color: var(--on-cream);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .8), 0 10px 20px -10px rgba(0, 0, 0, .6);
}
.badge__face--back {
  position: absolute; inset: 0; transform: rotateY(180deg); background: var(--blaze); color: var(--black);
  padding: 28px 20px 20px; display: flex; flex-direction: column; gap: 4px;
}
.badge__back-label { font: 500 10.5px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-top: 10px; }
.badge__back-text { font-family: var(--f-serif); font-size: clamp(17px, 1.35vw, 22px); line-height: 1.15; }
.badge__back-text b { font-weight: 700; }
.badge__back-open { margin-top: auto; display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; }
.badge__back-open span { width: 10px; height: 10px; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 4px rgba(42, 27, 18, .18); }
.badge__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--black); display: grid; place-items: center; }
.badge__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: grayscale(1) contrast(1.08); transition: filter .6s var(--ease-out); }
.lanyard:hover .badge__photo img { filter: none; }
.badge__mono { font-family: var(--f-serif); font-style: italic; font-size: clamp(56px, 6vw, 96px); color: var(--blaze); }
.badge__meta { display: grid; gap: 2px; padding: 12px 4px 0; }
.badge__name { font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.badge__role { font-size: 13px; color: var(--on-cream-soft); }
.badge__row { display: flex; justify-content: space-between; margin-top: 8px; font: 400 10px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; color: var(--on-cream-soft); }
.badge__bar { height: 22px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--black) 0 2px, transparent 2px 4px, var(--black) 4px 5px, transparent 5px 8px, var(--black) 8px 11px, transparent 11px 13px); }

.hero__chips { position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: transform; }
.chip {
  position: absolute; display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-b); background: rgba(42, 27, 18, .72); color: var(--cream);
  font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .8);
}
.chip--a { left: 44vw; top: 30vh; transform: rotate(-4deg); }
.chip--b { right: 4vw; top: 44vh; background: var(--blaze); border-color: var(--blaze); color: var(--black); transform: rotate(5deg); }
.chip--c { left: 52vw; top: calc(var(--nav-h) + 3vh); transform: rotate(3deg); }
.chip--d { left: 34vw; top: 47vh; transform: rotate(-3deg); }

@media (max-width: 860px) {
  .hero { min-height: 700px; }
  .hero__copy { max-width: none; right: var(--gutter); top: calc(var(--nav-h) + 2vh); }
  .hero__title { font-size: clamp(22px, 6.4vw, 30px); }
  .hero__meta { margin-top: 16px; }
  .lanyard { right: auto; left: 50%; width: min(48vw, 210px); margin-left: calc(min(48vw, 210px) / -2); }
  .lanyard__strap { height: calc(var(--nav-h) + 168px); -webkit-mask-image: linear-gradient(transparent 0, transparent var(--strap-fade, 40%), #000 calc(var(--strap-fade, 40%) + 60px)); mask-image: linear-gradient(transparent 0, transparent var(--strap-fade, 40%), #000 calc(var(--strap-fade, 40%) + 60px)); }
  .chip { height: 30px; font-size: 10px; padding: 0 11px; }
  .chip--a { left: 5vw; top: auto; bottom: 25svh; }
  .chip--b { right: 4vw; top: auto; bottom: 30svh; }
  .chip--c, .chip--d { display: none; }
}
@media (max-width: 380px), (max-height: 720px) and (max-width: 860px) {
  .hero__meta { display: none; }
}

/* =========================================================
   STATEMENT
   ========================================================= */
.statement {
  position: relative; padding: clamp(120px, 22vh, 240px) var(--gutter) clamp(100px, 18vh, 200px);
  display: grid; grid-template-columns: 1fr minmax(0, 3.2fr); column-gap: clamp(24px, 4vw, 64px); row-gap: 48px;
}
.statement__kicker { font: 400 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--blaze); padding-top: 1em; }
.statement__text { font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.9vw, 64px); line-height: 1.1; letter-spacing: -.02em; max-width: 24ch; }
.statement__text .w { opacity: var(--o, .16); transition: opacity .2s linear, color .4s; }
.statement__text .w.hot { font-style: italic; }
.statement__text .w.hot.is-lit { color: var(--blaze); }
.statement__aside { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 760px; color: var(--on-black-soft); font-size: 15px; }
.statement__aside p { border-top: 1px solid var(--line-b); padding-top: 14px; }
.statement__aside strong { color: var(--on-black); font-weight: 600; }
@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; }
  .statement__aside { grid-column: 1; grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- line reveal (titles) ---------- */
.reveal > span { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal > span > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease-out); }
.reveal > span:nth-child(2) > span { transition-delay: .08s; }
.reveal > span:nth-child(3) > span { transition-delay: .16s; }
.reveal.is-in > span > span { transform: none; }
html:not(.js) .reveal > span > span { transform: none; }

/* =========================================================
   WORK
   ========================================================= */
.work { padding: 40px var(--gutter) clamp(80px, 14vh, 160px); }
.work__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-b); }
.work__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 7vw, 124px); line-height: .92; letter-spacing: -.02em; }
.work__title em { color: var(--blaze); font-size: 1.15em; letter-spacing: -.01em; }
.work__lede { max-width: 40ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--on-black-soft); }

.console {
  margin: 32px 0 clamp(64px, 11vh, 120px); padding: clamp(18px, 2.4vw, 32px);
  border-radius: 20px; background: var(--black-2); border: 1px solid var(--line-b);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px;
}
.console__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.console__label { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); }
.console__note { font: 400 11px/1.4 var(--f-mono); font-stretch: 87.5%; color: var(--on-black-soft); }
.console__roles { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.role {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-b); background: transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.role:hover { transform: translateY(-2px); border-color: var(--cream); }
.role[aria-pressed="true"] { background: var(--blaze); border-color: var(--blaze); color: var(--black); }
.console__form { display: flex; gap: 8px; align-self: start; }
.console__form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-b); background: var(--black); outline: none; font-size: 15px;
}
.console__form input::placeholder { color: var(--on-black-soft); }
.console__form input:focus { border-color: var(--blaze); }
.agents { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; padding-top: 18px; border-top: 1px dashed var(--line-b); }
.agents li { position: relative; padding-top: 22px; font: 400 10px/1.2 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .03em; color: var(--on-black-soft); text-align: center; }
.agents li::before { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 1px solid var(--on-black-soft); transition: background-color .2s, border-color .2s, transform .3s var(--ease-out); }
.agents li.is-on { color: var(--on-black); }
.agents li.is-on::before { background: var(--blaze); border-color: var(--blaze); transform: scale(1.4); }
.agents li.is-done::before { background: var(--cream); border-color: var(--cream); }
.console__log { grid-column: 1 / -1; font: 400 12.5px/1.4 var(--f-mono); font-stretch: 87.5%; min-height: 1.4em; }
.console__log b { color: var(--blaze); font-weight: 500; }
@media (max-width: 860px) {
  .work__head { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; }
  .agents li { font-size: 0; padding-top: 14px; }
}

/* deck: cream case files stacking over each other */
.deck { position: relative; display: grid; gap: 12vh; perspective: 1600px; }
.case {
  --s: 1; --dim: 0; --tilt: 0;
  position: sticky; top: calc(var(--nav-h) + 30px + var(--i, 0) * 12px);
  height: min(76vh, 660px); min-height: 520px;
  transform-origin: 50% 0; transform: scale(var(--s)) rotateX(calc(var(--tilt) * 1deg));
  will-change: transform;
}
.case__tab {
  position: absolute; left: 0; top: -28px; height: 30px; padding: 0 18px;
  display: flex; align-items: center; gap: 14px; border-radius: 12px 12px 0 0;
  background: var(--cream); color: var(--on-cream-soft);
  font: 400 10.5px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em;
}
.case__match { display: none; color: var(--black); background: var(--blaze); padding: 4px 8px; border-radius: 6px; font-weight: 600; }
.case__match.is-on { display: inline-block; }
.case__body {
  position: relative; height: 100%; border-radius: 0 22px 22px 22px; overflow: hidden;
  background: var(--cream); color: var(--on-cream);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  padding: clamp(14px, 1.6vw, 22px) clamp(20px, 3.4vw, 56px) clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .9);
}
.case__body::after { content: ""; position: absolute; inset: 0; background: var(--black); opacity: calc(var(--dim) * .6); pointer-events: none; }
.case__art { position: relative; border-radius: 14px; background: var(--black); overflow: hidden; display: grid; place-items: center; padding: 6%; }
.case__art > * { transform: translate3d(0, var(--art-y, 0px), 0); }
.case__art svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.case__text { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.case__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 58px); line-height: .95; letter-spacing: -.02em; }
.case__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 1.7vw, 27px); color: var(--blaze-ink); line-height: 1.1; }
.case__desc { color: var(--on-cream-soft); max-width: 46ch; font-size: clamp(15px, 1.05vw, 17px); }
.case__facts { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line-c); border-bottom: 1px solid var(--line-c); font-size: 15px; }
.case__facts li::before { content: "→ "; color: var(--blaze-ink); }
.case__facts b { font-family: var(--f-display); font-weight: 700; font-size: 1em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-c); font: 400 10.5px/1.2 var(--f-mono); font-stretch: 87.5%; color: var(--on-cream-soft); }
.case__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; }
.case__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--blaze); line-height: 1; padding-top: 6px; }
.case__links a:hover { color: var(--blaze-ink); }

/* project demo video: a small screen resting in the black panel.
   It stays hidden until the clip has loaded, so cards without a video keep their illustration. */
.case__screen {
  position: absolute; inset: 5%; display: grid; place-items: center; container-type: size;
  opacity: 0; transition: opacity .9s var(--ease-out); pointer-events: none;
}
.case__screen-in {
  position: relative; width: min(100cqw, 100cqh * var(--ar, 1.6)); aspect-ratio: var(--ar, 1.6);
  border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(239, 228, 208, .14), 0 34px 70px -24px rgba(0, 0, 0, .85);
}
.case__screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.case__screen-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blaze);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.case__art.has-video .case__screen { opacity: 1; }
.case__art > :not(.case__screen) { transition: opacity .5s var(--ease-out); }
.case__art.has-video > :not(.case__screen) { opacity: 0; }

/* case art palette (on black panels) */
.case__art { --a-line: rgba(239, 228, 208, .16); --a-soft: #B9A890; --a-fill: #433024; --a-ink: #EFE4D0; }
.case__art--rap svg { stroke: var(--a-soft); fill: none; stroke-width: 1.5; }
.rap-post rect { fill: var(--a-fill); stroke: var(--a-line); }
.rap-agents circle { fill: var(--a-fill); stroke: var(--a-soft); }
.rap-flow { stroke: var(--blaze); stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
.rap-list rect { fill: var(--a-fill); stroke: none; }
.rap-list rect.hot { fill: var(--blaze); }
.case.is-live .rap-agents circle { animation: agent-blink 2.7s infinite; }
.rap-agents circle:nth-child(2) { animation-delay: .3s !important; } .rap-agents circle:nth-child(3) { animation-delay: .6s !important; }
.rap-agents circle:nth-child(4) { animation-delay: .9s !important; } .rap-agents circle:nth-child(5) { animation-delay: 1.2s !important; }
.rap-agents circle:nth-child(6) { animation-delay: 1.5s !important; } .rap-agents circle:nth-child(7) { animation-delay: 1.8s !important; }
.rap-agents circle:nth-child(8) { animation-delay: 2.1s !important; } .rap-agents circle:nth-child(9) { animation-delay: 2.4s !important; }
@keyframes agent-blink { 0%, 20%, 100% { fill: #433024; } 8% { fill: #E8432A; } }
@keyframes dash { to { stroke-dashoffset: -20; } }

.codes { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; width: 100%; }
.codes ul { display: grid; gap: 10px; }
.codes li { padding: 9px 10px; border-radius: 8px; background: var(--a-fill); font: 400 clamp(9px, .72vw, 11.5px)/1.2 var(--f-mono); font-stretch: 75%; color: var(--a-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.codes li.m1, .codes li.m2 { color: var(--black); background: var(--blaze); }
.codes svg { height: 100%; width: 100%; }
.codes .ln { fill: none; stroke: var(--blaze); stroke-width: 2; vector-effect: non-scaling-stroke; }
.codes__cap, .bars__cap { position: absolute; left: 16px; bottom: 12px; font: 400 10px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; color: var(--a-soft); opacity: .75; }
.bars__cap { bottom: auto; top: 14px; }

.og-links path { stroke: var(--a-line); stroke-width: 1.5; }
.og-links path:nth-child(2) { stroke: var(--blaze); stroke-width: 2.5; }
.og-nodes circle { fill: var(--a-fill); stroke: var(--a-soft); stroke-width: 1.5; }
.og-nodes .best { fill: var(--blaze); stroke: var(--blaze); }
.og-donor { fill: var(--a-ink); }
.og-pulse { fill: none; stroke: var(--a-ink); stroke-width: 1.5; transform-origin: 200px 150px; animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
.clocks { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; transform: none !important; }
.clocks li { padding: 5px 9px; border-radius: 6px; background: var(--a-fill); font: 400 10.5px/1.2 var(--f-mono); font-stretch: 87.5%; color: var(--a-soft); }
.clocks b { color: var(--a-ink); font-weight: 500; }

.case__art--dq svg { fill: none; }
.dq-grid line { stroke: var(--a-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dq-grid .now { stroke: var(--a-soft); stroke-dasharray: 3 5; }
.dq-band { fill: rgba(232, 67, 42, .18); }
.dq-hist { stroke: var(--a-ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.dq-fc { stroke: var(--blaze); stroke-width: 2.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.dq-cap { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; gap: 18px; font: 400 10px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; color: var(--a-soft); transform: none !important; }
.dq-cap span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--a-ink); }
.dq-cap span + span::before { background: var(--blaze); }

.case__art--haat { align-content: center; gap: 28px; }
.wave { display: flex; align-items: center; gap: 5px; height: 90px; }
.wave i { width: 6px; border-radius: 3px; background: var(--blaze); height: 30%; animation: wave 1.2s var(--ease-io) infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.7s; } .wave i:nth-child(4n) { animation-delay: -.5s; height: 60%; } .wave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1.6); } }
.haat-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; }
.haat-steps li { padding: 6px 10px; border-radius: 6px; background: var(--a-fill); font: 400 11px/1.2 var(--f-mono); font-stretch: 87.5%; color: var(--a-soft); }
.haat-steps li:last-child { background: var(--blaze); color: var(--black); }

.case__art--brute { align-content: end; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 72%; width: 100%; }
.bars i { flex: 1; height: calc(var(--h) * 1%); border-radius: 4px 4px 0 0; background: var(--a-fill); }
.bars i.spike { background: var(--blaze); }

@media (max-width: 860px) {
  .deck { gap: 56px; perspective: none; }
  .case { position: relative; top: auto; height: auto; min-height: 0; transform: none; }
  .case__body { grid-template-columns: 1fr; padding: 12px 12px 22px; border-radius: 0 18px 18px 18px; }
  .case__art { aspect-ratio: 4 / 3; }
  .case__text { padding: 4px 8px 0; }
}

/* ---------- CASE FILE: the panel that opens from a project card ---------- */
.case__open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--black); color: var(--cream); font: 600 14px/1 var(--f-text); cursor: pointer; transition: background .3s, color .3s; }
.case__open:hover, .case__open:focus-visible { background: var(--blaze); color: var(--black); }
.case__open i { font-style: normal; transition: transform .4s var(--ease-out); }
.case__open:hover i { transform: translateX(4px); }
.case__art { cursor: pointer; }

.file { margin: 0 0 0 auto; padding: 0; border: 0; width: min(760px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--black); color: var(--on-black); overflow: hidden; }
.file::backdrop { background: rgba(20, 12, 8, .72); backdrop-filter: blur(4px); }
.file[open] { animation: file-in .7s var(--ease-out); }
@keyframes file-in { from { transform: translate3d(40px, 0, 0); opacity: 0; } }
.file__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 3vw, 40px) clamp(20px, 3.6vw, 48px) 64px; }
.file__bar { position: sticky; top: calc(clamp(20px, 3vw, 40px) * -1); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: calc(clamp(20px, 3vw, 40px) * -1) calc(clamp(20px, 3.6vw, 48px) * -1) 24px; padding: 16px clamp(20px, 3.6vw, 48px); background: var(--black); border-bottom: 1px solid var(--line-b); font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-black-soft); }
.file__close { min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--blaze); color: var(--black); font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.file__video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 28px; box-shadow: 0 0 0 1px var(--line-b); }
.file__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.file__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: .95; letter-spacing: -.02em; }
.file__sub { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--blaze); }
.file__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.file__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-b); color: var(--cream); text-decoration: none; font: 600 14px/1 var(--f-text); transition: background .3s, color .3s, border-color .3s; }
.file__links a.is-main { background: var(--cream); color: var(--black); border-color: var(--cream); }
.file__links a:hover, .file__links a:focus-visible { background: var(--blaze); border-color: var(--blaze); color: var(--black); }
.file__links .file__none { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font: 400 11px/1.3 var(--f-mono); color: var(--on-black-soft); }
.file__block { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-b); }
.file__block h4 { margin-bottom: 14px; font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--blaze); }
.file__block > p { font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.file__feats { display: grid; gap: 2px; counter-reset: feat; }
.file__feats li { counter-increment: feat; position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--line-b); font-size: 15.5px; line-height: 1.45; }
.file__feats li::before { position: absolute; left: 0; top: 12px; content: counter(feat, decimal-leading-zero); font: 500 11px/1.9 var(--f-mono); color: var(--blaze); }
.file__feats b { color: var(--cream); }
.file__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.file__specs div { padding: 14px 16px; border-radius: 10px; background: rgba(239, 228, 208, .05); box-shadow: inset 0 0 0 1px var(--line-b); }
.file__specs dt { font: 500 10px/1.2 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-black-soft); margin-bottom: 8px; }
.file__specs dd { font-size: 15px; line-height: 1.4; color: var(--cream); }
.file__specs .wide { grid-column: 1 / -1; }
/* richer case-file blocks */
.file__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 28px; background: var(--line-b); border-radius: 12px; overflow: hidden; }
.file__stats div { padding: 18px 16px; background: var(--black); }
.file__stats b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; color: var(--blaze); letter-spacing: -.01em; }
.file__stats span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: var(--on-black-soft); }
.file__flow { display: grid; gap: 0; counter-reset: step; }
.file__flow li { counter-increment: step; position: relative; padding: 0 0 22px 52px; font-size: 15.5px; line-height: 1.45; }
.file__flow li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blaze); color: var(--black); font: 600 12px/1 var(--f-mono); }
.file__flow li::after { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: var(--line-b); }
.file__flow li:last-child { padding-bottom: 0; }
.file__flow li:last-child::after { display: none; }
.file__flow b, .file__who b, .file__arch b, .file__checks b { color: var(--cream); }
.file__who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.file__who li { padding: 14px 16px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-b); font-size: 14.5px; line-height: 1.4; color: var(--on-black-soft); }
.file__who li b { display: block; margin-bottom: 4px; font-size: 15px; }
.file__arch { display: grid; gap: 8px; }
.file__arch li { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 10px; background: rgba(239, 228, 208, .05); font-size: 14.5px; line-height: 1.4; color: var(--on-black-soft); }
.file__arch li b { font: 500 11px/1.4 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; color: var(--blaze); }
.file__checks { display: grid; gap: 10px; }
.file__checks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.45; color: var(--on-black-soft); }
.file__checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 10px; background: var(--blaze); clip-path: polygon(0 50%, 20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%); }
.file__code { display: block; padding: 14px 16px; border-radius: 10px; background: #140c08; color: var(--cream); font: 400 13px/1.6 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.file__next { font-size: 15px; line-height: 1.5; color: var(--on-black-soft); }
@media (max-width: 560px) { .file__who { grid-template-columns: 1fr; } .file__arch li { grid-template-columns: 1fr; gap: 4px; } }
.file .tags li { border-color: var(--line-b); color: var(--on-black-soft); }
@media (max-width: 560px) { .file__specs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .file[open] { animation: none; } }

.also { margin-top: clamp(80px, 14vh, 160px); display: grid; grid-template-columns: 1fr minmax(0, 3.2fr); gap: 24px clamp(24px, 4vw, 64px); }
.also__title { font: 400 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-black-soft); padding-top: 28px; }
.also__list li { border-top: 1px solid var(--line-b); }
.also__list li:last-child { border-bottom: 1px solid var(--line-b); }
.also__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 20px; align-items: baseline;
  padding: 22px 0; text-decoration: none; transition: padding .45s var(--ease-out), color .3s;
}
.also__list a span:first-child { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 28px); }
.also__list a span:nth-child(2) { color: var(--on-black-soft); }
.also__list a:hover { padding-left: 18px; color: var(--blaze); }
@media (max-width: 860px) {
  .also { grid-template-columns: 1fr; }
  .also__list a { grid-template-columns: 1fr auto; }
  .also__list a span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; }
}

/* =========================================================
   NUMBERS: the abacus (peak)
   ========================================================= */
.numbers { position: relative; height: 640vh; }
.numbers__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.numbers__hush {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px; padding: 0 var(--gutter);
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 80px); letter-spacing: -.02em; line-height: 1.04;
  opacity: var(--hush, 1); transform: translateY(calc((1 - var(--hush, 1)) * -40px)) scale(calc(.96 + var(--hush, 1) * .04));
}
.numbers__hush em { color: var(--blaze); }
.numbers__hush .hush__sub { display: block; font: 400 12px/1.5 var(--f-mono); font-stretch: 87.5%; letter-spacing: .02em; color: var(--on-black-soft); }
.numbers__inner {
  width: 100%; padding: calc(var(--nav-h) + 10px) var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: clamp(24px, 5vw, 80px); row-gap: 24px;
  opacity: var(--show, 0); perspective: 1400px;
}
.abacus {
  grid-row: 1 / span 2; --bh: clamp(22px, 3.7vh, 40px); --rw: clamp(30px, 4.4vw, 70px); justify-self: center;
  transform: rotateX(calc((1 - var(--show, 0)) * 38deg)) translateY(calc((1 - var(--show, 0)) * 80px)) scale(calc(.9 + var(--show, 0) * .1));
  transform-origin: 50% 100%;
}
.abacus__frame {
  position: relative; padding: calc(var(--bh) * .5) calc(var(--rw) * .35);
  border-radius: 14px; background: linear-gradient(180deg, #1C110A, #140C07);
  box-shadow: 0 0 0 10px #6B4630, 0 0 0 11px #8A5E3F, 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(232, 67, 42, var(--glow, 0));
}
.abacus__rods { position: relative; display: flex; }
.abacus__rods::before, .abacus__rods::after { content: ""; position: absolute; top: calc(var(--bh) * 2); height: calc(var(--bh) * .4); width: calc(var(--rw) * .35); background: #6B4630; }
.abacus__rods::before { right: 100%; } .abacus__rods::after { left: 100%; }
.rod { position: relative; width: var(--rw); height: calc(var(--bh) * 7.4); }
.rod::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(90deg, #6E655B, #A39888, #6E655B); border-radius: 2px; }
.rod__beam { position: absolute; left: 0; right: 0; top: calc(var(--bh) * 2); height: calc(var(--bh) * .4); z-index: 2; background: linear-gradient(180deg, #8A5E3F, #5A3A26); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.rod.is-mark .rod__beam::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #9A8F80; }
.rod__point { position: absolute; right: -5px; top: calc(var(--bh) * 2.2 - 5px); z-index: 3; width: 10px; height: 10px; border-radius: 50%; background: var(--blaze); box-shadow: 0 0 0 3px rgba(232, 67, 42, .25); opacity: var(--pt, 0); }
.bead {
  position: absolute; left: 6%; right: 6%; top: 0; height: var(--bh);
  clip-path: polygon(0 50%, 20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%);
  background: linear-gradient(180deg, #7A5538 0%, #5E402A 48%, #43291A 52%, #5A3C28 100%);
  transform: translate3d(0, calc(var(--y, 0) * 100%), 0) scaleX(var(--sx, 1)); will-change: transform;
}
.bead.is-on { background: linear-gradient(180deg, #F78E72 0%, #E8432A 48%, #B32D1A 52%, #EE5C42 100%); }
.numbers__read { align-self: end; }
.numbers__value { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(64px, 8.4vw, 150px); line-height: .9; letter-spacing: -.03em; }
.numbers__value small { font-size: .5em; color: var(--blaze); margin-left: .04em; }
.numbers__caption { margin-top: 18px; max-width: 26ch; font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 34px); line-height: 1.15; }
.numbers__value, .numbers__caption { transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), filter .45s; }
.numbers__read.is-swapping .numbers__value, .numbers__read.is-swapping .numbers__caption { opacity: 0; transform: translateY(16px); filter: blur(4px); }
.numbers__list { align-self: start; display: grid; gap: 4px; border-top: 1px solid var(--line-b); padding-top: 14px; font: 400 11.5px/1.5 var(--f-mono); font-stretch: 87.5%; color: var(--on-black-soft); }
.numbers__list li { display: flex; gap: 10px; opacity: .45; transition: opacity .3s, color .3s; }
.numbers__list li::before { content: attr(data-n) attr(data-suffix); min-width: 5ch; color: var(--on-black); }
.numbers__list li.is-on { opacity: 1; color: var(--on-black); }
.numbers__list li.is-on::before { color: var(--blaze); }
@media (max-width: 860px) {
  .numbers { height: 560vh; }
  .numbers__inner { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; text-align: center; row-gap: 20px; }
  .abacus { grid-row: auto; --rw: calc((100vw - 2 * var(--gutter) - 40px) / 9); --bh: min(calc(var(--rw) * .62), 3.2svh); }
  .numbers__read { align-self: auto; }
  .numbers__value { font-size: clamp(56px, 17vw, 96px); }
  .numbers__caption { margin: 10px auto 0; font-size: 20px; }
  .numbers__list { display: none; }
}

/* =========================================================
   LEADERSHIP: event tickets that settle and get stamped
   ========================================================= */
.lead { position: relative; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(60px, 10vh, 120px); }
.lead__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px clamp(24px, 5vw, 80px); padding-bottom: 36px; border-bottom: 2px solid var(--on-cream); }
.lead__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 7vw, 124px); line-height: .92; letter-spacing: -.02em; }
.lead__title em { color: var(--blaze-ink); font-size: 1.15em; }
.lead__role { display: grid; gap: 16px; }
.lead__badge { justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--black); color: var(--cream); font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; }
.lead__lede { font-family: var(--f-serif); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.25; }
.lead__lede b { font-weight: 700; color: var(--blaze-ink); }
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding: clamp(48px, 9vh, 96px) 0 clamp(36px, 6vh, 64px); }
.ticket {
  --t: 1; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px; min-height: 230px;
  background-color: var(--black); background-image: var(--grain); color: var(--on-black); border-radius: 18px;
  filter: drop-shadow(0 26px 30px rgba(42, 27, 18, .35));
  transform: translate3d(0, calc(var(--t) * 140px), 0) rotate(calc(var(--t) * var(--r, 0deg)));
  opacity: calc(1 - var(--t) * .6);
  will-change: transform;
}
.ticket::before, .ticket::after { content: ""; position: absolute; right: 64px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); }
.ticket::before { top: -12px; } .ticket::after { bottom: -12px; }
.ticket__main { padding: 24px 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticket__by { font: 500 10.5px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-black-soft); }
.ticket__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 36px); line-height: 1; letter-spacing: -.01em; margin-top: auto; }
.ticket__name em { color: var(--blaze); font-size: 1.15em; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 11px/1.3 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; color: var(--on-black-soft); }
.ticket__stub { position: relative; display: grid; place-content: center; justify-items: center; gap: 2px; border-left: 2px dashed rgba(239, 228, 208, .25); font-family: var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; }
.ticket__stub span { font-size: 11px; letter-spacing: .08em; color: var(--on-black-soft); }
.ticket__stub b { font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--blaze); }
.ticket__stub i { width: 34px; height: 46px; margin-top: 10px; background: repeating-linear-gradient(0deg, var(--cream) 0 2px, transparent 2px 4px, var(--cream) 4px 5px, transparent 5px 8px); opacity: .55; }
.ticket__stamp {
  position: absolute; right: 96px; top: 18px; padding: 6px 12px; border: 3px solid var(--blaze); border-radius: 8px; color: var(--blaze);
  font: 700 15px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(-12deg) scale(2.4); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.6, .4, 1), opacity .2s;
}
.ticket.is-stamped .ticket__stamp { transform: rotate(-12deg) scale(1); opacity: .92; }
.lead__more { display: flex; align-items: baseline; gap: 14px; font-size: clamp(16px, 1.25vw, 19px); color: var(--on-cream-soft); max-width: 60ch; }
.lead__more span { font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--blaze-ink); }
@media (max-width: 1100px) { .tickets { grid-template-columns: 1fr; max-width: 560px; gap: 32px; } }
@media (max-width: 860px) {
  .lead__head { grid-template-columns: 1fr; }
  .lead__title { font-size: 12vw; }
  .ticket { min-height: 190px; }
  .ticket__stamp { top: 56px; right: 92px; }
}

/* =========================================================
   CREAM CHAPTER: path + toolkit. Opens like a page.
   ========================================================= */
.cream {
  position: relative; background: var(--cream); color: var(--on-cream);
  clip-path: inset(0 var(--ci, 0px) 0 var(--ci, 0px) round var(--cr, 0px) var(--cr, 0px) var(--cb, 0px) var(--cb, 0px));
}
.path { position: relative; }
.path__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 64px); }
.path__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 var(--gutter); }
.path__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5.6vw, 100px); line-height: .92; letter-spacing: -.02em; }
.path__title em { color: var(--blaze-ink); font-size: 1.15em; }
.path__bar { flex: 0 1 30vw; height: 2px; background: var(--line-c); margin-bottom: 14px; overflow: hidden; }
.path__bar i { display: block; height: 100%; background: var(--blaze); transform-origin: 0 50%; transform: scaleX(var(--pp, 0)); }
.path__track { display: flex; gap: clamp(18px, 2vw, 32px); padding: 0 var(--gutter); width: max-content; will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
.stop { position: relative; width: clamp(270px, 26vw, 400px); padding: 26px 0 0; border-top: 2px solid var(--black); display: grid; gap: 8px; align-content: start; }
.stop::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); border: 2px solid var(--black); }
.stop--win::before, .stop--now::before { background: var(--blaze); border-color: var(--blaze); }
.stop--next { border-top-style: dashed; }
.stop--next::before { background: var(--black); }
.stop__date { font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-cream-soft); }
.stop__year { font-family: var(--f-serif); font-style: italic; font-size: clamp(96px, 10vw, 170px); line-height: .85; letter-spacing: -.03em; color: rgba(42, 27, 18, .13); transform: translate3d(var(--yx, 0px), 0, 0); will-change: transform; }
.stop--now .stop__year, .stop--next .stop__year { color: var(--blaze); }
.stop__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.15; }
.stop__org { font-size: 14px; font-weight: 600; }
.stop__text { color: var(--on-cream-soft); font-size: 15px; max-width: 34ch; }
.stop__text a { color: var(--blaze-ink); font-weight: 600; }
.path.is-static .path__stage { position: static; height: auto; padding: 120px 0; }
.path.is-static .path__track { width: auto; flex-wrap: wrap; transform: none; row-gap: 56px; }
.path.is-static .path__bar { display: none; }
html:not(.js) .path__stage { position: static; height: auto; padding: 120px 0; }
html:not(.js) .path__track { width: auto; flex-wrap: wrap; row-gap: 56px; }
@media (max-width: 860px) {
  .path__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .path__title { font-size: 10vw; }
  .path__bar { flex: none; width: 100%; margin: 0; }
}

/* ---------- HONOURS + CERTIFICATES ("On the record") ---------- */
.honours { position: relative; padding: clamp(90px, 14vh, 170px) 0 clamp(60px, 10vh, 120px); }
.honours__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding: 0 var(--gutter) 32px; margin: 0 var(--gutter); padding-left: 0; padding-right: 0; border-bottom: 2px solid var(--on-cream); }
.honours__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 7vw, 124px); line-height: .92; letter-spacing: -.02em; }
.honours__title em { color: var(--blaze-ink); font-size: 1.15em; }
.honours__count { font: 500 11px/1.6 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-cream-soft); }
.honours__count b { font-family: var(--f-display); font-size: 22px; font-weight: 800; color: var(--on-cream); letter-spacing: 0; margin-right: 4px; vertical-align: -3px; }

/* the honours ledger: one row per honour; the row floods walnut on hover */
.medals { margin: 0 var(--gutter); counter-reset: medal; }
.medal {
  --flood: 0; position: relative; isolation: isolate;
  display: grid; grid-template-columns: 112px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 12px clamp(16px, 2.6vw, 40px);
  padding: clamp(20px, 3vh, 30px) 0; border-bottom: 1px solid var(--line-c);
  transition: color .45s var(--ease-out), padding .45s var(--ease-out);
}
.medal::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--black);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out);
}
.medal:hover { color: var(--cream); padding-left: 18px; }
.medal:hover::before { transform: scaleX(1); }
.medal__yr { font: 500 11px/1.2 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-cream-soft); transition: color .45s; }
.medal__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3vw, 50px); line-height: 1; letter-spacing: -.02em; }
.medal__rank { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--black); color: var(--cream); font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; transition: background .45s, color .45s; }
.medal--top .medal__rank { background: var(--blaze); color: var(--black); }
.medal__by { font-family: var(--f-serif); font-style: italic; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.2; color: var(--blaze-ink); transition: color .45s; }
.medal__note { font-size: 14.5px; line-height: 1.45; color: var(--on-cream-soft); transition: color .45s; }
.medal__mid { display: grid; gap: 10px; justify-items: start; }
.medal:hover .medal__yr, .medal:hover .medal__note { color: rgba(239, 228, 208, .66); }
.medal:hover .medal__by { color: var(--blaze); }
.medal:hover .medal__rank { background: var(--cream); color: var(--black); }
.medal--top:hover .medal__rank { background: var(--blaze); color: var(--black); }

/* certificates: two rows that drift left to right; hover pauses, click opens the certificate */
.certs { margin-top: clamp(60px, 10vh, 110px); }
.certs__label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin: 0 var(--gutter) 22px; }
.certs__label b { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.01em; }
.certs__label span { font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; color: var(--on-cream-soft); }
.certs__rows { display: grid; gap: 14px; }
/* default (no JS, reduced motion): one tidy wrapped list. main.js adds .is-moving for the drifting rows */
.certs__rail { padding: 0 var(--gutter); }
.certs__list { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; }
.certs__list > li { display: flex; }
.certs:not(.is-moving) .certs__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.certs:not(.is-moving) .cert { width: 100%; }
/* still list on a phone: swipe through it sideways instead of a long stack */
@media (max-width: 860px) {
  .certs:not(.is-moving) .certs__rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding-bottom: 12px; }
  .certs:not(.is-moving) .certs__list { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 264px; width: max-content; }
  .certs:not(.is-moving) .certs__list > li { scroll-snap-align: start; }
}
.cert { min-height: 84px; }
.certs.is-moving .certs__rail { overflow: hidden; padding: 6px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.certs.is-moving .certs__list { flex-wrap: nowrap; width: max-content; transform: translate3d(var(--cx, 0px), 0, 0); will-change: transform; }
.cert {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 14px;
  width: clamp(270px, 24vw, 340px); padding: 10px 16px 10px 10px; text-align: left; color: inherit; font: inherit;
  background: rgba(255, 252, 245, .55); border: 1px solid var(--line-c); border-radius: 14px; cursor: pointer;
  transition: transform .45s var(--ease-out), border-color .3s, background .3s, box-shadow .45s var(--ease-out);
}
.cert:hover, .cert:focus-visible { transform: translateY(-4px); border-color: var(--blaze); background: #FFFCF5; box-shadow: 0 18px 30px -18px rgba(42, 27, 18, .45); }
.cert:focus-visible { outline: 2px solid var(--blaze-ink); outline-offset: 3px; }
.cert__thumb { width: 74px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--line-c); box-shadow: 0 0 0 1px var(--line-c); }
.cert__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cert__txt { display: grid; gap: 5px; min-width: 0; }
.cert__by { font: 500 9.5px/1.2 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; color: var(--blaze-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert__name { font-weight: 600; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cert__yr { font: 400 10px/1 var(--f-mono); font-stretch: 87.5%; color: var(--on-cream-soft); }
.cert__by sup { font-size: .8em; line-height: 0; }
.cert__tag { display: inline-block; margin-left: 4px; padding: 3px 7px; border-radius: 999px; background: var(--blaze); color: var(--black); font: 600 9px/1 var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; vertical-align: 2px; }
div.cert { cursor: default; }
div.cert:hover { transform: none; border-color: var(--line-c); background: rgba(255, 252, 245, .55); box-shadow: none; }
/* no picture to show: a bead stands in */
.cert__thumb--none { display: grid; place-items: center; background: var(--black); }
.cert__thumb--none::before { content: ""; width: 18px; height: 11px; background: var(--blaze); clip-path: polygon(0 50%, 20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%); }
.certview__verify { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; margin-right: auto; border-radius: 999px; color: var(--cream); text-decoration: none; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; border: 1px solid rgba(239, 228, 208, .3); }
.certview__verify:hover, .certview__verify:focus-visible { background: var(--cream); color: var(--black); }
.certview__verify[hidden] { display: none; }

/* the certificate viewer */
.certview { margin: auto; padding: 0; border: 0; background: transparent; color: var(--cream); max-width: min(1100px, 94vw); max-height: 94vh; overflow: visible; }
.certview::backdrop { background: rgba(20, 12, 8, .86); backdrop-filter: blur(6px); }
.certview figure { display: grid; gap: 14px; }
.certview img { display: block; max-width: 100%; max-height: calc(94vh - 110px); width: auto; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); background: #fff; }
.certview figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; }
.certview__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 2vw, 28px); letter-spacing: -.01em; }
.certview__by { font: 500 11px/1.4 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; color: rgba(239, 228, 208, .7); }
.certview__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.certview__nav button { min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(239, 228, 208, .3); background: transparent; color: var(--cream); font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.certview__nav button:hover, .certview__nav button:focus-visible { background: var(--cream); color: var(--black); }
.certview__nav [data-cv-close] { background: var(--blaze); border-color: var(--blaze); color: var(--black); }

@media (max-width: 860px) {
  .medal { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .medal:hover { padding-left: 0; color: inherit; }
  .medal:hover::before { transform: scaleX(0); }
  .medal:hover .medal__yr, .medal:hover .medal__note { color: var(--on-cream-soft); }
  .medal:hover .medal__by { color: var(--blaze-ink); }
  .medal:hover .medal__rank { background: var(--black); color: var(--cream); }
  .medal__mid { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .cert { width: 264px; grid-template-columns: 62px minmax(0, 1fr); }
  .cert__thumb { width: 62px; }
  .certview figcaption { display: grid; }
}

.toolkit { padding: clamp(40px, 8vh, 100px) 0 clamp(72px, 12vh, 140px); overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__row { display: inline-flex; gap: .5em; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5.6vw, 96px); line-height: 1.15; letter-spacing: -.02em; will-change: transform; padding-right: .5em; transform: translate3d(var(--mx, 0px), 0, 0) skewX(var(--skew, 0deg)); }
.marquee__row span::after { content: "✶"; margin-left: .5em; color: var(--blaze); font-size: .5em; vertical-align: .35em; }
.marquee__row em { font-weight: 400; color: var(--blaze-ink); font-size: 1.12em; }
.marquee--rev .marquee__row { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 4.4vw, 76px); color: var(--on-cream-soft); }
.marquee--rev .marquee__row span::after { content: "/"; color: var(--on-cream-soft); vertical-align: 0; font-size: .8em; }
.toolkit__grid { margin: clamp(48px, 8vh, 96px) var(--gutter) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.toolkit__grid div { border-top: 2px solid var(--black); padding-top: 12px; }
.toolkit__grid dt { font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; color: var(--blaze-ink); }
.toolkit__grid dd { font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .toolkit__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .toolkit__grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT: slides over the cream like a sheet, resolves, holds.
   ========================================================= */
.contact {
  position: relative; z-index: 2;
  color: var(--on-black);
  padding: clamp(110px, 18vh, 200px) var(--gutter) 28px; min-height: 100svh; display: flex; flex-direction: column;
}
.contact__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 6.2vw, 112px); line-height: .98; letter-spacing: -.02em; max-width: 16ch; }
.contact__title em { color: var(--blaze); font-weight: 400; font-size: 1.15em; }
.contact__row { margin-top: clamp(48px, 10vh, 110px); display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.orb {
  order: 2; display: grid; place-items: center; width: clamp(150px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blaze); color: var(--black); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: clamp(14px, 1.2vw, 18px);
  box-shadow: 0 30px 70px -24px rgba(232, 67, 42, .6);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .5s var(--ease-out), background-color .3s;
}
.orb span { transform: translate3d(calc(var(--mx, 0px) * .4), calc(var(--my, 0px) * .4), 0); transition: transform .5s var(--ease-out); }
.orb:hover { background: var(--cream); }
.orb.is-converged { box-shadow: 0 0 0 10px rgba(232, 67, 42, .18), 0 0 0 22px rgba(232, 67, 42, .08), 0 30px 70px -20px rgba(232, 67, 42, .7); }
.orb { transition: transform .5s var(--ease-out), background-color .3s, box-shadow .6s var(--ease-out); }
.contact__side { display: grid; gap: 18px; }
.contact__mail { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--f-serif); font-size: clamp(24px, 2.4vw, 38px); }
.contact__mail a { text-decoration: none; border-bottom: 1px solid var(--line-b); overflow-wrap: anywhere; }
.contact__mail a:hover { border-color: var(--blaze); }
.copy { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-b); background: transparent; font: 500 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; color: var(--on-black-soft); }
.copy:hover { color: var(--on-black); border-color: var(--on-black); }
.contact__links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.contact__links a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; text-decoration: none; font-weight: 500; }
.contact__links a:hover { color: var(--blaze); }
.contact__clock { font: 400 12px/1.4 var(--f-mono); font-stretch: 87.5%; color: var(--on-black-soft); }
.contact__clock time { color: var(--on-black); }
.foot { margin-top: auto; padding-top: 80px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 11px/1 var(--f-mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; color: var(--on-black-soft); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--blaze); }

/* =========================================================
   Reduced motion: keep the composition, drop the travel.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .statement__text .w { opacity: 1 !important; }
  .statement__text .w.hot { color: var(--blaze); }
  .reveal > span > span { transform: none; }
  .numbers { height: auto; }
  .numbers__stage { position: relative; height: auto; padding: 120px 0 100px; }
  .numbers__hush { position: relative; inset: auto; opacity: 1; transform: none; margin-bottom: 64px; }
  .numbers__inner { opacity: 1; }
  .abacus { transform: none; }
  .numbers__list li { opacity: 1; }
  .case { transform: none; }
  .cream { clip-path: none; }
  .ticket { transform: none; opacity: 1; }
  .ticket__stamp { transform: rotate(-12deg); opacity: .92; }
}
