/* ==========================================================================
   Siddharth N R — Portfolio
   Design: grid-rail minimal layout · Geist / Instrument Serif / Pixelify Sans
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --max: 768px;
  --pad: 20px;
  --header-h: 56px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-pixel: "Pixelify Sans", var(--font-mono);
  --font-indic: "Noto Sans Tamil", "Noto Sans Telugu", "Tamil Sangam MN", "Telugu Sangam MN", "Nirmala UI", var(--font-sans);

  --ease: cubic-bezier(.16, 1, .3, 1);          /* expo-out — the house curve for reveals */
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);      /* curtains & sweeps */
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Light theme (default) */
  color-scheme: light;
  --bg: #ffffff;
  --bg-rgb: 255 255 255;
  --fg: #0a0a0a;
  --fg-rgb: 10 10 10;
  --fg-2: #3a3a3a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --line: #ececec;
  --line-2: #e0e0e0;
  --surface: #fafafa;
  --surface-2: #f4f4f4;
  --surface-3: #ebebeb;
  --hatch: #e6e6e6;
  --dot: #cfcfcf;
  --accent: #52525b;
  --accent-2: #a1a1aa;
  --accent-soft: rgb(82 82 91 / .1);
  --shine-a: #3f3f46;
  --shine-b: #a1a1aa;
  --dot-hot: #27272a;
  --spot: rgb(0 0 0 / .035);
  --stack-shadow: 0 -12px 30px -22px rgb(0 0 0 / .22);
  --g1: #27272a; --g2: #3f3f46; --g3: #52525b; --g4: #71717a; --g5: #8e8e96; --g6: #a1a1aa; --g7: #c4c4cc; --g8: #d4d4d8;
  --green: #16a34a;
  --green-text: #15803d;
  --amber: #d97706;
  --red: #dc2626;
  --blue: #2563eb;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .05);
  --shadow-md: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .14);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .05), 0 28px 70px -24px rgb(0 0 0 / .3);
  --header-bg: rgb(255 255 255 / .8);
  --cover-bg: #f6f6f6;
  --cover-grid: rgb(0 0 0 / .05);
  --cover-ink: #0a0a0a;
  --selection: rgb(10 10 10 / .1);
  --gh-0: #ebedf0;
  --gh-1: #9be9a8;
  --gh-2: #40c463;
  --gh-3: #30a14e;
  --gh-4: #216e39;
}

:root.dark {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-rgb: 10 10 10;
  --fg: #fafafa;
  --fg-rgb: 250 250 250;
  --fg-2: #cfcfcf;
  --muted: #999999;
  --faint: #5f5f5f;
  --line: #1e1e1e;
  --line-2: #2a2a2a;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --surface-3: #1e1e1e;
  --hatch: #1d1d1d;
  --dot: #2f2f2f;
  --accent: #a1a1aa;
  --accent-2: #f4f4f5;
  --accent-soft: rgb(161 161 170 / .12);
  --shine-a: #a1a1aa;
  --shine-b: #ffffff;
  --dot-hot: #f4f4f5;
  --spot: rgb(255 255 255 / .07);
  --stack-shadow: 0 -16px 36px -24px rgb(0 0 0 / .7);
  --g1: #f4f4f5; --g2: #d4d4d8; --g3: #a1a1aa; --g4: #85858e; --g5: #6b6b73; --g6: #55555c; --g7: #404046; --g8: #303035;
  --green: #22c55e;
  --green-text: #4ade80;
  --amber: #f59e0b;
  --red: #f87171;
  --blue: #60a5fa;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .6);
  --shadow-md: 0 1px 2px rgb(0 0 0 / .5), 0 10px 30px -14px rgb(0 0 0 / .8);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .5), 0 28px 70px -24px rgb(0 0 0 / .95);
  --header-bg: rgb(10 10 10 / .72);
  --cover-bg: #0f0f0f;
  --cover-grid: rgb(255 255 255 / .045);
  --cover-ink: #fafafa;
  --selection: rgb(250 250 250 / .16);
  --gh-0: #161616;
  --gh-1: #0e4429;
  --gh-2: #006d32;
  --gh-3: #26a641;
  --gh-4: #39d353;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
  hanging-punctuation: first;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
abbr[title] { text-decoration: none; }
::selection { background: var(--selection); color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 14px; border-radius: 10px;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* Icons (sprite <use>) */
.i {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ib { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; }
.brand { color: var(--c, currentColor); }
:root:not(.dark) .brand { color: var(--cl, var(--c, currentColor)); }

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-weight: 400; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 3. Layout: rails, header, sections ---------- */
.page { position: relative; }

.shell {
  position: relative;
  width: min(var(--max), calc(100% - 16px));
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

/* full-bleed horizontal rules */
.bleed-t, .bleed-b { position: relative; }
.bleed-t::before, .bleed-b::after {
  content: ""; position: absolute; left: 50%; width: 100vw; height: 1px;
  background: var(--line); transform: translateX(-50%); pointer-events: none;
}
.bleed-t::before { top: -1px; }
.bleed-b::after { bottom: 0; }

/* hatched separator band (spans the viewport) */
.sep { position: relative; height: 24px; }
.sep::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw;
  transform: translateX(-50%);
  border-block: 1px solid var(--line);
  background-image: repeating-linear-gradient(315deg, var(--hatch) 0, var(--hatch) 1px, transparent 0, transparent 50%);
  background-size: 10px 10px;
  background-position: var(--hx, 0px) 0;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .3s;
}
.site-header::before, .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); pointer-events: none;
}
.site-header::before { top: 8px; }
.site-header::after { bottom: 0; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgb(0 0 0 / .35); }

.header-inner {
  position: relative;
  width: min(var(--max), calc(100% - 16px));
  height: var(--header-h);
  margin-inline: auto;
  padding: 8px 10px 0 var(--pad);
  border-inline: 1px solid var(--line);
  display: flex; align-items: center; gap: 4px;
}

.logo {
  display: inline-flex; align-items: center; margin-right: auto;
  font-family: var(--font-pixel); font-weight: 600; font-size: 21px; line-height: 1;
  letter-spacing: .02em; white-space: nowrap;
}
.logo span { display: inline-block; min-width: .6em; text-align: center; }

.nav { display: flex; align-items: center; margin-right: 8px; }
.nav a {
  position: relative; padding: 6px 8px; border-radius: 8px;
  font-size: 15px; color: var(--muted); transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.search-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 5px 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13px;
  transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease);
}
.search-pill:hover { color: var(--fg); border-color: var(--faint); }
.search-pill:active { transform: scale(.97); }
.search-pill .i { width: 15px; height: 15px; }
.kbds { display: inline-flex; gap: 3px; }
kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg);
  font-family: var(--font-sans); font-size: 11px; font-weight: 500; line-height: 1; color: var(--fg-2);
  box-shadow: 0 1px 0 var(--line-2);
}

.header-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px 0 10px; }

.icon-toggle {
  position: relative; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: var(--fg);
  transition: background-color .2s, transform .2s var(--ease);
}
.icon-toggle:hover { background: var(--surface-2); }
.icon-toggle:active { transform: scale(.92); }
.icon-toggle .i { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .6s var(--ease), opacity .35s; }
.theme-toggle .i-sun { opacity: 1; transform: none; }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(.3); }
:root.dark .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.3); }
:root.dark .theme-toggle .i-moon { opacity: 1; transform: none; }
.search-btn-mobile { display: none; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-left: 8px; padding: 0 13px 0 11px;
  border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 13px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), var(--shadow-md);
  transition: transform .4s var(--ease), background-color .2s, box-shadow .3s;
}
.header-cta:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), var(--shadow-lg); }
.header-cta:active { transform: scale(.96); }
.cta-dot { position: relative; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgb(34 197 94 / .22); }
.cta-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ripple 2s var(--ease) infinite; }

/* Section scaffolding */
.section { position: relative; }
.section-head {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 14px var(--pad) 11px;
}
.section-head::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 100vw; height: 1px;
  background: var(--line); transform: translateX(-50%); pointer-events: none;
}
.section-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 38px; line-height: 1; letter-spacing: -.015em;
}
.section-title em { font-style: italic; }
.section-aside {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap;
}
.section-aside a { transition: color .2s; }
.section-aside a:hover { color: var(--fg); }
.section-lede { padding: 18px var(--pad) 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
.section-body { padding: 20px var(--pad) 26px; }
.section-body.flush { padding: 0; }

/* section index numbers (01, 02 …) — editorial structure */
main { counter-reset: sec; }
.section[data-section] .section-title { counter-increment: sec; }
.section[data-section] .section-title::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block; vertical-align: top; margin: .34em .62em 0 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: 0;
  color: var(--muted);
}

/* Lenis smooth scroll — https://github.com/darkroomengineering/lenis (MIT) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* film grain + top spotlight: quiet depth */
.grain { position: fixed; inset: 0; z-index: 95; pointer-events: none; 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px 180px; }
:root.dark .grain { 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* clip (not hidden) keeps the sticky header working while the wide spotlight below can't widen the page;
   without it, phones lay the site out wider than the screen and render it zoomed out */
.page { isolation: isolate; overflow-x: clip; }
.page::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 50%;
  width: 1400px; max-width: 220vw; height: 820px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 36% 52% at 50% 0%, var(--spot), transparent 72%);
}

/* ---------- 4. Components ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 11px;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .2s, border-color .2s, box-shadow .3s, color .2s;
  will-change: transform;
}
.btn .i, .btn .ib { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover .i-go { transform: translateX(3px); }
.btn:hover .i-up { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--fg); color: var(--bg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), var(--shadow-md);
}
.btn-primary:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.btn-ghost { background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--fg) 22%, var(--bg)); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

/* text roll on hover: the label slides up and its twin slides in */
.roll { position: relative; display: inline-block; height: 1.3em; overflow: hidden; line-height: 1.3; vertical-align: middle; white-space: nowrap; }
.roll > span, .roll::after { display: block; transition: transform .65s var(--ease); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
:is(a, button):hover > .roll > span, :is(a, button):hover > .roll::after { transform: translate3d(0, -100%, 0); }

.hl {
  color: var(--fg); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--fg) 30%, transparent);
  transition: text-decoration-color .2s;
}
a.hl:hover { text-decoration-color: var(--fg); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; line-height: 1;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-live { color: var(--green-text); border-color: color-mix(in srgb, var(--green) 32%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.badge-live .badge-dot { animation: ping 2s var(--ease) infinite; }
.badge-done { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-2); white-space: nowrap; line-height: 1;
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.tag .i, .tag .ib { width: 12px; height: 12px; }
.tag .i { stroke-width: 2.2; }
.tag:hover { color: var(--fg); border-color: color-mix(in srgb, var(--c, var(--fg)) 45%, var(--line-2)); transform: translateY(-1px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 11px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; line-height: 1;
  transition: color .25s, border-color .25s, background-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.chip .i, .chip .ib { width: 15px; height: 15px; transition: transform .4s var(--spring); }
.chip .i { stroke-width: 2; }
.chip:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--c, var(--fg)) 50%, var(--line-2));
  background: color-mix(in srgb, var(--c, var(--fg)) 7%, var(--bg));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--c, #000) 60%, transparent);
}
.chip:hover .i, .chip:hover .ib { transform: scale(1.15) rotate(-6deg); }

.icon-btn {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s, transform .3s var(--ease);
}
.icon-btn .i { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.icon-btn:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 25%, var(--bg)); background: var(--surface-2); }
.icon-btn:hover .i-up { transform: translate(1.5px, -1.5px); }
.icon-btn:active { transform: scale(.92); }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}
.status--new::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* spotlight hover (cards) */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--fg-rgb) / .055), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
[data-spotlight]:hover::after { opacity: 1; }

/* ---------- 5. Hero: a live neural network that writes the tagline ---------- */
.banner {
  position: relative; display: grid; grid-template-columns: 41% minmax(0, 1fr); align-items: center;
  min-height: 208px; overflow: hidden; isolation: isolate;
}
.banner::before {
  content: ""; position: absolute; inset: 10px; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 12px 12px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
  opacity: .55;
}
.nn-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; will-change: transform; touch-action: pan-y; }
.gen { position: relative; z-index: 1; grid-column: 2; min-width: 0; padding: 26px var(--pad) 24px 4px; }
.gen-top { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.gen-k {
  display: inline-flex; align-items: center; gap: 9px; margin-right: auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
}
.gen-k::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--fg); transform: rotate(45deg); }
.gen-k span { color: var(--muted); }
.gen-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.gen-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--fg); animation: ping 1.1s var(--ease-soft) infinite; }
.banner.is-done .gen-dot { animation: none; opacity: .35; }
.gen-count { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.gen-regen {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 8px; background: rgb(var(--bg-rgb) / .7); color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s, transform .3s var(--ease);
}
.gen-regen .i { width: 13px; height: 13px; transition: transform .7s var(--ease); }
.gen-regen:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 28%, var(--line-2)); }
.gen-regen:hover .i { transform: rotate(180deg); }
.gen-regen:active { transform: scale(.92); }
.gen-line {
  min-height: calc(2em * 1.22); margin-top: 12px;
  font-size: 25px; font-weight: 500; line-height: 1.22; letter-spacing: -.032em; color: var(--fg);
}
.js .banner:not(.gen-ready) .gen-text { visibility: hidden; }
.tok { display: inline-block; border-radius: 6px; transition: background-color .9s var(--ease), box-shadow .9s var(--ease), opacity .45s var(--ease), transform .55s var(--ease), filter .45s var(--ease); }
.tok .tok { border-radius: 0; }
.tok.new { background: rgb(var(--fg-rgb) / .09); box-shadow: 0 0 0 2px rgb(var(--fg-rgb) / .09); animation: tokIn .5s var(--ease) both; }
.tok.out { opacity: 0; transform: translate3d(0, -.35em, 0); filter: blur(5px); }
.gen-caret { display: inline-block; width: .46em; height: .92em; margin-left: .12em; vertical-align: -.1em; border-radius: 2px; background: var(--fg); }
.banner.is-done .gen-caret, .banner:not(.gen-ready) .gen-caret { animation: blink 1s steps(1) infinite; }
.gen-cands { display: flex; align-items: center; gap: 6px; margin-top: 14px; min-width: 0; }
.gen-cands-k { margin-right: 3px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.cand {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 1 auto; min-width: 0; height: 26px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 8px; background: rgb(var(--bg-rgb) / .78);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap;
  transition: border-color .35s, color .35s, opacity .35s;
}
/* the token about to be picked is never truncated; low-probability alternatives give way first */
.cand.top { flex-shrink: 0; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 34%, var(--line-2)); }
.cand-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* each chip's fill is its probability, so the row reads as a tiny next-token bar chart */
.cand-bar { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cand-bar i { position: absolute; inset: 0; background: rgb(var(--fg-rgb) / .06); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .65s var(--ease); }
.cand.top .cand-bar i { background: rgb(var(--fg-rgb) / .11); }
.cand-p { flex: none; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cand.pick { animation: pick .55s var(--spring); }
/* fit the candidate row to the width of the generator column (not the viewport) */
.gen { container: gen / inline-size; }
@container gen (max-width: 419px) {
  .gen-cands-k { display: none; }
  .cand { flex: 1 1 auto; gap: 6px; padding: 0 7px; font-size: 11px; }
}
@container gen (max-width: 339px) {
  .cand:last-child { display: none; }
}
@container gen (max-width: 309px) {
  .gen-k > span { display: none; } /* "— 2026" would push the label onto two lines */
}
@keyframes tokIn { from { opacity: 0; filter: blur(6px); transform: translate3d(0, .22em, 0); } to { opacity: 1; filter: none; transform: none; } }
@keyframes pick { 40% { transform: translate3d(0, -3px, 0) scale(1.05); } }

/* ---------- 6. Profile ---------- */
.profile {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: 22px var(--pad);
}
.avatar {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: 132px; aspect-ratio: 1; padding: 5px;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg);
  box-shadow: var(--shadow-md);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .4s;
  will-change: transform;
}
.avatar.is-tilting { transition: transform .08s linear, box-shadow .4s; }
.avatar:hover { box-shadow: var(--shadow-lg); }
.avatar-inner { position: relative; display: block; width: 100%; height: 100%; border-radius: 11px; overflow: hidden; background: #0b0b0b; transform: translateZ(0); }
.avatar-inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease);
}
.avatar-inner .alt { opacity: 0; transform: scale(1.18) rotate(-6deg); }
.avatar:hover .main, .avatar:focus-visible .main { opacity: 0; transform: scale(.86); filter: blur(4px); }
.avatar:hover .alt, .avatar:focus-visible .alt { opacity: 1; transform: none; }
.avatar-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .55), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.avatar:hover .avatar-glare { opacity: 1; }
.avatar-ring {
  position: absolute; inset: -6px; border-radius: 20px; pointer-events: none;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0; transform: scale(.96); transition: opacity .4s, transform .5s var(--ease);
}
.avatar:hover .avatar-ring { opacity: 1; transform: none; }

.profile-info { min-width: 0; }
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hf-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: border-color .2s, transform .25s var(--ease), background-color .2s;
}
.hf-pill:hover { border-color: color-mix(in srgb, #ffb000 55%, var(--line-2)); transform: translateY(-1px); }
.hf-pill .ib { width: 16px; height: 16px; }
.hf-pill small { font-size: 12px; font-weight: 450; color: var(--muted); }
.profile-clock {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.profile-clock .i { width: 14px; height: 14px; }
.profile-name {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 34px; font-weight: 600; line-height: 1.08; letter-spacing: -.035em;
}
.profile-name [data-letters] { display: inline-flex; overflow: hidden; padding: .06em .03em .14em; margin: -.06em -.03em -.14em; }
.profile-name .ch { display: inline-block; white-space: pre; }
.js .profile-name .ch { transform: translate3d(0, 112%, 0); }
.js .profile-name.is-in .ch { transform: none; transition: transform 1.15s var(--ease); transition-delay: calc(var(--i) * 30ms + 60ms); }
.name-mark { width: 22px; height: 22px; color: var(--accent); animation: float 5s var(--ease-io) infinite; }
.profile-role {
  position: relative; height: 1.55em; margin-top: 6px; overflow: hidden;
  font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: -.01em;
}
.flip-item { position: absolute; inset: 0 auto auto 0; white-space: nowrap; transition: transform .7s var(--ease), opacity .5s, filter .5s; }
.flip-item.is-next { transform: translateY(100%); opacity: 0; filter: blur(4px); }
.flip-item.is-prev { transform: translateY(-100%); opacity: 0; filter: blur(4px); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.profile-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta .i { width: 14px; height: 14px; }
.profile-meta a { transition: color .2s; }
.profile-meta a:hover { color: var(--fg); }

/* ---------- 7. Intro + KPIs ---------- */
.intro { position: relative; padding: 30px var(--pad) 28px; }
.display {
  --md: 180ms;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(36px, 6vw, 50px); line-height: 1.02; letter-spacing: -.02em;
}
/* grey "platinum" accent with a travelling sheen */
.display em, .shine {
  font-style: italic;
  background: linear-gradient(100deg, var(--shine-a) 0%, var(--shine-a) 40%, var(--shine-b) 50%, var(--shine-a) 60%, var(--shine-a) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .1em; margin-right: -.06em;
  animation: sheen 6.5s var(--ease-io) infinite;
}
.intro-sub { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.kpis { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px var(--pad) 18px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-label { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-num { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--green-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-delta.neutral { color: var(--muted); }
.kpi-delta .i { width: 12px; height: 12px; stroke-width: 2.4; }

/* odometer digits (KPI numbers roll into place) */
.odo-vis { display: inline-flex; align-items: flex-start; }
.odo-col { display: inline-block; height: 1.15em; overflow: hidden; }
.odo-strip { display: block; transform: translate3d(0, calc(var(--n, 0) * -10%), 0); transition: transform 2s var(--ease); transition-delay: calc(var(--k, 0) * 85ms); }
.odo-strip > span { display: block; height: 1.15em; line-height: 1.15em; text-align: center; }
.odo-sep, .odo-suf { display: inline-block; height: 1.15em; line-height: 1.15em; }

.intro-now { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.intro-now b { color: var(--fg); font-weight: 500; }
.now-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.now-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ripple 2.2s var(--ease) infinite; }

/* credibility strip */
.logos { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 15px var(--pad) 16px; }
.logos-k { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.logos-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.logos-list a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -.025em; color: var(--muted); transition: color .3s; }
.logos-list .ib, .logos-list .i { width: 17px; height: 17px; transition: color .3s, transform .55s var(--spring); }
.logos-list a:hover { color: var(--fg); }
.logos-list a:hover .ib, .logos-list a:hover .i { color: var(--c, var(--fg)); transform: scale(1.14) rotate(-6deg); }
:root:not(.dark) .logos-list a:hover .ib, :root:not(.dark) .logos-list a:hover .i { color: var(--cl, var(--c, var(--fg))); }

/* ---------- 8. About ---------- */
.about-list { display: grid; gap: 11px; }
.about-list li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.68; color: var(--fg-2); }
.about-list li::before {
  content: ""; position: absolute; left: 3px; top: .74em; width: 6px; height: 6px; border-radius: 2px;
  background: var(--faint); transform: rotate(45deg);
}

.latest {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: min(100%, 320px); margin: 30px auto 2px; padding: 14px 92px 14px 16px;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.latest:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--fg) 18%, var(--bg)); }
.latest-k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.latest-k .ib { width: 13px; height: 13px; }
.latest-title { margin-top: 5px; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-sub { margin-top: 1px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-text { min-width: 0; }
.disc {
  position: absolute; right: -22px; top: 50%; width: 96px; height: 96px; margin-top: -48px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17px, rgb(255 255 255 / .06) 17px 18px, transparent 18px),
    repeating-radial-gradient(circle, #121212 0 2px, #1c1c1c 2px 3px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), -6px 0 18px -6px rgb(0 0 0 / .5);
  animation: spin 7s linear infinite;
}
.disc::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 12%, rgb(255 255 255 / .12) 18%, transparent 26% 60%, rgb(255 255 255 / .08) 66%, transparent 74%);
}
.disc-label {
  position: absolute; inset: 31px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe27a, #f5b800);
  box-shadow: 0 0 0 2px #0b0b0b;
}
.disc-label .ib { width: 18px; height: 18px; color: #0b0b0b; }
.latest:hover .disc { animation-duration: 2.2s; }

/* ---------- 9. Connect grid ---------- */
.connect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.connect-item {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 15px 34px 15px 16px; transition: background-color .25s;
}
.connect-item:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.connect-item:nth-child(n + 4) { border-top: 1px solid var(--line); }
.connect-item:hover { background: var(--surface); }
.connect-icon {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--tile, var(--surface-2)); color: var(--tile-fg, var(--fg));
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .08);
  transition: transform .4s var(--spring);
}
.connect-item:hover .connect-icon { transform: scale(1.08) rotate(-4deg); }
.connect-icon .ib, .connect-icon .i { width: 18px; height: 18px; }
.connect-text { min-width: 0; }
.connect-label { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.connect-handle { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.connect-arrow { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; color: var(--faint); transition: transform .35s var(--ease), color .2s; }
.connect-item:hover .connect-arrow { transform: translate(2px, -2px); color: var(--fg); }

/* ---------- 10. Experience ---------- */
.exp-list { display: grid; gap: 30px; }
.exp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.exp-logo {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-pixel); font-size: 15px; font-weight: 600; line-height: 1;
  box-shadow: inset 0 0 0 1px rgb(var(--bg-rgb) / .12);
}
.exp-logo .i { width: 16px; height: 16px; }
.exp-company { font-size: 17.5px; font-weight: 600; letter-spacing: -.02em; }
.exp-loc { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.exp-role { position: relative; margin-top: 12px; }
.exp-role::before {
  content: ""; position: absolute; left: 14.5px; top: 38px; bottom: 2px; width: 1px;
  background: linear-gradient(var(--line-2), var(--line-2) 85%, transparent);
}
.exp-role-head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 10px; }
.exp-role-icon {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  transition: color .2s, border-color .2s;
}
.exp-role-icon .i { width: 15px; height: 15px; }
.exp-role-head:hover .exp-role-icon { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 25%, var(--bg)); }
.exp-role-title { flex: 1; font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.exp-chev { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--faint); transition: color .2s, background-color .2s; }
.exp-chev .i { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.exp-role-head:hover .exp-chev { color: var(--fg); background: var(--surface-2); }
.exp-role.is-open .exp-chev .i { transform: rotate(180deg); }
.exp-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 4px 0 0 42px; font-size: 13px; color: var(--muted); }
.exp-meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px; border-radius: 50%; background: var(--faint); vertical-align: middle; }
.collapse { display: grid; grid-template-rows: 1fr; margin-left: 42px; transition: grid-template-rows .55s var(--ease), opacity .4s; }
.exp-role:not(.is-open) .collapse { grid-template-rows: 0fr; opacity: 0; }
.collapse > div { min-height: 0; overflow: hidden; }
.exp-points { display: grid; gap: 8px; padding-top: 12px; }
.exp-points li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.68; color: var(--fg-2); }
.exp-points li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.exp-points b { color: var(--fg); font-weight: 600; }
.exp-role .tags { margin-top: 14px; padding-bottom: 2px; }
/* the timeline line fills in as you read each role */
.exp-role::after {
  content: ""; position: absolute; left: 14.5px; top: 38px; bottom: 2px; width: 1px; pointer-events: none;
  background: var(--fg); transform-origin: 50% 0; transform: scaleY(var(--fill, 0));
}
/* a collapsed role has nothing to connect: hide its timeline stub until it opens */
.exp-role::before, .exp-role::after { transition: opacity .3s; }
.exp-role:not(.is-open)::before, .exp-role:not(.is-open)::after { opacity: 0; }

/* ---------- What I bring: sticky stacking cards ---------- */
.vstack { display: grid; gap: 22px; padding-bottom: 6px; }
.vcard {
  --vs: 1; --vd: 0;
  position: sticky; top: calc(var(--header-h) + 18px + var(--k) * 14px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: center;
  min-height: 272px; padding: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); border-radius: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 62%) var(--bg);
  box-shadow: var(--stack-shadow), var(--shadow-sm);
  transform: scale(var(--vs)); transform-origin: 50% 0; will-change: transform;
}
.vcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: var(--vd); pointer-events: none; }
.vcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.vcard-num { font-family: var(--font-serif); font-size: 46px; line-height: .8; letter-spacing: -.03em; color: var(--fg); }
.vcard-kicker { padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vcard-title { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.vcard-text { margin-top: 10px; font-size: 14.5px; line-height: 1.66; color: var(--fg-2); }
.vcard-text b { color: var(--fg); font-weight: 600; }
.vcard-viz { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 196px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.viz-foot { margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-align: center; }
/* 1 · small model beats bigger model */
.viz-bubbles { display: flex; align-items: center; justify-content: center; gap: 16px; height: 116px; }
.bub { display: grid; place-items: center; flex: none; border-radius: 50%; font-family: var(--font-mono); font-size: 13px; font-weight: 500; transform: scale(.4); opacity: 0; transition: transform 1s var(--spring), opacity .5s var(--ease); }
.bub.small { width: 66px; height: 66px; background: var(--fg); color: var(--bg); box-shadow: 0 0 0 8px var(--accent-soft); transition-delay: .4s; }
.bub.big { width: 106px; height: 106px; border: 1px dashed color-mix(in srgb, var(--fg) 35%, var(--bg)); color: var(--muted); transition-delay: .15s; }
.viz-vs { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--muted); }
.is-in .bub { transform: none; opacity: 1; }
.viz-cap { display: flex; justify-content: center; gap: 46px; margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
/* 2 · a long run that survives session resets */
.run-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.run-head b { font-family: var(--font-sans); font-size: 30px; font-weight: 650; letter-spacing: -.04em; color: var(--fg); }
.run-track { position: relative; height: 10px; margin: 30px 0 9px; border-radius: 99px; background: var(--surface-3); }
.run-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--fg) 30%, var(--bg)), var(--fg)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 2.4s var(--ease) .2s; }
.is-in .run-fill { transform: scaleX(1); }
.run-track .ck { position: absolute; top: 50%; left: calc(var(--x) * 100%); width: 2px; height: 14px; margin: -7px 0 0 -1px; border-radius: 2px; background: var(--surface); }
.run-track .rs { position: absolute; bottom: calc(100% + 6px); left: calc(var(--x) * 100%); display: grid; place-items: center; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); opacity: 0; transform: translateY(4px); transition: opacity .4s var(--ease), transform .6s var(--spring); transition-delay: calc(var(--x) * 2.1s + .35s); }
.run-track .rs .i { width: 10px; height: 10px; stroke-width: 2.4; }
.is-in .run-track .rs { opacity: 1; transform: none; }
.run-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.run-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.run-legend span { display: inline-flex; align-items: center; gap: 6px; }
.run-legend .l-ck::before { content: ""; width: 2px; height: 10px; border-radius: 2px; background: var(--fg); }
.run-legend .l-rs::before { content: "↻"; font-size: 12px; line-height: 1; color: var(--fg); }
/* 3 · 78% -> 98% */
.acc-nums { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.acc-from { font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.acc-nums .i { width: 18px; height: 18px; align-self: center; color: var(--muted); }
.acc-to { font-size: 56px; font-weight: 650; line-height: 1; letter-spacing: -.055em; }
.acc-bar { position: relative; height: 10px; margin-top: 18px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.acc-base { position: absolute; inset: 0 auto 0 0; width: 78%; background: color-mix(in srgb, var(--fg) 26%, var(--bg)); }
.acc-gain { position: absolute; top: 0; bottom: 0; left: 78%; width: 20%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.5s var(--ease) .5s; }
.is-in .acc-gain { transform: none; }
.acc-ticks { position: relative; height: 14px; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.acc-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
/* 4 · shipped everywhere */
.ship-num b { display: block; font-size: 50px; font-weight: 650; line-height: 1; letter-spacing: -.055em; }
.ship-num span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.ship-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ship-formats span { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); font-size: 12.5px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--j) * 90ms + .3s); }
.ship-formats .ib, .ship-formats .i { width: 15px; height: 15px; }
.is-in .ship-formats span { opacity: 1; transform: none; }

/* ---------- 11. Cards (models / projects) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards > .wide { grid-column: 1 / -1; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 6px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg);
  transition: border-color .3s, box-shadow .4s, transform .5s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--fg) 16%, var(--bg)); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 13px 10px 4px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-size: 17.5px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; min-width: 0; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.card-title a:hover { background-size: 100% 1px; }
.card-sub { margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.card-desc { margin-top: 10px; font-size: 14px; line-height: 1.62; color: var(--fg-2); }
.card .tags { margin-top: 12px; }
.card-foot { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: auto; padding-top: 12px; }
.card-foot-inner { display: contents; }
.card-links { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 14px; border-top: 1px solid var(--line); }
.card-links > * {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px;
  font-size: 13.5px; color: var(--muted); transition: color .2s, background-color .2s;
}
.card-links > * + * { border-left: 1px solid var(--line); }
.card-links a:hover { color: var(--fg); background: var(--surface); }
.card-links .i, .card-links .ib { width: 14px; height: 14px; }
.card-links a:first-child { border-bottom-left-radius: 12px; }
.card-links a:last-child { border-bottom-right-radius: 12px; }
.card-links .dl { font-family: var(--font-mono); font-size: 12px; color: var(--muted); cursor: default; gap: 6px; }
.card-links .dl b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.card-spacer { flex: 1; }

.meters { display: grid; gap: 9px; margin-top: 14px; }
.meter { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 12px; }
.meter-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.meter-track { position: relative; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter-fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--fg) 55%, var(--bg)), var(--fg));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .25s;
}
.is-in .meter-fill { transform: scaleX(1); }
.meter-val { font-family: var(--font-mono); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

/* Cover (illustrations drawn in CSS) */
.cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 13px;
  background: var(--cover-bg); border: 1px solid var(--line); color: var(--cover-ink);
  isolation: isolate;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--cover-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cover-grid) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, #000 30%, transparent 100%);
}
.cover.wide { aspect-ratio: 21 / 9; }
.cover-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 3; pointer-events: none; }
.cover-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px;
  background: rgb(var(--bg-rgb) / .78); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--fg); white-space: nowrap;
}
.cover-badge .i, .cover-badge .ib { width: 12px; height: 12px; }
.cover-badge.hi { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 26%, var(--line-2)); }
/* cursor-following light on the card border */
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, -999px) var(--my, -999px), rgb(var(--fg-rgb) / .55), transparent 62%);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover::before { opacity: 1; }
/* covers open with a wipe, then drift slightly with scroll.
   (the reveal uses the standalone `scale` property so `transform` stays free for the 3D hover tilt) */
.js .card .cover { clip-path: inset(0 0 0 0 round 13px); transition: clip-path 1.4s var(--ease) .12s, scale 1.4s var(--ease) .12s; }
.js .card[data-reveal]:not(.is-in) .cover { clip-path: inset(10% 8% 10% 8% round 13px); scale: .94; }
/* every layer drifts with the scroll (--py) and, on depth covers, with the pointer (--hx/--hy × its depth --z) */
.cover > :not(.cover-link) { translate: calc(var(--hx, 0) * var(--z, .6) * 1px) calc((var(--py, 0) * var(--pz, 1) + var(--hy, 0) * var(--z, .6)) * 1px); }
.cover-badges { --pz: 0; --z: 1.5; }
.cv-chart > svg { --pz: 0; --z: .25; }
.cover-link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.cv-panel {
  position: absolute; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.cv-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.cv-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); flex: none; }
.cv-bar i:nth-child(1) { background: #ff5f57; }
.cv-bar i:nth-child(2) { background: #febc2e; }
.cv-bar i:nth-child(3) { background: #28c840; }
.cv-bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Apollo — VLM reading a chart */
.cv-apollo .cv-img { left: 6%; top: 18%; bottom: 13%; width: 40%; padding: 14px 14px 12px; display: flex; flex-direction: column; background: var(--bg); }
.cv-apollo .cv-img::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 22%, transparent) 85%, var(--accent) 100%);
  border-bottom: 1px solid var(--accent); opacity: .9; transform: translateY(-110%);
}
.is-in .cv-apollo .cv-img::after, .cv-apollo.is-in .cv-img::after { animation: scan 3.2s var(--ease-io) .4s infinite; }
.cv-chart-title { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.cv-bars { flex: 1; display: flex; align-items: flex-end; gap: 9%; padding: 10px 4px 0; border-bottom: 1px solid var(--line-2); }
.cv-bars i { position: relative; flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--fg) 14%, var(--bg)); transform-origin: bottom; transform: scaleY(.1); transition: transform 1s var(--spring); transition-delay: calc(var(--i) * 90ms + .2s); }
.cv-bars i.hot { background: var(--fg); }
.is-in .cv-bars i { transform: none; }
/* the model's "attention" box locks onto the tallest bar */
.cv-bars i.hot::after { content: ""; position: absolute; inset: -7px -6px -1px; border: 1.5px solid var(--fg); border-radius: 5px; opacity: 0; transform: scale(1.25); transition: opacity .4s var(--ease) 1.5s, transform .6s var(--spring) 1.5s; }
.cv-bars i.hot::before { content: "0.92"; position: absolute; left: 50%; top: -24px; padding: 0 4px; border-radius: 3px; background: var(--fg); color: var(--bg); font-family: var(--font-mono); font-size: 9px; font-style: normal; line-height: 14px; transform: translateX(-50%); opacity: 0; transition: opacity .4s 1.8s; }
.is-in .cv-bars i.hot::after { opacity: 1; transform: none; }
.is-in .cv-bars i.hot::before { opacity: 1; }
.cv-chat { position: absolute; right: 6%; top: 24%; width: 42%; display: grid; gap: 10px; }
.bubble { max-width: 100%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bubble.user { justify-self: end; background: var(--fg); color: var(--bg); border-bottom-right-radius: 4px; transition-delay: .5s; }
.bubble.ai { justify-self: start; display: flex; gap: 8px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; transition-delay: 1.3s; }
.bubble.ai .i { width: 14px; height: 14px; margin-top: 1px; color: var(--accent); }
.is-in .bubble { opacity: 1; transform: none; }
.bubble .typing { display: inline-flex; gap: 3px; }

/* Pluto-Genesis — leaderboard */
.cv-rank { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8%; padding: 9% 8% 8%; }
.rank-big { font-family: var(--font-serif); font-size: clamp(64px, 11vw, 96px); line-height: .8; letter-spacing: -.04em; }
.rank-big small { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; color: var(--muted); line-height: 1.4; }
.rank-rows { display: grid; gap: 7px; }
.rank-row { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.rank-row i { display: block; height: 9px; width: calc(var(--w) * 100%); border-radius: 3px; background: color-mix(in srgb, var(--fg) 13%, var(--bg)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 110ms + .2s); }
.rank-row.me { color: var(--fg); }
.rank-row.me i { background: linear-gradient(90deg, var(--fg), color-mix(in srgb, var(--fg) 45%, var(--bg))); height: 11px; }
.rank-row.me span { position: relative; }
.is-in .rank-row i { transform: none; }
.rank-me-label { margin: -3px 0 0 22px; font-size: 10px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Atlas-Coder — code + throughput */
.cv-code .cv-panel { left: 6%; top: 15%; width: 57%; bottom: 12%; }
.code { padding: 10px 12px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.75; white-space: pre; color: var(--fg-2); overflow: hidden; }
.code .k { color: #c678dd; } .code .f { color: #61afef; } .code .s { color: #98c379; } .code .c { color: var(--faint); } .code .n { color: #d19a66; }
:root:not(.dark) .code .k { color: #a626a4; } :root:not(.dark) .code .f { color: #4078f2; } :root:not(.dark) .code .s { color: #50a14f; } :root:not(.dark) .code .n { color: #b76b01; }
.code .ln { opacity: 0; transition: opacity .3s; transition-delay: calc(var(--i) * 260ms + .3s); }
.is-in .code .ln { opacity: 1; }
.caret { display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -2px; background: var(--fg); animation: blink 1s steps(1) infinite; }
.cv-speed { position: absolute; right: 5%; top: 17%; width: 25%; display: grid; gap: 9px; }
.speed-card { padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.speed-num { font-size: 22px; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.speed-num small { font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.speed-k { margin-top: 4px; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.speed-track { margin-top: 7px; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.speed-track i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--fg); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) .6s; }
.is-in .speed-track i { transform: none; }

/* Athena — dataset composition */
.cv-mix { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 7%; }
.mix-k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.mix-k b { font-family: var(--font-sans); font-size: 26px; font-weight: 650; letter-spacing: -.04em; color: var(--fg); }
.mix-bar { display: flex; height: 20px; gap: 2px; border-radius: 6px; overflow: hidden; }
.mix-bar i { flex: var(--n) 1 0; background: var(--c); transform: scaleY(0); transition: transform .7s var(--spring); transition-delay: calc(var(--i) * 70ms + .2s); min-width: 3px; }
.is-in .mix-bar i { transform: none; }
.mix-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.mix-legend span { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.mix-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.mix-legend em { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.mix-legend b { margin-left: auto; padding-left: 4px; color: var(--fg-2); font-weight: 500; flex: none; }

/* "More releases" card */
/* flex: 1 (not height: 100%) fills the card reliably; 4px bottom = .card-body, so link bars align across the row */
.more { display: flex; flex-direction: column; flex: 1; padding: 16px 12px 4px; }
.more > .card-links:last-child { margin-top: auto; }
.more-k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.more-num { margin-top: 8px; font-family: var(--font-serif); font-size: 58px; line-height: .9; letter-spacing: -.03em; }
.more-num small { font-family: var(--font-sans); font-size: 14px; letter-spacing: -.01em; color: var(--muted); margin-left: 6px; }
.more-list { margin-top: 16px; display: grid; }
.more-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line-2); font-size: 13px; }
.more-list li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.more-list li b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.more-list li b .i { width: 11px; height: 11px; }
.more-list li b:empty { display: none; }

/* Terminal — llm-diff */
/* the finished run (9 lines) must always fit below the badges: the window is pinned under them
   and the cover may grow taller than its ratio when it has to — min-height beats aspect-ratio */
.cv-term.cover.wide { min-height: 294px; }
.cv-term .cv-panel { left: 5%; right: 5%; top: 46px; bottom: 16px; background: #0b0b0c; border-color: #232326; color: #e6e6e6; }
.cv-term .cv-bar { border-color: #1f1f22; color: #8a8a8f; }
.term {
  margin: 0; padding: 12px 14px; height: calc(100% - 26px); overflow: hidden;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; white-space: pre; color: #d4d4d8;
}
.term .p { color: #8b8b93; } .term .g { color: #4ade80; } .term .r { color: #f87171; } .term .y { color: #fbbf24; } .term .b { color: #93c5fd; } .term .w { color: #fafafa; font-weight: 600; } .term .d { color: #71717a; }
.term .cur { display: inline-block; width: 7px; height: 14px; vertical-align: -3px; background: #e5e5e5; animation: blink 1s steps(1) infinite; }
.term { transition: opacity .4s var(--ease), filter .4s var(--ease); }
.term.is-clearing { opacity: 0; filter: blur(3px); }

/* AuditLink — scanning a contract */
.cv-audit .cv-panel { left: 5%; top: 14%; bottom: 12%; width: 53%; }
.cv-audit .cv-bar { position: relative; z-index: 1; background: var(--bg); } /* the scan beam passes under the title bar */
.cv-audit .lines { position: relative; padding: 10px 12px; display: grid; gap: 7px; }
.cv-audit .lines span { display: flex; gap: 8px; align-items: center; }
.cv-audit .lines em { width: 12px; font-style: normal; font-family: var(--font-mono); font-size: 9px; color: var(--faint); text-align: right; }
.cv-audit .lines i { display: block; height: 6px; border-radius: 3px; width: var(--w); background: var(--c, color-mix(in srgb, var(--fg) 14%, var(--bg))); }
.cv-audit .lines .warn { position: relative; }
.cv-audit .lines .warn::after { content: ""; position: absolute; left: 14px; right: -8px; top: -4px; bottom: -4px; border-radius: 4px; background: color-mix(in srgb, var(--red) 14%, transparent); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); opacity: 0; transition: opacity .4s 1.4s; }
.is-in .cv-audit .lines .warn::after { opacity: 1; }
.cv-audit .beam { position: absolute; left: 0; right: 0; top: 26px; height: 46px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, #375bd2 22%, transparent)); border-bottom: 1px solid #375bd2; transform: translateY(-60px); }
.is-in .cv-audit .beam { animation: scan2 2.8s var(--ease-io) .3s infinite; }
.cv-findings { position: absolute; right: 4%; top: 14%; width: 36%; display: grid; gap: 7px; }
.finding { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); font-size: 10.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateX(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 280ms + .9s); }
.finding .i, .finding .ib { width: 12px; height: 12px; flex: none; }
.is-in .finding { opacity: 1; transform: none; }
.nft-badge { justify-self: center; margin-top: 2px; width: 46px; height: 52px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, #375bd2, #8e75b2); color: #fff; font-family: var(--font-pixel); font-size: 10px; text-align: center; line-height: 1.1; opacity: 0; transform: scale(.6) rotate(-20deg); transition: opacity .5s, transform .8s var(--spring); transition-delay: 1.9s; }
.is-in .nft-badge { opacity: 1; transform: none; }

/* AnvilX — desktop app */
.cv-app .cv-panel { left: 7%; right: 7%; top: 13%; bottom: 11%; display: grid; grid-template-rows: 26px 1fr; }
.app-body { display: grid; grid-template-columns: 26% 1fr; min-height: 0; }
.app-side { border-right: 1px solid var(--line); padding: 10px 8px; display: grid; align-content: start; gap: 6px; }
.app-side i { display: block; height: 14px; border-radius: 5px; background: var(--surface-2); }
.app-side i:first-child { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.app-main { padding: 10px; display: grid; grid-template-rows: auto auto 1fr; gap: 9px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.app-top i { height: 9px; width: 40%; border-radius: 4px; background: color-mix(in srgb, var(--fg) 16%, var(--bg)); }
.app-wallet { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 8.5px; color: var(--fg-2); white-space: nowrap; }
.app-wallet::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app-stats i { height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); }
.chain { display: flex; align-items: center; gap: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.chain-track { display: flex; gap: 6px; animation: chain 6s linear infinite; }
.chain-track span { position: relative; width: 26px; height: 26px; flex: none; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); }
.chain-track span::after { content: ""; position: absolute; left: 100%; width: 6px; height: 1px; background: var(--line-2); }

/* Crypfolio — local-only tracker */
.cv-chart { padding: 0; }
.cv-chart > svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; }
.cv-chart .area { fill: url(#cfFill); opacity: .9; }
.cv-chart .line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .2s; }
.is-in .cv-chart .line { stroke-dashoffset: 0; }
/* live price: pulses on the latest point (286,18 of the 300×120 chart, which fills the bottom 58%) once the line has drawn */
.cf-dot {
  --z: .25; --pz: 0;
  position: absolute; left: calc(286 / 300 * 100%); top: calc(42% + 18 / 120 * 58%); width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
  opacity: 0; scale: .3; transition: opacity .4s var(--ease) 1.9s, scale .7s var(--spring) 1.9s;
}
.cf-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ripple 2s var(--ease) infinite; }
.is-in .cf-dot { opacity: 1; scale: 1; }
.cf-head { position: absolute; left: 7%; top: 13%; right: 7%; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cf-coins { display: grid; gap: 6px; }
.cf-coin { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-2); }
.cf-coin i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25); }
.cf-timer { text-align: right; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.cf-timer b { display: block; margin-top: 3px; font-family: var(--font-sans); font-size: 18px; font-weight: 600; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cf-lock { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg-2); }
.cf-lock .i { width: 10px; height: 10px; }

/* MedASK — prescription OCR */
.cv-rx .paper { position: absolute; left: 9%; top: 12%; bottom: -6%; width: 44%; padding: 14px; border-radius: 8px 8px 0 0; background: #fffdf8; border: 1px solid #e9e4d8; box-shadow: var(--shadow-md); transform: rotate(-3deg); color: #2d2a24; overflow: hidden; }
:root.dark .cv-rx .paper { background: #f3efe6; }
.rx-mark { font-family: var(--font-serif); font-size: 28px; line-height: 1; color: #1e3a8a; }
.rx-lines { margin-top: 10px; display: grid; gap: 8px; }
.rx-lines i { display: block; height: 5px; width: var(--w); border-radius: 3px; background: #c9c1b0; }
.cv-rx .paper::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(to bottom, transparent, rgb(37 99 235 / .25)); border-bottom: 1.5px solid #2563eb; transform: translateY(-50px); }
.is-in .cv-rx .paper::after { animation: scan3 2.6s var(--ease-io) .4s infinite; }
.rx-out { position: absolute; right: 6%; top: 18%; width: 36%; display: grid; gap: 7px; }
.rx-chip { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); font-size: 10.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 250ms + .8s); }
.rx-chip .i { width: 12px; height: 12px; color: var(--c, var(--muted)); flex: none; }
.rx-chip.ok { color: var(--fg); border-color: color-mix(in srgb, var(--green) 40%, var(--line-2)); }
.is-in .rx-chip { opacity: 1; transform: none; }

/* ---------- 11b. Projects: cinematic entrance · 3D depth covers · featured beam ---------- */
/* entrance: each card rises out of a slight 3D tilt, its cover opens, then the copy follows line by line.
   (.card in the selectors outranks the generic [data-reveal] rules regardless of source order) */
.js .card[data-reveal="rise"] { transform-origin: 50% 0; }
.js .card[data-reveal="rise"]:not(.is-in) { opacity: 0; transform: perspective(1400px) translate3d(0, 64px, 0) rotateX(11deg) scale(.97); filter: blur(5px); }
.js .card[data-reveal="rise"].revealing { transition: opacity 1s var(--ease), transform 1.5s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .card[data-reveal="rise"] .cover { transition-delay: calc(var(--d, 0) * 1ms + 160ms); }
.js .card[data-reveal="rise"]:not(.is-in) .card-body > * { opacity: 0; transform: translate3d(0, 14px, 0); }
.js .card[data-reveal="rise"].revealing .card-body > * {
  transition: opacity .8s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms + 420ms + var(--k, 0) * 70ms);
}
.card-body > :nth-child(2) { --k: 1; } .card-body > :nth-child(3) { --k: 2; } .card-body > :nth-child(4) { --k: 3; }
.card-body > :nth-child(5) { --k: 4; } .card-body > :nth-child(6) { --k: 5; }

/* depth covers: the cover tilts toward the pointer, its layers shift by depth, a soft glare follows (JS sets the vars) */
.cover[data-depth] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.cover[data-depth].is-tilting { will-change: transform; }
.cover[data-depth]::before { translate: calc(var(--hx, 0) * -.5px) calc(var(--hy, 0) * -.5px); }
.cover[data-depth]::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .3), transparent 45%);
  opacity: 0; transition: opacity .5s var(--ease);
}
:root.dark .cover[data-depth]::after { background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .075), transparent 45%); }
.cover[data-depth].is-hover::after { opacity: 1; }
/* floating panels cast their shadow away from the pointer — reads as depth in light mode too (equals --shadow-md at rest) */
.cover[data-depth] .cv-panel, .cover[data-depth] .paper {
  box-shadow: 0 1px 2px rgb(0 0 0 / var(--sh1, .04)), calc(var(--hx, 0) * -1px) calc(8px - var(--hy, 0) * 1px) 24px -12px rgb(0 0 0 / var(--sh2, .14));
}
:root.dark .cover[data-depth] { --sh1: .5; --sh2: .8; }
.cv-findings, .rx-out, .cf-head, .cv-chat, .cv-speed, .rank-big { --z: 1.35; }
.cv-rx .paper { --z: .45; }
.cv-term .cv-panel { --z: .5; }

/* covers behave like images: on narrower cards their pixel content scales down in steps. `zoom` on each layer
   shrinks fonts/paddings while every %-positioned box keeps its place, so nothing truncates or spills.
   (reference: content is laid out for a ~360px-wide cover; card width = cover + 14px) */
.card { container: card / inline-size; }
.cover > :not(.cover-link):not(svg) { zoom: var(--cz, 1); }
.cv-term > .cv-panel { zoom: 1; } /* the flagship terminal has its own responsive sizing */
@container card (max-width: 373px) { .cover { --cz: .95; } }
@container card (max-width: 355px) { .cover { --cz: .91; } }
@container card (max-width: 339px) { .cover { --cz: .87; } }
@container card (max-width: 324px) { .cover { --cz: .83; } }
@container card (max-width: 309px) { .cover { --cz: .8; } }
@container card (max-width: 294px) { .cover { --cz: .76; } }
@container card (max-width: 279px) { .cover { --cz: .71; } }

/* editorial details: project number, footer links aligned across a row, keyboard focus */
.card-idx { display: inline-block; margin-right: 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); vertical-align: 2px; font-variant-numeric: tabular-nums; }
.card-body > .tags:nth-last-child(2) { margin-bottom: 16px; }
.card-body > .card-links:last-child { margin-top: auto; } /* link bars line up across a row */
.card:focus-within { border-color: color-mix(in srgb, var(--fg) 30%, var(--bg)); }

/* featured: a light beam travels around the flagship's border (a rotating conic gradient = compositor-only) */
.card-beam {
  position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1px; overflow: hidden; pointer-events: none;
  -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, linear-gradient(#000 0 0); mask-composite: exclude;
}
.card-beam i {
  position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgb(var(--fg-rgb) / .16) 330deg, rgb(var(--fg-rgb) / .62) 356deg, transparent 360deg);
  animation: spin 7s linear infinite;
}

/* ---------- 12. Stack ---------- */
.marquee-wrap { position: relative; padding: 18px 0 16px; display: grid; gap: 10px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; gap: 10px; width: max-content; padding: 2px 0 6px; }
.js .marquee-track.is-ready { animation: marquee var(--dur, 40s) linear infinite; }
.marquee.rev .marquee-track.is-ready { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track.is-js { animation: none !important; will-change: transform; }
.mq {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px 0 12px;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface);
  font-size: 14px; font-weight: 500; white-space: nowrap; letter-spacing: -.01em;
  transition: border-color .25s, transform .3s var(--ease), background-color .25s;
}
.mq .ib, .mq .i { width: 19px; height: 19px; }
.mq:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--fg)) 50%, var(--line-2)); background: color-mix(in srgb, var(--c, var(--fg)) 6%, var(--bg)); }

.stack { position: relative; border-top: 1px solid var(--line); }
.stack-row { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.stack-row + .stack-row { border-top: 1px solid var(--line); }
.stack-cat { display: flex; align-items: center; gap: 12px; padding: 18px var(--pad); border-right: 1px dashed var(--line-2); }
.stack-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.stack-name { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.stack-chips { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; padding: 16px var(--pad); }

/* ---------- 13. GitHub activity ---------- */
.gh-card { padding: 18px 18px 14px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); box-shadow: var(--shadow-sm); }
.gh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gh-total { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.gh-total span { font-variant-numeric: tabular-nums; }
.gh-user { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: color .2s; }
.gh-user:hover { color: var(--fg); }
.gh-user .ib { width: 14px; height: 14px; }
.gh-scroll { margin-top: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.gh-scroll::-webkit-scrollbar { display: none; }
.gh-graph { --cell: 10px; --gap: 3px; display: grid; grid-template-columns: 30px max-content; column-gap: 6px; width: max-content; margin-inline: auto; }
.gh-months { grid-column: 2; position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.gh-months span { position: absolute; top: 0; left: calc(var(--col) * (var(--cell) + var(--gap))); white-space: nowrap; }
.gh-days { display: grid; grid-template-rows: repeat(7, var(--cell)); row-gap: var(--gap); font-size: 10.5px; line-height: var(--cell); color: var(--muted); }
.gh-days span:nth-child(2) { grid-row: 2; } .gh-days span:nth-child(3) { grid-row: 4; } .gh-days span:nth-child(4) { grid-row: 6; }
.gh-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--cell)); grid-auto-columns: var(--cell); gap: var(--gap); }
.gh-cell {
  width: var(--cell); height: var(--cell); border-radius: 2.5px; background: var(--gh-0);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .045);
  transform: scale(0); transition: transform .5s var(--spring), box-shadow .2s;
  transition-delay: calc(var(--w) * 14ms);
}
.gh-cell[data-l="1"] { background: var(--gh-1); } .gh-cell[data-l="2"] { background: var(--gh-2); }
.gh-cell[data-l="3"] { background: var(--gh-3); } .gh-cell[data-l="4"] { background: var(--gh-4); }
.gh-cell.pad { visibility: hidden; }
.gh-graph.is-in .gh-cell { transform: scale(1); }
.gh-cell:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.gh-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.gh-legend { display: inline-flex; align-items: center; gap: 4px; }
.gh-legend i { width: 10px; height: 10px; border-radius: 2.5px; background: var(--gh-0); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .045); }
.gh-legend i:nth-of-type(2) { background: var(--gh-1); } .gh-legend i:nth-of-type(3) { background: var(--gh-2); }
.gh-legend i:nth-of-type(4) { background: var(--gh-3); } .gh-legend i:nth-of-type(5) { background: var(--gh-4); }
.gh-state { display: grid; place-items: center; min-height: 128px; color: var(--muted); font-size: 13.5px; text-align: center; }
.gh-skeleton { width: 100%; height: 112px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.tip {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  padding: 6px 9px; border-radius: 8px; background: var(--fg); color: var(--bg);
  font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, calc(-100% - 8px)) scale(.96); transition: opacity .15s, transform .15s;
}
.tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); }

/* ---------- 14. Lists (publications, education, credentials) ---------- */
.rows { display: grid; }
.row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px var(--pad); transition: background-color .25s;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--surface); }
.row-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--c, var(--fg));
  transition: transform .4s var(--spring);
}
.row:hover .row-icon { transform: scale(1.06) rotate(-4deg); }
.row-icon .i, .row-icon .ib { width: 19px; height: 19px; }
.row-title { font-size: 15px; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
.row-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.row-title a:hover { background-size: 100% 1px; }
.row-meta { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 12.5px; color: var(--muted); }
.row-meta > span + span::before { content: "•"; margin: 0 7px; color: var(--faint); }
.row-actions { display: flex; align-items: center; gap: 6px; }
.row-extra { grid-column: 2 / -1; margin-top: -4px; }
.row-grade { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); white-space: nowrap; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split > * + * { border-left: 1px solid var(--line); }
.split-k { padding: 14px var(--pad) 4px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.hello { position: relative; margin: 10px var(--pad) 6px; height: 112px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.hello::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 12px 12px; opacity: .6; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, #000 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, #000 100%); }
.hello-word { position: absolute; font-family: var(--font-indic); font-size: 34px; font-weight: 500; letter-spacing: -.02em; transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s; }
.hello-word[data-lang="en"], .hello-word[data-lang="de"] { font-family: var(--font-serif); font-size: 44px; font-weight: 400; }
.hello-word:not(.on) { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.hello-word.out { opacity: 0; transform: translateY(-18px); filter: blur(8px); }
.hello-tag { position: absolute; bottom: 9px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.langs { display: grid; padding: 4px 0 6px; }
.lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px var(--pad); font-size: 14px; transition: background-color .2s; }
.lang:hover, .lang.active { background: var(--surface); }
.lang span { font-weight: 500; }
.lang em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 15. Statement, contact, quote ---------- */
.statement { padding: 54px var(--pad) 60px; }
.statement p {
  font-size: clamp(25px, 3.7vw, 33px); font-weight: 500; line-height: 1.32; letter-spacing: -.03em;
}
.statement .w { transition: opacity .35s, color .35s, filter .35s; }
.js .statement .w { opacity: .16; filter: blur(.4px); }
.js .statement .w.on { opacity: 1; filter: none; }
.statement .w.shine { padding: 0 .08em 0 0; margin: 0 -.04em 0 0; }

.contact { padding: 40px var(--pad) 44px; text-align: center; }
.contact-title { font-family: var(--font-serif); font-size: clamp(42px, 7vw, 64px); line-height: .98; letter-spacing: -.025em; }
.contact-sub { max-width: 46ch; margin: 14px auto 0; color: var(--muted); font-size: 15.5px; }
.email-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.email-btn { font-family: var(--font-mono); font-size: 13.5px; font-weight: 450; }
.email-btn .copy-ic { color: var(--muted); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg);
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .2s, background-color .2s;
}
.social .ib, .social .i { width: 14px; height: 14px; }
.social:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--fg)) 45%, var(--line-2)); background: color-mix(in srgb, var(--c, var(--fg)) 5%, var(--bg)); }

.quote { padding: 50px var(--pad) 54px; text-align: center; }
.quote-mark { width: 40px; height: 40px; margin: 0 auto 18px; color: var(--faint); }
.quote blockquote p { max-width: 30ch; margin-inline: auto; font-size: clamp(21px, 3vw, 27px); font-style: italic; line-height: 1.42; letter-spacing: -.015em; color: var(--fg-2); }
.quote figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote figcaption::before, .quote figcaption::after { content: ""; width: 32px; height: 1px; background: var(--line-2); }

/* ---------- 16. Footer ---------- */
.site-footer { position: relative; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px var(--pad); font-size: 13px; color: var(--muted); }
.footer-main b { color: var(--fg); font-weight: 600; }
.footer-main p + p { margin-top: 3px; }
.footer-right { text-align: right; }
.footer-right a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.footer-right a:hover { color: var(--fg); }
.footer-right .i { width: 13px; height: 13px; }
.footer-art { position: relative; height: 230px; padding-bottom: 84px; overflow: hidden; display: grid; place-items: end center; }
.footer-art::before {
  content: ""; position: absolute; inset: 12px 10px 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 95%); mask-image: linear-gradient(to bottom, #000, transparent 95%);
}
.footer-word {
  position: relative; display: flex; overflow: hidden; padding-top: .14em;
  font-family: var(--font-pixel); font-weight: 700;
  font-size: clamp(48px, 13vw, 118px); line-height: 1; letter-spacing: .02em; white-space: nowrap;
  user-select: none;
}
.footer-word {
  color: rgb(var(--fg-rgb) / .17);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, rgb(0 0 0 / .12) 100%);
  mask-image: linear-gradient(to bottom, #000 30%, rgb(0 0 0 / .12) 100%);
}
.footer-word .fl { display: inline-block; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js .footer-word.fw-split:not(.is-in) .fl { transform: translate3d(0, 105%, 0); }
.footer-word.settled .fl { transition: transform .55s var(--spring); transition-delay: 0s; }
.footer-word.settled .fl:hover { transform: translate3d(0, -12%, 0); }

/* ---------- 17. Overlays: pill, palette, toast, loader, blur ---------- */
.pill { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); display: flex; gap: 8px; }
/* without JavaScript (or if main.js fails and the failsafe drops .js) these controls would do nothing — hide them */
:root:not(.js) :is(.pill, [data-palette-open], [data-theme-toggle], .header-sep, .gen-regen, .profile-clock) { display: none !important; }
.js .pill { opacity: 0; transform: translate(-50%, 20px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .pill.ready { opacity: 1; transform: translateX(-50%); }
.pill-btn, .pill-search {
  display: flex; align-items: center; gap: 10px; height: 46px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgb(var(--bg-rgb) / .82); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), border-color .2s;
}
.pill-btn { padding: 0 16px 0 7px; }
.pill-btn:hover, .pill-search:hover { border-color: color-mix(in srgb, var(--fg) 20%, var(--bg)); }
.pill-btn:active, .pill-search:active { transform: scale(.97); }
.pill-search { display: none; width: 46px; justify-content: center; padding: 0; }
.pill-search .i { width: 18px; height: 18px; }
.ring { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; }
.ring .track { stroke: var(--line-2); }
.ring .bar { stroke: var(--fg); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .15s linear; }
.ring .i { width: 13px; height: 13px; color: var(--fg-2); transition: transform .4s var(--ease); }
.pill.open .ring .i { transform: rotate(180deg); }
.pill-label { position: relative; display: block; min-width: 44px; height: 20px; overflow: hidden; text-align: left; transition: width .45s var(--ease); }
.pill-label span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: transform .5s var(--ease), opacity .3s; }
.pill-label span.out { transform: translateY(-110%); opacity: 0; }
.pill-label span.in { transform: translateY(110%); opacity: 0; }
.pill-menu {
  position: absolute; left: 50%; bottom: calc(100% + 10px); width: 236px; padding: 6px;
  border: 1px solid var(--line-2); border-radius: 18px; background: rgb(var(--bg-rgb) / .92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 10px) scale(.96); transform-origin: 50% 100%; opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
}
.pill.open .pill-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s; }
.pill-menu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px;
  font-size: 13.5px; color: var(--muted);
  opacity: 0; transform: translate3d(0, 8px, 0);
  transition: opacity .35s var(--ease), transform .55s var(--ease), background-color .2s, color .2s;
}
.pill.open .pill-menu a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 22ms), calc(var(--i, 0) * 22ms), 0s, 0s; }
.pill-menu a .i { width: 15px; height: 15px; }
.pill-menu a:hover, .pill-menu a:focus-visible { background: var(--surface-2); color: var(--fg); outline: none; }
.pill-menu a.active { color: var(--fg); background: var(--surface-2); }
.pill-menu a.active::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }

.palette { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: min(14vh, 120px) 16px 16px; }
.palette-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
.palette-panel {
  position: relative; width: min(580px, 100%); max-height: min(72vh, 560px); display: flex; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: pop .32s var(--ease);
}
.palette.closing .palette-backdrop { animation: fade .2s var(--ease) reverse forwards; }
.palette.closing .palette-panel { animation: pop .2s var(--ease) reverse forwards; }
.palette-search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); }
.palette-search .i { width: 18px; height: 18px; color: var(--muted); }
.palette-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15.5px; }
.palette-search input::placeholder { color: var(--muted); }
.palette-list { flex: 1; overflow-y: auto; padding: 6px; overscroll-behavior: contain; scroll-padding: 8px; }
.palette-group { padding: 10px 10px 5px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; font-size: 14px; cursor: pointer; color: var(--fg-2); }
.palette-item[aria-selected="true"] { background: var(--surface-2); color: var(--fg); }
.palette-item .i, .palette-item .ib { width: 16px; height: 16px; color: var(--muted); }
.palette-item .brand { color: var(--c); }
.palette-item[aria-selected="true"] .i { color: var(--fg); }
.palette-item mark { background: none; color: var(--fg); font-weight: 600; }
.palette-hint { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.palette-item .go { margin-left: 4px; opacity: 0; transform: translateX(-4px); transition: .2s var(--ease); }
.palette-item[aria-selected="true"] .go { opacity: 1; transform: none; }
.palette-empty { padding: 34px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.palette-foot span { display: inline-flex; align-items: center; gap: 6px; }
.palette-foot kbd { min-width: 18px; height: 18px; font-size: 10.5px; }
.palette-foot .brandmark { margin-left: auto; font-family: var(--font-pixel); font-size: 12px; color: var(--faint); }
.palette.opening .palette-item, .palette.opening .palette-group { animation: itemIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 14ms + 40ms); }

.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 130;
  width: max-content; max-width: calc(100vw - 32px); /* left: 50% would otherwise cap it at half the screen */
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--fg); color: var(--bg); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, 14px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast .i { width: 15px; height: 15px; color: var(--green); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* floating label that follows the cursor over covers */
.cursor-label { position: fixed; left: 0; top: 0; z-index: 85; pointer-events: none; will-change: transform; }
.cl-inner {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 14px;
  border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 12.5px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: var(--shadow-lg);
  transform: scale(.3); transform-origin: 0 0; opacity: 0;
  transition: transform .5s var(--ease), opacity .25s var(--ease);
}
.cl-inner .i { width: 13px; height: 13px; }
.cursor-label.on .cl-inner { transform: none; opacity: 1; }
.cursor-label.plain .cl-inner .i { display: none; }
.cursor-label.plain .cl-inner { padding: 0 14px; }

.loader { display: none; }
.show-loader .loader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--bg);
  animation: loaderFailsafe .01s 4.5s forwards;
}
.loader.leave {
  transform: translate3d(0, -100%, 0);
  border-bottom-left-radius: 50% 16vh; border-bottom-right-radius: 50% 16vh;
  transition: transform 1.05s var(--ease-io), border-radius 1.05s var(--ease-io);
}
.loader-word { position: relative; display: flex; align-items: center; gap: 14px; font-family: var(--font-serif); font-size: clamp(44px, 9vw, 76px); letter-spacing: -.02em; line-height: 1; }
.loader-word::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); flex: none; }
.loader-meta {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 7vh, 64px);
  display: flex; align-items: center; gap: 18px; padding: 0 clamp(20px, 6vw, 72px);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase;
}
.loader-bar { position: relative; flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); }
.loader-pct { min-width: 3ch; text-align: right; color: var(--fg); font-variant-numeric: tabular-nums; }
.loader-word[data-indic] { font-family: var(--font-indic); font-size: clamp(36px, 7vw, 60px); font-weight: 500; }
.loader-word.swap { animation: wordIn .32s var(--ease); }
.show-loader body { overflow: hidden; }

.bottom-blur { position: fixed; left: 0; right: 0; bottom: 0; height: 80px; z-index: 50; pointer-events: none; }
.bottom-blur > i { position: absolute; inset: 0; }
.bottom-blur > i:nth-child(1) { -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 40%, transparent 60%); mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 40%, transparent 60%); }
.bottom-blur > i:nth-child(2) { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 40%, #000 60%, transparent 80%); mask-image: linear-gradient(to bottom, transparent 20%, #000 40%, #000 60%, transparent 80%); }
.bottom-blur > i:nth-child(3) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 60%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 40%, #000 60%, #000 80%, transparent 100%); }
.bottom-blur > i:nth-child(4) { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-mask-image: linear-gradient(to bottom, transparent 60%, #000 80%); mask-image: linear-gradient(to bottom, transparent 60%, #000 80%); }
.bottom-blur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0), rgb(var(--bg-rgb) / .7)); }

/* ---------- 18. Reveal animations ---------- */
/* hidden only until revealed; the reveal transition is applied temporarily (.revealing)
   so it never overrides an element's own hover transitions afterwards */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); filter: blur(6px); }
.js [data-reveal="fade"]:not(.is-in) { transform: none; }
.js [data-reveal="scale"]:not(.is-in) { transform: translateY(10px) scale(.96); }
.js [data-reveal].revealing {
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
/* words rise out of a clipping mask (modern editorial reveal) */
.m-word { display: inline-block; vertical-align: top; }
.js .m-word { overflow: hidden; padding: .1em .14em .2em .04em; margin: -.1em -.14em -.2em -.04em; }
.m-inner { display: inline-block; }
.js .m-inner { transform: translate3d(0, 118%, 0) rotate(6deg); transform-origin: 0% 100%; }
.js .is-in .m-inner {
  transform: none;
  transition: transform 1.25s var(--ease);
  transition-delay: calc(var(--i) * 70ms + var(--md, 0ms));
}

/* ---------- 19. Keyframes ---------- */
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes sheen { 0%, 28% { background-position: 100% 0; } 72%, 100% { background-position: 0% 0; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes ping { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
@keyframes chain { to { transform: translateX(-128px); } }
@keyframes scan { 0% { transform: translateY(-110%); } 60%, 100% { transform: translateY(380%); } }
@keyframes scan2 { 0% { transform: translateY(-60px); } 70%, 100% { transform: translateY(170px); } }
@keyframes scan3 { 0% { transform: translateY(-50px); } 70%, 100% { transform: translateY(240px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; } }
@keyframes itemIn { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* View-transition theme switch (circular reveal) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 720px) { /* the nav still fits down to ~700px; hide it only when it can't */
  .nav { display: none; }
}

@media (max-width: 680px) {
  :root { --pad: 16px; --header-h: 54px; }
  .search-pill { display: none; }
  .search-btn-mobile { display: grid; }
  .header-sep { margin: 0 4px; }
  .logo { font-size: 19px; }

  .banner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 128px; align-items: start; }
  .gen { grid-column: 1; padding: 0 var(--pad) 20px; }
  .gen-line { font-size: 21px; margin-top: 10px; }
  .gen-cands { margin-top: 12px; }

  .profile { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .avatar { width: 104px; }
  .profile-name { font-size: 29px; }
  .profile-role { font-size: 16px; }

  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .kpi-num { font-size: 26px; }

  .connect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-item:not(:nth-child(3n + 1)) { border-left: 0; }
  .connect-item:nth-child(n + 4) { border-top: 0; }
  .connect-item:nth-child(even) { border-left: 1px solid var(--line); }
  .connect-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .connect-item { padding: 14px 30px 14px 14px; gap: 10px; }
  .connect-icon { width: 32px; height: 32px; }

  .exp-loc { flex-basis: 100%; margin-left: 42px; text-align: left; order: 3; margin-top: -8px; }
  .exp-points li { font-size: 14px; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .cover.wide { aspect-ratio: 16 / 10; }
  .cv-apollo .cv-img { width: 46%; left: 5%; }
  .cv-chat { width: 44%; right: 4%; }
  .bubble { font-size: 11px; padding: 7px 9px; }

  .term { font-size: min(10px, 2.75vw); padding: 9px 11px; } /* the longest command still fits on a 320px phone */
  .cv-term.cover.wide { min-height: 262px; }
  .cv-term .cv-panel { left: 3.5%; right: 3.5%; top: 40px; bottom: 12px; } /* badges end at 31px here */
  .cover-badges { top: 9px; left: 9px; right: 9px; }
  .cover-badge { height: 22px; font-size: 10px; padding: 0 7px; }
  .stack-row { grid-template-columns: minmax(0, 1fr); }
  .stack-cat { border-right: 0; border-bottom: 1px dashed var(--line-2); padding-block: 12px; }
  .stack-chips { padding-block: 14px 16px; }
  .chip { height: 30px; font-size: 12px; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split > * + * { border-left: 0; border-top: 1px solid var(--line); }

  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row-actions { grid-column: 2; justify-content: flex-start; }
  .row-meta > .full { flex-basis: 100%; }
  .row-meta > .full::before, .row-meta > .full + span::before { display: none; }
  .section-head { flex-wrap: wrap; row-gap: 6px; }
  .mix-legend { font-size: 9.5px; gap: 5px 12px; }
  .row-icon { width: 40px; height: 40px; }

  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }

  .pill-search { display: flex; }
  .pill-label { min-width: 64px; }
  .section-title { font-size: 34px; }
}

@media (max-width: 680px) {
  .header-cta { height: 30px; margin-left: 6px; padding: 0 11px 0 10px; font-size: 12.5px; gap: 7px; }
  .logos { justify-content: flex-start; }
  .logos-list { gap: 8px 18px; }
  .logos-list a { font-size: 13.5px; }
  .vcard { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; padding: 20px; border-radius: 20px; top: calc(var(--header-h) + 12px + var(--k) * 10px); }
  .vcard-title { font-size: 21px; }
  .vcard-num { font-size: 38px; }
  .vcard-viz { min-height: 0; }
  .acc-to { font-size: 48px; }
  .ship-num b { font-size: 42px; }
}

@media (max-width: 400px) {
  .logo { font-size: 17px; }
  .display { font-size: 33px; }
  .profile-name { font-size: 27px; }
  .kpi { padding-inline: 14px; }
  .kpi-delta { white-space: normal; overflow: visible; } /* e.g. "17 models · 5 datasets" wraps instead of being cut */
  .connect { grid-template-columns: minmax(0, 1fr); }
  .connect-item:nth-child(even) { border-left: 0; }
  .connect-item:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .meter { grid-template-columns: 84px 1fr 46px; gap: 8px; }
  .cv-speed { width: 30%; }
}
@media (max-width: 340px) { /* the label fits at 360px; the link keeps its name via aria-label below this */
  .term { padding-inline: 8px; }
  .kpi-label { white-space: normal; overflow: visible; min-height: 3.2em; } /* two lines reserved so numbers stay level across a row */
  .header-cta .roll, .header-cta > span:not(.cta-dot) { display: none; }
  .header-cta { padding: 0 10px; }
}

@media (hover: none) {
  .card:hover, .latest:hover { transform: none; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal], .js .m-inner, .js .profile-name .ch, .js .footer-word .fl, .js .card .cover { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .js .card .cover { scale: none !important; }
  .js .card[data-reveal="rise"] .card-body > * { opacity: 1 !important; transform: none !important; }
  .card-beam { display: none; }
  .vcard { transform: none !important; }
  .vcard::after { opacity: 0 !important; }
  .js .statement .w { opacity: 1; filter: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .show-loader .loader { display: none; }
}

/* ---------- 22. Print ---------- */
@media print {
  *, *::before, *::after { transition: none !important; } /* print the final state, never a frame mid-reveal */
  .site-header, .pill, .bottom-blur, .nn-canvas, .palette, .toast, .loader, .footer-art { display: none !important; }
  .js [data-reveal], .js .m-inner, .js .footer-word .fl { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .card[data-reveal="rise"] .card-body > * { opacity: 1 !important; transform: none !important; }
  .js .card .cover { clip-path: none !important; scale: none !important; transform: none !important; }
  .grain, .cursor-label, .card-beam { display: none !important; }
  .vcard { position: static; transform: none !important; }
  .shell { border: 0; width: 100%; }
}
