/* =========================================================
   Dhiren Sharma — Portfolio
   Palette borrows from an attention heatmap: cool → hot.
   ========================================================= */
:root {
  --red: #e8321e;
  --red-2: #c4220f;
  --paper: #f2ede4;
  --paper-2: #e7dfd2;
  --ink: #0d0c0b;
  --ink-2: #191715;
  --ink-3: #26231f;
  --blue: #2238ff;
  --blue-2: #1526d6;
  --amber: #ffb31f;
  --yellow: #ffe14d;
  --green: #3ce58f;
  --cyan: #1fd2ff;
  --heat: linear-gradient(90deg, #2238ff, #1fd2ff 30%, #3ce58f 52%, #ffe14d 74%, #ff2a14);

  --on-dark: #f2ede4;
  --on-dark-2: rgba(242, 237, 228, .62);
  --on-light: #0d0c0b;
  --on-light-2: rgba(13, 12, 11, .62);

  --f-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --sec: clamp(88px, 12vw, 190px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--f-sans);
  font-optical-sizing: auto;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.wrap { width: min(1440px, 100% - var(--gut) * 2); margin-inline: auto; }
.eyebrow { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; opacity: .8; }
.eyebrow span { opacity: .55; }
.eyebrow--mt { margin-top: clamp(64px, 8vw, 120px); }

.display {
  font-weight: 700;
  font-stretch: 78%;
  font-size: clamp(2.7rem, 6.6vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.display em { font-size: 1.04em; letter-spacing: -.02em; }
.display-s {
  font-weight: 700; font-stretch: 80%;
  font-size: clamp(2rem, 4.2vw, 4.6rem); line-height: .95; letter-spacing: -.02em; margin: 0;
}
/* split-word reveal wrappers */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 200; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--red); box-shadow: 0 0 0 2px rgba(242,237,228,.9); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(242,237,228,.7); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; color: var(--ink); transition: opacity .25s; }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--paper); border-color: var(--paper); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.cursor.is-down .cursor__ring { transform: scale(.85); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--on-dark);
  display: none; clip-path: inset(0 0 0% 0);
}
.js .loader { display: block; }
.loader__field { position: absolute; inset: 14vh 10vw; }
.cal { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 1.5px solid rgba(242,237,228,.35); transform: scale(0); }
.cal::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(242,237,228,.35); }
.cal.is-lock { border-color: var(--red); }
.cal.is-lock::after { background: var(--red); }
.loader__gaze {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,42,20,.95) 0 18%, rgba(255,225,77,.6) 36%, rgba(60,229,143,.35) 56%, rgba(31,210,255,.15) 72%, transparent 76%);
  filter: blur(1px); opacity: 0;
}
.loader__top, .loader__bottom { position: absolute; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; align-items: end; }
.loader__top { top: 28px; opacity: .6; }
.loader__bottom { bottom: 26px; }
.loader__count { font-weight: 800; font-stretch: 75%; font-size: clamp(5rem, 16vw, 15rem); line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader__status::before { content: "● "; color: var(--red); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gut);
  color: var(--paper);
  transition: color .5s var(--ease), transform .6s var(--ease);
}
.nav[data-theme="paper"] { color: var(--ink); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-weight: 800; font-stretch: 78%; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.nav__logo sup { font-size: .45em; font-weight: 500; margin-left: 1px; }
.nav__links { display: flex; gap: 24px; margin-left: 28px; font-size: 15px; }
.nav__links a { position: relative; opacity: .85; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__hud { margin-left: auto; display: flex; gap: 18px; opacity: .7; font-size: 11px; font-variant-numeric: tabular-nums; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 18px; } .nav__burger i:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--paper); padding: 110px var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 14vw, 5rem); line-height: 1; letter-spacing: -.02em; padding: 4px 0; border-bottom: 1px solid rgba(242,237,228,.12); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn .arr { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--pill { height: 44px; padding: 0 18px; background: var(--paper); color: var(--ink); font-size: 14px; }
.nav[data-theme="paper"] .btn--pill { background: var(--ink); color: var(--paper); }
.btn--pill:hover { background: var(--yellow); color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); box-shadow: none; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--yellow); }
.btn--ghost-light { box-shadow: inset 0 0 0 1.5px rgba(242,237,228,.4); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--ghost-dark { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn--wa { background: #1fbf5f; color: #fff; }
.btn--wa:hover { background: #16a24f; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--red); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1 } to { transform: scale(2); opacity: 0 } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  background: var(--red); color: var(--paper); overflow: hidden; isolation: isolate;
}
.hero__giant {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%);
  display: flex; justify-content: center; z-index: 1;
  font-weight: 800; font-stretch: 75%; font-size: 20.4vw; line-height: .8; letter-spacing: -.035em;
  color: var(--paper); user-select: none; white-space: nowrap;
}
.hero__giant span { display: inline-block; will-change: transform; }
.hero__heat { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; opacity: .82; filter: blur(12px) saturate(1.25); }
.hero__person {
  position: absolute; left: 50%; bottom: 0; z-index: 3;
  height: min(92%, 980px); aspect-ratio: 840 / 1568; transform: translateX(-50%);
  perspective: 900px;
}
.hero__tilt { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.hero__person img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 60px rgba(70,8,0,.45)); }
.reticle { position: absolute; left: 29%; top: 5%; width: 42%; height: 18%; z-index: 2; }
.reticle i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--paper); }
.reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.reticle span { position: absolute; left: 100%; top: -4px; margin-left: 10px; white-space: nowrap; background: var(--paper); color: var(--ink); padding: 5px 8px; border-radius: 4px; font-size: 10px; }
.hero__tag { position: absolute; z-index: 5; left: var(--gut); top: 92px; display: flex; align-items: center; gap: 10px; opacity: .9; max-width: 260px; line-height: 1.5; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: none; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2 } }
.hero__bottom {
  position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: 72px;
  display: flex; justify-content: space-between; align-items: end; gap: 32px; pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.hero__title { margin: 0; font-weight: 700; font-stretch: 80%; font-size: clamp(2.4rem, 5vw, 5.6rem); line-height: .9; letter-spacing: -.025em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-size: 1.06em; }
.hero__aside { max-width: 380px; }
.hero__aside p { margin: 0 0 22px; font-size: 17px; line-height: 1.45; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn--solid { background: var(--ink); }
.ticker { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 44px; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; align-items: center; }
.ticker__track { display: flex; gap: 22px; white-space: nowrap; animation: marquee 32s linear infinite; font-weight: 600; font-stretch: 85%; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; padding-left: 22px; }
.ticker__track b { color: var(--red); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto { background: var(--paper); color: var(--ink); padding: var(--sec) 0; }
.manifesto__text { margin: 0; font-weight: 500; font-stretch: 90%; font-size: clamp(1.9rem, 3.9vw, 4.2rem); line-height: 1.06; letter-spacing: -.02em; max-width: 22ch; max-width: 1240px; text-wrap: pretty; }
.manifesto__text em { color: var(--red); }
.manifesto__text .w { transition: none; }
.stats { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1.5px solid var(--ink); }
.stat { padding: 26px 22px 8px 0; border-right: 1px solid rgba(13,12,11,.15); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat__num { font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 5.2vw, 5.6rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--on-light-2); max-width: 24ch; }

/* =========================================================
   NEURO LAB
   ========================================================= */
.lab { background: var(--ink); color: var(--on-dark); padding: var(--sec) 0; }
.lab__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.lab__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.lab__intro { margin: 0; color: var(--on-dark-2); font-size: 18px; max-width: 46ch; }
.lab__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.lab__viewer {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(242,237,228,.08), 0 40px 120px -40px rgba(255,42,20,.35);
}
.lab__viewer img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s var(--ease); }
.lab__viewer.is-heat img { filter: saturate(.55) brightness(.72); }
.lab__heat { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(10px); opacity: .92; transition: opacity .4s; }
.lab__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .4s; }
.lab__path polyline { fill: none; stroke: var(--paper); stroke-width: .45; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.lab__path circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.lab__path text { fill: var(--paper); font-family: var(--f-mono); font-size: 3.2px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.lab__zone { position: absolute; border: 1.5px dashed rgba(255,225,77,.95); border-radius: 10px; opacity: 0; transition: opacity .5s var(--ease), left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease); box-shadow: 0 0 0 9999px rgba(13,12,11,0); }
.lab__zone.is-on { opacity: 1; animation: zone 1.8s var(--ease) infinite; }
@keyframes zone { 50% { box-shadow: 0 0 0 6px rgba(255,225,77,.18); } }
.lab__zone i { position: absolute; width: 12px; height: 12px; border: 2.5px solid var(--yellow); }
.lab__zone i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.lab__zone i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; }
.lab__zone i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; }
.lab__zone i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.lab__zone span { position: absolute; left: -2px; bottom: 100%; margin-bottom: 8px; background: var(--yellow); color: var(--ink); padding: 4px 8px; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.lab__scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(31,210,255,.14) 80%, rgba(31,210,255,.6)); border-bottom: 1px solid rgba(31,210,255,.9); pointer-events: none; opacity: 0; }
.lab__scan.is-run { animation: scan 1.4s var(--ease-io) 1; }
@keyframes scan { 0% { top: -30%; opacity: 1 } 100% { top: 100%; opacity: 1 } }
.lab__hud { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--paper); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.lab__hud span:first-child { color: #ff6a55; }
.lab__hud b { font-weight: 700; font-variant-numeric: tabular-nums; }

.lab__thumbs { display: flex; gap: 10px; margin-bottom: 24px; }
.lab__thumb { width: 64px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; opacity: .45; transition: opacity .3s, transform .4s var(--ease), box-shadow .3s; box-shadow: 0 0 0 1.5px transparent; }
.lab__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lab__thumb:hover { opacity: .85; transform: translateY(-3px); }
.lab__thumb[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--yellow); }
.lab__toggles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(242,237,228,.22); color: var(--on-dark-2); transition: .3s var(--ease); }
.chip.is-on { color: var(--ink); background: var(--paper); box-shadow: none; }
.sw { width: 14px; height: 8px; border-radius: 4px; }
.sw--heat { background: var(--heat); }
.sw--path { background: none; border-top: 2px dotted currentColor; height: 0; }
.sw--zone { border: 1.5px dashed var(--amber); height: 10px; border-radius: 3px; }
.lab__timeline { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.lab__play { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--red); color: var(--paper); font-size: 18px; display: grid; place-items: center; transition: transform .4s var(--ease); }
.lab__play:hover { transform: rotate(-180deg); }
.lab__timeline input { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--paper) var(--p, 0%), rgba(242,237,228,.18) var(--p, 0%)); outline-offset: 6px; }
.lab__timeline input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(242,237,228,.18); }
.lab__timeline input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--paper); }
.lab__tmax { color: var(--on-dark-2); }
.lab__title { margin: 0 0 14px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.05; }
.lab__fix { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid rgba(242,237,228,.12); }
.lab__fix li { display: grid; grid-template-columns: 34px 110px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(242,237,228,.12); opacity: .35; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.lab__fix li.is-hit { opacity: 1; }
.lab__fix li.is-decision b { color: var(--yellow); }
.lab__fix .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 700; background: var(--paper); color: var(--ink); }
.lab__fix b { font-weight: 600; font-size: 15px; }
.lab__fix span:last-child { color: var(--on-dark-2); font-size: 14.5px; line-height: 1.4; }
.lab__insight { padding: 22px; border-radius: 14px; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(242,237,228,.08); }
.lab__insight .mono { color: var(--amber); }
.lab__insight p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.lab__legend { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--on-dark-2); font-size: 10.5px; }
.lab__legend i { flex: 1; height: 8px; border-radius: 4px; background: var(--heat); max-width: 240px; }
.lab__note { margin: 36px 0 0; color: var(--on-dark-2); font-size: 11px; max-width: 70ch; text-transform: none; letter-spacing: .01em; }

/* =========================================================
   CASE-MATE
   ========================================================= */
.cm { background: var(--paper); color: var(--ink); padding: var(--sec) 0 0; }
.cm__title { max-width: 15ch; }
.cm__title .x { font-weight: 300; color: var(--red); }
.cm__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.cm__lead { margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.45; max-width: 48ch; }
.cm__result { background: var(--ink); color: var(--paper); padding: 28px 30px; border-radius: var(--radius); position: relative; overflow: hidden; }
.cm__result::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,42,20,.9), rgba(255,225,77,.5) 40%, rgba(60,229,143,.25) 60%, transparent 70%); filter: blur(18px); }
.cm__result .mono { color: var(--amber); position: relative; z-index: 1; }
.cm__result strong { display: block; position: relative; z-index: 1; font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 5vw, 5rem); line-height: .9; letter-spacing: -.03em; margin: 10px 0 12px; }
.cm__result p { margin: 0; position: relative; z-index: 1; color: var(--on-dark-2); }
.cm__tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm__tags li { padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(13,12,11,.25); font-size: 11px; }

.rail { margin-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.rail__track { display: flex; gap: 22px; padding: 0 var(--gut); height: min(56vh, 560px); align-items: stretch; width: max-content; will-change: transform; }
.rail__item { margin: 0; height: 100%; position: relative; flex: none; display: flex; flex-direction: column; }
.rail__item > img { height: calc(100% - 54px); width: auto; max-width: none; border-radius: 14px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(13,12,11,.35); }
.rail__item figcaption { height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 14px; }
.rail__item figcaption .mono { font-size: 10.5px; color: var(--red); text-transform: none; letter-spacing: .02em; }
.rail__item--intro { width: min(420px, 70vw); justify-content: center; padding-right: 24px; }
.rail__item--intro p { margin: 14px 0 0; font-weight: 700; font-stretch: 80%; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.rail__item--intro .mono { color: var(--red); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(72px, 9vw, 140px) 0; border-top: 1.5px solid var(--ink); }
.principle { padding: 26px 26px 0 0; }
.principle + .principle { padding-left: 26px; border-left: 1px solid rgba(13,12,11,.15); }
.principle .mono { color: var(--red); }
.principle h3 { margin: 14px 0 10px; font-weight: 700; font-stretch: 80%; font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1; letter-spacing: -.02em; }
.principle p { margin: 0; color: var(--on-light-2); font-size: 15.5px; }

.adwall { position: relative; background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 150px) 0 0; overflow: hidden; }
.adwall__copy { position: relative; z-index: 2; margin-bottom: 56px; }
.adwall__copy .display-s { max-width: 16ch; }
.adwall__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; height: 120vh; padding: 0 var(--gut); position: relative; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.adcol { overflow: hidden; }
.adcol__track { display: flex; flex-direction: column; gap: 18px; animation: up var(--dur, 60s) linear infinite; }
.adcol--down .adcol__track { animation-direction: reverse; }
.adwall:hover .adcol__track { animation-play-state: paused; }
@keyframes up { to { transform: translateY(-50%); } }
.adcol img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; transition: transform .6s var(--ease), filter .6s; }
.adcol img:hover { transform: scale(1.02); }

.pdps { padding: clamp(80px, 10vw, 150px) 0 var(--sec); }
.pdps__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 40px; }
.pdps__head .eyebrow { margin: 0; }
.pdps__head p { margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.pdps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pdp { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 1; }
.pdp img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pdp:hover img { transform: scale(1.06); }
.pdp figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--ink); color: var(--paper); padding: 6px 10px; border-radius: 999px; font-size: 10px; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.pdp:hover figcaption { opacity: 1; transform: none; }

/* =========================================================
   WORK — 3D RING
   ========================================================= */
.work { background: var(--blue); color: var(--paper); position: relative; }
.work__pin { height: 100vh; height: 100svh; min-height: 640px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 96px 0 28px; }
.work__head { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.work__head .eyebrow { margin: 0; }
.work__mode { display: flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242,237,228,.3); }
.work__mode button { height: 34px; padding: 0 16px; border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.work__mode button.is-on { background: var(--paper); color: var(--blue); opacity: 1; }
.ring-stage { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 46%; z-index: 1; touch-action: pan-y; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.rcard { position: absolute; width: 190px; height: 238px; margin: -119px 0 0 -95px; transform-style: preserve-3d; cursor: pointer; }
.rcard__in { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: var(--blue-2); box-shadow: 0 20px 40px -18px rgba(0,0,20,.6); transition: transform .5s var(--ease), box-shadow .4s; backface-visibility: visible; }
.rcard img { width: 100%; height: 100%; object-fit: cover; }
.rcard__tag { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: rgba(13,12,11,.75); backdrop-filter: blur(8px); font-size: 12px; opacity: 0; transition: .35s var(--ease); display: flex; gap: 6px; align-items: center; }
.rcard__tag b { font-weight: 600; }
.rcard:hover .rcard__in, .rcard:focus-visible .rcard__in { transform: scale(1.12); box-shadow: 0 0 0 2px var(--yellow), 0 30px 60px -20px rgba(0,0,20,.7); }
.rcard:hover .rcard__tag, .rcard:focus-visible .rcard__tag { opacity: 1; transform: translate(-50%, 0); }
.eye { position: absolute; left: 50%; top: 46%; width: min(30vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.eye__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.eye__text text { font-family: var(--f-mono); font-size: 15px; letter-spacing: 3.2px; fill: var(--paper); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
.eye__ball { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e8e4ff 45%, #b9b6e8 100%); box-shadow: inset -10px -14px 30px rgba(20,20,90,.35), 0 20px 50px rgba(0,0,40,.4); display: grid; place-items: center; }
.eye__iris { width: 52%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, #ff2a14, #ffe14d, #3ce58f, #1fd2ff, #2238ff, #ff2a14); display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(13,12,11,.4), 0 0 18px rgba(255,90,40,.5); will-change: transform; }
.eye__pupil { width: 48%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); box-shadow: 6px -6px 0 -3px rgba(255,255,255,.85) inset; }
.work__foot { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; pointer-events: none; }
.work__counter b { font-size: 13px; }
.work__current { text-align: center; font-weight: 700; font-stretch: 80%; font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; min-height: 1em; }
.work__hint { text-align: right; opacity: .7; }

.work__grid { padding: 130px 0 var(--sec); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gcard { text-align: left; }
.gcard__img { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--blue-2); }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gcard:hover .gcard__img img { transform: scale(1.06); }
.gcard b { display: block; margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.25; }
.gcard span { font-size: 10.5px; opacity: .7; }
.work.is-grid .work__pin { height: auto; min-height: 0; padding-bottom: 0; }
.work.is-grid .ring-stage, .work.is-grid .work__foot { display: none; }

/* =========================================================
   MOTION
   ========================================================= */
.motion { background: var(--ink); color: var(--paper); padding: var(--sec) 0; overflow: hidden; }
.intro-reel { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; margin-top: clamp(48px, 6vw, 90px); }
.phone { position: relative; aspect-ratio: 9/16; border-radius: 26px; overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 6px #23201c, 0 0 0 7px #3a3631, 0 50px 100px -40px rgba(255,42,20,.35); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone--big { width: min(340px, 72vw); }
.phone__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 50%, rgba(13,12,11,.55)); transition: opacity .4s; }
.phone__play span { width: 82px; height: 82px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 22px; padding-left: 4px; box-shadow: 0 0 0 10px rgba(232,50,30,.25); transition: transform .4s var(--ease); }
.phone__play:hover span { transform: scale(1.08); }
.phone.is-playing .phone__play { opacity: 0; }
.intro-reel__copy .mono { color: var(--amber); }
.intro-reel__copy h3 { margin: 12px 0 18px; font-weight: 700; font-stretch: 80%; font-size: clamp(2.2rem, 4vw, 4.4rem); line-height: .95; letter-spacing: -.02em; }
.intro-reel__copy p { margin: 0; color: var(--on-dark-2); max-width: 52ch; font-size: 17px; }
.intro-reel__copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.intro-reel__copy li { padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242,237,228,.22); font-size: 10.5px; }
.filmstrip { display: flex; gap: 20px; padding: clamp(80px, 9vw, 130px) var(--gut) 0; width: max-content; will-change: transform; }
.reel { width: clamp(180px, 17vw, 250px); flex: none; }
.reel .phone { border-radius: 20px; box-shadow: 0 0 0 4px #23201c, 0 30px 60px -30px rgba(0,0,0,.8); }
.reel p { margin: 14px 0 0; font-size: 13px; color: var(--on-dark-2); }
.wides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wide { margin: 0; }
.wide__v { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--ink-3); }
.wide__v video { width: 100%; height: 100%; object-fit: cover; }
.wide__v::after { content: "▶ hover"; position: absolute; right: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; background: rgba(13,12,11,.7); padding: 4px 8px; border-radius: 999px; transition: opacity .3s; }
.wide.is-playing .wide__v::after { opacity: 0; }
.wide figcaption { margin-top: 12px; font-size: 14px; color: var(--on-dark-2); }

/* =========================================================
   FRAMEWORK — stacking cards
   ========================================================= */
.framework { background: var(--paper); color: var(--ink); padding: var(--sec) 0; }
.framework__head { margin-bottom: clamp(48px, 6vw, 90px); }
.stack { display: grid; gap: 28px; }
.card {
  position: sticky; top: calc(96px + var(--i, 0) * 22px);
  min-height: min(68vh, 560px); border-radius: 26px; padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 48px;
  transform-origin: 50% 0; overflow: hidden;
}
.card:nth-child(1) { --i: 0; } .card:nth-child(2) { --i: 1; } .card:nth-child(3) { --i: 2; } .card:nth-child(4) { --i: 3; }
.card--hook { background: var(--red); color: var(--paper); }
.card--attention { background: var(--yellow); color: var(--ink); }
.card--trust { background: var(--blue); color: var(--paper); }
.card--decision { background: var(--ink); color: var(--paper); }
.card__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; opacity: .8; }
.card h3 { grid-column: 1; margin: 18px 0 14px; font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 10vw, 10rem); line-height: .82; letter-spacing: -.04em; }
.card p { grid-column: 1; margin: 0 0 22px; font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 40ch; line-height: 1.45; }
.card ul { grid-column: 1; list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; align-self: start; }
.card li { padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-size: 10.5px; opacity: .85; }
.viz { grid-column: 2; grid-row: 2 / span 2; position: relative; align-self: stretch; min-height: 220px; }
.viz--hook i { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid currentColor; transform: translate(-50%, -50%); animation: hook 2.4s var(--ease) infinite; }
.viz--hook i:nth-child(2) { animation-delay: .8s; } .viz--hook i:nth-child(3) { animation-delay: 1.6s; }
@keyframes hook { from { transform: translate(-50%,-50%) scale(.2); opacity: 1 } to { transform: translate(-50%,-50%) scale(1.6); opacity: 0 } }
.viz--hook::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); transform: translate(-50%,-50%); box-shadow: 0 0 40px 10px rgba(255,225,77,.6); }
.viz--path svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz--path polyline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 6 6; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -48; } }
.viz--path b { position: absolute; left: var(--x); top: var(--y); width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-family: var(--f-mono); font-size: 14px; }
.viz--trust span { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: .1em; color: var(--yellow); }
.viz--trust i { position: absolute; left: 50%; top: 62%; width: 60%; height: 10px; border-radius: 6px; transform: translateX(-50%); background: rgba(242,237,228,.2); overflow: hidden; }
.viz--trust i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--paper); animation: fill 2.6s var(--ease) infinite; }
@keyframes fill { 60%, 100% { width: 100%; } }
.viz--decision span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 18px 34px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 20px; box-shadow: 0 0 0 0 rgba(255,225,77,.7); animation: cta 1.8s var(--ease) infinite; white-space: nowrap; }
.viz--decision::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70%; height: 46%; transform: translate(-50%,-50%); border: 2px dashed var(--yellow); border-radius: 18px; }
@keyframes cta { 50% { box-shadow: 0 0 0 16px rgba(255,225,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,225,77,0); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--ink); color: var(--paper); padding: var(--sec) 0 0; }
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.about__portrait { position: sticky; top: 110px; }
.about__frame { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #ffe14d 0, #ffb31f 22%, #e8321e 46%, #2238ff 82%); }
.about__frame img { position: absolute; left: 50%; bottom: 0; width: 112%; max-width: none; transform: translateX(-50%); }
.about__card { margin-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--on-dark-2); font-size: 10.5px; }
.about__lead { font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.4; margin: 36px 0 18px; }
.about__body > p { color: var(--on-dark-2); max-width: 62ch; }
.about__links { display: flex; gap: 10px; margin: 30px 0 56px; flex-wrap: wrap; }
.xp { border-top: 1px solid rgba(242,237,228,.18); }
.xp__row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(242,237,228,.18); transition: padding .4s var(--ease), background .4s; }
.xp__row:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(232,50,30,.14), transparent); }
.xp__row .mono { color: var(--amber); padding-top: 5px; }
.xp__row b { display: block; font-weight: 700; font-stretch: 85%; font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -.01em; line-height: 1.1; }
.xp__row div span { color: var(--on-dark-2); font-size: 15px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; margin-top: 56px; }
.skills .mono { color: var(--amber); }
.skills p { margin: 8px 0 0; font-size: 15px; color: var(--on-dark-2); }
.clients { margin-top: var(--sec); border-top: 1px solid rgba(242,237,228,.18); border-bottom: 1px solid rgba(242,237,228,.18); overflow: hidden; padding: 26px 0; }
.clients__track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.clients__track span { font-weight: 700; font-stretch: 78%; font-size: clamp(1.8rem, 3.2vw, 3.2rem); letter-spacing: -.02em; white-space: nowrap; opacity: .9; }
.clients__track span:nth-child(odd) { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--red); color: var(--paper); padding: var(--sec) 0 0; overflow: hidden; }
.contact__giant { margin: 0; font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 13.6vw, 15rem); line-height: .82; letter-spacing: -.04em; }
.contact__giant em { font-size: 1.04em; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 90px); margin-top: clamp(48px, 6vw, 90px); align-items: end; }
.contact__lead { font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.35; margin: 0 0 36px; max-width: 34ch; }
.connect-orb { position: relative; width: 190px; height: 190px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: background .4s var(--ease), color .4s; }
.connect-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.connect-orb text { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 2.6px; fill: currentColor; font-weight: 500; }
.connect-orb > span { font-size: 42px; transition: transform .5s var(--ease); }
.connect-orb:hover { background: var(--paper); color: var(--ink); }
.connect-orb:hover > span { transform: rotate(45deg); }
.direct { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid rgba(242,237,228,.35); }
.direct li { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(242,237,228,.35); }
.direct .mono { opacity: .75; font-size: 11px; }
.direct a { font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.25rem); overflow-wrap: anywhere; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy { padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242,237,228,.5); font-size: 10px; }
.copy:hover { background: var(--paper); color: var(--red); }
.contact__right { position: relative; }
.contact__me { width: 100%; max-width: 640px; margin-left: auto; filter: drop-shadow(0 20px 50px rgba(70,8,0,.45)); }
.report { position: relative; background: var(--ink); color: var(--paper); border-radius: 22px 22px 0 0; padding: 26px 26px 22px; margin-top: -2px; }
.report__head { display: flex; justify-content: space-between; color: var(--amber); font-size: 11px; }
.report__head span:last-child { color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.report__line { margin: 12px 0 18px; font-size: 17px; line-height: 1.35; }
.report__bars { display: grid; gap: 9px; }
.rbar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; }
.rbar i { height: 10px; border-radius: 6px; background: rgba(242,237,228,.1); overflow: hidden; position: relative; }
.rbar i b { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: var(--heat); background-size: 300px 100%; transition: width .8s var(--ease); }
.rbar span:last-child { font-family: var(--f-mono); font-size: 11px; text-align: right; color: var(--on-dark-2); }
.report__foot { margin: 16px 0 0; font-size: 10px; color: var(--on-dark-2); text-transform: none; letter-spacing: .01em; }

.foot { background: var(--ink); color: var(--on-dark-2); padding: 26px 0; font-size: 14px; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot a:hover { color: var(--paper); }

/* =========================================================
   MODALS
   ========================================================= */
.modal, .pv { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: var(--gut); }
.modal__backdrop, .pv__backdrop { position: absolute; inset: 0; background: rgba(13,12,11,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal__panel {
  position: relative; width: min(640px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--paper); color: var(--ink); border-radius: 26px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.6);
}
.modal__panel .eyebrow { color: var(--red); margin-bottom: 14px; }
.modal__panel .eyebrow span { opacity: 1; }
.modal__panel h3 { margin: 0; font-weight: 800; font-stretch: 78%; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; letter-spacing: -.02em; }
.modal__sub { margin: 10px 0 24px; color: var(--on-light-2); }
.modal__x { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(13,12,11,.06); font-size: 16px; transition: transform .4s var(--ease), background .3s; z-index: 3; }
.modal__x:hover { transform: rotate(90deg); background: var(--ink); color: var(--paper); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid rgba(13,12,11,.14); border-radius: 12px; padding: 12px 14px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(232,50,30,.15); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }
.needs { border: 0; padding: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.needs legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.needs label { position: relative; }
.needs input { position: absolute; opacity: 0; pointer-events: none; }
.needs span { display: inline-block; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(13,12,11,.18); font-size: 14px; cursor: pointer; transition: .25s var(--ease); user-select: none; }
.needs input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.needs input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__err { min-height: 1.2em; margin: 0 0 10px; color: var(--red-2); font-size: 14px; font-weight: 600; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__done h3 { margin-bottom: 12px; }
.modal__done p { color: var(--on-light-2); margin: 0 0 22px; }
.modal__done a { color: var(--red); text-decoration: underline; }

.pv__panel {
  position: relative; width: min(1280px, 100%); height: min(86svh, 860px);
  background: var(--paper); color: var(--ink); border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr;
}
.pv__media { background: var(--ink); display: flex; flex-direction: column; min-height: 0; }
.pv__main { flex: 1; min-height: 0; display: grid; place-items: center; padding: 22px; }
.pv__main img, .pv__main video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.pv__thumbs { display: flex; gap: 8px; padding: 0 22px 18px; overflow-x: auto; scrollbar-width: none; }
.pv__thumbs::-webkit-scrollbar { display: none; }
.pv__thumbs button { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; opacity: .45; transition: opacity .3s; box-shadow: 0 0 0 1.5px transparent; }
.pv__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--yellow); }
.pv__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv__info { padding: clamp(28px, 3vw, 44px); overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.pv__cat { color: var(--red); }
.pv__info h3 { margin: 0; font-weight: 800; font-stretch: 78%; font-size: clamp(2rem, 3vw, 3rem); line-height: .95; letter-spacing: -.02em; padding-right: 40px; }
.pv__metric:empty { display: none; }
.pv__metric { align-self: start; background: var(--ink); color: var(--yellow); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.pv__dl { margin: 6px 0 10px; }
.pv__dl dt { color: var(--on-light-2); font-size: 10.5px; margin-top: 16px; }
.pv__dl dd { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
.pv__info .btn { align-self: start; margin-top: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 210; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .4s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .hero__aside { background: rgba(13,12,11,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 18px; border-radius: 16px; max-width: 340px; }
  .hero .btn--solid { background: var(--paper); color: var(--ink); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid rgba(13,12,11,.15); margin-top: 18px; }
  .lab__head { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { margin-top: 26px; border-top: 1px solid rgba(13,12,11,.15); }
  .pdps__grid { grid-template-columns: repeat(3, 1fr); }
  .work__grid { grid-template-columns: repeat(3, 1fr); }
  .wides { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav__hud { display: none; }
  .nav .btn--pill { margin-left: auto; }
  .nav__burger { display: block; }
  .hero__giant { font-size: 23vw; top: 30%; }
  .hero__person { height: 70%; }
  .hero__tag { top: 82px; font-size: 10px; }
  .hero__bottom { flex-direction: column; align-items: stretch; bottom: 60px; gap: 16px; }
  .hero__title { font-size: clamp(2.6rem, 11vw, 3.6rem); text-shadow: 0 2px 20px rgba(120,10,0,.35); }
  .hero__aside { max-width: none; background: rgba(13,12,11,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 16px; border-radius: 16px; }
  .hero__aside p { font-size: 15px; margin-bottom: 14px; }
  .hero__ctas .btn { height: 46px; padding: 0 18px; flex: 1; justify-content: center; }
  .hero .btn--solid { background: var(--paper); color: var(--ink); }
  .reticle span { left: 50%; top: 100%; transform: translateX(-50%); margin: 8px 0 0; }
  .lab__stage { grid-template-columns: 1fr; }
  .lab__viewer { max-width: 520px; width: 100%; margin-inline: auto; }
  .lab__fix li { grid-template-columns: 30px 90px 1fr; }
  .cm__grid { grid-template-columns: 1fr; }
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail__track { height: 340px; }
  .rail__item { scroll-snap-align: center; }
  .adwall__cols { grid-template-columns: 1fr 1fr; height: 110vh; }
  .adcol:nth-child(3) { display: none; }
  .pdps__head { grid-template-columns: 1fr; }
  .pdps__grid { grid-template-columns: 1fr 1fr; }
  .work__foot { grid-template-columns: 1fr; text-align: center; }
  .work__counter, .work__hint { text-align: center; }
  .rcard { width: 140px; height: 176px; margin: -88px 0 0 -70px; }
  .eye { width: 46vw; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .intro-reel { grid-template-columns: 1fr; justify-items: center; }
  .intro-reel__copy { text-align: left; }
  .card { grid-template-columns: 1fr; min-height: auto; top: calc(80px + var(--i, 0) * 14px); }
  .viz { grid-column: 1; grid-row: auto; min-height: 160px; margin-top: 20px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-width: 420px; }
  .xp__row { grid-template-columns: 1fr; gap: 4px; }
  .skills { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .rbar { grid-template-columns: 96px 1fr 40px; }
  .pv__panel { grid-template-columns: 1fr; height: calc(100svh - 32px); grid-template-rows: 52% 48%; }
  .f2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 20px 12px 6px 0; border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(13,12,11,.15); margin-top: 12px; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:last-child { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { padding-left: 0; border-left: 0; margin-top: 22px; border-top: 1px solid rgba(13,12,11,.15); }
  .wides { grid-template-columns: 1fr; }
  .direct li { grid-template-columns: 1fr auto; }
  .direct li .mono { grid-column: 1 / -1; }
  .lab__thumbs { overflow-x: auto; scrollbar-width: none; }
  .lab__thumb { width: 54px; flex: none; }
  .lab__fix li { grid-template-columns: 30px 1fr; }
  .lab__fix li span:last-child { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* =========================================================
   v3 — doodles, header head, UI/UX device rail, ads grid
   ========================================================= */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.dhead { display: block; width: 46px; height: 46px; flex: none; transition: transform .5s var(--ease); }
.dhead svg { width: 100%; height: 100%; overflow: visible; }
.nav__logo:hover .dhead { transform: rotate(-10deg) scale(1.08); }
.dhead__p { transform-box: fill-box; transform-origin: center; transition: transform .09s ease; }
.dhead.is-blink .dhead__p { transform: scaleY(.12); }

.doodle { position: absolute; z-index: 5; pointer-events: none; fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doodle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.is-drawn .doodle path, .doodle.is-drawn path, .note.is-drawn path { stroke-dashoffset: 0; }
.doodle--star { width: 74px; right: 9%; top: 19%; transform: rotate(12deg); }
.doodle--star path { fill: var(--yellow); fill-opacity: 0; transition: stroke-dashoffset 1.2s var(--ease), fill-opacity .6s .9s; }
.doodle--star.is-drawn path { fill-opacity: 1; stroke: var(--ink); }
.doodle--burst { width: 58px; left: 8%; top: 40%; }
.note { position: absolute; z-index: 5; pointer-events: none; font-family: "Caveat", cursive; font-weight: 700; color: var(--paper); line-height: 1; }
.note svg { display: block; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.note path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s .3s var(--ease); }
.note span { display: block; font-size: 30px; transform: rotate(-7deg); opacity: 0; transition: opacity .6s var(--ease); }
.note.is-drawn span { opacity: 1; }
.note--hero { left: calc(50% - 360px); top: 15%; width: 190px; }
.note--hero svg { width: 120px; margin: 4px 0 0 60px; }

.about__frame { overflow: visible; }
.about__frame > img { border-radius: 0 0 24px 24px; }
.about__frame::after { content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(242,237,228,.12); }
.doodle--orbit { width: 46%; left: 24%; top: -15%; stroke: var(--yellow); stroke-width: 3; transform: rotate(-6deg); }
.note--about { right: -18px; top: 30%; font-size: 26px; transform: rotate(8deg); color: var(--yellow); text-align: right; }
.note--about { opacity: 0; transition: opacity .6s var(--ease); }
.note--about.is-drawn { opacity: 1; }

.contact__doodle { position: relative; }
.contact__doodle .contact__me { max-width: 560px; }
.note--contact { left: 0; top: 4%; font-size: 30px; color: var(--paper); transform: rotate(-6deg); opacity: 0; transition: opacity .6s var(--ease); }
.note--contact.is-drawn { opacity: 1; }
.doodle--bulb { width: 70px; left: 26%; top: -4%; stroke: var(--yellow); }

/* UI/UX device scenes in the rail */
.rail__track { height: min(58vh, 580px); }
.scene { width: calc((min(58vh, 580px) - 54px) * 1.5); }
.scene__stage { position: relative; height: calc(100% - 54px); border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: 0 30px 60px -30px rgba(13,12,11,.4); }
.laptop { position: absolute; left: 5%; top: 9%; width: 74%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; background: #0e0e0e; border: clamp(6px, .8vw, 11px) solid #121212; border-bottom-width: clamp(8px, 1vw, 14px); border-radius: 14px 14px 4px 4px; overflow: hidden; container-type: size; }
.laptop__base { height: clamp(9px, 1.2vw, 16px); width: 114%; margin-left: -7%; border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, #d9d9dd, #a3a3aa); position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 40%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #8e8e95; }
.mphone { position: absolute; right: 5%; bottom: 7%; height: 76%; aspect-ratio: 9 / 19.5; background: #0e0e0e; border-radius: 26px; padding: 2.4%; box-shadow: 0 0 0 1.5px #3a3a3a, 0 30px 40px -12px rgba(0,0,0,.5); }
.mphone::after { content: ""; position: absolute; left: 50%; top: 3.2%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #0a0a0a; z-index: 2; }
.mphone__screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #fff; container-type: size; }
.scroller { position: absolute; left: 0; top: 0; width: 100%; max-width: none; height: auto; animation: pagescroll 18s ease-in-out infinite alternate; will-change: transform; }
.scroller--slow { animation-duration: 22s; animation-delay: -6s; }
@keyframes pagescroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.scene:hover .scroller { animation-play-state: paused; }

/* Kate Spade ads grid */
.ksads { padding: 0 0 clamp(80px, 10vw, 150px); }
.ksads__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 40px; }
.ksads__head .eyebrow { margin: 0; }
.ksads__head p { margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.ksads__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ksad { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--ink-2); cursor: pointer; }
.ksad img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ksad:hover img { transform: scale(1.06); }
.ksad figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--ink); padding: 6px 10px; border-radius: 999px; font-size: 10px; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.ksad:hover figcaption { opacity: 1; transform: none; }

/* social wall: natural post shapes */
.adcol img { aspect-ratio: auto; height: auto; }
.adwall { padding-bottom: 0; }

@media (max-width: 1100px) {
  .note--hero { display: none; }
  .ksads__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .dhead { width: 40px; height: 40px; }
  .nav__logo > span:last-child { font-size: 22px; }
  .doodle--star { width: 52px; right: 6%; top: 17%; }
  .doodle--burst { display: none; }
  .rail__track { height: 360px; }
  .scene { width: 459px; }
  .ksads__head { grid-template-columns: 1fr; }
  .ksads__grid { grid-template-columns: 1fr 1fr; }
  .note--about { right: 6px; font-size: 22px; }
  .note--contact { font-size: 24px; }
}

/* =========================================================
   v4 — 3D character (Canva), eyes that follow the cursor
   ========================================================= */
.hero__person { aspect-ratio: 1006 / 1461; }
.eyes3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eyes3d__iris { will-change: transform; }
.eyes3d.is-blink .eyes3d__lid { animation: eyeblink .2s cubic-bezier(.4, 0, .6, 1); }
@keyframes eyeblink { 0%, 100% { transform: translateY(0); } 45%, 55% { transform: translateY(var(--lh)); } }
.reticle { left: 24%; top: 12%; width: 50%; height: 33%; }

/* header: yellow badge, head pops out of the top */
.dhead { --d: 50px; position: relative; width: var(--d); height: var(--d); }
.dhead::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.dhead__in {
  position: absolute; left: 50%; bottom: 0; width: calc(var(--d) * 1.18); height: calc(var(--d) * 1.5); transform: translateX(-50%);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--d) / 2) no-repeat, radial-gradient(circle calc(var(--d) / 2) at 50% calc(100% - var(--d) / 2), #000 96%, transparent 100%);
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--d) / 2) no-repeat, radial-gradient(circle calc(var(--d) / 2) at 50% calc(100% - var(--d) / 2), #000 96%, transparent 100%);
}
.dhead__in img, .dhead__in .eyes3d { position: absolute; top: auto; left: 0; bottom: calc(var(--d) * -.02); width: 100%; height: auto; aspect-ratio: 1; }

/* about + contact */
.about__frame > img { left: 50%; bottom: 0; width: 100%; height: auto; max-width: none; transform: translateX(-50%); }
.doodle--orbit { width: 40%; left: 37%; top: -5%; transform: rotate(-8deg); }
.note--about { right: -26px; top: auto; bottom: 34%; }
.contact__doodle { filter: drop-shadow(0 18px 40px rgba(70,8,0,.35)); }
.contact__doodle .contact__me { filter: none; max-width: 440px; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }

@media (max-width: 860px) {
  .dhead { --d: 42px; }
  .note--about { right: 8px; bottom: 30%; }
}
