/* ==========================================================================
   Raj Singh Chauhan — portfolio
   Ink-dark, champagne-gold, a little violet. Hand-written, no framework.
   ========================================================================== */

:root {
  --bg: #08080b;
  --bg-2: #0e0e13;
  --bg-3: #15151c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ede9e1;
  --muted: #a39eaa;
  --dim: #6b6773;
  --gold: #d9b779;
  --gold-2: #f3dcae;
  --gold-3: #a8834a;
  --violet: #9d8cff;
  --rose: #e57d8f;
  --teal: #7cd6c4;

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --radius: 22px;
  --pad: clamp(20px, 5vw, 48px);
  --max: 1180px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 80px; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
strong, b { font-weight: 500; }
::selection { background: rgba(217, 183, 121, 0.32); color: #fff; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
kbd {
  font: 500 0.85em var(--mono);
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 3000;
  padding: 10px 16px; background: var(--gold); color: #111; border-radius: 8px;
  text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 16px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); }
.t-dim { color: var(--dim); }

/* ambient light + film grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(157, 140, 255, 0.07), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 45%, rgba(217, 183, 121, 0.05), transparent 60%),
    radial-gradient(60vmax 50vmax at 110% 110%, rgba(124, 214, 196, 0.04), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- custom cursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 4000; pointer-events: none;
  border-radius: 50%; opacity: 0; transition: opacity 0.3s;
  will-change: transform;
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-2); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(217, 183, 121, 0.55);
  transition: opacity 0.3s, background-color 0.3s, border-color 0.3s;
}
.cursor-ring.is-hover { background: rgba(217, 183, 121, 0.08); border-color: rgba(243, 220, 174, 0.8); }
.cursor-ring.is-down { background: rgba(217, 183, 121, 0.2); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2500; background: var(--bg);
  display: none; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.js .loader { display: grid; }
.loaded .loader { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }
.loader__num { font-family: var(--serif); font-size: clamp(72px, 12vw, 132px); line-height: 1; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.loader__num small { font: 400 12px var(--mono); color: var(--muted); letter-spacing: 0.2em; margin-left: 10px; text-transform: uppercase; }
.loader__bar { width: 220px; height: 1px; margin: 0 auto; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(217, 183, 121, 0.6);
}

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c9a362); color: #1b150a; border-color: transparent; }
.btn--gold:hover { box-shadow: 0 14px 44px -12px rgba(217, 183, 121, 0.6); }
.btn--ghost:hover { border-color: rgba(217, 183, 121, 0.6); color: var(--gold-2); background: rgba(217, 183, 121, 0.05); }
.btn--sm { --h: 38px; padding: 0 18px; font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, transform 0.6s var(--ease), opacity 0.4s;
}
.nav.scrolled {
  padding-block: 13px;
  background: rgba(8, 8, 11, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 183, 121, 0.45);
  font-family: var(--serif); font-size: 22px; color: var(--gold-2);
  transition: transform 0.6s var(--ease), border-color 0.3s;
}
.logo__mark em { font-style: italic; transform: translateY(1px); }
.logo__mark i {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid transparent; border-top-color: var(--gold);
  animation: orbit 6s linear infinite;
}
.logo:hover .logo__mark { border-color: var(--gold); }
.logo.nudge .logo__mark { animation: nudge 0.35s var(--ease); }
.logo__text { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--text); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--muted); text-decoration: none; transition: color 0.3s, background 0.3s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__menu { display: none; }

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0; translate: 0 30px;
  transition: opacity 1s var(--ease) var(--d, 0ms), translate 1.1s var(--ease) var(--d, 0ms);
}
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .hero-in { opacity: 0; translate: 0 18px; transition: opacity 1.1s var(--ease) var(--d, 0ms), translate 1.1s var(--ease) var(--d, 0ms); }
.js.loaded .hero-in { opacity: 1; translate: 0 0; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 168px) 0; }
.sec-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
  font: 500 11.5px var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.sec-head::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sec-head--center { justify-content: center; }
.sec-head--center::before { content: ""; width: 64px; height: 1px; background: linear-gradient(270deg, var(--line-2), transparent); }
.sec-num { color: var(--gold); }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.018em;
  margin-bottom: 0.5em; text-wrap: balance;
}
.display em, .word--accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 35%, #b98f52 60%, var(--gold-2) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
  padding-right: 0.1em;
  margin-right: -0.1em;
}
.card {
  position: relative; isolation: isolate;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: clamp(24px, 3vw, 34px);
}
/* pointer spotlight + glowing border */
.spot::before, .spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.45s;
}
.spot::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 183, 121, 0.09), transparent 45%);
}
.spot::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(243, 220, 174, 0.55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease), border-color 0.3s; }

.bullets li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.bullets li + li { margin-top: 10px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--gold); }
.bullets strong { color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  font: 500 11.5px var(--mono); letter-spacing: 0.02em; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 28% 52%, rgba(8, 8, 11, 0.72) 0%, rgba(8, 8, 11, 0.25) 55%, transparent 80%),
    linear-gradient(to bottom, rgba(8, 8, 11, 0.4) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero__inner { padding-top: 130px; padding-bottom: 120px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(8, 8, 11, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2.4s infinite; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.7rem, 12.5vw, 11.5rem); line-height: 0.9; letter-spacing: -0.03em;
  margin: 30px 0 28px;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 0.08em 0.08em 0; margin-bottom: -0.08em; }
.hero__title .word { display: inline-block; white-space: pre; }
.js .hero__title .word { transform: translateY(108%); transition: transform 1.3s var(--ease); }
.js .hero__title .line + .line .word { transition-delay: 0.12s; }
.js.loaded .hero__title .word { transform: none; }
.hero__role { font-size: clamp(1.02rem, 1.55vw, 1.25rem); color: var(--text); opacity: 0.86; max-width: 46ch; line-height: 1.6; }
.hero__typed { font-size: 13.5px; color: var(--muted); margin: 18px 0 38px; min-height: 1.7em; }
.prompt { color: var(--gold); }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: var(--gold); animation: blink 1.05s steps(1) infinite; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); }
.hero__scroll i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s var(--ease) infinite; }
.hero__set { text-transform: none; letter-spacing: 0.04em; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about__lead p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.about__lead p + p { margin-top: 1.1em; }
.about__lead strong { color: var(--text); }
.about__card { display: grid; gap: 26px; margin-top: 10px; }
.kv { display: grid; gap: 8px; }
.kv + .kv { padding-top: 24px; border-top: 1px solid var(--line); }
.kv__k { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.kv b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; margin-bottom: 4px; }
.kv span:not(.kv__k) { display: block; color: var(--muted); font-size: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 9vw, 110px);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stat { position: relative; padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.stat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, rgba(217, 183, 121, 0.08), transparent 60%);
  opacity: 0; transition: opacity 0.5s;
}
.stat:hover::before { opacity: 1; }
.stat__num { font-family: var(--serif); font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num i { font-style: normal; color: var(--gold); margin-left: 3px; }
.stat__num i.pre { margin: 0 3px 0 0; }
.stat__label { margin-top: 14px; color: var(--text); opacity: 0.9; font-size: 14.5px; }
.stat__label .mono { display: block; margin-top: 4px; font-size: 11.5px; color: var(--dim); letter-spacing: 0.02em; }

/* ==========================================================================
   EXPERIENCE / TIMELINE
   ========================================================================== */
.timeline { --meta: 200px; --gap: 72px; position: relative; margin-top: clamp(40px, 6vw, 70px); }
.timeline__rail { position: absolute; top: 10px; bottom: 40px; left: calc(var(--meta) + var(--gap) / 2); width: 1px; background: var(--line); transform: translateX(-50%); }
.timeline__rail i { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(var(--gold-2), var(--gold) 60%, var(--violet)); box-shadow: 0 0 14px rgba(217, 183, 121, 0.7); }
.job { position: relative; display: grid; grid-template-columns: var(--meta) 1fr; column-gap: var(--gap); padding-bottom: 44px; }
.job::before {
  content: ""; position: absolute; top: 36px; left: calc(var(--meta) + var(--gap) / 2);
  width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px var(--bg);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.job.lit::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px var(--bg), 0 0 18px var(--gold); }
.job__meta { padding-top: 26px; text-align: right; display: flex; flex-direction: column; gap: 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--dim); }
.job__date { color: var(--text); font-size: 13px; }
.job__co { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.1; display: flex; align-items: center; gap: 12px; }
.now { font: 600 9.5px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(124, 214, 196, 0.35); background: rgba(124, 214, 196, 0.06); }
.job__role { color: var(--gold-2); opacity: 0.85; font-size: 14.5px; margin: 6px 0 20px; }

/* ==========================================================================
   RESEARCH
   ========================================================================== */
.research::before {
  content: ""; position: absolute; inset: 10% 0 auto 40%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(157, 140, 255, 0.07), transparent);
}
.paper { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.paper__venue { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.display--paper { font-size: clamp(2.1rem, 3.7vw, 3.4rem); line-height: 1.06; }
.paper__lede { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.paper__text strong { color: var(--text); }
.sizes { margin: 34px 0; display: grid; gap: 14px; max-width: 520px; }
.size__row { display: grid; grid-template-columns: 74px 1fr 76px; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.size__row > :last-child { text-align: right; color: var(--text); }
.size__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.size__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4b4855, #77737f); transition: width 1.8s var(--ease) 0.3s; }
.size__row--gold .size__bar i { background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); box-shadow: 0 0 12px rgba(217, 183, 121, 0.6); transition-delay: 0.9s; }
.size__row--gold > :last-child { color: var(--gold-2); }
.sizes.in .size__bar i { width: var(--w); }
.paper__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.paper__doi { font-size: 11.5px; color: var(--dim); line-height: 1.7; }

.quant__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.quant__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.quant__tabs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.quant__tabs button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font: 500 11.5px var(--mono); color: var(--muted); transition: color 0.3s, background 0.3s;
}
.quant__tabs button:hover { color: var(--text); }
.quant__tabs button[aria-selected="true"] { color: #1b150a; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.quant__grid { --cols: 24; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; margin: 24px 0 22px; }
.cell {
  aspect-ratio: 1; border-radius: 3px; background-color: rgba(255, 255, 255, 0.05);
  display: grid; place-items: center; font: 600 8.5px/1 var(--mono); color: rgba(8, 8, 11, 0.6);
  transition: background-color 0.7s var(--ease) var(--delay, 0ms), transform 0.3s var(--ease);
}
.cell:hover { transform: scale(1.35); position: relative; z-index: 1; }
.quant.is-ternary .cell::after { content: attr(data-t); }
.quant__readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.quant__readout > div { background: var(--bg-2); padding: 14px 16px; }
.quant__readout span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.quant__readout b { display: block; margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--text); }
.quant__readout b.flip { animation: flipIn 0.5s var(--ease); }
.quant__note { margin-top: 16px; font-size: 11.5px; color: var(--dim); line-height: 1.7; }
.quant__note b { color: var(--gold); font-weight: 500; }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: clamp(30px, 5vw, 56px); }
.project--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project__idx { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.project__link { font-size: 12px; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.project__link:hover { color: var(--gold-2); border-color: rgba(217, 183, 121, 0.5); }
.project h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.08; margin: 22px 0 10px; text-wrap: balance; }
.project__stack { font-size: 12px; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 22px; }
.project__kpis { display: flex; gap: 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.project__kpis b { color: var(--text); font-weight: 500; margin-right: 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.metrics > div { background: var(--bg-2); padding: 18px 16px; }
.metrics b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--gold-2); }
.metrics b small { font-family: var(--mono); font-size: 11px; margin-left: 3px; color: var(--muted); }
.metrics span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.packviz { margin-top: 18px; padding: 20px; border-radius: 16px; border: 1px dashed var(--line-2); text-align: center; font-size: 12px; color: var(--muted); }
.packviz__label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.packviz__w, .packviz__b { display: flex; justify-content: center; gap: 8px; }
.pw { width: 44px; padding: 8px 0; border-radius: 8px; font-weight: 600; font-size: 13px; transition: background 0.4s, color 0.4s; }
.pw[data-v="1"] { background: rgba(217, 183, 121, 0.16); color: var(--gold-2); }
.pw[data-v="0"] { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.pw[data-v="-1"] { background: rgba(229, 125, 143, 0.16); color: var(--rose); }
.pw.flip, .pb.flip { animation: flipIn 0.5s var(--ease) both; }
.packviz__arrow { margin: 10px 0; color: var(--dim); font-size: 11px; }
.packviz__b { gap: 2px; padding: 8px 10px; margin: 0 auto; width: fit-content; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.pb { width: 30px; color: var(--text); font-weight: 600; letter-spacing: 0.06em; }
.pb + .pb { border-left: 1px solid var(--line); }
.packviz__cap { margin-top: 12px; color: var(--dim); font-size: 11px; }

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-sec { padding-top: 40px; }
.marquee { overflow: hidden; padding: 30px 0 clamp(70px, 10vw, 120px); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 48s linear infinite; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.2; white-space: nowrap; }
.marquee__track span { color: var(--text); opacity: 0.9; }
.marquee__track span.o { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(237, 233, 225, 0.35); }
.marquee__track i { font-style: normal; font-size: 0.4em; color: var(--gold); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: clamp(26px, 4vw, 44px); }
.skill h3 { display: flex; align-items: baseline; gap: 12px; font-size: 16px; font-weight: 500; margin-bottom: 20px; }
.skill h3 .mono { font-size: 11px; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.chips li:hover { border-color: rgba(217, 183, 121, 0.55); color: var(--gold-2); background: rgba(217, 183, 121, 0.06); transform: translateY(-2px); }

/* ==========================================================================
   HONOURS
   ========================================================================== */
.honors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); margin-top: clamp(20px, 4vw, 40px); }
.honor-col__h { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.honor-list li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease); }
.honor-list li:hover { padding-left: 8px; }
.honor-list .honor__k { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--gold-2); }
.honor-list b { display: block; font-size: 16px; color: var(--text); }
.honor-list b a { text-decoration: none; border-bottom: 1px solid rgba(217, 183, 121, 0.4); }
.honor-list b a:hover { color: var(--gold-2); }
.honor-list span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ==========================================================================
   CONTACT / FOOTER
   ========================================================================== */
.contact { text-align: center; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: min(900px, 120vw); aspect-ratio: 1; z-index: -1; pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(217, 183, 121, 0.09), rgba(157, 140, 255, 0.04) 55%, transparent);
}
.contact__title { font-size: clamp(2.7rem, 7.4vw, 6.4rem); margin-bottom: 0.45em; }
.contact__email {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  border: 0; background: none; cursor: pointer; padding: 6px 4px 14px;
  font-family: var(--serif); font-size: clamp(1.35rem, 3.5vw, 2.6rem); color: var(--text);
}
.contact__email > span { position: relative; overflow-wrap: anywhere; }
.contact__email > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0.25); transition: transform 0.6s var(--ease); }
.contact__email:hover > span::after { transform: scaleX(1); }
.contact__email i { font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); transition: color 0.3s; }
.contact__email:hover i { color: var(--gold); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0 34px; font-size: 13px; color: var(--dim); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__secret { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 11.5px; color: var(--dim); transition: color 0.3s; }
.footer__secret:hover { color: var(--gold-2); }
.footer__built { font-size: 11.5px; }

/* ==========================================================================
   TOASTS / EGG BADGE
   ========================================================================== */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 2200; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  max-width: min(390px, calc(100vw - 40px)); padding: 14px 18px 14px 14px;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(16, 16, 22, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  font-size: 13.5px; line-height: 1.5;
  transform: translateX(24px) scale(0.98); opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.45s;
}
.toast.show { transform: none; opacity: 1; }
.toast.hide { transform: translateX(24px); opacity: 0; }
.toast b { display: block; color: var(--text); font-weight: 500; }
.toast p { color: var(--muted); margin-top: 2px; }
.toast a { color: var(--gold-2); }
.toast__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(217, 183, 121, 0.12); color: var(--gold); font-size: 14px; }
.toast--egg { border-color: rgba(217, 183, 121, 0.4); }
.toast--warn .toast__icon { background: rgba(229, 125, 143, 0.14); color: var(--rose); }

.egg-badge {
  position: fixed; left: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(217, 183, 121, 0.35);
  background: rgba(16, 16, 22, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 12px var(--mono); letter-spacing: 0.06em; color: var(--gold-2); cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.egg-badge:hover { border-color: var(--gold); transform: translateY(-2px); }
.egg-badge[hidden] { display: none; }
.egg-badge__t { color: var(--dim); }
.egg-badge.pop { animation: pop 0.7s var(--ease); }

/* ==========================================================================
   TERMINAL
   ========================================================================== */
.term { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.term.open { visibility: visible; }
.term__backdrop { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.35s; }
.term.open .term__backdrop { opacity: 1; }
.term__win {
  position: relative; width: min(780px, 100%); height: min(500px, 76vh);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(rgba(11, 11, 15, 0.96), rgba(11, 11, 15, 0.96)) padding-box,
              linear-gradient(135deg, rgba(217, 183, 121, 0.7), rgba(157, 140, 255, 0.5) 50%, rgba(124, 214, 196, 0.5)) border-box;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translateY(16px) scale(0.97); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.term.open .term__win { transform: none; opacity: 1; }
.term__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.term__dots { display: flex; gap: 7px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a44; }
.term__dots i:first-child { background: var(--rose); cursor: pointer; }
.term__dots i:nth-child(2) { background: var(--gold); }
.term__dots i:nth-child(3) { background: var(--teal); }
.term__title { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.term__x { border: 1px solid var(--line-2); background: none; border-radius: 6px; padding: 2px 8px; font: 500 10.5px var(--mono); color: var(--dim); cursor: pointer; }
.term__x:hover { color: var(--text); }
.term__body { flex: 1; overflow-y: auto; padding: 16px 18px 20px; font: 400 13px/1.62 var(--mono); color: #d7d2c8; scrollbar-width: thin; scrollbar-color: #2a2a33 transparent; }
.term__row { white-space: pre-wrap; word-break: break-word; min-height: 1.62em; }
.term__row pre { margin: 0; font: inherit; white-space: pre; overflow-x: auto; }
.term__row a { color: var(--teal); text-decoration: none; border-bottom: 1px dotted rgba(124, 214, 196, 0.5); }
.term__row a:hover { color: #a8efe1; }
.term__line { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
@media (pointer: coarse) { .term__in { font-size: 16px; } }
.term__in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; caret-color: var(--gold); padding: 0; }
.term__ps1 { white-space: nowrap; }
.t-gold { color: var(--gold); } .t-gold2 { color: var(--gold-2); } .t-violet { color: var(--violet); }
.t-rose { color: var(--rose); } .t-teal { color: var(--teal); } .t-muted { color: var(--muted); }
.t-cmd { color: var(--text); }
.t-b { font-weight: 600; color: var(--text); }

/* ==========================================================================
   ROBO RACE
   ========================================================================== */
.race { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 14px; visibility: hidden; }
.race.open { visibility: visible; }
.race__backdrop { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.race.open .race__backdrop { opacity: 1; }
.race__win {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 12px 14px; border-radius: 16px; border: 1px solid rgba(217, 183, 121, 0.35);
  background: rgba(11, 11, 15, 0.97); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  transform: scale(0.96); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s;
}
.race.open .race__win { transform: none; opacity: 1; }
.race__bar { width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 4px; }
.race__x { border: 1px solid var(--line-2); background: none; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; color: var(--dim); cursor: pointer; }
.race__canvas { width: min(360px, 88vw, calc(74vh * 0.6)); height: auto; border-radius: 10px; touch-action: none; }
.race__help { font-size: 10.5px; color: var(--dim); text-align: center; max-width: 360px; }

/* ==========================================================================
   EASTER-EGG MODES
   ========================================================================== */
/* 1.58-bit mode: every colour channel quantised to three levels */
.ternary main, .ternary .nav, .ternary .footer { filter: url(#ternary-filter); }

/* sudo shake */
main.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97); }

/* rm -rf / */
main > section, .footer { transition: transform 1s var(--ease) var(--dl, 0ms), opacity 1s var(--dl, 0ms); }
.rmrf main > section, .rmrf .nav, .rmrf .footer {
  transform: translateY(115vh) rotate(var(--r, 8deg)); opacity: 0.3;
  transition: transform 1.25s var(--ease-in) var(--dl, 0ms), opacity 1.25s var(--dl, 0ms);
}
.panic {
  position: fixed; inset: 0; z-index: 2400; padding: clamp(24px, 5vw, 60px);
  background: #000; color: #cfc9bd; font-size: clamp(12px, 1.5vw, 15px); line-height: 1.8;
  opacity: 0; transition: opacity 0.5s;
}
.panic.show { opacity: 1; }
.panic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.panic .row { white-space: pre-wrap; }
.panic .bar { display: inline-block; width: min(340px, 60vw); height: 10px; margin: 0 10px 0 0; vertical-align: middle; border: 1px solid var(--gold-3); }
.panic .bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.panic .skip-hint { position: absolute; right: 24px; bottom: 20px; color: #555; font-size: 11px; }

/* Hyprland tiling mode */
@property --hypr-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.waybar {
  position: fixed; top: 8px; left: 12px; right: 12px; z-index: 55; height: 36px;
  display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(14, 14, 19, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 500 11.5px var(--mono); color: var(--muted);
}
.hypr .waybar { display: flex; animation: dropIn 0.5s var(--ease); }
.waybar__ws { display: flex; gap: 4px; }
.waybar__ws a { width: 26px; height: 24px; display: grid; place-items: center; border-radius: 7px; text-decoration: none; color: var(--dim); transition: background 0.3s, color 0.3s, width 0.3s var(--ease); }
.waybar__ws a.active { width: 40px; color: #1b150a; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.waybar__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waybar__right { display: flex; gap: 14px; white-space: nowrap; }
.waybar__right span:last-child { color: var(--text); }
.hypr .nav { transform: translateY(-120%); opacity: 0; pointer-events: none; }
.hypr .progress { opacity: 0; }
.hypr main { padding: 54px 12px 0; }
.hypr .footer { margin: 0 12px 12px; border: 2px solid var(--line-2); border-radius: 16px; }
.hypr main > section {
  margin-bottom: 12px; border-radius: 16px; overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(var(--line-2), var(--line-2)) border-box;
  animation: hyprIn 0.5s var(--ease) both;
}
.hypr main > section:hover {
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              conic-gradient(from var(--hypr-angle), var(--gold), var(--violet), var(--teal), var(--gold)) border-box;
  animation: hyprIn 0.5s var(--ease) both, hyprSpin 4s linear infinite;
}
.hypr .hero { min-height: calc(100svh - 66px); }

/* confetti layer */
.confetti { position: fixed; inset: 0; z-index: 2300; pointer-events: none; width: 100%; height: 100%; }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes sheen { to { background-position: -220% center; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes nudge { 40% { transform: scale(0.86) rotate(-12deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 214, 196, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(124, 214, 196, 0); } }
@keyframes drip { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flipIn { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
@keyframes dropIn { from { transform: translateY(-20px); opacity: 0; } }
@keyframes hyprIn { from { transform: scale(0.965); opacity: 0.4; } }
@keyframes hyprSpin { to { --hypr-angle: 360deg; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .paper { grid-template-columns: 1fr; }
  .project--feature { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__card { max-width: 560px; }
}

@media (max-width: 820px) {
  .logo__text { display: none; }
  .nav__menu {
    display: grid; place-items: center; gap: 5px; width: 40px; height: 40px; padding: 0;
    border-radius: 50%; border: 1px solid var(--line-2); background: rgba(8, 8, 11, 0.5); cursor: pointer;
  }
  .nav__menu span { display: block; width: 16px; height: 1px; background: var(--text); transition: transform 0.4s var(--ease); }
  .nav__menu { align-content: center; }
  .nav-open .nav__menu span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-open .nav__menu span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  .nav-open .nav__links { opacity: 1; visibility: visible; }
  /* backdrop-filter/filter would trap the fixed overlay inside the nav bar */
  .nav-open .nav { -webkit-backdrop-filter: none; backdrop-filter: none; filter: none; background: transparent; border-bottom-color: transparent; }
  .nav__links a { font-family: var(--serif); font-size: 2.4rem; color: var(--text); padding: 6px 18px; }
  .nav__links a.active::after { bottom: 50%; left: auto; right: -6px; }

  .hero__foot .hero__set { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .timeline { padding-left: 30px; }
  .timeline__rail { left: 6px; transform: none; bottom: 40px; }
  .job { grid-template-columns: 1fr; }
  .job::before { left: -24px; top: 10px; transform: translate(-50%, -50%); }
  .job__meta { text-align: left; flex-direction: row; gap: 14px; padding: 0 0 12px; }

  .projects, .skills, .honors { grid-template-columns: 1fr; }
  .quant__readout { grid-template-columns: 1fr 1fr 1fr; }
  .quant__readout > div { padding: 12px; }
  .quant__readout b { font-size: 1.4rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .waybar__title { display: none; }
}

@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
  .quant.is-ternary .cell::after { content: none; }
  .quant__grid { gap: 2px; }
  .metrics b { font-size: 1.6rem; }
  .hero__cta .btn { flex: 1 1 auto; }
  .toasts { right: 12px; left: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .egg-badge { left: 12px; bottom: 12px; }
  .quant__readout { grid-template-columns: 1fr; }
  .waybar__right span:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
}
