/* inVectus website. Palette, type and motion follow the desktop app (src/App.css):
   warm charcoal, Inter for prose, Martian Mono for codes and labels, one mint accent. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Martian Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(assets/fonts/martian-mono-latin-wght-normal.woff2) format("woff2-variations"); }

:root {
  --bg: #141414;
  --surface: #202020;
  --surface-2: #292929;
  --line: #333333;
  --line-2: #48453f;
  --ink: #d1cbc2;
  --dim: rgba(209, 203, 194, 0.5);
  --accent: #6edcaa;
  --mono: "Martian Mono Variable", "Martian Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter Variable", Inter, -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --r: 4px;
  --gutter: clamp(16px, 5vw, 72px);
  /* Replaced at runtime by the simulated spring (main.js), as in src/motion.ts. */
  --spring-relaxed: cubic-bezier(0.25, 1.1, 0.5, 1);
  --spring-relaxed-duration: 700ms;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
em { font-style: normal; color: var(--ink); }
code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 2px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h2 { font-weight: 300; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 20px; }
h3 { font-weight: 400; font-size: 16px; }
p { margin: 0 0 14px; color: var(--ink); max-width: 56ch; }
.dim, p.dim { color: var(--dim); }
.eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Nav */
.nav.light { background: none; }
.nav { position: absolute; inset: 0 0 auto 0; max-width: 1920px; margin: 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--gutter); }
.brand img { display: block; height: 26px; width: auto; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--dim); transition: color 150ms ease; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--ink); }
@media (max-width: 640px) { .nav nav a:not(:last-child) { display: none; } }

/* Buttons, as in the app */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background 150ms ease, border-color 150ms ease; }
.btn:hover, .btn:focus-visible { background: var(--surface-2); border-color: var(--line-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 500; }
.btn.primary:hover, .btn.primary:focus-visible { background: #fff; border-color: #fff; }
.icon-btn { gap: 10px; }
.icon-btn svg { flex: none; }
.icon-btn .arrow { transition: transform 150ms ease; }
.icon-btn:hover .arrow, .icon-btn:focus-visible .arrow { transform: translate(2px, -2px); }

/* Masthead in light mode: the app's palette inverted, warm paper and charcoal ink.
   The mint is darkened so marks keep contrast on the light ground. */
.light { --bg: #ebe7e0; --surface: #e2ddd5; --surface-2: #dad4ca; --line: #d3cdc3; --line-2: #bfb8ac;
  --ink: #1b1a18; --ink-rgb: 27, 26, 24; --dim: rgba(27, 26, 24, 0.55); --accent: #12895a;
  background: var(--bg); color: var(--ink); color-scheme: light; }
.light .btn.primary:hover, .light .btn.primary:focus-visible { background: #000; border-color: #000; }

/* Hero: the circle's centre sits at the hero's bottom-right corner; the section below cuts it. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; max-width: 1920px; margin: 0 auto;
  /* Past 1920px the map stops growing; the light background still runs edge to edge. */
  box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* Fade the map under the nav so its links stay legible. */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.12) 0, rgba(0,0,0,.12) 64px, #000 120px); mask-image: linear-gradient(to bottom, rgba(0,0,0,.12) 0, rgba(0,0,0,.12) 64px, #000 120px); }
.hero-copy { position: relative; z-index: 2; padding: clamp(120px, 22vh, 220px) var(--gutter) 0; max-width: 680px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-weight: 300; font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; margin-bottom: 24px; }
.lede { font-size: clamp(15px, 1.25vw, 17px); font-weight: 300; max-width: 46ch; color: var(--ink); }
.hero-copy > * { animation: page-in 600ms var(--spring-relaxed) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(5) { animation-delay: 240ms; }
.status { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.status-bar { width: 44px; height: 2px; background: var(--line-2); overflow: hidden; }
.status-bar > span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.status.done .status-bar { display: none; }
.status.done::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-note { position: absolute; z-index: 2; left: var(--gutter); bottom: 24px; margin: 0; padding: 2px 0; background: var(--bg); max-width: 64ch; line-height: 1.7; pointer-events: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.hero-tip { position: absolute; z-index: 4; pointer-events: none; display: grid; gap: 2px; max-width: 240px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); font-family: var(--mono); font-size: 11px; line-height: 1.45; color: var(--ink); }
.hero-tip[hidden] { display: none; }
.hero-tip.pinned { pointer-events: auto; width: min(320px, calc(100vw - 32px)); max-width: none; gap: 6px; padding: 14px 16px; font-family: var(--sans); font-size: 13px; box-shadow: 0 8px 24px rgba(27, 26, 24, 0.12); animation: page-in 220ms ease-out both; }
.hero-tip.pinned b { padding-right: 20px; line-height: 1.35; }
.hero-tip.pinned p { margin: 2px 0 4px; font-size: 13px; color: var(--ink); }
.hero-tip .tip-code { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.hero-tip dl { display: flex; gap: 20px; margin: 2px 0 6px; }
.hero-tip dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.hero-tip dd { margin: 0; font-size: 18px; font-weight: 200; }
.tip-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: none; border-radius: var(--r); background: none; color: var(--dim); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.tip-close:hover, .tip-close:focus-visible { color: var(--ink); background: var(--surface-2); }
.map-controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 24px; display: flex; gap: 6px; }
.map-controls .btn { min-height: 32px; min-width: 32px; padding: 4px 10px; justify-content: center; background: var(--bg); font-size: 13px; }
.hero-map:focus-visible { outline: none; }
.hero-tip b { font-weight: 500; }
.hero-tip span { color: var(--dim); }

/* Sections below the fold sit on a solid surface, so they cut the circle. */
main > section:not(.hero) { position: relative; z-index: 2; background: var(--bg); padding: clamp(72px, 11vw, 140px) 0; }
main > section.fold { padding-bottom: clamp(48px, 7vw, 96px); }

/* Ranked rows, like the gap list */
.ranks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 96px); }
.ranks li { display: flex; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.ranks .code { flex: 0 0 auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--dim); }
.ranks h3 { margin-bottom: 8px; }
.ranks p { color: var(--dim); margin: 0; }
@media (max-width: 760px) { .ranks { grid-template-columns: 1fr; } }

/* Features: the app screenshot beside the four points. */
.feature-split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 40px; }
.feature-shot { margin: 0; }
.feature-shot img.mac-shot { display: block; width: 108%; max-width: none; height: auto; margin: 0 -4%; }
.feature-split .ranks { grid-template-columns: 1fr; margin: 0; }
@media (max-width: 960px) { .feature-split { grid-template-columns: 1fr; } }

/* inVectus search, interactive: precomputed real checks, results on the map. */
.verdict-intro { max-width: 640px; }
.search-demo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .search-demo { grid-template-columns: 1fr; } }
.search-box { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 16px; font-weight: 300; color: var(--ink); }
.search-box svg { flex: none; color: var(--dim); }
.caret { width: 1px; height: 18px; margin-left: -10px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 28px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--dim); font: inherit; font-size: 12.5px; padding: 6px 12px; cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.chip:hover, .chip:focus-visible { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.search-result { min-height: 420px; }
.verdict { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.verdict::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.verdict.open { color: var(--accent); }
.verdict.near { color: var(--ink); }
.verdict.exists { color: var(--ink); }
.verdict.exists::before { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.search-summary { font-size: 13.5px; color: var(--dim); margin-bottom: 16px; }
.hits { list-style: none; margin: 0; padding: 0; }
.hits li { display: flex; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13.5px; cursor: default; animation: gap-slide-in 300ms ease-out both; animation-delay: calc(var(--i, 0) * 50ms); transition: color 150ms ease; }
.hits li:hover, .hits li.on { color: #fff; }
.hits li:hover .score, .hits li.on .score { color: var(--ink); }
.hits > li > span:last-child { display: grid; gap: 4px; flex: 1; }
.hits em { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.search-meta { margin: 12px 0 0; font-size: 11.5px; color: var(--dim); }
.search-map-wrap { position: sticky; top: 24px; }
.search-map { display: block; width: 100%; aspect-ratio: 1; }
.verdicts .figure-note { margin-top: 32px; font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; }

/* Get it: a centred install line with pill links (after Grok Build's layout). */
.get-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.get-center h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; margin-bottom: 20px; }
.get-lede { max-width: none; font-size: clamp(16px, 1.5vw, 19px); font-weight: 300; color: var(--ink); margin: 0 auto 36px; }
.install { display: flex; align-items: center; gap: 12px; width: min(620px, 100%); padding: 16px 16px 16px 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; }
.install-cmd { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-align: left; font-family: var(--mono); font-size: 14px; color: var(--ink); background: none; padding: 0;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.install-cmd .dim { color: var(--dim); }
.copy { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.copy:hover, .copy:focus-visible { background: var(--surface-2); }
.copy .i-done { display: none; color: var(--accent); }
.copy.done .i-copy { display: none; }
.copy.done .i-done { display: block; }
.install-note { max-width: none; margin: 16px auto 20px; font-size: 13px; color: var(--dim); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); color: var(--dim); font-size: 14px; text-decoration: none; transition: color 150ms ease, background 150ms ease; }
.pill:hover, .pill:focus-visible { color: var(--ink); background: var(--surface-2); }

.score { flex: 0 0 64px; font-size: 24px; font-weight: 200; line-height: 1; }
.score.top { color: var(--accent); }
.meter { display: block; height: 2px; background: var(--line); margin-top: 6px; }
.meter > span { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--ink); transform-origin: left; }
.figure-note { margin: 12px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* Agents */
.term { margin: 24px 0 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--ink); overflow-x: auto; }
.term .dim { color: var(--dim); }
/* App window with the model picker (src/AgentAttribution.tsx, src/ModelSelector.tsx). */
.app-window-wrap { margin: 0; }
.app-window-wrap figcaption { margin-top: 12px; font-size: 12px; color: var(--dim); }
.app-window { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1b1b1b; border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3936; }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar b { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--dim); }
.win-body { padding: 18px 20px 24px; }
.win-status { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; color: var(--dim); }
.mark { flex: none; display: block; }
.mark.openai { color: var(--ink); }
.suggestion { position: relative; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; }
.sugg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: var(--r); padding: 2px 6px; }
.attr-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.agent-attribution { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; }
.agent-attribution:hover, .agent-attribution[aria-expanded="true"] { color: var(--ink); }
.next-model { font-size: 11px; color: var(--dim); }
.sugg-title { margin: 0 0 4px; font-size: 14px; }
.sugg-title .code { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); margin-right: 8px; }
.sugg-verdict { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.sugg-verdict::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.sugg-note { font-size: 13px; color: var(--dim); margin-bottom: 16px; }
.sugg-actions { display: flex; gap: 8px; }
.btn.small { min-height: 30px; padding: 4px 12px; font-size: 13px; }
/* In the app it floats under the attribution; here it sits below the card so both stay readable. */
.model-popover { position: relative; margin: 20px 0 0 auto; width: 280px; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: 0 8px 24px #0005; transform-origin: top right; }
.model-popover[hidden] { display: none; }
.model-popover:not([hidden]) { animation: pop-in 180ms ease-out both; }
.model-selector { display: flex; flex-direction: column; gap: 24px; padding: 16px; }
.model-provider, .model-options { display: flex; flex-direction: column; gap: 8px; }
.model-provider-heading { display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.model-provider-heading .push { margin-left: auto; transition: transform 150ms ease; }
.model-provider-heading[aria-expanded="false"] .push { transform: rotate(-90deg); }
.model-options { padding-left: 24px; }
.model-options[hidden] { display: none; }
.model-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 28px; padding: 4px 8px; border: 0; border-radius: var(--r); background: none; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.model-option:hover, .model-option[aria-pressed="true"] { background: var(--surface-2); }
.model-option svg { flex: none; color: var(--ink); }
.model-selector[data-follow-current="true"] .model-option svg { color: var(--accent); }
.model-selector-note { margin: 0; padding: 0 16px 16px; font-size: 11px; }
.model-current-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); }
.model-current-switch { flex: none; width: 28px; height: 16px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.model-current-switch > span { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: transform 150ms ease; }
.model-current-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.model-current-switch[aria-checked="true"] > span { transform: translateX(12px); background: var(--bg); }
.model-current-switch:disabled { opacity: 0.45; cursor: default; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }

/* Privacy figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin: 40px 0 0; }
.figures > div { border-top: 1px solid var(--line); padding-top: 20px; }
.figures dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.figures dd { margin: 0; color: var(--dim); }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr; } }

.get .term { margin-top: 0; }

/* Footer: link columns over a giant wordmark drawn in the map's squares (main.js footerMark). */
.foot { position: relative; z-index: 2; overflow: hidden; background: var(--bg); padding: clamp(64px, 9vw, 112px) 0 0; font-size: 13.5px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.foot-brand img { display: block; height: 26px; width: auto; margin-bottom: 20px; }
.foot-brand p { color: var(--dim); max-width: 34ch; }
.foot-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: agent-pulse 1.6s ease-in-out infinite; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols h2 { margin: 0 0 16px; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.foot-cols a { display: block; width: fit-content; padding: 5px 0; color: var(--ink); text-decoration: none; transition: color 150ms ease; }
.foot-cols a:hover, .foot-cols a:focus-visible { color: var(--accent); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(48px, 7vw, 88px); padding-top: 20px; position: relative; font-size: 12px; color: var(--dim); }
.foot-meta::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.foot-meta a { color: var(--dim); }
.foot-mark { display: block; width: 100%; margin-top: 24px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reveal on scroll: the app's page-in and gap-slide-in, with its stagger. */
.reveal .wrap { opacity: 0; transform: translateY(8px); }
.reveal.in .wrap { animation: page-in var(--spring-relaxed-duration) var(--spring-relaxed) both; }
.reveal .ranks li, .reveal .figures > div { opacity: 0; }
.reveal.in .ranks li, .reveal.in .figures > div { animation: gap-slide-in 300ms ease-out both; animation-delay: calc(160ms + var(--i, 0) * 50ms); }
.hits .meter > span { animation: fill-x 550ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(120ms + var(--i, 0) * 110ms); }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gap-slide-in { from { transform: translateX(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes agent-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal .wrap, .reveal .ranks li, .reveal .figures > div { opacity: 1; transform: none; }
}

/* lightbox.js (from the Angrove site): a clicked photo grows to fill the screen over a darkened page. */
.lightbox-target {
  cursor: zoom-in;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), scale 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-target.is-hovered { scale: 1.03; }
.lightbox-target:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 2147483002; cursor: zoom-out; outline: none; }
.lightbox__shade { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__media { transform: none; scale: none; transition: none; cursor: zoom-out; }
.lightbox__caption { position: fixed; translate: -50% 0; text-align: center; pointer-events: none; }
.lightbox__title { margin: 0 0 6px; font: 300 22px/1.3 var(--sans); letter-spacing: -0.01em; color: #d1cbc2; }
.lightbox__text { margin: 0; font: 400 14px/1.55 var(--sans); color: rgba(209, 203, 194, 0.68); }
