/* KADI Technology — hoja de estilos base unificada
   Tokens → reset → layout → cromo global (header/footer/paleta) → primitivas compartidas → revelación → print. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens globales (oscuro por defecto) ---------- */
:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: rgb(255 255 255 / 0.035);
  --surface-2: rgb(255 255 255 / 0.065);
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.17);
  --text: #e9edf5;
  --muted: #a1abbf;
  --faint: #7c86a0;
  --brand: #2dd4bf;
  --brand-2: #a78bfa;
  --brand-ink: #2dd4bf;
  --on-brand: #04110f;
  --btn-from: var(--brand);
  --btn-to: color-mix(in oklab, var(--brand) 55%, var(--brand-2));
  --glow-a: rgb(45 212 191 / 0.18);
  --glow-b: rgb(167 139 250 / 0.16);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 20px 60px -30px rgb(0 0 0 / 0.8);
  --shadow-hover: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 26px 68px -24px rgb(0 0 0 / 0.88);
  --gold-500: #c9a227;
  --gold-ink: #7a5e14;
  --gold-ink-ui: var(--gold-500);
  --wa-ink: #25d366;
  --fail-ink: #fb7185;
  --accent-mix: 100%;
  --logo-filter: none;
  --icon-dark: block;
  --icon-light: none;
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --space-section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f4ef;
    --bg-2: #ebe9e2;
    --surface: rgb(12 18 36 / 0.035);
    --surface-2: rgb(12 18 36 / 0.065);
    --line: rgb(12 18 36 / 0.1);
    --line-2: rgb(12 18 36 / 0.2);
    --text: #0b1020;
    --muted: #485166;
    --faint: #5a6279;
    --brand: #14b8a6;
    --brand-2: #7c5ce6;
    --brand-ink: #0a6b61;
    --on-brand: #ffffff;
    --btn-from: #0f766e;
    --btn-to: #5b45c4;
    --glow-a: rgb(20 184 166 / 0.14);
    --glow-b: rgb(124 92 230 / 0.12);
    --shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 18px 50px -32px rgb(12 18 36 / 0.45);
    --shadow-hover: 0 1px 0 rgb(255 255 255 / 0.85) inset, 0 24px 56px -22px rgb(12 18 36 / 0.32);
    --gold-ink-ui: var(--gold-ink);
    --wa-ink: #0f7a3c;
    --fail-ink: #be123c;
    --accent-mix: 55%;
    --logo-filter: invert(1) hue-rotate(180deg);
    --icon-dark: none;
    --icon-light: block;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4ef;
  --bg-2: #ebe9e2;
  --surface: rgb(12 18 36 / 0.035);
  --surface-2: rgb(12 18 36 / 0.065);
  --line: rgb(12 18 36 / 0.1);
  --line-2: rgb(12 18 36 / 0.2);
  --text: #0b1020;
  --muted: #485166;
  --faint: #5a6279;
  --brand: #14b8a6;
  --brand-2: #7c5ce6;
  --brand-ink: #0a6b61;
  --on-brand: #ffffff;
  --btn-from: #0f766e;
  --btn-to: #5b45c4;
  --glow-a: rgb(20 184 166 / 0.14);
  --glow-b: rgb(124 92 230 / 0.12);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 18px 50px -32px rgb(12 18 36 / 0.45);
  --shadow-hover: 0 1px 0 rgb(255 255 255 / 0.85) inset, 0 24px 56px -22px rgb(12 18 36 / 0.32);
  --gold-ink-ui: var(--gold-ink);
  --wa-ink: #0f7a3c;
  --fail-ink: #be123c;
  --accent-mix: 55%;
  --logo-filter: invert(1) hue-rotate(180deg);
  --icon-dark: none;
  --icon-light: block;
}

/* Color de acento por proyecto: --accent llega desde accents.css */
.accented {
  --accent-ink: color-mix(in oklab, var(--accent) var(--accent-mix), #000);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
}

/* ---------- Base & Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--brand) 35%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.22s var(--ease) both vt-fade-out; }
  ::view-transition-new(root) { animation: 0.32s var(--ease) both vt-fade-in; }
}
@keyframes vt-fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Layout & Tipografía auxiliar ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(60px, 8vw, 108px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head-compact { margin-bottom: 18px; }
.section-title-lg { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px 0 18px; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 64ch; }
.lede-sm { font-size: 0.96rem; max-width: 68ch; }
.lede-stack { display: grid; gap: 14px; }
.note { color: var(--faint); font-size: 0.85rem; margin-top: 22px; }
.tabular-num { font-variant-numeric: tabular-nums; }
.inline-tool-link { color: var(--brand-ink); font-weight: 600; text-decoration: underline; }
.updates-spaced { margin-top: 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.eyebrow-split { flex-wrap: wrap; row-gap: 6px; }
.eyebrow-split > span + span::before { content: "·"; margin-right: 10px; }
@media (max-width: 480px) { .eyebrow-opt { display: none; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.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; }

/* ---------- Header & Navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 700 1.12rem/1 var(--font-display); letter-spacing: 0.06em; }
.brand-word small { font: 500 0.6rem/1 var(--font-mono); letter-spacing: 0.32em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 0.94rem; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { width: auto; padding-inline: 12px; gap: 10px; display: inline-flex; align-items: center; color: var(--muted); font-size: 0.9rem; }
.search-btn kbd { font: 500 0.72rem/1 var(--font-mono); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; color: var(--faint); }
.theme-icon-light { display: var(--icon-light); }
.theme-icon-dark { display: var(--icon-dark); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .nav {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 68px); overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 36px; margin-top: 0; background: linear-gradient(180deg, transparent, var(--bg-2)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.93rem; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); font-size: 0.93rem; max-width: 36ch; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { gap: 28px 20px; } }

/* ---------- Paleta de comandos (<dialog>) ---------- */
.palette {
  width: min(640px, calc(100% - 24px)); max-height: min(560px, 80vh); padding: 0; margin: 12vh auto auto;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.7);
}
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.palette-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 1.05rem; height: 32px; }
.palette-list { list-style: none; overflow-y: auto; max-height: calc(min(560px, 80vh) - 110px); padding: 8px; }
.palette-group { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; }
.palette-list a small { margin-left: auto; color: var(--faint); font-size: 0.78rem; text-align: right; }
.palette-list a[aria-selected="true"] { background: var(--surface-2); }
.palette-list .dot { width: 8px; height: 8px; box-shadow: none; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--faint); }
.palette-foot kbd { font-family: var(--font-mono); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; }
.palette-empty { padding: 26px; text-align: center; color: var(--muted); }

/* ---------- Primitivas UI compartidas ---------- */
:is(.palette, .lightbox, .dossier-modal)::backdrop {
  background: rgb(3 5 10 / 0.76);
  backdrop-filter: blur(8px);
}

/* Botones y enlaces */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.82rem; }
.btn-primary { background: linear-gradient(120deg, var(--btn-from), var(--btn-to)); color: var(--on-brand); box-shadow: 0 10px 30px -12px var(--brand); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -14px var(--brand); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #06080d; }
.btn-accent:hover { transform: translateY(-1px); }
.btn-wa { background: #25d366; color: #04140b; }
.btn-wa:hover { background: #20bd5a; box-shadow: 0 14px 30px -12px #25d366; }

.link-btn {
  justify-self: start; align-self: flex-start; background: none; border: 0; padding: 0;
  color: var(--brand-ink); font-weight: 600; font-size: 0.9rem; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center;
}
.link-btn svg { width: 16px; height: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); flex: none; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Chips y barras de filtros */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
.toolbar > * { min-width: 0; max-width: 100%; }
.search-field { position: relative; max-width: 420px; width: 100%; min-width: 0; }
.search-field svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); }
.search-field input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); outline: none; transition: border-color 0.2s, background 0.2s;
}
.search-field input:focus { border-color: var(--brand); background: var(--surface-2); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; min-width: 0; padding-bottom: 4px; scrollbar-width: thin; align-items: center; }
@media (max-width: 900px) {
  .chip-row { padding-right: 28px; mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
}
.chip-row-label { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); flex: none; margin-right: 6px; min-width: 56px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9rem; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--brand); background: color-mix(in oklab, var(--brand) 14%, transparent); }
.chip-clear svg { width: 14px; height: 14px; }
.results-note { color: var(--faint); font-size: 0.88rem; min-height: 1.4em; }

/* Superficies, paneles y rejillas comunes */
:is(.panel, .epistemic-box, .outcome-card, .feature-evidence-item, .vision-matrix-panel, .sandbox-panel, .comparator-toolbar, .form, .founder, .module-card, .card, .pager a, .verification-console, .three-stage-card, .visual-studio-card) {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.panel { padding: clamp(24px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.panel h2 { font-size: 1.5rem; }
.panel p { color: var(--muted); }
.panel-kicker { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink, var(--brand-ink)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col-start { align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

:is(.grid-cards, .modules-grid, .gallery-grid, .eng-arsenal-grid, .eng-roles-grid, .invariants-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-min, 330px)), 1fr));
  gap: var(--grid-gap, 16px);
}
:is(.card-thumb, .module-thumb, .gallery-img-wrap) {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
:is(.card-thumb, .module-thumb, .gallery-img-wrap) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent); flex: none; }
.empty-state { display: none; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-state.is-visible { display: block; }

/* Etiquetas mono y encabezados en mayúscula compartidos */
:is(.legend-badge, .stage-num, .pager small, .case-eyebrow, .verif-level-num, .verif-level-step, .verif-meta-dl dt, .research-trace-dl dt, .vision-metric-box span, .vision-metric-box dt, .sandbox-results-heading, .comparator-select-field, .cortex-select-label, .founder-status, .proof-title, .status-card h2, .hud-section-title, .timelapse-tag, .hero-news-tag, .outcome-index) {
  font: 600 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:is(.role-badge, .gallery-badge, .cortex-badge, .research-domain-tag, .three-renderer-badge, .studio-source-badge) {
  font: 600 0.72rem/1.1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
}
:is(.role-badge, .cortex-badge, .research-domain-tag, .three-renderer-badge) {
  color: var(--brand-ink);
  border: 1px solid color-mix(in oklab, var(--brand) 30%, var(--line));
  background: color-mix(in oklab, var(--brand) 10%, transparent);
}

/* Tablas y bloques de metadatos epistémicos */
.gate20-table-wrap,
.gate20-mini-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin-top: 6px;
}
.gate20-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; text-align: left; }
.gate20-table th, .gate20-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gate20-table th {
  font: 600 0.72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); background: var(--surface);
}
.gate20-table tr:last-child td { border-bottom: 0; }
.mono-cell { font: 600 0.74rem/1.3 var(--font-mono); color: var(--brand-ink); }

.verif-meta-bar, .dossier-meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 12px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2);
  font-size: 0.84rem; color: var(--muted);
}
.verif-meta-bar strong, .dossier-tag { color: var(--text); font-family: var(--font-mono); font-size: 0.8rem; }

:is(.epistemic-levels-dl, .research-trace-dl) { margin: 4px 0 0; display: grid; gap: 8px; }
:is(.epistemic-levels-dl, .research-trace-dl) div {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); display: grid;
}
:is(.epistemic-levels-dl, .research-trace-dl) dt {
  font: 700 0.72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
}
:is(.epistemic-levels-dl, .research-trace-dl) dd { margin: 0; font-size: 0.85rem; }

/* ---------- Aparición y revelación al hacer scroll (.js-reveal / .reveal) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-in { from { opacity: 0; translate: 0 26px; } }
    .reveal { animation: reveal-in auto var(--ease) backwards; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .hero-copy > * { animation: rise 0.8s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
}
@keyframes rise { from { translate: 0 14px; } }

html.has-js-reveal .js-reveal,
html.has-js-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 540ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    box-shadow 280ms ease;
  will-change: opacity, transform;
}
html.has-js-reveal .js-reveal:is(.is-in, .is-visible),
html.has-js-reveal [data-reveal]:is(.is-in, .is-visible) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
html.has-js-reveal :is(.js-reveal, [data-reveal])[data-reveal-delay='1'] { transition-delay: 80ms; }
html.has-js-reveal :is(.js-reveal, [data-reveal])[data-reveal-delay='2'] { transition-delay: 160ms; }
html.has-js-reveal :is(.js-reveal, [data-reveal])[data-reveal-delay='3'] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html.has-js-reveal .js-reveal,
  html.has-js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .site-footer, .comparator-toolbar, .skip-link { display: none !important; }
  body { background: #ffffff; color: #000000; }
  .founder-showcase { break-inside: avoid; }
  .gate20-table-wrap, .panel { border-color: #cbd5e1; background: #ffffff; box-shadow: none; }
}
