/* =================================================================
   Vyom Shah — portfolio
   One typeface (Archivo). Four colours: ink, paper, rust, teal.
================================================================= */

:root {
  --ink: #14151a;
  --ink-2: #1c1e26;
  --paper: #f1efe8;
  --sand: #e4e0d5;
  --rust: #c8552f;
  --teal: #3f6f6a;

  --on-dark: rgba(241, 239, 232, 0.72);
  --on-dark-4: rgba(241, 239, 232, 0.42);
  --on-dark-2: rgba(241, 239, 232, 0.16);
  --ink-80: rgba(20, 21, 26, 0.8);
  --ink-55: rgba(20, 21, 26, 0.55);
  --ink-30: rgba(20, 21, 26, 0.3);
  --ink-12: rgba(20, 21, 26, 0.13);
  --ink-06: rgba(20, 21, 26, 0.06);

  --gut: clamp(18px, 4.2vw, 76px);
  --maxw: 1560px;
  --f: 'Archivo', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--rust); color: var(--paper); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--on-dark-4);
}
.eyebrow .dot { color: var(--rust); }
.lede { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--on-dark); max-width: 62ch; }

/* ======================== custom cursor ========================= */

.has-cursor, .has-cursor * { cursor: none !important; }
.cur-ring, .cur-dot { position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; }
.cur-ring {
  width: 38px; height: 38px; border-radius: 100px;
  border: 1px solid var(--on-dark-4);
  display: grid; place-items: center;
  transition: width .32s var(--ease), height .32s var(--ease),
              border-color .3s, background .3s, border-radius .3s;
  mix-blend-mode: difference;
}
.cur-ring[data-on="1"] { width: 58px; height: 58px; border-color: var(--paper); }
.cur-ring[data-text="1"] { width: 86px; height: 86px; background: var(--rust); border-color: var(--rust); mix-blend-mode: normal; }
.cur-ring span {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); opacity: 0; transition: opacity .25s;
}
.cur-ring[data-text="1"] span { opacity: 1; }
.cur-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rust); }
@media (pointer: coarse) { .cur-ring, .cur-dot { display: none; } }

.progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 95;
  background: var(--rust); transform-origin: 0 50%; transform: scaleX(0);
}

/* ============================ nav ============================== */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; gap: 16px;
  padding: 14px var(--gut);
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav { color: var(--ink); }
.nav.stuck {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--ink-12);
}
.nav .mark {
  font-weight: 900; font-size: 15px; letter-spacing: -0.06em;
  border: 1.5px solid currentColor; padding: 3px 7px; line-height: 1;
  text-decoration: none; transition: background .25s, color .25s;
}
.nav .mark:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.nav a {
  text-decoration: none; font-size: 12.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 100px; display: block;
  color: var(--ink-55); transition: color .25s, background .25s;
}
.nav a:hover, .nav a.on { color: var(--ink); background: var(--ink-06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.act {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  padding: 9px 16px; border-radius: 100px; line-height: 1;
  position: relative; overflow: hidden; white-space: nowrap;
  will-change: transform;
  transition: color .28s, border-color .28s, box-shadow .3s;
}
.act svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.act-call svg { fill: currentColor; stroke: none; }
.act > * { position: relative; z-index: 1; }
.act::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  transform: translateY(101%); transition: transform .4s var(--ease);
}

/* secondary: the phone number */
.act-call { color: var(--ink); border: 1px solid var(--ink-12); background: transparent; }
.act-call::before { background: var(--ink); }
.act-call:hover { color: var(--paper); border-color: var(--ink); }
.act-call:hover svg { transform: rotate(-14deg) scale(1.08); }

/* primary: the CV */
.act-cv { color: var(--paper); background: var(--rust); border: 1px solid var(--rust); }
.act-cv::before { background: var(--ink); }
.act-cv:hover { color: var(--paper); border-color: var(--ink); box-shadow: 0 10px 26px -14px var(--ink); }
.act-cv:hover::before { transform: none; }
.act-call:hover::before { transform: none; }
.act-cv:hover svg { transform: translateY(2px); }

@media (max-width: 900px) { .act .act-tx { display: none; } .act { padding: 9px 11px; } }

/* the pass + the sideways rail */
.intro-split { display: grid; grid-template-columns: auto 1fr; gap: clamp(26px, 4vw, 70px); align-items: center; margin-bottom: clamp(30px, 4vw, 52px); }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } }

.nav .status { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-55); white-space: nowrap; }
@media (max-width: 1240px) { .nav .status { display: none; } }
.nav .status i { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .2 } }

/* letters lift one after another on hover */
.nv { display: inline-flex; }
.nv i { font-style: normal; display: inline-block; transition: transform .34s var(--ease); transition-delay: calc(var(--i) * 14ms); }
.nav a:hover .nv i { transform: translateY(-2px); }

@media (max-width: 1080px) { .nav ul { display: none; } }
@media (max-width: 620px) { .nav .status span { display: none; } }

/* ============================ hero ============================= */

.hero {
  position: relative;
  /* exactly one screen, never more — the figure scales into whatever
     height is left after the nav and the title block */
  height: 100svh; min-height: 540px;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  padding-top: 62px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(63,111,106,.10) 0%, transparent 60%),
    radial-gradient(90% 70% at 85% 100%, rgba(200,85,47,.09) 0%, transparent 58%),
    var(--paper);
  color: var(--ink);
}

.hero-ghost {
  position: absolute; left: 0; right: 0; top: 46%;
  transform: translateY(-50%);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(10px, 3vw, 64px);
  font-size: clamp(64px, 12vw, 190px);
  font-weight: 900; letter-spacing: -0.055em;
  font-variation-settings: 'wdth' 110;
  color: rgba(20, 21, 26, 0.085);
  white-space: nowrap; pointer-events: none; user-select: none;
  line-height: .86;
}
.hero-ghost span { display: block; }

.hero-stage {
  /* no z-index here: a stacking context would trap the figure's
     multiply blend and the white plate would stay visible */
  position: relative;
  width: 100%; height: 100%; min-height: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
/* The wrapper shrink-wraps the rendered image, so every overlay below
   can be placed in percentages of the figure itself and scales with it.
   No z-index anywhere in here — see the note above. */
/* The blend lives on the WRAPPER, not the image. The wrapper has to
   move with the pointer, and any transform (or will-change) makes a
   stacking context — which would trap a blend set on a child and the
   white plate would come back. Blending the whole wrapper instead
   means the overlays inside composite exactly like the figure does. */
.figure-wrap {
  position: relative; height: 100%;
  /* The wrapper must match the DRAWN image exactly, because every
     overlay below is positioned in percentages of it. Locking the
     aspect to the asset keeps that true at any window size. */
  aspect-ratio: 48 / 70;
  max-width: 100%;
  mix-blend-mode: multiply;
  will-change: transform;
}

/* the generated figure sits on pure white, so multiply drops the
   background straight out without a cut-out mask */
/* Two stacked copies, crossfaded by js/herovideo.js so the slow
   push-in never snaps back. `cover` on a portrait box crops the wide
   studio frame down to the figure. */
.figvid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  display: block;
  /* The clip's ground sits at 254, not 255, so multiply left a faintly
     lighter plate. Lift it to true white, then feather the frame edges
     so the boundary of the video itself never shows. */
  filter: brightness(1.035);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}


.hero-fallback { align-items: center; }
.hero-missing {
  display: grid; gap: 6px; justify-items: center; text-align: center;
  border: 1px dashed var(--ink-30); padding: 34px 40px;
  font-size: 13px; color: var(--ink-55);
}
.hero-missing b { font-size: 15px; color: var(--ink); }
.hero-missing code { background: var(--ink-06); padding: 1px 6px; }

.hero-foot {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end; gap: 24px;
  padding: 0 var(--gut) clamp(22px, 3.4vw, 50px);
  pointer-events: none;
}
.hero-foot a { pointer-events: auto; }
.hero-foot h1 { font-size: clamp(30px, 4.6vw, 76px); font-variation-settings: 'wdth' 100; letter-spacing: -0.05em; }
.hero-foot h1 em { font-style: normal; font-weight: 300; font-variation-settings: 'wdth' 104; color: var(--ink-30); }
.hero-foot h1 .ln { white-space: nowrap; }
.hero-meta { text-align: right; font-size: 12.5px; color: var(--ink-55); line-height: 1.75; }
.hero-meta b { display: block; color: var(--ink); font-weight: 700; }
.hero-meta a { text-decoration: none; border-bottom: 1px solid var(--ink-12); }
.hero-meta a:hover { color: var(--rust); border-color: var(--rust); }
.hero-scroll {
  position: absolute; left: 50%; bottom: clamp(18px, 2.6vw, 34px);
  transform: translateX(-50%);
  z-index: 6; text-align: center;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-30); pointer-events: none;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 30px; margin: 8px auto 0;
  background: linear-gradient(var(--rust), transparent);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: 0 0 } 55% { transform: scaleY(1); transform-origin: 0 0 } 56% { transform-origin: 0 100% } 100% { transform: scaleY(0); transform-origin: 0 100% } }
@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-meta { text-align: left; }
  .hero-scroll { display: none; }
}

/* =========================== marquee =========================== */

.marquee { border-block: 1px solid var(--on-dark-2); background: var(--rust); color: var(--paper); overflow: hidden; padding: 11px 0; position: relative; z-index: 6; }
.marquee-in { display: flex; width: max-content; animation: slide 64s linear infinite; }
.marquee span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 0 26px; white-space: nowrap; }
.marquee span::after { content: '✦'; margin-left: 26px; opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ========================== sections =========================== */

section { position: relative; }
.pad { padding: clamp(74px, 9vw, 152px) 0; }
.on-paper { background: var(--paper); color: var(--ink); }
.on-sand { background: var(--sand); color: var(--ink); }
.on-paper .eyebrow, .on-sand .eyebrow { color: var(--ink-55); }
.on-paper .lede, .on-sand .lede { color: var(--ink-80); }

.sec-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 58px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 72px); font-variation-settings: 'wdth' 102; }
.sec-head .n { font-size: 11px; font-weight: 800; color: var(--rust); letter-spacing: .18em; }

/* split-text heading reveal */
.ln { display: block; overflow: hidden; }
.w {
  display: inline-block; vertical-align: top;
  /* the reveal needs a mask, but a plain `hidden` eats descenders —
     the g of Design, the y of Why. Pad the mask and pull it back. */
  overflow: hidden;
  padding-bottom: .18em; margin-bottom: -.18em;
}
.w > i {
  font-style: inherit; display: inline-block;
  transform: translateY(110%); opacity: 0;
  transition: transform .85s var(--ease), opacity .6s;
  transition-delay: calc(var(--i) * 55ms);
}
.split-in .w > i { transform: none; opacity: 1; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ======================== why shortlist ======================== */

.why { overflow: hidden; }
.why-stage { position: relative; min-height: clamp(560px, 76vh, 840px); display: grid; place-items: center; text-align: center; }

/* the hand that pulls, and the strings it pulls ------------------ */
.hand {
  position: absolute; left: clamp(-40px, -1vw, 10px); top: 50%;
  width: clamp(210px, 23vw, 360px);
  transform: translate(-2%, -50%) rotate(-2deg);
  color: var(--ink); pointer-events: none; z-index: 3;
  transition: transform .75s cubic-bezier(.34, 1.3, .5, 1);
}
.hand { animation: tug 3.6s cubic-bezier(.3, .9, .3, 1) infinite; }
@keyframes tug {
  0%, 60%, 100% { transform: translate(-2%, -50%) rotate(-2deg); }
  68% { transform: translate(-9.5%, -50%) rotate(-4.8deg); }
  77% { transform: translate(-0.5%, -50%) rotate(-1deg); }
  86% { transform: translate(-4.5%, -50%) rotate(-2.8deg); }
  94% { transform: translate(-2%, -50%) rotate(-2deg); }
}
.pulled .hand { animation: none; transform: translate(-15%, -50%) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .hand { animation: none; } }
@media (max-width: 820px) { .hand { display: none; } }

.strings {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2; overflow: visible;
}
.strings path {
  fill: none; stroke: var(--ink-30); stroke-width: 1.1;
  stroke-linecap: round;
}
.pulled .strings path { stroke: var(--ink-12); }
@media (max-width: 820px) { .strings { display: none; } }

.scatter { position: absolute; inset: 0; pointer-events: none; }
.scatter b {
  position: absolute; display: block; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.03em;
  color: var(--ink-12); white-space: nowrap;
  transition: transform .6s var(--ease);
}
.scatter b.i { font-weight: 300; font-variation-settings: 'wdth' 120; text-transform: lowercase; letter-spacing: -0.02em; color: var(--ink-30); }
.scatter b.ac { color: color-mix(in srgb, var(--rust) 36%, transparent); }
.scatter b.tl { color: color-mix(in srgb, var(--teal) 40%, transparent); }

/* every word starts tucked behind the button and springs out ----- */
.scatter b > i {
  font-style: normal; display: block;
  transform: translate(var(--dx, 0), var(--dy, 0)) scale(.18);
  opacity: 0;
  transition: transform .9s cubic-bezier(.22, 1.35, .36, 1), opacity .4s linear;
  transition-delay: var(--d, 0ms);
}
.pulled .scatter b > i { transform: none; opacity: 1; }

.why-foot {
  font-size: clamp(15px, 1.7vw, 23px); color: var(--ink-55); max-width: 40ch;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease) .45s, transform .6s var(--ease) .45s;
}
.pulled .why-foot { opacity: 1; transform: none; }
.why-foot b { color: var(--ink); font-weight: 800; }

.why-core { position: relative; z-index: 2; display: grid; gap: 26px; justify-items: center; padding: 0 var(--gut); }
.why-core h2 { font-size: clamp(42px, 8.6vw, 142px); font-variation-settings: 'wdth' 108; letter-spacing: -0.058em; }
.why-core h2 em { font-style: normal; font-weight: 900; color: var(--rust); }

.big-btn {
  appearance: none; cursor: pointer; position: relative; overflow: hidden;
  display: grid; gap: 3px; justify-items: center;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 100px;
  padding: 19px 44px; font-family: inherit;
  transition: color .3s;
}
.big-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--rust);
  transform: translateY(101%); transition: transform .45s var(--ease); z-index: 0;
}
.big-btn:hover::before { transform: none; }
.big-btn > * { position: relative; z-index: 1; }
.big-btn b { font-size: clamp(15px, 1.5vw, 19px); font-weight: 800; letter-spacing: .01em; }
.big-btn span { font-size: 11px; letter-spacing: .1em; opacity: .62; text-transform: uppercase; }


/* ========================== skills ============================= */

.skills { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.skills.open { grid-template-rows: 1fr; }
.skills-in { overflow: hidden; }
.skills-pad { padding-block: clamp(34px, 5vw, 76px) clamp(20px, 2vw, 34px); }

.sgroup { margin-bottom: 30px; }
.sgroup h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-55); font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.sgroup h4::after { content: ''; flex: 1; height: 1px; background: var(--ink-12); }

.els { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.el {
  position: relative; aspect-ratio: 1 / 1;
  border: 1px solid var(--ink-12); background: var(--paper);
  padding: 10px; display: grid; align-content: space-between;
  opacity: 0; transform: translateY(18px) scale(.96);
  transition: opacity .6s var(--ease), transform .6s var(--ease),
              background .22s, border-color .22s, color .22s;
}
.skills.open .el { opacity: 1; transform: none; }
.el:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-4px); }
.el .sym { font-size: clamp(25px, 2.6vw, 37px); font-weight: 900; letter-spacing: -0.055em; line-height: 1; }
.el .nm { font-size: 10.5px; line-height: 1.25; font-weight: 600; }
.el .no { position: absolute; top: 8px; right: 9px; font-size: 9px; font-weight: 700; opacity: .34; }
.el.accent { border-color: color-mix(in srgb, var(--rust) 42%, transparent); }
.el.accent .sym { color: var(--rust); }
.el.accent:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.el.accent:hover .sym { color: var(--paper); }
.el.teal { border-color: color-mix(in srgb, var(--teal) 46%, transparent); }
.el.teal .sym { color: var(--teal); }
.el.teal:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.el.teal:hover .sym { color: var(--paper); }
.el.muted { background: transparent; border-style: dashed; }

/* ======================= the ID card =========================== */

.idwrap { display: grid; place-items: center; gap: 16px; }
.idcard {
  width: min(340px, 86vw); aspect-ratio: 54 / 86;
  perspective: 1400px; cursor: pointer; background: none; border: 0; padding: 0;
  font-family: inherit; color: inherit;
}
.idcard-in {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.idcard.flipped .idcard-in { transform: rotateY(180deg); }
.idface {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 14px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px;
  padding: 20px 18px 18px; text-align: left;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.idface.front { background: linear-gradient(160deg, var(--teal) 0%, #2d514e 100%); color: var(--paper); }
.idface.back { background: linear-gradient(160deg, var(--rust) 0%, #9d3f22 100%); color: var(--paper); transform: rotateY(180deg); }
.idface .lanyard {
  position: absolute; left: 50%; top: 12px; translate: -50% 0;
  width: 54px; height: 9px; border-radius: 100px; background: rgba(0,0,0,.35);
}
.idtop { display: flex; justify-content: space-between; align-items: start; margin-top: 14px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.idphoto {
  width: 100%; aspect-ratio: 3 / 3.5; border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.32);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.55);
}
.idphoto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(.2) contrast(1.04) saturate(1.05); }
.idname { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; line-height: .98; }
.idrole { font-size: 12.5px; font-weight: 600; opacity: .85; margin-top: 5px; }
.idrows { display: grid; gap: 9px; font-size: 11.5px; }
.idrows div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 7px; }
.idrows span { opacity: .7; }
.idrows b { font-weight: 700; text-align: right; }
.idhint { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-30); font-weight: 700; }
.on-dark .idhint { color: var(--on-dark-4); }

/* ====================== achievements rail ====================== */

.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  appearance: none; cursor: pointer; font-family: inherit;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ink-12); background: transparent; color: inherit;
  font-size: 15px; transition: background .25s, color .25s, border-color .25s;
}
.rail-nav button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(265px, 320px);
  gap: 14px; overflow-x: auto; padding: 4px 0 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; }
.rail-card {
  scroll-snap-align: start; border: 1px solid var(--ink-12);
  background: var(--paper); padding: clamp(20px, 2.4vw, 30px);
  display: grid; align-content: space-between; min-height: 230px;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.rail-card:hover { transform: translateY(-6px); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rail-card:hover .rc-sub { color: var(--on-dark-4); }
.rail-card .rc-n { font-size: 11px; font-weight: 800; color: var(--rust); letter-spacing: .16em; }
.rail-card b { display: block; font-size: clamp(32px, 3.8vw, 54px); font-weight: 900; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.rail-card b.long { font-size: clamp(24px, 2.6vw, 37px); letter-spacing: -0.04em; }
.rail-card i { display: block; font-style: normal; font-size: 13.5px; font-weight: 700; margin-top: 12px; }
.rail-card .rc-sub { display: block; font-size: 12.5px; color: var(--ink-55); margin-top: 5px; line-height: 1.45; transition: color .3s; }

/* ============================ work ============================= */

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.5vw, 22px); }

.card {
  grid-column: span 4; cursor: pointer; background: none; border: 0; padding: 0;
  font-family: inherit; text-align: left; color: inherit;
  display: grid; gap: 14px; align-content: start;
  will-change: transform;
}
.card.w6 { grid-column: span 6; }
@media (max-width: 1080px) { .card { grid-column: span 6; } }
@media (max-width: 660px) { .card, .card.w6 { grid-column: span 12; } }

/* The project artwork arrives in every shape going — 1:1 renders,
   wide screenshots, odd crops. `cover` was slicing the tops and sides
   off them, so each one is now shown whole on a plate instead. */
.card .shot {
  position: relative; overflow: hidden;
  background: var(--sand); border: 1px solid var(--ink-12);
  aspect-ratio: 4 / 3;
  /* block, not grid: an auto grid row takes the image's intrinsic
     height and the artwork spills out of the tile */
  display: block;
  padding: clamp(10px, 1.4vw, 22px);
}
.card.w6 .shot { aspect-ratio: 16 / 9; }
.card .shot img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  filter: grayscale(1) contrast(1.04);
  transition: filter .55s var(--ease), transform .6s var(--ease);
  will-change: transform;
}
.card:hover .shot img { filter: grayscale(0) contrast(1); transform: scale(1.03); }
.card .shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, color-mix(in srgb, var(--teal) 48%, transparent), transparent 55%);
  opacity: 0; transition: opacity .5s;
  mix-blend-mode: multiply;
}
.card:hover .shot::after { opacity: 1; }
.card .live {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: var(--rust); color: var(--paper); font-size: 10px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px;
}
.card h3 { font-size: clamp(17px, 1.5vw, 23px); letter-spacing: -0.032em; line-height: 1.1; }
.card .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); font-weight: 700; }
.card .one { font-size: 13.5px; color: var(--ink-55); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags i { font-style: normal; font-size: 10.5px; font-weight: 600; border: 1px solid var(--ink-12); padding: 3px 8px; color: var(--ink-55); }

/* feature case-study teaser */
.feature {
  grid-column: span 12; display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(22px, 3vw, 54px); align-items: center;
  border: 1px solid var(--ink-12); padding: clamp(22px, 3vw, 54px);
  background: var(--paper); cursor: pointer; text-align: left;
  font-family: inherit; color: var(--ink); position: relative; overflow: hidden;
}
.feature::before {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.feature:hover::before { transform: none; }
.feature > * { position: relative; z-index: 1; }
.feature:hover { color: var(--paper); border-color: var(--ink); }
.feature:hover .tags i { border-color: var(--on-dark-2); color: var(--on-dark-4); }
.feature:hover .nda { color: var(--on-dark-4); }
.feature:hover .mock { color: var(--paper); }
.feature h3 { font-size: clamp(26px, 3.4vw, 52px); letter-spacing: -0.045em; margin: 14px 0; }
.feature .one { font-size: clamp(14px, 1.2vw, 17px); line-height: 1.55; }
.feature .nda { font-size: 11.5px; color: var(--ink-55); margin-top: 14px; font-weight: 500; }
@media (max-width: 920px) { .feature { grid-template-columns: 1fr; } }

.mock { border: 1px solid currentColor; aspect-ratio: 16 / 10; overflow: hidden; display: grid; grid-template-rows: 26px 1fr; transition: color .4s; background: var(--paper); }
.mock .bar { border-bottom: 1px solid var(--ink-12); display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.mock .bar u { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-12); text-decoration: none; }
.mock .bar s { flex: 1; height: 7px; background: var(--ink-06); text-decoration: none; margin-left: 6px; }
.mock .body { display: grid; grid-template-columns: 58px 1fr; }
.mock .side { border-right: 1px solid var(--ink-12); display: grid; gap: 7px; padding: 11px 9px; align-content: start; }
.mock .side i { height: 6px; background: var(--ink-06); display: block; }
.mock .side i:first-child { background: var(--rust); }
.mock .main { padding: 12px; display: grid; gap: 8px; align-content: start; }
.mock .row { display: grid; grid-template-columns: 1.6fr 1fr .7fr .5fr; gap: 9px; align-items: center; }
.mock .row span { height: 7px; background: var(--ink-06); display: block; }
.mock .row.h span { background: var(--ink-12); }
.mock .row .pill { height: 12px; border-radius: 100px; background: var(--ink-12); }
.mock .row .pill.on { background: color-mix(in srgb, var(--teal) 70%, transparent); }
.mock .row .pill.hot { background: color-mix(in srgb, var(--rust) 70%, transparent); }

/* =========================== craft ============================= */

.craft-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 920px) { .craft-split { grid-template-columns: 1fr; } }

.brandcard { display: grid; gap: 12px; }
.brandcard a { text-decoration: none; display: grid; gap: 12px; }
.brandcard .frame { background: var(--paper); border: 1px solid var(--on-dark-2); overflow: hidden; max-height: 620px; transition: transform .5s var(--ease); }
.brandcard.tall .frame { max-height: 840px; }
.brandcard a:hover .frame { transform: translateY(-6px); }
.brandcard .frame img { width: 100%; object-fit: cover; object-position: top center; }
.brandcard h4 { font-size: 19px; letter-spacing: -0.03em; }
.brandcard p { font-size: 13px; color: var(--on-dark-4); line-height: 1.55; margin: 0; }

.reels { margin-top: clamp(44px, 5vw, 84px); }
.reel-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.reel-tabs button {
  appearance: none; cursor: pointer; font-family: inherit;
  background: transparent; color: var(--on-dark-4);
  border: 1px solid var(--on-dark-2); border-radius: 100px;
  padding: 9px 17px; font-size: 12px; font-weight: 600; transition: all .25s;
}
.reel-tabs button:hover { color: var(--paper); border-color: var(--on-dark); }
.reel-tabs button.on { background: var(--teal); color: var(--paper); border-color: var(--teal); }
.reel-tabs button i { font-style: normal; opacity: .6; margin-left: 7px; font-size: 11px; }

.reel-note { font-size: 13px; color: var(--on-dark-4); margin-bottom: 18px; }
.reel-grid { display: grid; gap: 12px; }
.reel-grid.r169 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.reel-grid.r11 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.reel-grid.r916 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.vid { position: relative; background: var(--ink-2); border: 1px solid var(--on-dark-2); overflow: hidden; cursor: pointer; transition: transform .4s var(--ease), border-color .3s; }
.vid:hover { transform: translateY(-4px); border-color: var(--teal); }
.vid iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid .poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: repeating-linear-gradient(45deg, #191b22 0 9px, #1e2029 9px 18px);
  filter: grayscale(.55) contrast(1.04) brightness(.86);
  transform: scale(1.02);
  transition: filter .5s var(--ease), transform .7s var(--ease);
}
.vid:hover .poster { filter: none; transform: scale(1.06); }
.vid .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--paper);
  background: linear-gradient(to top, rgba(10,10,14,.55), rgba(10,10,14,.08));
  transition: background .3s;
}
.vid:hover .play { background: linear-gradient(to top, rgba(10,10,14,.4), transparent); }
.vid .play b {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(241,239,232,.75); background: rgba(10,10,14,.3);
  backdrop-filter: blur(3px);
  display: grid; place-items: center; font-size: 13px; padding-left: 3px;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.vid:hover .play b { background: var(--rust); border-color: var(--rust); transform: scale(1.12); }

.reel-more {
  appearance: none; cursor: pointer; font-family: inherit; margin-top: 16px;
  background: transparent; color: var(--paper);
  border: 1px solid var(--on-dark-2); border-radius: 100px;
  padding: 12px 24px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: background .25s, color .25s, border-color .25s;
}
.reel-more:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.posters { margin-top: clamp(44px, 5vw, 84px); }
.poster-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 255px);
  gap: 12px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.poster-strip::-webkit-scrollbar { display: none; }
.poster-strip.dragging { cursor: grabbing; }
.poster-strip img {
  width: 100%; height: 335px; object-fit: cover; scroll-snap-align: start;
  border: 1px solid var(--on-dark-2);
  filter: grayscale(1) contrast(1.05); transition: filter .45s, transform .45s var(--ease);
}
.poster-strip a:hover img { filter: none; transform: translateY(-6px); }

/* ========================= experience ========================== */

/* Experience reads as one path: a spine that draws itself as you
   scroll, with each stop lighting up as the line reaches it. */
.xp { display: grid; position: relative; padding-left: clamp(0px, 3vw, 46px); }
.xp-spine {
  position: absolute; left: clamp(2px, 1.2vw, 18px); top: 8px; bottom: 8px;
  width: 2px; background: var(--ink-12); border-radius: 2px;
}
.xp-spine i {
  position: absolute; inset: 0 0 auto 0; display: block;
  height: 0; border-radius: 2px;
  background: linear-gradient(var(--rust), var(--teal));
}
@media (max-width: 760px) { .xp-spine { display: none; } .xp { padding-left: 0; } }

.xp-row {
  display: grid; grid-template-columns: 170px 1fr; gap: clamp(16px, 3vw, 54px);
  padding: clamp(26px, 3.4vw, 50px) 0; border-top: 1px solid var(--ink-12);
  position: relative;
  opacity: .38; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.xp-row.lit { opacity: 1; transform: none; }
.xp-row:last-child { border-bottom: 1px solid var(--ink-12); }

/* the stop on the spine */
.xp-row::before {
  content: ''; position: absolute;
  left: calc(clamp(2px, 1.2vw, 18px) - clamp(0px, 3vw, 46px) - 5px);
  top: clamp(32px, 3.8vw, 56px);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-12);
  transition: border-color .45s var(--ease), transform .45s var(--ease), background .45s;
}
.xp-row.lit::before { border-color: var(--rust); background: var(--rust); transform: scale(1.25); }
@media (max-width: 760px) { .xp-row::before { display: none; } }

.xp-when { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }
.xp-when b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.xp-when span { display: block; color: var(--ink-55); font-weight: 500; margin-top: 5px; }
.xp-when .dur { display: inline-block; margin-top: 9px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
  padding: 4px 9px; border-radius: 100px; }
.xp-body h3 { font-size: clamp(20px, 2.2vw, 31px); letter-spacing: -0.035em; }
.xp-body .co { font-size: 13px; color: var(--rust); margin: 7px 0 14px; font-weight: 700; letter-spacing: .02em; }
.xp-body ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.xp-body li { font-size: 14px; line-height: 1.55; color: var(--ink-80); padding-left: 22px; position: relative; }
.xp-body li::before { content: ''; position: absolute; left: 0; top: 10px; width: 12px; height: 1px; background: var(--teal); }
@media (max-width: 760px) { .xp-row { grid-template-columns: 1fr; } }

.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1px; background: var(--ink-12); border: 1px solid var(--ink-12); }
.lead-grid > div { background: var(--paper); padding: clamp(18px, 2.2vw, 30px); transition: background .3s, color .3s; }
.lead-grid > div:hover { background: var(--teal); color: var(--paper); }
.lead-grid > div:hover p { color: rgba(241,239,232,.78); }
.lead-grid h4 { font-size: 14.5px; letter-spacing: -0.02em; margin-bottom: 8px; }
.lead-grid p { font-size: 13px; color: var(--ink-55); line-height: 1.5; margin: 0; transition: color .3s; }

.ed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 54px); }
@media (max-width: 760px) { .ed { grid-template-columns: 1fr; } }
.ed-item { padding: 16px 0; border-top: 1px solid var(--ink-12); }
.ed-item b { font-size: 15.5px; }
.ed-item span { display: block; font-size: 13px; color: var(--ink-55); margin-top: 3px; }
.ed-item i { font-style: normal; font-size: 12px; color: var(--rust); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font-size: 12px; border: 1px solid var(--ink-12); padding: 6px 11px; color: var(--ink-55); transition: all .25s; }
.chips span:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ========================== contact ============================ */

.contact { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 90% at 20% 110%, rgba(200,85,47,.3), transparent 60%),
              radial-gradient(70% 80% at 85% -10%, rgba(63,111,106,.28), transparent 60%);
}
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(44px, 9.4vw, 170px); letter-spacing: -0.06em; font-variation-settings: 'wdth' 108; line-height: .88; }
.contact h2 em { font-style: normal; font-weight: 900; color: var(--rust); }
.contact a.mail { display: inline-block; margin-top: 26px; text-decoration: none; font-size: clamp(18px, 2.4vw, 36px); font-weight: 800; letter-spacing: -0.035em; border-bottom: 2px solid var(--rust); padding-bottom: 4px; transition: color .25s; }
.contact a.mail:hover { color: var(--rust); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0; margin-top: clamp(40px, 5vw, 76px);
  border-top: 1px solid var(--on-dark-2);
}
.contact-grid div {
  display: grid; align-content: start; gap: 10px;
  padding: 20px 20px 20px 0;
  border-right: 1px solid var(--on-dark-2);
  min-height: 92px;
}
.contact-grid div:last-child { border-right: 0; }
.contact-grid div + div { padding-left: 20px; }
.contact-grid div span {
  display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-4); margin: 0;
}
.contact-grid div a, .contact-grid div b {
  font-size: 14.5px; font-weight: 600; text-decoration: none; letter-spacing: -0.005em;
  align-self: end;
}
.contact-grid div a:hover { color: var(--rust); }
@media (max-width: 760px) {
  .contact-grid div { border-right: 0; border-bottom: 1px solid var(--on-dark-2); min-height: 0; padding-left: 0 !important; }
}
.closer {
  margin-top: clamp(50px, 6vw, 92px);
  display: grid; justify-items: start; gap: 20px;
  padding: clamp(28px, 4vw, 48px) 0 0;
  border-top: 1px solid var(--on-dark-2);
}
.closer-line {
  font-size: clamp(16px, 1.9vw, 25px); line-height: 1.5; max-width: 46ch;
  color: var(--on-dark); margin: 0;
}
.closer-line b { color: var(--paper); font-weight: 800; }
.shortlist {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-size: clamp(14px, 1.4vw, 17px); font-weight: 800;
  background: var(--rust); color: var(--paper);
  padding: 16px 28px; border-radius: 100px;
  position: relative; overflow: hidden; will-change: transform;
  transition: box-shadow .3s, color .28s;
}
.shortlist::before {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.shortlist > * { position: relative; z-index: 1; }
.shortlist:hover { color: var(--ink); box-shadow: 0 16px 36px -18px var(--rust); }
.shortlist:hover::before { transform: none; }
.shortlist svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.shortlist:hover svg { transform: translateX(3px); }
.closer-sub { font-size: 12px; color: var(--on-dark-4); }

.foot { margin-top: clamp(34px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--on-dark-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--on-dark-4); }

/* =========================== modal ============================= */

.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(10,10,14,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s; }
.modal.open .modal-bg { opacity: 1; }
.modal-sheet {
  position: absolute; inset: 0 0 0 auto; width: min(980px, 100%);
  background: var(--paper); color: var(--ink); overflow-y: auto;
  transform: translateX(100%); transition: transform .6s var(--ease);
  box-shadow: -40px 0 90px rgba(0,0,0,.4);
}
.modal.open .modal-sheet { transform: none; }
.modal-x {
  position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 14px clamp(20px, 3.4vw, 54px);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-12);
}
.modal-x .eyebrow { color: var(--ink-55); }
.modal-x button { appearance: none; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: 0; padding: 10px 17px; transition: background .25s; }
.modal-x button:hover { background: var(--rust); }
.modal-body { padding: clamp(26px, 4vw, 64px) clamp(20px, 3.4vw, 54px) clamp(60px, 8vw, 120px); }
.modal-body > * { opacity: 0; transform: translateY(16px); }
.modal.ready .modal-body > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.modal.ready .modal-body > :nth-child(1) { transition-delay: .05s }
.modal.ready .modal-body > :nth-child(2) { transition-delay: .1s }
.modal.ready .modal-body > :nth-child(3) { transition-delay: .15s }
.modal.ready .modal-body > :nth-child(4) { transition-delay: .2s }
.modal.ready .modal-body > :nth-child(n+5) { transition-delay: .25s }
.modal-body h2 { font-size: clamp(28px, 4.2vw, 56px); letter-spacing: -0.045em; margin-bottom: 16px; }
.modal-body h3 { font-size: clamp(17px, 1.7vw, 24px); letter-spacing: -0.03em; margin: clamp(28px, 3.4vw, 46px) 0 12px; padding-top: 16px; border-top: 1px solid var(--ink-12); }
.modal-body p { font-size: 15px; line-height: 1.68; color: var(--ink-80); max-width: 68ch; }
.modal-body .one { font-size: clamp(16px, 1.6vw, 20px); color: var(--ink); line-height: 1.5; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--ink-55); margin-bottom: 20px; }
.modal-meta b { color: var(--ink); }
.modal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--ink-12); border: 1px solid var(--ink-12); margin: 26px 0; }
.modal-stats div { background: var(--paper); padding: 20px; }
.modal-stats b { display: block; font-size: clamp(22px, 2.4vw, 33px); font-weight: 900; letter-spacing: -0.045em; color: var(--rust); }
.modal-stats span { font-size: 12px; color: var(--ink-55); line-height: 1.4; display: block; margin-top: 6px; }
.modal-gallery { display: grid; gap: 14px; margin: 26px 0; }
.modal-gallery figure { margin: 0; }
.modal-gallery img { border: 1px solid var(--ink-12); width: 100%; }
.modal-gallery figcaption { font-size: 12px; color: var(--ink-55); margin-top: 7px; }
.modal-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 800; border-bottom: 2px solid var(--rust); padding-bottom: 3px; margin-top: 10px; }
.modal-link:hover { color: var(--rust); }
.modal-hero img {
  width: 100%; border: 1px solid var(--ink-12); margin-bottom: 24px;
  background: var(--sand); padding: clamp(12px, 2vw, 26px);
  object-fit: contain;
}

/* =========================== misc ============================== */

[data-para] { transform: translate3d(0, var(--py, 0), 0); }

body.calibrating .hero-stage { outline: 2px dashed var(--rust); }
body.locked { overflow: hidden; }

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