/* =========================================================
   Mohit Negi — Portfolio
   Concept: "Page One" — the portfolio as a search journey.
   No frameworks. Themes morph per section via body[data-theme].
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper: #F3EFE4;
  --ink: #111114;
  --blue: #2540FF;
  --lime: #DCFF45;
  --white: #FFFDF7;

  /* theme (overridden per section) */
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--blue);
  --mark: var(--lime);
  --mark-fg: var(--ink);

  --pad: clamp(18px, 4.4vw, 72px);
  --bw: 2.5px;
  --r: 22px;
  --header-h: 76px;
  --theme-t: .9s;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --f-d: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-s: "Instrument Serif", "Times New Roman", serif;
  --f-m: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
body[data-theme="ink"]  { --bg: var(--ink);  --fg: var(--paper); --accent: var(--lime); }
body[data-theme="blue"] { --bg: var(--blue); --fg: var(--paper); --accent: var(--lime); }
body[data-theme="lime"] { --bg: var(--lime); --fg: var(--ink);   --accent: var(--blue); --mark: var(--ink); --mark-fg: var(--lime); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
html.is-loading { overflow: hidden; }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--f-d);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--theme-t) var(--ease), color var(--theme-t) var(--ease);
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }
::selection { background: var(--mark); color: var(--mark-fg); }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--f-m); font-style: normal; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 2000; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Shared type ---------- */
.display {
  font-weight: 850;
  font-stretch: 70%;
  font-size: clamp(46px, min(9vw, 22vh + 30px), 170px);
  line-height: .9;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.display em {
  font-family: var(--f-s);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-size: 1.04em;
  letter-spacing: -.02em;
  color: var(--accent);
  transition: color var(--theme-t) var(--ease);
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 500; line-height: 1;
  text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow > span {
  display: inline-block; padding: 5px 9px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  transition: background-color var(--theme-t) var(--ease), color var(--theme-t) var(--ease);
}
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 7vh, 84px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border: var(--bw) solid var(--fg); border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-weight: 750; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 0 var(--fg);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), translate .3s var(--ease), transform .35s var(--ease-out);
}
.btn:hover { background: var(--accent); color: var(--bg); box-shadow: 5px 5px 0 var(--fg); translate: -2px -2px; }
.btn--ghost { background: transparent; color: var(--fg); }
.btn .ic { width: 1.15em; height: 1.15em; }

/* ---------- Search bar ---------- */
.searchbar {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 780px;
  height: clamp(52px, 6vh + 22px, 68px);
  padding: 0 12px 0 22px;
  border: var(--bw) solid currentColor; border-radius: 999px;
  background: var(--bg);
  box-shadow: 5px 6px 0 currentColor;
  font-family: var(--f-m); font-size: clamp(14px, .6vw + 11px, 19px); font-weight: 500;
  transition: background-color var(--theme-t) var(--ease);
}
.searchbar > .ic { width: 22px; height: 22px; }
.searchbar__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.searchbar__key {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
}
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; background: currentColor; vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Reveal system (only when JS is running) ---------- */
html.js [data-reveal] { opacity: 0; translate: 0 36px; }
html.js [data-reveal].in {
  opacity: 1; translate: 0 0;
  transition: opacity .9s var(--ease-out) calc(var(--i, 0) * 110ms), translate 1.1s var(--ease-out) calc(var(--i, 0) * 110ms);
}
html.js [data-enter] { opacity: 0; translate: 0 20px; }
html.loaded [data-enter] {
  opacity: 1; translate: 0 0;
  transition: opacity .8s var(--ease-out) calc(var(--e, 0) * 1ms), translate 1s var(--ease-out) calc(var(--e, 0) * 1ms);
}
/* word masks */
html.js .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .1em .17em .03em; margin: -.1em -.1em -.17em -.03em; }
html.js .wi { display: inline-block; transform: translateY(125%) rotate(5deg); transform-origin: 0 100%; }
html.js .in .wi { transform: none; transition: transform 1.05s var(--ease-out) calc(var(--i, 0) * 60ms + var(--d, 0ms)); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; color: var(--ink); animation: loaderSafe 0s linear 8s forwards; }
html:not(.js) .loader { display: none; }
@keyframes loaderSafe { to { visibility: hidden; pointer-events: none; } }
.loader__bg { position: absolute; inset: 0; background: var(--paper); transition: opacity .75s var(--ease) .12s; }
.loader__stage { position: relative; width: 100%; padding: 0 var(--pad); display: grid; justify-items: center; gap: 18px; }
.loader__bar { background: var(--paper); }
.loader__bar.is-enter { animation: press .38s var(--ease); }
.loader__bar.is-enter .searchbar__key { background: var(--ink); color: var(--paper); }
@keyframes press { 45% { scale: .975; box-shadow: 2px 2px 0 var(--ink); } }
.loader__meta { display: flex; justify-content: space-between; width: min(100%, 780px); padding: 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; transition: opacity .3s; }
.loader__corner { position: absolute; top: 26px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; transition: opacity .3s; }
.loader__corner--tl { left: var(--pad); }
.loader__corner--tr { right: var(--pad); }
.loader.is-out { pointer-events: none; }
.loader.is-out .loader__bg, .loader.is-out .loader__meta, .loader.is-out .loader__corner { opacity: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  height: var(--header-h); padding: 0 var(--pad);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-stretch: 78%; font-size: 21px; letter-spacing: -.01em; }
.brand__chip {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg); border: var(--bw) solid var(--fg);
  transition: background-color var(--theme-t) var(--ease), border-color var(--theme-t) var(--ease), rotate .5s var(--spring);
}
.brand:hover .brand__chip { rotate: -14deg; }
.brand__eye { width: 28px; height: 28px; translate: 2px 2px; }
.brand__eye .eye__stroke, .brand__eye .eye__ring { stroke: currentColor; }
.brand__eye .eye__ring { fill: none; }
.brand__eye .eye__dot { fill: currentColor; }
.brand__name { transition: opacity .4s var(--ease), translate .5s var(--ease); }
html.scrolled .brand__name { opacity: 0; translate: -10px 0; pointer-events: none; }

.nav {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  transition: background-color var(--theme-t) var(--ease), color var(--theme-t) var(--ease);
}
.nav__path { font-size: 12.5px; padding-right: 14px; margin-right: 4px; border-right: 1px solid rgba(128, 128, 128, .5); white-space: nowrap; }
.nav__path b { font-weight: 700; color: var(--blue); transition: color var(--theme-t) var(--ease); }
body[data-theme="paper"] .nav__path b, body[data-theme="lime"] .nav__path b { color: var(--lime); }
.nav__links { display: flex; gap: 2px; }
.nav a {
  display: block; padding: 10px 15px; border-radius: 999px;
  font-weight: 650; font-size: 15px; line-height: 1; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav a:hover, .nav a.is-active { background: var(--bg); color: var(--fg); }
.nav a.nav__cta { background: var(--accent); color: var(--bg); }
body[data-theme="paper"] .nav a.nav__cta, body[data-theme="lime"] .nav a.nav__cta { color: var(--white); }
.nav a.nav__cta:hover { background: var(--bg); color: var(--fg); }

.menu-btn {
  display: none; align-items: center; gap: 12px;
  padding: 0 16px 0 18px; height: 46px; border: 0; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-weight: 750; font-size: 15px; cursor: pointer;
  transition: background-color var(--theme-t) var(--ease), color var(--theme-t) var(--ease);
}
.menu-btn__icon { position: relative; width: 20px; height: 12px; }
.menu-btn__icon i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: 9.5px; }
html.menu-open .menu-btn__icon i:first-child { top: 5px; transform: rotate(45deg); }
html.menu-open .menu-btn__icon i:last-child { top: 5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--pad) 28px;
  background: var(--blue); color: var(--paper);
  clip-path: circle(0 at calc(100% - 60px) 38px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
}
html.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 38px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
html.menu-open { overflow: hidden; }
html.menu-open .site-header { color: var(--paper); }
html.menu-open .brand__chip { background: var(--blue); border-color: var(--paper); }
html.menu-open .menu-btn { background: var(--paper); color: var(--blue); }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-weight: 900; font-stretch: 66%; font-size: clamp(54px, 17vw, 120px); line-height: 1; letter-spacing: -.02em; text-decoration: none;
  padding: 4px 0;
}
.menu__links a .mono { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--lime); }
.menu__links li { overflow: hidden; }
.menu__links li a { translate: 0 110%; transition: translate .5s var(--ease); }
html.menu-open .menu__links li a { translate: 0 0; transition: translate .9s var(--ease-out) calc(var(--i) * 70ms + 250ms); }
.menu__foot { font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; }
.hero__wrap { display: flex; flex-direction: column; padding-top: calc(var(--header-h) + clamp(8px, 2.6vh, 34px)); padding-bottom: clamp(64px, 9vh, 110px); }
.hero__count { margin-top: 16px; padding-left: 8px; font-size: 12.5px; opacity: .75; }
.hero__count b { font-weight: 700; }
.hero__result { margin-top: clamp(18px, 3.6vh, 44px); }
.hero__crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hero__crumb i { font-style: normal; opacity: .5; }
.hero__fav { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 4px; border-radius: 50%; background: var(--fg); color: var(--bg); font-family: var(--f-d); font-weight: 900; font-size: 14px; transition: background-color var(--theme-t) var(--ease), color var(--theme-t) var(--ease); }
.hero__title { font-weight: inherit; font-size: inherit; }
.hero__eyebrow { display: block; margin-top: 12px; font-weight: 650; font-size: clamp(15px, .5vw + 12px, 20px); letter-spacing: -.005em; }
.hero__big {
  display: block; margin-top: .05em;
  font-weight: 900; font-stretch: 64%;
  font-size: clamp(58px, 19.5vw, 130px);
  line-height: .86; letter-spacing: -.035em;
  color: var(--accent);
  transition: color var(--theme-t) var(--ease);
  --d: 280ms;
}
.hero__big em { font-family: var(--f-s); font-style: italic; font-weight: 400; font-stretch: normal; letter-spacing: -.03em; color: var(--mark-fg); transition: color var(--theme-t) var(--ease); }
.hl { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; padding-right: .06em; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.05em; right: -.04em; top: .36em; bottom: .04em;
  background: var(--mark); border-radius: .07em;
  transform: skewX(-9deg) rotate(-1.2deg) scaleX(0); transform-origin: 0 50%;
  transition: transform .9s var(--ease-io) 1.2s, background-color var(--theme-t) var(--ease);
}
html.loaded .hl::before, html:not(.js) .hl::before { transform: skewX(-9deg) rotate(-1.2deg) scaleX(1); }
.br-d { display: none; }
.hero__desc { margin-top: clamp(16px, 2.6vh, 30px); max-width: 44ch; font-size: clamp(17px, .55vw + 13px, 22px); line-height: 1.38; text-wrap: pretty; }
.hero__meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.hero__pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.hero__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

.sitelinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(14px, 2vw, 34px); margin-top: clamp(28px, 5vh, 60px); }
.sitelinks a {
  position: relative; display: grid; gap: 6px; overflow: hidden;
  padding: 14px 40px 16px 0; height: 100%;
  border-top: var(--bw) solid currentColor;
  text-decoration: none;
  transition: color .35s var(--ease), padding .45s var(--ease-out);
}
.sitelinks a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); translate: 0 101%; transition: translate .45s var(--ease-out); }
.sitelinks a:hover { color: var(--bg); padding-left: 14px; }
body[data-theme="paper"] .sitelinks a:hover { color: var(--white); }
.sitelinks a:hover::before { translate: 0 0; }
.sitelinks__t { font-weight: 800; font-stretch: 76%; font-size: clamp(20px, .8vw + 12px, 29px); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.sitelinks__d { font-size: 12px; opacity: .8; }
.sitelinks .ic { position: absolute; right: 10px; top: 14px; width: 22px; height: 22px; transition: rotate .45s var(--ease-out); }
.sitelinks a:hover .ic { rotate: 45deg; }
.hero__cue { position: absolute; left: var(--pad); bottom: 22px; display: none; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero__cue .ic { animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* Stickers */
.stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sticker {
  position: absolute;
  translate: var(--dx, 0px) calc(var(--dy, 0px) + var(--py, 0px));
  rotate: var(--rot, 0deg);
  user-select: none; -webkit-user-select: none;
  transition: rotate .45s var(--spring);
}
html.fine .sticker { pointer-events: auto; touch-action: none; cursor: grab; }
.sticker.is-drag { cursor: grabbing; rotate: calc(var(--rot, 0deg) * -.6); z-index: 6; }
.sticker__in { animation: bob 6.5s ease-in-out calc(var(--i, 0) * -1.4s) infinite; }
html.js .sticker__in { scale: 0; }
html.loaded .sticker__in { scale: 1; transition: scale .9s var(--spring) calc(var(--i, 0) * 140ms + 750ms); }
html.loaded.settled .sticker__in { transition: scale .35s var(--spring); }
.sticker.is-drag .sticker__in { scale: 1.08; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.st-eye { right: 4%; top: calc(var(--header-h) + 178px); width: 25vw; max-width: 124px; --rot: 6deg; }
.st-one { display: none; --rot: -10deg; }
.st-2x, .st-93 { display: none; }
.st-eye .eye, .st-one .badge1 { width: 100%; height: auto; overflow: visible; filter: drop-shadow(5px 6px 0 rgba(17, 17, 20, .16)); }
.st-2x .sticker__in, .st-93 .sticker__in { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 18px; white-space: nowrap; }
.st-2x .sticker__in { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--blue); }
.st-93 .sticker__in { background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.sticker b { font-weight: 900; font-stretch: 62%; font-size: 46px; line-height: 1; letter-spacing: -.03em; }
.st-2x b { color: var(--lime); }
.st-93 b { color: var(--blue); }
.sticker span { display: grid; font-weight: 700; font-size: 14px; line-height: 1.2; }
.sticker i { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }

/* Mascot eye */
.eye__pupil { transition: transform .14s linear; }
.eye__lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: lid 5.6s infinite; }
@keyframes lid { 0%, 92.5%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
html.touch .eye__pupil { animation: look 7s ease-in-out infinite; }
@keyframes look { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(18px, -8px); } 45% { transform: translate(-16px, 10px); } 70% { transform: translate(12px, 14px); } }
.badge1__ring { transform-origin: 100px 100px; animation: spin 16s linear infinite; }
.badge1__num { font-family: var(--f-d); font-weight: 900; font-stretch: 62%; font-size: 84px; letter-spacing: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee band ---------- */
.band {
  position: relative; z-index: 4;
  margin: 0 -3vw; rotate: -2deg;
  padding: 13px 0;
  background: var(--fg); color: var(--bg);
  transition: background-color var(--theme-t) var(--ease), color var(--theme-t) var(--ease);
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track > * { margin-right: clamp(18px, 2.2vw, 36px); }
.marquee__track span { font-weight: 850; font-stretch: 72%; font-size: clamp(22px, 2.5vw, 40px); line-height: 1.1; text-transform: uppercase; letter-spacing: -.005em; }
.marquee__track .ic { width: clamp(16px, 1.6vw, 26px); height: clamp(16px, 1.6vw, 26px); color: var(--accent); transition: color var(--theme-t) var(--ease); }
body[data-theme="paper"] .band .ic, body[data-theme="lime"] .band .ic { color: var(--lime); }
body[data-theme="ink"] .band .ic, body[data-theme="blue"] .band .ic { color: var(--blue); }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(96px, 17vh, 210px) 0 clamp(80px, 13vh, 170px); }
.manifesto__text {
  margin-top: 30px; max-width: 21em;
  font-weight: 650; font-stretch: 86%;
  font-size: clamp(27px, 3.85vw, 68px);
  line-height: 1.09; letter-spacing: -.024em; text-wrap: pretty;
}
.sw { opacity: .15; transition: opacity .45s linear; }
.sw.on { opacity: 1; }
.manifesto__text mark {
  color: inherit; padding: 0 .12em; margin: 0 -.12em; border-radius: .1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 60% / 0% 84%;
  transition: background-size .7s var(--ease-out), color .35s linear .1s;
}
.manifesto__text mark.on { background-size: 100% 84%; color: var(--mark-fg); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px clamp(16px, 2.4vw, 44px); margin-top: clamp(72px, 13vh, 170px); }
.stat { padding-top: 16px; border-top: var(--bw) solid currentColor; }
.stat__num {
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(84px, 11.5vw, 200px);
  line-height: .8; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  color: var(--accent);
  transition: color var(--theme-t) var(--ease);
}
.stat__label { margin-top: 16px; max-width: 19ch; font-size: clamp(15px, .45vw + 12.5px, 20px); line-height: 1.28; opacity: .82; }

.chart { margin-top: clamp(44px, 8vh, 96px); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: currentColor; stroke-opacity: .16; stroke-dasharray: 3 8; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke var(--theme-t) var(--ease); }
.chart__dot { fill: var(--accent); stroke: var(--bg); stroke-width: 4; vector-effect: non-scaling-stroke; transition: fill var(--theme-t) var(--ease), stroke var(--theme-t) var(--ease); }
.chart figcaption { margin-top: 14px; font-size: 12.5px; opacity: .72; }

/* ---------- The climb ---------- */
.climb { position: relative; --step: clamp(12px, 5.2vh, 66px); }
.climb__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.climb__ghost {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  font-weight: 900; font-stretch: 62%; font-size: min(48vh, 36vw); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px rgba(243, 239, 228, .13);
  pointer-events: none; will-change: transform;
}
.climb__track {
  position: relative; height: 100%; width: max-content;
  display: flex; align-items: flex-end; gap: clamp(48px, 7.5vw, 130px);
  padding: calc(var(--header-h) + 6px) 46vw clamp(70px, 13vh, 130px) var(--pad);
  will-change: transform;
}
.climb__curve { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.climb__line { fill: none; stroke: var(--lime); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.climb__line--bg { stroke: var(--paper); stroke-opacity: .34; stroke-width: 2.5; stroke-dasharray: 2 12; }
.climb__dot { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 4; will-change: transform; }
.climb__dot::before { content: ""; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); }
.climb__dot::after { content: ""; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--lime); animation: ping 1.8s var(--ease-out) infinite; }
.climb__goal circle { fill: none; stroke: var(--paper); stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: 50% 50%; animation: spin 14s linear infinite; }
.climb__goal circle + circle { animation-direction: reverse; }
.climb__goal text { fill: var(--paper); font-family: var(--f-d); font-weight: 900; font-stretch: 62%; font-size: 30px; }
.climb__year { position: absolute; left: 22px; top: -13px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 700; white-space: nowrap; }
.climb__bar { position: absolute; left: var(--pad); right: calc(var(--pad) + 200px); bottom: 30px; height: 3px; border-radius: 3px; background: rgba(243, 239, 228, .22); overflow: hidden; }
.climb__bar i { display: block; height: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }

.panel { position: relative; flex: none; }
.panel--intro { align-self: center; width: min(74vw, 980px); display: grid; gap: 22px; }
.panel--intro .display, .panel--outro .display { font-size: clamp(44px, min(8.4vw, 17vh), 150px); }
.panel__lead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; max-width: 46ch; font-size: clamp(17px, .5vw + 13px, 22px); line-height: 1.35; }
.climb__hint { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.climb__hint .ic { animation: nudgeX 1.4s var(--ease-io) infinite; }
@keyframes nudgeX { 50% { transform: translateX(5px); } }
.panel--outro { align-self: center; width: min(52vw, 700px); display: grid; gap: 28px; justify-items: start; }
.panel--outro .btn { --fg: var(--paper); --bg: var(--blue); --accent: var(--lime); }
.panel--outro .btn:hover { color: var(--ink); }

.chapter {
  width: clamp(330px, 43vw, 610px);
  margin-bottom: calc(var(--n) * var(--step));
  padding: clamp(18px, 2.1vw, 30px);
  background: var(--white); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: 9px 9px 0 var(--ink);
}
.chapter:nth-of-type(odd) { rotate: -1.1deg; }
.chapter:nth-of-type(even) { rotate: .9deg; }
.chapter__top { display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.chapter__top span:first-child { color: var(--blue); font-weight: 700; }
.chapter__title { margin-top: 10px; font-weight: 900; font-stretch: 66%; font-size: clamp(34px, min(4.2vw, 7.4vh), 68px); line-height: .92; letter-spacing: -.025em; }
.chapter__role { margin-top: 10px; font-size: 15px; line-height: 1.3; }
.chapter__role b { font-weight: 800; }
.chapter__text { margin-top: 10px; font-size: clamp(14.5px, 1.1vh + 8.5px, 17px); line-height: 1.42; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { padding: 5px 10px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

/* flat (mobile / reduced-motion) version of the climb */
html.climb-flat .climb { height: auto !important; }
html.climb-flat .climb__sticky { position: relative; height: auto; overflow: visible; }
html.climb-flat .climb__track { width: auto; height: auto; flex-direction: column; align-items: stretch; gap: 26px; padding: clamp(84px, 14vh, 150px) var(--pad); transform: none !important; }
html.climb-flat .climb__curve, html.climb-flat .climb__dot, html.climb-flat .climb__ghost, html.climb-flat .climb__bar, html.climb-flat .climb__hint { display: none; }
html.climb-flat .panel--intro, html.climb-flat .panel--outro { width: auto; }
html.climb-flat .panel--intro { margin-bottom: 14px; }
html.climb-flat .panel--outro { margin-top: 30px; }
html.climb-flat .chapter { width: auto; margin-bottom: 0; box-shadow: 6px 6px 0 var(--ink); }

/* ---------- Work ---------- */
.work { padding: clamp(96px, 17vh, 210px) 0 clamp(80px, 13vh, 170px); }
.work__grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.2vw, 36px); }
.case {
  --cp: clamp(18px, 2.2vw, 32px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(360px, 66vh, 520px);
  padding: var(--cp);
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: 9px 9px 0 var(--ink);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), box-shadow .35s var(--ease);
}
.case:hover { box-shadow: 14px 14px 0 var(--ink); }
.case::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(440px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .24), transparent 62%); opacity: 0; transition: opacity .35s; }
.case:hover::before { opacity: 1; }
.case--blue { background: var(--blue); color: var(--paper); --ca: var(--lime); }
.case--lime { background: var(--lime); color: var(--ink); --ca: var(--blue); }
.case--ink { background: var(--ink); color: var(--paper); --ca: var(--lime); }
.case--paper { background: var(--white); color: var(--ink); --ca: var(--blue); }
.case__body { max-width: 36ch; }
.case__tag { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.case__name { margin-top: 10px; font-weight: 880; font-stretch: 70%; font-size: clamp(32px, 1.9vw + 20px, 58px); line-height: .94; letter-spacing: -.022em; }
.case__name a { text-decoration: none; }
.case__name a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.case__desc { margin-top: 12px; font-size: clamp(15px, .3vw + 13px, 18px); line-height: 1.38; text-wrap: pretty; }
.case__stat { position: absolute; left: var(--cp); top: calc(var(--cp) - 4px); font-weight: 900; font-stretch: 62%; font-size: clamp(96px, 11vw, 190px); line-height: .8; letter-spacing: -.04em; color: var(--ca); }
.case__stat--sm { display: flex; align-items: flex-end; gap: 12px; }
.case__stat--sm small { margin-bottom: .5em; font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
.case__go { position: absolute; right: var(--cp); top: var(--cp); z-index: 2; display: grid; place-items: center; width: 54px; height: 54px; border: var(--bw) solid currentColor; border-radius: 50%; transition: background-color .3s var(--ease), color .3s var(--ease), rotate .5s var(--ease-out); }
.case__go .ic { width: 24px; height: 24px; }
.case--blue:hover .case__go { background: var(--paper); color: var(--blue); rotate: 45deg; }
.case--lime:hover .case__go { background: var(--ink); color: var(--lime); rotate: 45deg; }

/* case visuals */
.viz { position: absolute; }
.viz--bars { right: var(--cp); bottom: var(--cp); width: 30%; max-width: 230px; height: 56%; display: flex; align-items: flex-end; gap: 10%; }
.bar { flex: 1; position: relative; border: var(--bw) solid var(--ink); border-radius: 14px 14px 6px 6px; transform-origin: 50% 100%; }
.bar span { position: absolute; left: 0; right: 0; top: 10px; text-align: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.bar--a { height: 46%; background: var(--paper); }
.bar--b { height: 92%; background: var(--lime); }
html.js .bar--b { scale: 1 .5; }
html.js .case.in .bar--b { scale: 1 1; transition: scale 1.3s var(--spring) .55s; }
html.js .bar--b span { opacity: 0; }
html.js .case.in .bar--b span { opacity: 1; transition: opacity .4s linear 1.3s; }

.viz--ladder { left: var(--cp); right: calc(var(--cp) + 72px); top: var(--cp); display: grid; gap: 8px; counter-reset: row; }
.viz--ladder i { position: relative; height: 30px; border: 2px solid rgba(17, 17, 20, .32); border-radius: 999px; counter-increment: row; }
.viz--ladder i::before { content: counter(row); position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-family: var(--f-m); font-size: 11px; font-weight: 700; font-style: normal; opacity: .55; }
.viz--ladder b { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 14px; border-radius: 999px; background: var(--ink); color: var(--lime); animation: rungs 6s var(--ease-io) infinite; }
.viz--ladder b::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.viz--ladder b span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
@keyframes rungs { 0%, 12% { transform: translateY(114px); } 24%, 36% { transform: translateY(76px); } 48%, 60% { transform: translateY(38px); } 72%, 100% { transform: translateY(0); } }

.viz--lang { right: var(--cp); top: var(--cp); display: grid; justify-items: end; gap: 8px; }
.viz--lang span { padding: 7px 16px 9px; border-radius: 999px; border: 2px solid var(--paper); font-family: system-ui, "Segoe UI", sans-serif; font-size: clamp(18px, 1.5vw, 26px); font-weight: 600; line-height: 1.2; animation: chip 5.4s var(--ease) infinite; }
.viz--lang span:nth-child(1) { rotate: -4deg; }
.viz--lang span:nth-child(2) { rotate: 3deg; margin-right: 22px; animation-delay: 1.8s; }
.viz--lang span:nth-child(3) { rotate: -2deg; animation-delay: 3.6s; }
@keyframes chip { 0%, 30%, 100% { background: transparent; color: var(--paper); border-color: var(--paper); } 6%, 24% { background: var(--lime); color: var(--ink); border-color: var(--lime); } }

.viz--ring { right: var(--cp); bottom: var(--cp); width: 30%; max-width: 210px; aspect-ratio: 1; display: grid; place-items: center; }
.viz--ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.ring__bg { fill: none; stroke: rgba(17, 17, 20, .12); stroke-width: 12; }
.ring__fg { fill: none; stroke: var(--blue); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 7; }
html.js .ring__fg { stroke-dashoffset: 100; }
html.js .case.in .ring__fg { stroke-dashoffset: 7; transition: stroke-dashoffset 1.8s var(--ease-out) .5s; }
.viz--ring span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.work__also { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: clamp(34px, 6vh, 64px); padding-top: 18px; border-top: var(--bw) solid currentColor; font-weight: 750; font-stretch: 84%; font-size: clamp(19px, 1vw + 14px, 30px); line-height: 1.2; letter-spacing: -.01em; }
.work__also .mono { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }

/* ---------- Skills ---------- */
.skills { padding: clamp(96px, 17vh, 210px) 0 clamp(80px, 13vh, 170px); }
.suggest { max-width: 1120px; }
.suggest__bar { max-width: none; border-radius: 30px 30px 0 0; border-bottom-width: 0; box-shadow: none; background: transparent; }
.suggest__pre { opacity: .6; }
.suggest__list {
  display: grid; grid-template-columns: 1fr; gap: 2px 10px;
  padding: 10px;
  border: var(--bw) solid currentColor; border-radius: 0 0 30px 30px;
  box-shadow: 7px 8px 0 currentColor;
}
.sug { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 16px; font-size: clamp(16px, .45vw + 13.5px, 21px); line-height: 1.2; transition: background-color .22s var(--ease), color .22s var(--ease), padding .35s var(--ease-out); }
.sug__ic { width: 18px; height: 18px; opacity: .6; }
.sug__t { min-width: 0; }
.sug__pre { opacity: .58; }
.sug b { font-weight: 750; }
.sug__cat { margin-left: auto; padding-left: 10px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .62; white-space: nowrap; }
.sug:hover, .sug.is-active { background: var(--accent); color: var(--bg); padding-left: 20px; }
.sug:hover .sug__ic, .sug.is-active .sug__ic, .sug:hover .sug__pre, .sug.is-active .sug__pre, .sug:hover .sug__cat, .sug.is-active .sug__cat { opacity: .85; }

.tools { margin-top: clamp(64px, 11vh, 130px); }
.tools__label { margin-bottom: 18px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .72; }
.marquee--xl .marquee__track span { font-weight: 900; font-stretch: 64%; font-size: clamp(54px, 9.4vw, 160px); line-height: .98; letter-spacing: -.02em; }
.marquee--xl .marquee__track > * { margin-right: clamp(22px, 3vw, 54px); }
.marquee--xl .marquee__track .ic { width: clamp(24px, 3.4vw, 56px); height: clamp(24px, 3.4vw, 56px); }
.marquee--outline .marquee__track span { color: transparent; -webkit-text-stroke: 2px var(--fg); }

.edu { display: grid; gap: 18px; margin-top: clamp(64px, 11vh, 130px); }
.edu__label { font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; opacity: .72; }
.edu__row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 20px; padding: 20px 0; border-top: var(--bw) solid currentColor; }
.edu__row:last-child { border-bottom: var(--bw) solid currentColor; }
.edu__deg { grid-row: span 2; font-weight: 900; font-stretch: 62%; font-size: clamp(52px, 6vw, 100px); line-height: .85; letter-spacing: -.03em; color: var(--accent); transition: color var(--theme-t) var(--ease); }
.edu__what { display: grid; gap: 4px; font-size: 15px; line-height: 1.35; opacity: .86; }
.edu__what b { font-weight: 800; font-stretch: 86%; font-size: clamp(19px, .6vw + 15px, 27px); line-height: 1.1; letter-spacing: -.01em; }
.edu__when { font-size: 12.5px; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(96px, 17vh, 210px) 0; }
.faq__wrap { display: grid; gap: 10px; }
.qa { border-top: var(--bw) solid currentColor; }
.qa:last-child { border-bottom: var(--bw) solid currentColor; }
.qa__q {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 0;
  font-weight: 760; font-stretch: 82%; font-size: clamp(21px, 1.1vw + 15px, 35px); line-height: 1.08; letter-spacing: -.015em;
  transition: padding .45s var(--ease-out), color .3s var(--ease);
}
.qa__q:hover { padding-left: 12px; color: var(--accent); }
.qa__q:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.qa__ic { position: relative; flex: none; width: 42px; height: 42px; border: var(--bw) solid currentColor; border-radius: 50%; transition: rotate .55s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; border-radius: 2px; background: currentColor; translate: -50% -50%; transition: rotate .45s var(--ease-out); }
.qa__ic::after { rotate: 90deg; }
.qa.is-open .qa__ic { rotate: 180deg; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qa.is-open .qa__ic::after { rotate: 0deg; }
html.js .qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
html.js .qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { max-width: 58ch; padding: 0 60px 26px 0; font-size: clamp(16px, .3vw + 14.5px, 19.5px); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding-top: clamp(96px, 17vh, 210px); }
.contact__wrap { position: relative; }
.contact__title { margin-top: 20px; }
.contact__lead { margin-top: clamp(18px, 3vh, 34px); max-width: 44ch; font-size: clamp(17px, .55vw + 13px, 22px); line-height: 1.38; }
.contact__mail {
  position: relative; z-index: 2;
  display: inline-block; margin-top: clamp(30px, 6vh, 70px); padding-bottom: .1em;
  font-weight: 800; font-stretch: 62%;
  font-size: clamp(24px, 6.9vw, 150px);
  line-height: 1; letter-spacing: -.02em; white-space: nowrap; text-decoration: none;
  border-bottom: .055em solid currentColor;
  transition: color .3s var(--ease);
}
.contact__mail:hover { color: var(--accent); }
.contact__mail .ch { display: inline-block; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 5vh, 54px); }
.contact__eye { position: absolute; right: var(--pad); top: clamp(0px, 5vh, 60px); width: clamp(96px, 17vw, 270px); rotate: 8deg; }
.contact__eye .eye { width: 100%; height: auto; overflow: visible; filter: drop-shadow(6px 7px 0 rgba(17, 17, 20, .16)); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(70px, 13vh, 150px); padding: 18px var(--pad) 84px; border-top: var(--bw) solid currentColor; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.footer a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- Rank badge (scroll progress) ---------- */
.rank {
  position: fixed; right: var(--pad); bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 13px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  transition: background-color .6s var(--ease), color .6s var(--ease), scale .5s var(--spring);
  pointer-events: none;
}
html.js .rank { opacity: 0; }
html.loaded .rank { animation: fadeUp .8s var(--ease-out) 1.5s both; }
@keyframes fadeUp { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.rank__label { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.rank__num { min-width: 2.9ch; font-weight: 900; font-stretch: 68%; font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.rank.is-top { background: var(--accent); scale: 1.12; }
body[data-theme="lime"] .rank.is-top { color: var(--white); }
html.menu-open .rank { opacity: 0 !important; }
.confetti { position: fixed; left: 0; top: 0; z-index: 950; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 900; display: none; pointer-events: none; opacity: 0; transition: opacity .3s; }
html.has-cursor .cursor { display: block; }
.cursor.is-on { opacity: 1; }
.cursor__ring {
  position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 2px solid var(--fg); border-radius: 999px;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .3s var(--ease), border-color .3s var(--ease);
}
.cursor.is-link .cursor__ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-color: var(--accent); }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: 14px 0 0 14px; background: var(--accent); border-color: var(--accent); }
.cursor__label { max-width: 76px; font-family: var(--f-m); font-size: 11.5px; font-weight: 700; line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: .04em; color: var(--bg); opacity: 0; transition: opacity .2s; }
body[data-theme="paper"] .cursor__label, body[data-theme="lime"] .cursor__label { color: var(--white); }
.cursor.has-label .cursor__label { opacity: 1; }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 640px) {
  .suggest__list { grid-template-columns: 1fr 1fr; }
  .edu__row { grid-template-columns: minmax(120px, auto) 1fr auto; }
  .edu__deg { grid-row: auto; }
}
@media (min-width: 821px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .sitelinks { grid-template-columns: repeat(4, 1fr); }
  .work__grid { grid-template-columns: repeat(12, 1fr); }
  .case { grid-column: span 7; }
  .case:nth-child(2), .case:nth-child(3) { grid-column: span 5; }
  .faq__wrap { grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
  .faq .sec-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
  .edu { grid-template-columns: minmax(150px, 1fr) 4fr; }
}
@media (min-width: 900px) {
  .br-d { display: inline; }
  .br-m { display: none; }
  .hero__big { font-size: clamp(74px, min(12.4vw, 21.5vh + 4px), 230px); }
  .hero__cue { display: flex; }
  .sitelinks { max-width: 68%; }
  .hero__search .searchbar { max-width: min(780px, 60%); }
  .st-eye { right: 5%; top: 21%; width: clamp(150px, 17vw, 280px); max-width: none; }
  .st-one { display: block; right: 25.5%; top: 9%; width: clamp(92px, 9.2vw, 152px); }
  .st-2x { display: block; right: 15%; top: 60%; --rot: -5deg; }
  .st-93 { display: block; right: 2.5%; top: 74%; --rot: 4deg; }
}
@media (min-width: 1500px) {
  .sitelinks { max-width: 62%; }
}

/* =========================================================
   Smaller screens
   ========================================================= */
@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .searchbar__key { display: none; }
  .qa__a p { padding-right: 0; }
  .case { min-height: 450px; }
  .viz--bars { top: calc(var(--cp) + 72px); bottom: auto; width: 36%; height: 140px; }
  .viz--ring { top: var(--cp); bottom: auto; width: 31%; }
  .hero__eyebrow { max-width: 68%; }
  .contact__eye { top: -34px; }
  .rank { bottom: 12px; padding: 6px 12px 6px 11px; }
  .rank__num { font-size: 19px; }
}
@media (max-width: 480px) {
  .sug__cat { display: none; }
  .hero__crumb { font-size: 11.5px; }
  .chapter__top { flex-direction: column; gap: 4px; }
}
@media (max-height: 640px) and (min-width: 900px) {
  .chapter { padding: 16px 20px; }
  .chapter__role { font-size: 14px; margin-top: 8px; }
  .chapter__text { margin-top: 8px; }
  .tags { margin-top: 10px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .loader { display: none; }
}

/* =========================================================
   v6 — HINCOL wide case, built websites, services
   ========================================================= */
.case--wide { min-height: clamp(300px, 48vh, 400px); }
.case--wide .case__body { max-width: 52ch; }
.viz--stack { left: var(--cp); top: var(--cp); right: calc(var(--cp) + 72px); display: flex; flex-wrap: wrap; gap: 8px; }
.viz--stack span { padding: 9px 18px; border: 2px solid var(--ink); border-radius: 999px; font-size: clamp(13px, .5vw + 10px, 17px); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; animation: chipInk 7.2s var(--ease) infinite; }
.viz--stack span:nth-child(1) { rotate: -3deg; }
.viz--stack span:nth-child(2) { rotate: 2deg; animation-delay: 1.8s; }
.viz--stack span:nth-child(3) { rotate: -2deg; animation-delay: 3.6s; }
.viz--stack span:nth-child(4) { rotate: 3deg; animation-delay: 5.4s; }
@keyframes chipInk { 0%, 26%, 100% { background: transparent; color: var(--ink); } 5%, 21% { background: var(--ink); color: var(--lime); } }

.built { margin-top: clamp(64px, 11vh, 130px); }
.built__head { display: grid; gap: 16px; margin-bottom: clamp(26px, 4.5vh, 48px); }
.built__title { font-weight: 850; font-stretch: 70%; font-size: clamp(38px, 5.4vw, 96px); line-height: .92; letter-spacing: -.026em; }
.built__title em { font-family: var(--f-s); font-style: italic; font-weight: 400; font-stretch: normal; font-size: 1.04em; color: var(--accent); }
.built__grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.2vw, 36px); }

.site { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 9px 9px 0 var(--ink); transition: box-shadow .35s var(--ease), translate .35s var(--ease); }
.site:hover { box-shadow: 14px 14px 0 var(--ink); translate: -2px -2px; }
.site__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); background: var(--paper); font-size: 12px; }
.site__dots { display: flex; gap: 6px; flex: none; }
.site__dots i { width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; }
.site__dots i:first-child { background: var(--blue); }
.site__dots i:nth-child(2) { background: var(--lime); }
.site__url { flex: 1; min-width: 0; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site__status { flex: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.site__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.site__status--live::before { background: #22C55E; border-color: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { to { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } }
.site__body { flex: 1; padding: clamp(20px, 2.4vw, 34px); padding-right: clamp(20px, 2.4vw, 34px); }
.site__name { margin-top: 10px; padding-right: 64px; font-weight: 880; font-stretch: 70%; font-size: clamp(32px, 1.9vw + 20px, 58px); line-height: .94; letter-spacing: -.022em; }
.site__name a { text-decoration: none; }
.site__name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.site__desc { margin-top: 12px; max-width: 44ch; font-size: clamp(15px, .3vw + 13px, 18px); line-height: 1.4; text-wrap: pretty; }
.site .tags { margin-top: 18px; }
.site__go { position: absolute; right: clamp(20px, 2.4vw, 34px); top: 74px; display: grid; place-items: center; width: 54px; height: 54px; border: var(--bw) solid var(--ink); border-radius: 50%; transition: background-color .3s var(--ease), color .3s var(--ease), rotate .5s var(--ease-out); }
.site__go .ic { width: 24px; height: 24px; }
.site:hover .site__go { background: var(--blue); color: var(--white); rotate: 45deg; }
.site--soon { background: var(--paper); border-style: dashed; }
.site--soon .site__bar { border-bottom-style: dashed; background: transparent; }
.site__skel { display: grid; gap: 9px; padding: 0 clamp(20px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px); }
.site__skel i { height: 12px; border-radius: 999px; background: linear-gradient(90deg, rgba(17, 17, 20, .1) 0 35%, rgba(37, 64, 255, .45) 50%, rgba(17, 17, 20, .1) 65% 100%); background-size: 260% 100%; animation: skel 2.4s linear infinite; }
.site__skel i:nth-child(2) { width: 78%; animation-delay: .2s; }
.site__skel i:nth-child(3) { width: 52%; animation-delay: .4s; }
@keyframes skel { from { background-position: 130% 0; } to { background-position: -130% 0; } }

.services { padding: clamp(96px, 17vh, 210px) 0 clamp(80px, 13vh, 170px); }
.services__lead { max-width: 46ch; font-size: clamp(18px, .7vw + 14px, 26px); line-height: 1.35; text-wrap: pretty; }
.svc-list { border-top: var(--bw) solid currentColor; }
.svc { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: baseline; padding: clamp(20px, 3.4vh, 34px) 0; border-bottom: var(--bw) solid currentColor; }
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--ink); scale: 1 0; transform-origin: 50% 100%; transition: scale .45s var(--ease-out); }
.svc__n { font-size: 12.5px; font-weight: 700; opacity: .75; }
.svc__t { font-weight: 850; font-stretch: 70%; font-size: clamp(30px, 3.6vw + 8px, 76px); line-height: .94; letter-spacing: -.024em; transition: translate .45s var(--ease-out), color .3s var(--ease); }
.svc__b { grid-column: 1 / -1; display: grid; gap: 4px; }
.svc__b p { max-width: 46ch; font-size: clamp(15px, .3vw + 13px, 18px); line-height: 1.42; opacity: .92; text-wrap: pretty; }
.services .work__also { border-top: 0; padding-top: 0; }
@media (hover: hover) {
  .svc:hover::before { scale: 1 1; }
  .svc:hover .svc__t { translate: 14px 0; color: var(--lime); }
}

@media (min-width: 821px) {
  .case--wide { grid-column: 1 / -1; }
  .built__grid { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 64px minmax(0, 6fr) minmax(0, 5fr); gap: 0 clamp(20px, 3vw, 56px); align-items: center; }
  .svc__b { grid-column: auto; }
}
@media (max-width: 820px) {
  .case--wide { min-height: 400px; }
  .site__go { display: none; }
  .site__name { padding-right: 0; }
}
@media (max-width: 480px) {
  .site__status { font-size: 10px; }
  .site__url { padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .viz--stack span, .site__skel i, .site__status--live::before { animation: none; }
}
.services { isolation: isolate; }
.site__name, .built__title, .svc__t { margin-bottom: 0; }
.site__name { margin-top: 10px; }

/* v9: two-part hero headline */
.hl--2::before { transition-delay: 1.5s, 0s; }
