/* ===== assets/css/site.css ===== */
/* ============================================================
   Altarious Global — design system v2
   Dual theme (dark / light), tech-forward, scroll-reactive.
   No frameworks. One file. ~28KB.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* brand ramp */
  --teal-300: #5eead4; --teal-400: #2dd4bf; --teal-500: #14b8a6; --teal-600: #0d9488;
  --blue-400: #60a5fa; --blue-500: #3b82f6; --blue-600: #2563eb;
  --violet-400: #a78bfa; --violet-500: #8b5cf6;
  --amber-400: #fbbf24;

  --radius-xs: 8px; --radius-sm: 12px; --radius: 18px; --radius-lg: 26px; --radius-pill: 999px;
  --max: 1240px; --gutter: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .55s;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + .75vw, 2rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.7rem + 3vw, 4.4rem);
}

/* light theme (default) */
:root, [data-theme="light"] {
  --bg: #ffffff;
  --bg-sub: #f5f8fd;
  --bg-deep: #eaf0f9;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --ink: #0a1628;
  --text: #33425c;
  --muted: #6b7c96;
  --line: #e3eaf4;
  --line-strong: #cfd9e8;
  --brand: var(--teal-600);
  --brand-ink: #062e2b;
  --accent: var(--blue-600);
  --ring: rgba(13,148,136,.35);
  --shadow-1: 0 1px 2px rgba(10,22,40,.05), 0 4px 14px rgba(10,22,40,.05);
  --shadow-2: 0 4px 12px rgba(10,22,40,.07), 0 18px 44px rgba(10,22,40,.09);
  --shadow-3: 0 30px 70px rgba(10,22,40,.16);
  --glass: rgba(255,255,255,.72);
  --glass-line: rgba(255,255,255,.9);
  --grid-line: rgba(10,22,40,.05);
  --photo-veil: linear-gradient(180deg, rgba(6,17,34,.10), rgba(6,17,34,.42));
  --hero-bg: #06111f;
  --hero-text: #eef4ff;
  --code-bg: #f1f5fb;
  color-scheme: light;
}

/* dark theme */
[data-theme="dark"] {
  --bg: #060a13;
  --bg-sub: #0a1120;
  --bg-deep: #050810;
  --surface: #0e1626;
  --surface-2: #121c30;
  --ink: #f2f6fd;
  --text: #c2cfe4;
  --muted: #8697b3;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.18);
  --brand: var(--teal-400);
  --brand-ink: #04231f;
  --accent: var(--blue-400);
  --ring: rgba(45,212,191,.45);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  --shadow-2: 0 10px 30px rgba(0,0,0,.45), 0 30px 60px rgba(0,0,0,.4);
  --shadow-3: 0 40px 90px rgba(0,0,0,.6);
  --glass: rgba(14,22,38,.72);
  --glass-line: rgba(255,255,255,.08);
  --grid-line: rgba(255,255,255,.045);
  --photo-veil: linear-gradient(180deg, rgba(4,9,18,.25), rgba(4,9,18,.72));
  --hero-bg: #04070e;
  --hero-text: #f2f6fd;
  --code-bg: rgba(255,255,255,.06);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #060a13; --bg-sub: #0a1120; --bg-deep: #050810; --surface: #0e1626; --surface-2: #121c30;
    --ink: #f2f6fd; --text: #c2cfe4; --muted: #8697b3; --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.18);
    --brand: var(--teal-400); --brand-ink: #04231f; --accent: var(--blue-400); --ring: rgba(45,212,191,.45);
    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    --shadow-2: 0 10px 30px rgba(0,0,0,.45), 0 30px 60px rgba(0,0,0,.4);
    --shadow-3: 0 40px 90px rgba(0,0,0,.6);
    --glass: rgba(14,22,38,.72); --glass-line: rgba(255,255,255,.08); --grid-line: rgba(255,255,255,.045);
    --photo-veil: linear-gradient(180deg, rgba(4,9,18,.25), rgba(4,9,18,.72));
    --hero-bg: #04070e; --hero-text: #f2f6fd; --code-bg: rgba(255,255,255,.06);
    color-scheme: dark;
  }
}


/* ---------- bespoke scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--brand) 60%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--teal-400), var(--blue-500)); border-radius: 99px; border: 3px solid var(--bg); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--teal-300), var(--blue-400)); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.dropdown::-webkit-scrollbar, .preview::-webkit-scrollbar { width: 6px; }
.dropdown::-webkit-scrollbar-thumb, .preview::-webkit-scrollbar-thumb { border-width: 2px; }

/* ---------- base ---------- */
/* A component that sets display on its root would otherwise override the browser's
   [hidden] rule, leaving closed dialogs and dismissed bars on screen. */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.015em; }
h4 { font-size: var(--step-0); }
p { margin: 0 0 1.1em; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-xs); }
.skip:focus { left: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 840px; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.mono { font-family: var(--font-mono); }

/* ---------- eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow a { color: inherit; }
.hero .eyebrow { color: var(--teal-300); }

.section { padding: clamp(56px, 8vw, 116px) 0; position: relative; }
.section.alt { background: var(--bg-sub); }
.section.deep { background: var(--bg-deep); }
.section-title { margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 62ch; font-size: var(--step-1); margin-bottom: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .section-sub { margin-bottom: 0; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- decorative layers ---------- */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; will-change: transform; }
.orb-a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: radial-gradient(circle, rgba(45,212,191,.75), transparent 65%); top: -14%; right: -8%; }
.orb-b { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; background: radial-gradient(circle, rgba(59,130,246,.65), transparent 65%); bottom: -18%; left: -10%; }
.orb-c { width: 26vw; height: 26vw; max-width: 340px; max-height: 340px; background: radial-gradient(circle, rgba(139,92,246,.5), transparent 65%); top: 40%; left: 42%; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn svg { transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(115deg, var(--teal-400), var(--blue-500));
  color: #04121f; border-color: transparent;
  box-shadow: 0 8px 24px rgba(20,184,166,.28);
}
[data-theme="dark"] .btn-primary { color: #04121f; }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(20,184,166,.4); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.on-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); backdrop-filter: blur(6px); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.btn.full { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease-out); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(5px); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.pill.inbound-calls { background: rgba(20,184,166,.15); color: var(--teal-500); border-color: rgba(20,184,166,.3); }
[data-theme="dark"] .pill.inbound-calls { color: var(--teal-300); }
.pill.live-transfers { background: rgba(59,130,246,.15); color: var(--blue-600); border-color: rgba(59,130,246,.3); }
[data-theme="dark"] .pill.live-transfers { color: var(--blue-400); }
.pill.glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 90; transform-origin: 0 50%;
  transform: scaleX(0); background: linear-gradient(90deg, var(--teal-400), var(--blue-500), var(--violet-500));
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.stuck { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(0,0,0,.06); }
[data-theme="dark"] .site-header.stuck { box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { flex: none; transition: transform .5s var(--ease-out); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }

.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 10px 14px; border-radius: var(--radius-xs); color: var(--text); font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav-list > li > a:hover, .nav-list > li.open > a { color: var(--ink); background: var(--surface-2); text-decoration: none; }
[data-theme="dark"] .nav-list > li > a:hover, [data-theme="dark"] .nav-list > li.open > a { background: rgba(255,255,255,.06); }
.dd-toggle { display: none; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 268px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: var(--radius-xs); color: var(--text); font-size: .93rem; transition: background-color .2s, color .2s; }
.dropdown li a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
[data-theme="dark"] .dropdown li a:hover { background: rgba(255,255,255,.06); }
.dropdown li a span { font-size: .78rem; color: var(--muted); }
.dropdown.mega {
  left: 50%; transform: translate(-50%, 10px) scale(.98); min-width: min(920px, 92vw); padding: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.has-mega:hover > .dropdown.mega, .has-mega:focus-within > .dropdown.mega { transform: translate(-50%, 0) scale(1); }
.mega-col > .mega-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1rem; padding: 0 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mega-col .more { color: var(--brand); font-weight: 600; }
.nav-cta { flex: none; }

.theme-toggle {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  transition: transform .4s var(--ease-out), border-color .2s, background-color .2s;
}
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--brand); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme-toggle .sun { display: block; } :root:not([data-theme]) .theme-toggle .moon { display: none; } }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) { .nav-list > li > a { padding: 10px 10px; font-size: .9rem; } .nav-cta { display: none; } }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 0; background: var(--bg); flex-direction: column; align-items: stretch;
    gap: 0; padding: 20px var(--gutter) 60px; overflow-y: auto; transform: translateX(100%);
    transition: transform .45s var(--ease-out); z-index: 79;
  }
  .site-nav.open { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav-list > li > a { flex: 1; padding: 16px 4px; font-size: 1.08rem; font-family: var(--font-display); font-weight: 600; }
  .dd-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
  .dd-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .3s; }
  li.expanded .dd-toggle::after { transform: rotate(-135deg) translate(-2px,-2px); }
  .dropdown, .dropdown.mega {
    position: static; opacity: 1; visibility: visible; transform: none !important; box-shadow: none; border: 0;
    min-width: 0; width: 100%; padding: 0 0 14px 10px; background: transparent; display: none; grid-template-columns: 1fr; gap: 14px;
  }
  li.expanded > .dropdown { display: block; }
  li.expanded > .dropdown.mega { display: grid; }
  .nav-cta { display: inline-flex; margin-top: 26px; align-self: flex-start; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--hero-bg); color: var(--hero-text);
  padding: clamp(90px, 13vw, 168px) 0 clamp(70px, 10vw, 128px);
}
.hero h1, .hero h2, .hero h3 { color: var(--hero-text); }
.hero .lead { color: rgba(238,244,255,.72); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 118%; object-fit: cover; opacity: .38; will-change: transform; transform: translate3d(0,0,0) scale(1.06); }
[data-theme="dark"] .hero-media img { opacity: .3; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(45,212,191,.30), transparent 62%),
    radial-gradient(900px 560px at 8% 105%, rgba(59,130,246,.32), transparent 62%),
    linear-gradient(180deg, rgba(4,9,18,.62) 0%, rgba(4,9,18,.80) 55%, var(--hero-bg) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 60px; align-items: center; }
.hero-inner.single { grid-template-columns: 1fr; }
.hero h1 { max-width: 16ch; margin-bottom: 22px; }
.hero-compact { padding: clamp(64px, 9vw, 108px) 0 clamp(48px, 7vw, 84px); }
.hero-compact h1 { max-width: 20ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; }
.hero-figure { position: relative; padding-inline: 6px; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } .hero-figure { display: none; } .hero-actions .btn { flex: 1 1 100%; } }

/* floating stat chip on hero image */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-line);
  border-radius: var(--radius); box-shadow: var(--shadow-2); color: var(--ink);
}
.float-card strong { font-family: var(--font-display); font-size: 1.3rem; display: block; line-height: 1.1; }
.float-card span { font-size: .78rem; color: var(--muted); }
.float-card.tl { top: 6%; left: 6%; } .float-card.br { bottom: 6%; right: 6%; }
@media (max-width: 1000px) { .float-card { display: none; } }

/* ---------- ticker / marquee ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-sub); overflow: hidden; padding: 20px 0; }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: marquee 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--muted); white-space: nowrap; }
.ticker-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats-band { background: var(--surface); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { padding: 34px 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stats span { display: block; margin-top: 8px; font-size: .88rem; color: var(--muted); }
@media (max-width: 780px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div { border-top: 1px solid var(--line); } .stats > div:nth-child(odd) { border-left: 0; } }

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
a.card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--muted); font-size: .96rem; }
.card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.card .link-arrow { margin-top: auto; padding-top: 14px; }

/* tilt (3D) */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform: translateZ(0.01px); }
.tilt .tilt-lift { transform: translateZ(28px); }

/* media frames */
.media { position: relative; overflow: hidden; background: var(--bg-deep); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.media::after { content: ""; position: absolute; inset: 0; background: var(--photo-veil); opacity: .85; transition: opacity .5s; }
.media.plain::after { display: none; }
a.card:hover .media img, .zoom-parent:hover .media img { transform: scale(1.07); }
.ratio-16-9 { aspect-ratio: 16/9; } .ratio-4-3 { aspect-ratio: 4/3; } .ratio-3-2 { aspect-ratio: 3/2; } .ratio-1-1 { aspect-ratio: 1/1; }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.media-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(45,212,191,.16), transparent 42%, rgba(59,130,246,.16));
  mix-blend-mode: screen; opacity: .8;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* service / vertical cards */
.service-card { padding: 30px; }
.service-card .num { font-family: var(--font-mono); font-size: .74rem; color: var(--brand); letter-spacing: .16em; margin-bottom: 18px; }
.service-card .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; color: var(--brand-ink); background: linear-gradient(135deg, var(--teal-400), var(--blue-500)); box-shadow: 0 8px 22px rgba(20,184,166,.28); }
.vertical-card .card-body { padding: 28px; }
.vertical-card .count { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.sv-card { padding: 26px; }
.sv-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.sv-card .tags span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: var(--radius-pill); }
[data-theme="dark"] .sv-card .tags span { background: rgba(255,255,255,.05); }
.sv-card.with-media { padding: 0; }
.sv-card.with-media .card-body { padding: 24px; }

.product-card { padding: 0; }
.product-card .card-body { padding: 28px; }
.product-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal-400), var(--blue-500)); z-index: 3; }
.product-card.live-transfers::before { background: linear-gradient(90deg, var(--blue-500), var(--violet-500)); }

/* feature grid */
.feature { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s var(--ease-out); }
.feature:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-1); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; margin-bottom: 18px; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent); }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- process: sticky rail ---------- */
.process-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 60px; align-items: start; }
.process-sticky { position: sticky; top: 110px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 22px 22px 0; border-radius: var(--radius); transition: background-color .4s, opacity .4s; opacity: .45; }
.step.on { opacity: 1; background: var(--surface); box-shadow: var(--shadow-1); padding-left: 22px; }
.step-num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .9rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); transition: all .4s var(--ease-out); }
.step.on .step-num { color: var(--brand-ink); background: linear-gradient(135deg, var(--teal-400), var(--blue-500)); border-color: transparent; box-shadow: 0 8px 20px rgba(20,184,166,.3); }
.step h3 { font-size: 1.06rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .process-layout { grid-template-columns: 1fr; gap: 34px; } .process-sticky { position: static; } .step { opacity: 1; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: center; }
.split.reverse > *:first-child { order: 2; }
@media (max-width: 920px) { .split, .split.even { grid-template-columns: 1fr; gap: 36px; } .split.reverse > *:first-child { order: 0; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.side-card.sticky { position: sticky; top: 108px; }
.side-card h3 { font-size: 1.02rem; margin-top: 22px; }
.side-card h3:first-child { margin-top: 0; }
.side-card.glass { background: var(--glass); backdrop-filter: blur(16px); border-color: var(--glass-line); }

.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding: 9px 0 9px 32px; font-size: .96rem; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.checks li::after { content: ""; position: absolute; left: 5px; top: 18px; width: 8px; height: 4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.plain-links { list-style: none; padding: 0; margin: 0; }
.plain-links li { border-bottom: 1px solid var(--line); }
.plain-links li:last-child { border: 0; }
.plain-links a { display: block; padding: 11px 0; color: var(--text); font-size: .94rem; transition: color .2s, padding-left .3s var(--ease-out); }
.plain-links a:hover { color: var(--brand); padding-left: 6px; text-decoration: none; }

.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 28px; }
.link-grid a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .95rem; transition: color .2s, padding-left .3s var(--ease-out); }
.link-grid a:hover { color: var(--brand); padding-left: 6px; text-decoration: none; }
@media (max-width: 820px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .link-grid { grid-template-columns: 1fr; } }
.tags.big { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags.big li { font-family: var(--font-mono); font-size: .82rem; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
[data-theme="dark"] .tags.big li { background: rgba(255,255,255,.05); }
.group-title { margin: 34px 0 14px; font-size: 1.1rem; }

/* ---------- article cards ---------- */
.article-card .media { aspect-ratio: 16/9; }
.article-card .card-meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.article-card h3 { font-size: 1.08rem; line-height: 1.3; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--brand); text-decoration: none; }
.article-card p { font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-family: var(--font-display); font-weight: 600; color: var(--ink); position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 24px; top: 50%; background: var(--brand); transition: transform .3s var(--ease-out); }
.faq summary::before { width: 14px; height: 2px; margin-top: -1px; }
.faq summary::after { width: 2px; height: 14px; margin-top: -7px; right: 30px; }
.faq details[open] summary::after { transform: rotate(90deg); opacity: 0; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: clip; isolation: isolate; background: var(--hero-bg); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 460px at 12% -20%, rgba(45,212,191,.34), transparent 60%), radial-gradient(800px 420px at 88% 120%, rgba(59,130,246,.34), transparent 60%);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.72); margin: 0; max-width: 56ch; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-2); }
.inquiry-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--ink); font-family: var(--font-body); letter-spacing: .01em; }
.inquiry-form label span { color: #ef4444; }
.inquiry-form label.full { grid-column: 1 / -1; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  font: inherit; font-size: .97rem; font-weight: 400; padding: 13px 15px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--bg); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.inquiry-form input::placeholder, .inquiry-form textarea::placeholder { color: var(--muted); opacity: .75; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.inquiry-form .invalid { border-color: #ef4444; }
.inquiry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: .8rem; color: var(--muted); margin: 18px 0; }
.form-status { min-height: 1.4em; font-weight: 600; margin-top: 14px; font-size: .92rem; }
.form-status.ok { color: var(--teal-600); } [data-theme="dark"] .form-status.ok { color: var(--teal-300); }
.form-status.err { color: #ef4444; }
.inquiry-form.sent .form-grid, .inquiry-form.sent button, .inquiry-form.sent .form-consent, .inquiry-form.sent .cf-turnstile { display: none; }
.cf-turnstile { margin-top: 14px; }
@media (max-width: 640px) { .inquiry-form .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { padding: 16px var(--gutter); font-size: .82rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }
.hero + .breadcrumbs, .breadcrumbs.on-dark { color: rgba(255,255,255,.7); }

/* ---------- prose ---------- */
.prose { max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-2); margin: 1.8em 0 .6em; }
.prose h3 { font-size: var(--step-1); margin: 1.5em 0 .5em; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1.4em; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--brand); color: var(--ink); font-size: 1.14rem; font-family: var(--font-display); font-weight: 500; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--code-bg); padding: 2px 6px; border-radius: 5px; }
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.prose figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------- article page ---------- */
.article-hero { position: relative; overflow: clip; background: var(--hero-bg); color: #fff; padding: clamp(70px, 9vw, 120px) 0 clamp(140px, 16vw, 210px); }
.article-hero .hero-media img { opacity: .32; }
.article-hero h1 { color: #fff; max-width: 22ch; font-size: var(--step-3); }
.article-hero .article-meta { color: rgba(255,255,255,.65); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; }
.article-hero .eyebrow a { color: var(--teal-300); }
.article-lead-media { margin-top: clamp(-120px, -12vw, -170px); position: relative; z-index: 3; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; padding: 56px 0 72px; align-items: start; }
.article-side { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; gap: 36px; } .article-side { position: static; } }
.reading-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.reading-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-400), var(--blue-500)); }

/* ---------- case studies ---------- */
.case { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.case .media { height: 100%; min-height: 300px; }
.case-content { padding: 40px; }
.case-head { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.case-grid { display: grid; gap: 20px; margin: 22px 0; }
.case-grid h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.case-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 880px) { .case { grid-template-columns: 1fr; } .case .media { min-height: 220px; } .case-content { padding: 28px; } }

/* ---------- filter nav ---------- */
.filter-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-nav a { padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--text); font-size: .9rem; font-weight: 500; transition: all .25s; }
.filter-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.filter-nav a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: clamp(52px, 7vw, 82px) 0 32px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2.2fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.site-footer h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer h4 a { color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: var(--text); font-size: .93rem; transition: color .2s, padding-left .25s var(--ease-out); display: inline-block; }
.site-footer li a:hover { color: var(--brand); padding-left: 4px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; max-width: 70ch; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); will-change: opacity, transform; }
html.js [data-reveal="left"] { transform: translateX(-32px); }
html.js [data-reveal="right"] { transform: translateX(32px); }
html.js [data-reveal="scale"] { transform: scale(.94); }
html.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
html.js [data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.parallax { will-change: transform; }

/* counters */
.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .ticker-track { animation: none; }
}

/* print */
@media print { .site-header, .site-footer, .cta-band, .scroll-progress, .theme-toggle { display: none !important; } body { background: #fff; color: #000; } }

/* ============================================================
   Approved design directions D1–D10
   ============================================================ */

/* D1 — instrumented scroll */
.scroll-progress { height: 3px; }
.scroll-readout {
  position: fixed; top: 14px; right: 18px; z-index: 91;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 11px;
  opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; pointer-events: none;
}
.scroll-readout.on { opacity: 1; transform: none; }
@media (max-width: 760px) { .scroll-readout { display: none; } }

/* D2 — scrubbed hero sequence */
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > i { display: block; font-style: inherit; will-change: transform; }
html.js .hero h1 .line > i { transform: translateY(105%); }
html.js .hero.seq h1 .line > i { transition: transform 1s var(--ease-out); transform: translateY(0); }
html.js .hero.seq h1 .line:nth-child(2) > i { transition-delay: .09s; }
html.js .hero.seq h1 .line:nth-child(3) > i { transition-delay: .18s; }
html.js .hero.seq h1 .line:nth-child(4) > i { transition-delay: .27s; }

/* D3 — signal path diagram */
.signal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.signal svg { width: 100%; height: auto; display: block; overflow: visible; }
.signal .wire-base { stroke: var(--line-strong); stroke-width: 2; fill: none; }
.signal .wire-lit { stroke: url(#agWire); stroke-width: 2.5; fill: none; stroke-linecap: round; opacity: 0; }
.signal .node circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; transition: fill .35s, stroke .35s; }
.signal .node.on circle { fill: var(--teal-400); stroke: var(--teal-400); }
.signal .node text { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); transition: fill .35s; }
.signal .node.on text { fill: var(--ink); }
.signal-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
.signal-steps li { list-style: none; border-top: 1px solid var(--line); padding-top: 12px; transition: border-color .35s; }
.signal-steps li.on { border-top-color: var(--brand); }
.signal-steps h3 { font-size: .92rem; margin-bottom: 4px; }
.signal-steps p { font-size: .84rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .signal-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .signal-steps { grid-template-columns: 1fr; } }

/* D4 — operations board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(104px, auto); gap: 16px; }
.board .cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; overflow: hidden; }
.board .cell.wide { grid-column: span 2; }
.board .cell.tall { grid-row: span 2; }
.board .k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.board .v { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.board .feed { font-family: var(--font-mono); font-size: .7rem; line-height: 2.1; color: var(--muted); }
.board .feed div { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; border-bottom: 1px dashed var(--line); }
.board .feed div:last-child { border-bottom: 0; }
.board .feed .st { color: var(--brand); }
.board .bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; }
.board .bars i { flex: 1; background: var(--line-strong); border-radius: 2px 2px 0 0; }
.board .bars i.hi { background: linear-gradient(180deg, var(--teal-400), var(--blue-500)); }
@media (max-width: 900px) { .board { grid-template-columns: repeat(2, 1fr); } .board .cell.tall { grid-row: span 1; } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } .board .cell.wide { grid-column: span 1; } }

/* D5 — vertical explorer */
.explorer { display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: 30px; align-items: start; }
.ex-list { display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; padding-right: 8px; counter-reset: exi; }
.ex-list a, .ex-list button {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 13px 14px 13px 12px; font: inherit; font-size: .97rem; font-weight: 500;
  color: var(--muted); text-decoration: none; cursor: pointer;
  transition: color .22s var(--ease), background-color .22s var(--ease), padding-left .22s var(--ease);
}
.ex-list a::before, .ex-list button::before {
  counter-increment: exi; content: counter(exi, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--line-strong);
  transition: color .22s;
}
.ex-list a::after, .ex-list button::after {
  content: ""; margin-left: auto; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0; transition: opacity .22s, transform .22s var(--ease);
}
.ex-list a:hover, .ex-list button:hover { color: var(--ink); text-decoration: none; padding-left: 18px; }
.ex-list a:hover::after, .ex-list button:hover::after { opacity: .5; }
.ex-list a.on, .ex-list button.on {
  color: var(--ink); background: var(--surface); font-weight: 600; padding-left: 18px;
  box-shadow: inset 3px 0 0 var(--brand);
}
.ex-list a.on::before, .ex-list button.on::before { color: var(--brand); }
.ex-list a.on::after, .ex-list button.on::after { opacity: 1; transform: rotate(45deg) translate(2px, -2px); }
.ex-pane { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 340px; box-shadow: var(--shadow-1); }
.ex-media { position: relative; overflow: hidden; min-height: 240px; }
.ex-media img { width: 100%; height: 100%; object-fit: cover; }
.ex-media::after { content: ""; position: absolute; inset: 0; background: var(--photo-veil); opacity: .5; }
.ex-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.ex-body h3 { margin: 0; font-size: 1.5rem; }
.ex-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.ex-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.ex-swap { animation: exIn .5s var(--ease-out); }
@keyframes exIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .explorer { grid-template-columns: 1fr; gap: 18px; }
  .ex-list { flex-direction: row; overflow-x: auto; max-height: none; padding: 0 0 6px; }
  .ex-list a, .ex-list button { white-space: nowrap; border-bottom: 2px solid var(--line); padding: 10px 14px; }
  .ex-list a::after, .ex-list button::after { display: none; }
  .ex-list a.on, .ex-list button.on { box-shadow: none; border-bottom-color: var(--brand); background: transparent; }
  .ex-pane { grid-template-columns: 1fr; }
  .ex-media { min-height: 200px; }
}

/* D6 — transfer visualiser */
.transfer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.transfer-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.transfer-states { display: flex; gap: 8px; flex-wrap: wrap; }
.transfer-states span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
.transfer-states span.on { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.transfer-states span.done { opacity: .55; }
.transfer canvas { display: block; width: 100%; height: 100px; border-radius: var(--radius-sm); background: var(--bg-deep); }
.transfer-log { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-top: 14px; min-height: 2.8em; line-height: 1.9; }

/* D7 — spotlight + magnetic CTA */
.cta-band { --mx: 50%; --my: 50%; --so: 0; }
.cta-band::after {
  content: ""; position: absolute; z-index: 0; width: 480px; height: 480px; border-radius: 50%;
  left: var(--mx); top: var(--my); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(45,212,191,.24), transparent 68%);
  opacity: var(--so); transition: opacity .4s;
}
.cta-band .container { position: relative; z-index: 1; }
.magnetic { transition: transform .22s cubic-bezier(.2,.9,.3,1.3); }

/* D8 — editorial reading mode */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.5em; line-height: .8; font-weight: 700;
  padding: .06em .12em 0 0; color: var(--brand);
}
.article-toc { display: flex; flex-direction: column; gap: 2px; }
.article-toc a { border-left: 2px solid var(--line); padding: 8px 0 8px 14px; font-size: .88rem; color: var(--muted); transition: color .2s, border-color .2s; }
.article-toc a:hover { color: var(--ink); text-decoration: none; }
.article-toc a.on { color: var(--ink); border-left-color: var(--brand); }
.prose .pull { border-left: 3px solid var(--brand); padding: 6px 0 6px 22px; margin: 2em 0; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.38; color: var(--ink); }

/* D9 — metrics that build */
.stats .spark { margin-top: 14px; height: 32px; width: 100%; display: block; overflow: visible; }
.stats .spark polyline { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stats .spark circle { fill: var(--brand); }

/* D10 — morphing page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .26s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .34s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
::view-transition-group(hero-media) { animation-duration: .5s; }
.hero-media { view-transition-name: hero-media; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero-media { view-transition-name: none; }
}


/* ---------- header refinements ----------
   The bar must stay one line tall at every width: nothing in it wraps, the search
   trigger keeps a usable width, and the nav sheds its least important items before
   anything is allowed to squash. */
.header-inner { height: 72px; gap: 18px; flex-wrap: nowrap; }
.brand { flex: 0 0 auto; }
.brand span { white-space: nowrap; }
.site-nav { min-width: 0; }
.nav-list { flex-wrap: nowrap; }
.nav-list > li > a { white-space: nowrap; }
.nav-cta { flex: 0 0 auto; white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

@media (max-width: 1400px) { .nav-list > li > a { padding-inline: 11px; } }
@media (max-width: 1260px) {
  /* Resources and Case Studies still live in the footer and the palette */
  .nav-list > li.nav-optional { display: none; }
}
@media (max-width: 1080px) {
  .nav-cta { display: none; }
}


/* illustrative figure marker — a simulated number must always carry it */
.board .k .sim-tag {
  font-style: normal; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 2px 7px; margin-left: 6px; vertical-align: middle; white-space: nowrap;
}

/* ===== assets/css/icons.css ===== */
/* ===== Altarious icon system =========================================
   Scoped strictly to `.ico` (emitted by scripts/lib/icons.mjs) and its two
   internal layers, `.ico-bg` (gradient backing) and `.ico-fg` (currentColor
   drawing). Nothing else on the page is touched.
   The SVG ships correct presentation attributes on its own; this file adds
   sizing, alignment, theme response and motion.
   ==================================================================== */

.ico {
  /* one knob controls the whole mark */
  --ico-size: 44px;
  --ico-bg-opacity: 1;
  --ico-stroke: 2.1;

  display: inline-block;
  width: var(--ico-size);
  height: var(--ico-size);
  flex: 0 0 auto;
  vertical-align: middle;
  overflow: visible;
  color: inherit;                 /* foreground follows the text colour */
  -webkit-user-select: none;
  user-select: none;
  transition: transform .38s cubic-bezier(.2, .8, .3, 1), opacity .28s ease;
}

/* The backing shape. Gradient itself lives in the SVG <defs> and is built from
   --teal-400 / --blue-500, so it re-tints automatically with the theme. */
.ico .ico-bg {
  opacity: var(--ico-bg-opacity);
  transition: opacity .28s ease;
}

.ico .ico-fg {
  stroke: currentColor;
  stroke-width: var(--ico-stroke);
  vector-effect: non-scaling-stroke;
}

/* ---- size modifiers ------------------------------------------------- */
.ico-sm { --ico-size: 28px; --ico-stroke: 2.4; }
.ico-md { --ico-size: 44px; }
.ico-lg { --ico-size: 56px; --ico-stroke: 1.95; }
.ico-xl { --ico-size: 72px; --ico-stroke: 1.8; }

/* ---- tone modifiers ------------------------------------------------- */
.ico-brand { color: var(--brand, currentColor); }
.ico-accent { color: var(--accent, currentColor); }
.ico-flat { --ico-bg-opacity: 0; }        /* foreground only */
.ico-solid { --ico-bg-opacity: 1.35; }    /* denser backing on pale surfaces */

/* Dark theme: the ink is light, so the tinted backing needs a little more
   presence to stay visible against --surface. */
:root[data-theme="dark"] .ico,
.theme-dark .ico { --ico-bg-opacity: 1.25; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico { --ico-bg-opacity: 1.25; }
}

/* ---- interaction ---------------------------------------------------- */
.card:hover > .ico,
.card:hover .ico,
a:hover > .ico,
.feature:hover .ico {
  transform: translateY(-2px) scale(1.045);
}

.card:hover .ico .ico-bg,
.feature:hover .ico .ico-bg { opacity: calc(var(--ico-bg-opacity) * 1.3); }

@media (prefers-reduced-motion: reduce) {
  .ico, .ico .ico-bg { transition: none; }
  .card:hover .ico, .feature:hover .ico, a:hover > .ico { transform: none; }
}

/* ---- optional framed presentation ----------------------------------- */
.ico-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  background: var(--surface-2, transparent);
}

/* Print: gradients rarely survive, so lean on the outline. */
@media print {
  .ico { --ico-bg-opacity: .45; }
}

/* ===== assets/css/terrain.css ===== */
/* ============================================================
   Altarious Global — "Signal Terrain" layer
   Styles ONLY the decorative terrain layer injected by terrain.js.
   Every selector is scoped to .terrain* or [data-terrain].
   No html/body/:root rules. No existing class is touched.
   ============================================================ */

/* The host: any hero/section carrying data-terrain. We only establish a
   stacking context and clipping so the layer can sit behind hero content
   without escaping. Background is left entirely to the existing hero rule. */
[data-terrain] {
  /* No position here: the host may already be absolutely positioned (the hero media
     layer is `position:absolute; inset:0`), and this rule has equal specificity to
     .hero-media, so setting position would win on source order and collapse it to
     zero height. The script sets position:relative only when the host is static. */
  isolation: isolate;
  overflow: clip;
}

/* ---------- the layer ---------- */
.terrain-layer {
  position: absolute;
  inset: 0;
  z-index: -1;              /* above .hero-media (-2), below .container (2) */
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  contain: strict;
  /* if the canvas fails and is removed, this ground still matches the hero */
  background: var(--hero-bg, #04070e);
}

.terrain-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* keeps fine cyan linework from clipping to grey on the dark ground */
  mix-blend-mode: screen;
}

/* Light theme keeps a dark hero ground, so the terrain still screens.
   Forced-colors users get no decorative wash at all. */
@media (forced-colors: active) {
  .terrain-canvas { display: none; }
}

/* ---------- scrim: guarantees headline contrast ---------- */
.terrain-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* horizon glow, brand-tinted */
    radial-gradient(90% 46% at 50% 44%,
      color-mix(in srgb, var(--brand, #2dd4bf) 16%, transparent) 0%,
      transparent 62%),
    radial-gradient(72% 42% at 80% 26%,
      color-mix(in srgb, var(--accent, #60a5fa) 14%, transparent) 0%,
      transparent 70%),
    /* top-down text bed: the headline area is always the darkest band */
    linear-gradient(180deg,
      color-mix(in srgb, var(--hero-bg, #04070e) 62%, transparent) 0%,
      color-mix(in srgb, var(--hero-bg, #04070e) 26%, transparent) 30%,
      transparent 56%,
      color-mix(in srgb, var(--hero-bg, #04070e) 30%, transparent) 100%),
    /* left-weighted bed for left-aligned hero copy */
    linear-gradient(90deg,
      color-mix(in srgb, var(--hero-bg, #04070e) 46%, transparent) 0%,
      transparent 52%);
}

/* Fallback for engines without color-mix(): plain dark scrim. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .terrain-scrim {
    background:
      radial-gradient(90% 46% at 50% 44%, rgba(45, 212, 191, .14) 0%, transparent 62%),
      radial-gradient(72% 42% at 80% 26%, rgba(96, 165, 250, .12) 0%, transparent 70%),
      linear-gradient(180deg, rgba(4, 7, 14, .82) 0%, rgba(4, 7, 14, .46) 34%,
        rgba(4, 7, 14, .10) 58%, rgba(4, 7, 14, .58) 100%),
      linear-gradient(90deg, rgba(4, 7, 14, .62) 0%, transparent 56%);
  }
}

/* Article heroes carry body copy right after: push the scrim heavier. */
.terrain-layer[data-terrain-preset="article"] .terrain-scrim {
  opacity: .92;
}
.terrain-layer[data-terrain-preset="home"] .terrain-scrim {
  opacity: .86;
}

/* ---------- grain / vignette overlay ---------- */
.terrain-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .9;
  background:
    /* scanline weave — reads as instrumentation, not texture */
    repeating-linear-gradient(180deg,
      rgba(255, 255, 255, .028) 0 1px,
      rgba(255, 255, 255, 0) 1px 3px),
    /* vignette */
    radial-gradient(122% 92% at 50% 48%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .62) 100%);
}

/* ---------- optional framed variant ---------- */
.terrain-layer.terrain-framed {
  border-radius: var(--radius, 18px);
  box-shadow: inset 0 0 0 1px var(--line, rgba(255, 255, 255, .09));
}

/* ---------- optional caption chip (author-supplied markup) ---------- */
.terrain-caption {
  position: absolute;
  left: var(--gutter, 24px);
  bottom: 16px;
  z-index: 1;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, .09));
  border-radius: var(--radius-xs, 8px);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand, #2dd4bf);
  background: rgba(4, 7, 14, .55);
  backdrop-filter: blur(6px);
}
.terrain-caption::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #60a5fa);
  box-shadow: 0 0 8px currentColor;
}

/* ---------- motion / density preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .terrain-grain {
    background:
      radial-gradient(122% 92% at 50% 48%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .62) 100%);
  }
}

/* On small screens the terrain is atmosphere only — pull it back hard so
   the headline never has to fight it. */
@media (max-width: 640px) {
  .terrain-canvas { opacity: .72; }
  .terrain-grain { opacity: 1; }
  .terrain-caption { display: none; }
}

/* ===== assets/css/comp-a.css ===== */
/* ============================================================
   Altarious Global — component set A (C1–C10)
   Every rule is scoped to its own component class.
   Tokens only — no literal colours, no html/body/:root rules.
   ============================================================ */

/* ---------- C1 · .ag-anchor ---------- */
.ag-anchor { position: relative; padding-left: 14px; font-family: var(--font-body); }
.ag-anchor::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 2px;
  width: 2px; background: var(--line); border-radius: var(--radius-pill);
}
.ag-anchor__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.ag-anchor__list { list-style: none; margin: 0; padding: 0; }
.ag-anchor__item { margin: 0; }
.ag-anchor__link {
  display: flex; align-items: baseline; gap: 9px; padding: 8px 6px 8px 0;
  font-size: var(--step--1); line-height: 1.25; color: var(--muted);
  text-decoration: none; border-radius: var(--radius-xs);
  transition: color .2s var(--ease);
}
.ag-anchor__link:hover { color: var(--text); text-decoration: none; }
.ag-anchor__link.is-active { color: var(--ink); font-weight: 600; }
.ag-anchor__link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-anchor__num { font-family: var(--font-mono); font-size: .62rem; opacity: .75; }
.ag-anchor__indicator {
  position: absolute; left: -1px; top: 28px; width: 4px; height: 20px;
  border-radius: var(--radius-pill); background: var(--brand); opacity: 0;
  transition: transform .32s var(--ease), height .32s var(--ease), opacity .2s var(--ease);
}
.ag-anchor.is-ready .ag-anchor__indicator { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ag-anchor__indicator, .ag-anchor__link { transition: none; }
}

/* ---------- C2 · .ag-coverage ---------- */
.ag-coverage {
  position: relative; font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-1); padding: 22px;
}
.ag-coverage__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.ag-coverage__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-coverage__title {
  margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ink); letter-spacing: -.015em;
}
.ag-coverage__toggle {
  display: inline-flex; gap: 3px; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-2);
}
.ag-coverage__tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: var(--step--1); padding: 6px 14px; border-radius: var(--radius-pill);
  color: var(--muted); transition: color .2s var(--ease), background .2s var(--ease);
}
.ag-coverage__tab:hover { color: var(--text); }
.ag-coverage__tab.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.ag-coverage__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-coverage__grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.ag-coverage__cell {
  display: flex; align-items: center; justify-content: center; height: 30px;
  padding: 0; border: 1px solid transparent; border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500; cursor: default;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.ag-coverage__cell:hover, .ag-coverage__cell:focus-visible {
  transform: translateY(-1px); box-shadow: var(--shadow-2); outline: none; z-index: 2;
}
.ag-coverage__cell:focus-visible { border-color: var(--brand); }
.ag-coverage__cell.is-l3, .ag-coverage__swatch.is-l3 { background: var(--brand); color: var(--brand-ink); }
.ag-coverage__cell.is-l2, .ag-coverage__swatch.is-l2 { background: color-mix(in srgb, var(--brand) 42%, var(--surface-2)); color: var(--ink); }
.ag-coverage__cell.is-l1, .ag-coverage__swatch.is-l1 { background: color-mix(in srgb, var(--accent) 26%, var(--surface-2)); color: var(--ink); }
.ag-coverage__cell.is-l0, .ag-coverage__swatch.is-l0 { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.ag-coverage__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-top: 16px;
}
.ag-coverage__legend {
  display: flex; gap: 16px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
  font-size: var(--step--1); color: var(--muted);
}
.ag-coverage__legend li { display: flex; align-items: center; gap: 7px; }
.ag-coverage__swatch { width: 12px; height: 12px; border-radius: var(--radius-xs); display: inline-block; border: 1px solid transparent; }
.ag-coverage__count { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text); }
.ag-coverage__tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 8px 11px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: var(--shadow-2);
  font-size: var(--step--1); line-height: 1.45; color: var(--text);
  white-space: nowrap; transform: translate(-50%, -100%);
}
.ag-coverage__tip b { display: block; font-family: var(--font-mono); letter-spacing: .06em; color: var(--ink); }
@media (max-width: 640px) { .ag-coverage__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ag-coverage__cell, .ag-coverage__tab { transition: none; } }

/* ---------- C3 · .ag-compare ---------- */
.ag-compare {
  font-family: var(--font-body); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); padding: 22px;
}
.ag-compare__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ag-compare__head { margin-bottom: 16px; }
.ag-compare__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-compare__title {
  margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ink); letter-spacing: -.015em;
}
.ag-compare__scroll { overflow-x: auto; }
.ag-compare__table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 460px; }
.ag-compare__table th, .ag-compare__table td {
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.ag-compare__table thead th {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.ag-compare__table tbody th { width: 28%; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.ag-compare__table tbody td { color: var(--text); }
.ag-compare__table tbody tr:last-child th, .ag-compare__table tbody tr:last-child td { border-bottom: 0; }
.ag-compare__table th[data-col], .ag-compare__table td[data-col] { width: 24%; }
.ag-compare__table [data-col].is-hot { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--ink); }
.ag-compare__table thead th[data-col].is-hot { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.ag-compare__table thead th[data-col]:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ag-compare__meter {
  display: inline-block; width: 28px; height: 5px; border-radius: var(--radius-pill);
  margin-right: 8px; vertical-align: middle; background: var(--line-strong);
  position: relative; overflow: hidden;
}
.ag-compare__meter::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--ag-meter, 50%); background: var(--brand); border-radius: var(--radius-pill);
}
@media (max-width: 640px) {
  .ag-compare__scroll { overflow-x: visible; }
  .ag-compare__table, .ag-compare__table tbody, .ag-compare__table tr,
  .ag-compare__table tbody th, .ag-compare__table tbody td { display: block; width: auto; min-width: 0; }
  .ag-compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ag-compare__table tbody tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .ag-compare__table tbody tr:last-child { border-bottom: 0; }
  .ag-compare__table tbody th {
    width: auto; padding: 0 0 6px; border: 0; font-family: var(--font-mono);
    font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  }
  .ag-compare__table tbody td {
    border: 0; padding: 4px 0 4px 10px; display: flex; justify-content: space-between;
    gap: 12px; border-left: 2px solid var(--line);
  }
  .ag-compare__table tbody td::before { content: attr(data-label); color: var(--muted); order: -1; }
  .ag-compare__table tbody td.is-hot { border-left-color: var(--brand); }
}
@media (prefers-reduced-motion: reduce) { .ag-compare__table th, .ag-compare__table td { transition: none; } }

/* ---------- C4 · .ag-calc ---------- */
.ag-calc {
  font-family: var(--font-body); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); padding: 22px;
}
.ag-calc__head { margin-bottom: 16px; }
.ag-calc__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-calc__title {
  margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ink); letter-spacing: -.015em;
}
.ag-calc__body { display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: start; }
.ag-calc__field { margin-bottom: 18px; }
.ag-calc__field:last-child { margin-bottom: 0; }
.ag-calc__field label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: var(--step--1); color: var(--text); margin-bottom: 8px;
}
.ag-calc__field output { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.ag-calc__scale {
  display: flex; justify-content: space-between; font-family: var(--font-mono);
  font-size: .6rem; color: var(--muted); margin-top: 4px;
}
.ag-calc__range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 20px;
  background: transparent; margin: 0; cursor: pointer; display: block;
}
.ag-calc__range::-webkit-slider-runnable-track {
  height: 4px; border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--brand) 0 var(--ag-fill, 20%), var(--line-strong) var(--ag-fill, 20%) 100%);
}
.ag-calc__range::-moz-range-track { height: 4px; border-radius: var(--radius-pill); background: var(--line-strong); }
.ag-calc__range::-moz-range-progress { height: 4px; border-radius: var(--radius-pill); background: var(--brand); }
.ag-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; margin-top: -5.5px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); box-shadow: var(--shadow-1);
}
.ag-calc__range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--brand); box-shadow: var(--shadow-1);
}
.ag-calc__range:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-xs); }
.ag-calc__out {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 14px 16px;
}
.ag-calc__stat { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ag-calc__stat:first-child { padding-top: 0; }
.ag-calc__k {
  display: block; font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ag-calc__v {
  display: block; font-family: var(--font-display); font-size: var(--step-2);
  font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.ag-calc__v.is-accent { color: var(--brand); }
.ag-calc__note { margin: 10px 0 0; font-size: .68rem; line-height: 1.5; color: var(--muted); }
.ag-calc__note span { font-family: var(--font-mono); color: var(--text); }
@media (max-width: 720px) { .ag-calc__body { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .ag-calc__range { transition: none; } }

/* ---------- C5 · .ag-criteria ---------- */
.ag-criteria {
  font-family: var(--font-body); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); padding: 22px;
}
.ag-criteria__head { margin-bottom: 16px; }
.ag-criteria__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-criteria__title {
  margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ink); letter-spacing: -.015em;
}
.ag-criteria__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ag-criteria__chip {
  font: inherit; font-size: var(--step--1); cursor: pointer;
  padding: 7px 14px 7px 26px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  position: relative; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.ag-criteria__chip::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px;
  margin-top: -4px; border-radius: 50%; border: 1px solid var(--line-strong);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.ag-criteria__chip:hover { border-color: var(--muted); color: var(--ink); }
.ag-criteria__chip[aria-pressed="true"] {
  border-color: var(--brand); color: var(--ink); font-weight: 600;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.ag-criteria__chip[aria-pressed="true"]::before { background: var(--brand); border-color: var(--brand); }
.ag-criteria__chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-criteria__panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 15px 17px 17px;
}
.ag-criteria__k {
  display: block; font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ag-criteria__sentence { margin: 8px 0 15px; font-size: var(--step-0); line-height: 1.6; color: var(--text); min-height: 3em; }
.ag-criteria__sentence b {
  color: var(--ink); font-weight: 600;
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--brand) 26%, transparent);
}
.ag-criteria__meter { display: flex; align-items: center; gap: 14px; }
.ag-criteria__bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--line-strong); overflow: hidden; }
.ag-criteria__fill {
  display: block; height: 100%; width: 100%; border-radius: var(--radius-pill);
  background: var(--brand); transition: width .38s var(--ease);
}
.ag-criteria__nums { text-align: right; white-space: nowrap; }
.ag-criteria__vol {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 700;
  letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.ag-criteria__unit { display: block; font-size: .66rem; color: var(--muted); }
.ag-criteria__reset {
  position: absolute; top: 12px; right: 14px; font: inherit; font-size: var(--step--1);
  cursor: pointer; border: 0; background: transparent; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; padding: 2px 5px; border-radius: var(--radius-xs);
}
.ag-criteria__reset:hover { color: var(--ink); }
.ag-criteria__reset:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 560px) {
  .ag-criteria__meter { flex-direction: column; align-items: stretch; gap: 10px; }
  .ag-criteria__nums { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-criteria__fill, .ag-criteria__chip, .ag-criteria__chip::before { transition: none; }
}

/* ---------- C6 · .ag-timeline ---------- */
.ag-timeline {
  font-family: var(--font-body); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); padding: 22px;
}
.ag-timeline__head { margin-bottom: 20px; }
.ag-timeline__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-timeline__title {
  margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ink); letter-spacing: -.015em;
}
.ag-timeline__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 20px; }
.ag-timeline__line { position: absolute; left: 10%; right: 10%; top: 5px; height: 2px; background: var(--line-strong); border-radius: var(--radius-pill); }
.ag-timeline__line-fill {
  display: block; height: 100%; width: 0%; background: var(--brand);
  border-radius: var(--radius-pill); transition: width .34s var(--ease);
}
.ag-timeline__day {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 0 2px 4px; border: 0; background: transparent; cursor: pointer;
  font: inherit; color: var(--muted); border-radius: var(--radius-xs); transition: color .2s var(--ease);
}
.ag-timeline__dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--line-strong);
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.ag-timeline__d { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; }
.ag-timeline__l { font-size: var(--step--1); line-height: 1.2; text-align: center; }
.ag-timeline__day:hover { color: var(--text); }
.ag-timeline__day:hover .ag-timeline__dot { border-color: var(--muted); }
.ag-timeline__day.is-done .ag-timeline__dot { border-color: var(--brand); background: var(--brand); }
.ag-timeline__day.is-on { color: var(--ink); }
.ag-timeline__day.is-on .ag-timeline__l { font-weight: 600; }
.ag-timeline__day.is-on .ag-timeline__dot {
  border-color: var(--brand); background: var(--surface);
  transform: scale(1.28); box-shadow: 0 0 0 3px var(--ring);
}
.ag-timeline__day:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-timeline__panels {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); background: var(--surface-2); padding: 15px 17px; min-height: 130px;
}
.ag-timeline__panel h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: var(--step-0); color: var(--ink); }
.ag-timeline__panel p { margin: 0 0 10px; font-size: var(--step--1); line-height: 1.6; color: var(--text); }
.ag-timeline__owner {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.ag-timeline__panel.is-on { animation: ag-timeline-in .26s var(--ease-out) both; }
@keyframes ag-timeline-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .ag-timeline__l { font-size: .66rem; } .ag-timeline__line { left: 9%; right: 9%; } }
@media (prefers-reduced-motion: reduce) {
  .ag-timeline__panel.is-on { animation: none; }
  .ag-timeline__line-fill, .ag-timeline__dot, .ag-timeline__day { transition: none; }
}

/* ---------- C7 · .ag-marquee ---------- */
.ag-marquee { font-family: var(--font-body); }
.ag-marquee__head { margin-bottom: 18px; }
.ag-marquee__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-marquee__title {
  margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ink); letter-spacing: -.015em;
}
.ag-marquee__viewport { position: relative; overflow: hidden; padding: 6px 0; border-radius: var(--radius-sm); }
.ag-marquee__viewport:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ag-marquee__belt { display: flex; width: max-content; }
.ag-marquee.is-ready .ag-marquee__belt { animation: ag-marquee-slide 28s linear infinite; }
.ag-marquee__viewport:hover .ag-marquee__belt,
.ag-marquee__viewport:focus-within .ag-marquee__belt { animation-play-state: paused; }
@keyframes ag-marquee-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.ag-marquee__set { display: flex; gap: 9px; padding: 0 9px 0 0; margin: 0; list-style: none; }
.ag-marquee__set li {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); font-size: var(--step--1); color: var(--text); box-shadow: var(--shadow-1);
}
.ag-marquee__set li b { font-weight: 600; color: var(--ink); }
.ag-marquee__set li i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.ag-marquee__fade { position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; z-index: 2; }
.ag-marquee__fade.is-l { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ag-marquee__fade.is-r { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.ag-marquee__note { margin: 10px 0 0; font-size: .66rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .ag-marquee.is-ready .ag-marquee__belt { animation: none; }
  .ag-marquee__viewport { overflow-x: auto; }
}

/* ---------- C8 · .ag-faq ---------- */
.ag-faq { font-family: var(--font-body); }
.ag-faq__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ag-faq__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.ag-faq__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-faq__title { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); }
.ag-faq__search { position: relative; display: flex; align-items: center; min-width: 240px; }
.ag-faq__ico { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.ag-faq__input {
  font: inherit; font-size: var(--step--1); width: 100%; padding: 10px 14px 10px 34px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink);
}
.ag-faq__input::placeholder { color: var(--muted); }
.ag-faq__input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-faq__list { border-top: 1px solid var(--line); }
.ag-faq__item { border-bottom: 1px solid var(--line); }
.ag-faq__qwrap { margin: 0; font-size: inherit; }
.ag-faq__q {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  font: inherit; font-size: var(--step-0); color: var(--ink); cursor: pointer;
  background: transparent; border: 0; padding: 16px 4px; border-radius: var(--radius-xs);
}
.ag-faq__q:hover { color: var(--brand); }
.ag-faq__q:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ag-faq__chev {
  flex: 0 0 auto; width: 9px; height: 9px; margin-top: .45em;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); transition: transform .24s var(--ease);
}
.ag-faq__q[aria-expanded="true"] .ag-faq__chev { transform: rotate(45deg); }
.ag-faq__qt { flex: 1; }
.ag-faq__a { padding: 0 4px 18px 33px; }
.ag-faq__a p { margin: 0; font-size: var(--step--1); line-height: 1.7; color: var(--text); }
.ag-faq__a mark, .ag-faq__qt mark {
  background: color-mix(in srgb, var(--brand) 26%, transparent); color: inherit; border-radius: 3px; padding: 0 2px;
}
.ag-faq__empty { margin: 18px 0 0; font-size: var(--step--1); color: var(--muted); }
.ag-faq__empty b { color: var(--ink); }
.ag-faq__sugg {
  font: inherit; font-size: inherit; cursor: pointer; border: 0; background: transparent;
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
  padding: 1px 3px; border-radius: var(--radius-xs);
}
.ag-faq__sugg:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-faq__count { margin: 14px 0 0; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ag-faq__chev { transition: none; } }

/* ---------- C9 · .ag-models ---------- */
.ag-models { font-family: var(--font-body); }
.ag-models__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.ag-models__eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ag-models__title { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); }
.ag-models__toggle {
  display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--surface-2);
}
.ag-models__tab {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: var(--step--1);
  padding: 6px 14px; border-radius: var(--radius-pill); color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.ag-models__tab:hover { color: var(--text); }
.ag-models__tab.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.ag-models__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-models__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ag-models__card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-1); padding: 22px;
}
.ag-models__card.is-rec { border-color: var(--brand); box-shadow: var(--shadow-2); }
.ag-models__badge {
  position: absolute; top: -10px; left: 20px; font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--brand-ink);
}
.ag-models__unit {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.ag-models__name { margin: 8px 0 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.ag-models__price { margin-top: 4px; font-family: var(--font-mono); font-size: var(--step--1); color: var(--brand); }
.ag-models__body { margin: 14px 0 16px; flex: 1; font-size: var(--step--1); line-height: 1.65; color: var(--text); }
.ag-models__body.is-swap { animation: ag-models-swap .26s var(--ease-out) both; }
@keyframes ag-models-swap { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.ag-models__meta {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
  color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line);
}
@media (prefers-reduced-motion: reduce) {
  .ag-models__body.is-swap { animation: none; }
  .ag-models__tab { transition: none; }
}

/* ---------- C10 · .ag-enquirybar ---------- */
.ag-enquirybar {
  position: sticky; bottom: 0; z-index: 40; font-family: var(--font-body);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
}
.ag-enquirybar.is-enhanced {
  position: fixed; left: 0; right: 0; bottom: 0;
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform .34s var(--ease-out), opacity .24s var(--ease);
}
.ag-enquirybar.is-enhanced.is-in { transform: none; opacity: 1; pointer-events: auto; }
.ag-enquirybar.is-gone { display: none; }
.ag-enquirybar__inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-2); padding: 12px 16px;
}
.ag-enquirybar__tag {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 5px 11px; background: var(--surface-2);
}
.ag-enquirybar__copy { flex: 1; min-width: 160px; font-size: var(--step--1); color: var(--text); }
.ag-enquirybar__actions { display: flex; align-items: center; gap: 8px; }
.ag-enquirybar__cta {
  font: inherit; font-size: var(--step--1); font-weight: 600; text-decoration: none;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 20px; border-radius: var(--radius-pill);
  transition: filter .2s var(--ease);
}
.ag-enquirybar__cta:hover { text-decoration: none; filter: brightness(1.06); }
.ag-enquirybar__cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ag-enquirybar__x {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  cursor: pointer; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted); padding: 0;
}
.ag-enquirybar__x svg { width: 11px; height: 11px; }
.ag-enquirybar__x:hover { color: var(--ink); border-color: var(--line-strong); }
.ag-enquirybar__x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 560px) {
  .ag-enquirybar__copy { display: none; }
  .ag-enquirybar__inner { gap: 10px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-enquirybar.is-enhanced, .ag-enquirybar__cta { transition: none; }
}

/* ===== assets/css/comp-b.css ===== */
/* ============================================================
   Altarious Global — component batch B (C11–C20)
   Uses only site.css tokens. Every selector is component-prefixed.
   ============================================================ */

/* ---------- C11 · multi-step enquiry ---------- */
.ag-steps { font-family: var(--font-body); color: var(--text); }
.ag-steps *, .ag-steps *::before, .ag-steps *::after { box-sizing: border-box; }
.ag-steps-sr, .ag-steps-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag-steps-form { display: flex; flex-direction: column; gap: 18px; }
.ag-steps-head { display: flex; flex-direction: column; gap: 10px; }
.ag-steps-eyebrow { margin: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ag-steps-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.ag-steps-step { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; font-size: .8rem; color: var(--muted); }
.ag-steps-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-steps-dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--radius-pill); display: grid; place-items: center; font-family: var(--font-mono); font-size: .7rem; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.ag-steps-step.is-on { color: var(--ink); font-weight: 600; }
.ag-steps-step.is-on .ag-steps-dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ag-steps-step.is-done .ag-steps-dot { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ag-steps-bar { height: 3px; border-radius: var(--radius-pill); background: var(--bg-deep); overflow: hidden; }
.ag-steps-bar i { display: block; height: 100%; background: var(--brand); transition: width .35s var(--ease-out); }
.ag-steps-panes { display: flex; flex-direction: column; gap: 18px; }
.ag-steps-pane { border: 0; margin: 0; padding: 0; min-width: 0; }
.ag-steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) { .ag-steps-grid { grid-template-columns: minmax(0, 1fr); } }
.ag-steps-full { grid-column: 1 / -1; }
.ag-steps-f { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.ag-steps-f > span { color: var(--brand); }
.ag-steps-f input, .ag-steps-f select, .ag-steps-f textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink);
  padding: 11px 13px; border-radius: var(--radius-xs); border: 1px solid var(--line);
  background: var(--surface-2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ag-steps-f textarea { resize: vertical; min-height: 120px; }
.ag-steps-f input:focus-visible, .ag-steps-f select:focus-visible, .ag-steps-f textarea:focus-visible,
.ag-steps-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-steps-f input:focus, .ag-steps-f select:focus, .ag-steps-f textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.ag-steps-f.is-bad input, .ag-steps-f.is-bad select, .ag-steps-f.is-bad textarea { border-color: var(--accent); }
.ag-steps-err { font-style: normal; font-family: var(--font-mono); font-size: .68rem; color: var(--accent); min-height: 1em; font-weight: 400; }
.ag-steps-consent { margin: 14px 0 0; font-size: .78rem; line-height: 1.6; color: var(--muted); }
.ag-steps-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.ag-steps-btn {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 11px 22px; cursor: pointer;
  border-radius: var(--radius-pill); border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.ag-steps-btn:hover:not([disabled]) { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.ag-steps-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.ag-steps-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ag-steps-status { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.ag-steps-status.is-err { color: var(--accent); }
.ag-steps-status.is-ok { color: var(--brand); }
.ag-steps-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 12px; }
.ag-steps-done h3 { margin: 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.ag-steps-sum { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.ag-steps-tick { width: 46px; height: 46px; border-radius: var(--radius-pill); background: var(--brand); display: grid; place-items: center; }
.ag-steps-tick svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* JS-enhanced: hide inactive panes and the redundant control */
.ag-steps[data-ag-ready] .ag-steps-pane { display: none; }
.ag-steps[data-ag-ready] .ag-steps-pane.is-on { display: block; animation: ag-steps-in .25s var(--ease-out) both; }
.ag-steps[data-ag-ready] .ag-steps-submit { display: none; }
.ag-steps[data-ag-ready].is-last .ag-steps-submit { display: inline-block; }
.ag-steps[data-ag-ready].is-last [data-ag-next] { display: none; }
@keyframes ag-steps-in { from { opacity: 0; transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) {
  .ag-steps *, .ag-steps *::before, .ag-steps *::after { animation: none !important; transition: none !important; }
}

/* ---------- C12 · call widget ---------- */
.ag-call {
  font-family: var(--font-body); color: var(--text); display: flex; flex-wrap: wrap; gap: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 22px; box-shadow: var(--shadow-1);
}
.ag-call *, .ag-call *::before, .ag-call *::after { box-sizing: border-box; }
.ag-call-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ag-call.is-compact { padding: 16px; gap: 14px; }
.ag-call-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-call-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ag-call-eyebrow { margin: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ag-call-tel { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; border-radius: var(--radius-xs); }
.ag-call-tel:hover .ag-call-num { color: var(--brand); }
.ag-call-tel:focus-visible, .ag-call-mail:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-xs); }
.ag-call-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.ag-call-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linejoin: round; }
.ag-call-note { margin: 0; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.ag-call-row { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ag-call-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--muted); }
.ag-call-pill i { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--muted); }
.ag-call-pill.is-open { color: var(--brand); border-color: var(--brand); }
.ag-call-pill.is-open i { background: var(--brand); }
.ag-call-pill.is-shut i { background: var(--accent); }
.ag-call-mail { font-size: .82rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ag-call-mail:hover { color: var(--brand); }
.ag-call-clocks { display: flex; gap: 10px; }
.ag-call-clk { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ag-call-k { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ag-call-t { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.ag-call-z { font-size: .64rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-call-hours { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ag-call-hours th, .ag-call-hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--text); }
.ag-call-hours td { text-align: right; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.ag-call-hours tr.is-now th, .ag-call-hours tr.is-now td { color: var(--ink); font-weight: 600; }
.ag-call-hours tr.is-now th::before { content: "\25B8\00A0"; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .ag-call * { animation: none !important; transition: none !important; } }

/* ---------- C13 · key takeaways ---------- */
.ag-takeaways {
  font-family: var(--font-body); color: var(--text);
  border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 16px;
}
.ag-takeaways *, .ag-takeaways *::before, .ag-takeaways *::after { box-sizing: border-box; }
.ag-takeaways-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ag-takeaways-ttl { display: flex; align-items: center; gap: 10px; }
.ag-takeaways-ttl h3 { margin: 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.ag-takeaways-mark { width: 26px; height: 26px; border-radius: var(--radius-xs); background: var(--surface-2); display: grid; place-items: center; }
.ag-takeaways-mark svg { width: 15px; height: 15px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.ag-takeaways-copy { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.ag-takeaways-copy:hover { color: var(--ink); border-color: var(--line-strong); }
.ag-takeaways-copy:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-takeaways-copy.is-done { color: var(--brand); border-color: var(--brand); }
.ag-takeaways-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ag-takeaways-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ag-takeaways-pts li { display: flex; gap: 12px; align-items: flex-start; }
.ag-takeaways-n { flex: 0 0 auto; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); padding-top: 3px; letter-spacing: .06em; }
.ag-takeaways-pts p { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--text); }
.ag-takeaways-why { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: .92rem; line-height: 1.65; color: var(--text); }
.ag-takeaways-wl { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 5px; }
@media (max-width: 460px) { .ag-takeaways-ct { display: none; } }
@media (prefers-reduced-motion: reduce) { .ag-takeaways * { transition: none !important; } }

/* ---------- C14 · related rail ---------- */
.ag-rail { font-family: var(--font-body); color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.ag-rail *, .ag-rail *::before, .ag-rail *::after { box-sizing: border-box; }
.ag-rail-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ag-rail-eyebrow { margin: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ag-rail-title { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); }
.ag-rail-nav { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.ag-rail-more { font-size: .85rem; color: var(--brand); text-decoration: none; margin-right: 4px; }
.ag-rail-more:hover { text-decoration: underline; }
.ag-rail-more:focus-visible, .ag-rail-ar:focus-visible, .ag-rail-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-xs); }
.ag-rail-ar { width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease); }
.ag-rail-ar:hover:not([disabled]) { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.ag-rail-ar[disabled] { opacity: .35; cursor: default; }
.ag-rail-ar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-rail-track { list-style: none; margin: 0; padding: 2px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ag-rail-track::-webkit-scrollbar { display: none; }
.ag-rail-item { flex: 0 0 clamp(240px, 78vw, 320px); scroll-snap-align: start; display: flex; }
.ag-rail-item > * { width: 100%; }
.ag-rail-prog { margin: 0; display: flex; align-items: center; gap: 12px; }
.ag-rail-line { flex: 1; height: 2px; background: var(--bg-deep); border-radius: var(--radius-pill); overflow: hidden; }
.ag-rail-line i { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: var(--radius-pill); transition: width .2s var(--ease), margin-left .2s var(--ease); }
.ag-rail-cnt { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.ag-rail-cnt b { color: var(--ink); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .ag-rail * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- C15 · in-prose term tooltips ---------- */
.ag-term {
  font: inherit; padding: 0 1px; margin: 0; border: 0; background: none; cursor: help;
  color: var(--ink); font-weight: 600; border-bottom: 1.5px dashed var(--brand); border-radius: 2px;
  transition: background .15s var(--ease);
}
.ag-term:hover, .ag-term.is-on { background: var(--surface-2); border-bottom-style: solid; }
.ag-term:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-term-pop {
  position: absolute; z-index: 60; width: min(300px, calc(100vw - 32px));
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 4px; font-family: var(--font-body);
  animation: ag-term-in .16s var(--ease-out) both;
}
@keyframes ag-term-in { from { opacity: 0; transform: translateY(4px); } }
.ag-term-k { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.ag-term-t { font-family: var(--font-display); font-size: .95rem; color: var(--ink); }
.ag-term-d { font-size: .82rem; line-height: 1.6; color: var(--text); }
.ag-term-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .ag-term-pop { animation: none !important; } .ag-term { transition: none !important; } }

/* ---------- C16 · fact strip ---------- */
.ag-facts { font-family: var(--font-body); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-1); }
.ag-facts *, .ag-facts *::before, .ag-facts *::after { box-sizing: border-box; }
.ag-facts-hd { display: flex; flex-direction: column; gap: 2px; }
.ag-facts-eyebrow { margin: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ag-facts-name { margin: 2px 0 0; font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -.01em; color: var(--ink); }
.ag-facts-strip { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .ag-facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .ag-facts-strip { grid-template-columns: minmax(0, 1fr); } }
.ag-facts-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; display: flex; flex-direction: column; gap: 3px; min-height: 92px; }
.ag-facts-item dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ag-facts-item dd { margin: 0; }
.ag-facts-v { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.ag-facts-sub { font-size: .72rem; line-height: 1.45; color: var(--muted); }
.ag-facts.is-in .ag-facts-v, .ag-facts.is-in .ag-facts-sub { animation: ag-facts-up .34s var(--ease-out) both; }
@keyframes ag-facts-up { from { opacity: 0; transform: translateY(7px); } }
.ag-facts-ft { margin: auto 0 0; display: flex; align-items: flex-start; gap: 8px; font-size: .8rem; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.ag-facts-dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--brand); flex: 0 0 auto; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .ag-facts * { animation: none !important; transition: none !important; } }

/* ---------- C18 · metric ribbon ---------- */
.ag-ribbon { font-family: var(--font-body); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ag-ribbon *, .ag-ribbon *::before, .ag-ribbon *::after { box-sizing: border-box; }
@media (max-width: 720px) { .ag-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .ag-ribbon { grid-template-columns: minmax(0, 1fr); } }
.ag-ribbon-m { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.ag-ribbon-lab { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.4; min-height: 2.5em; }
.ag-ribbon-num { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ag-ribbon-bar { display: block; height: 3px; border-radius: var(--radius-pill); background: var(--bg-deep); overflow: hidden; margin-top: 4px; }
.ag-ribbon-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--brand); transition: width 1.1s var(--ease-out); }
.ag-ribbon-m:nth-child(even) .ag-ribbon-bar i { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .ag-ribbon * { transition: none !important; animation: none !important; } }

/* ---------- C19 · command palette ---------- */
.ag-palette { font-family: var(--font-body); color: var(--text); }
.ag-palette *, .ag-palette *::before, .ag-palette *::after { box-sizing: border-box; }
.ag-palette-trigger { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: .85rem; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.ag-palette-trigger:hover { border-color: var(--line-strong); color: var(--ink); }
.ag-palette-trigger:focus-visible, .ag-palette-esc:focus-visible, .ag-palette-q:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-palette-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-palette-ti svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: block; }
.ag-palette-kb, .ag-palette-foot kbd { font-family: var(--font-mono); font-size: .62rem; padding: 2px 6px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) { .ag-palette-tt, .ag-palette-kb { display: none; } }
.ag-palette-scrim { position: fixed; inset: 0; z-index: 900; background: var(--photo-veil, rgba(6, 17, 34, .55)); backdrop-filter: blur(3px); animation: ag-palette-fade .16s var(--ease) both; }
.ag-palette-dialog {
  position: fixed; z-index: 901; left: 50%; top: 12vh; transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px)); max-height: min(66vh, 560px);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-3); animation: ag-palette-pop .18s var(--ease-out) both;
}
@keyframes ag-palette-fade { from { opacity: 0; } }
@keyframes ag-palette-pop { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.ag-palette-pin { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ag-palette-q { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border: 0; background: none; color: var(--ink); outline: none; }
.ag-palette-esc { font: inherit; font-family: var(--font-mono); font-size: .65rem; padding: 4px 8px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; }
.ag-palette-results { overflow-y: auto; padding: 8px; flex: 1; }
.ag-palette-grp { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 5px; }
.ag-palette-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-xs); cursor: pointer; font-size: .9rem; color: var(--text); text-decoration: none; }
.ag-palette-row[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.ag-palette-row[aria-selected="true"] .ag-palette-go { opacity: 1; }
.ag-palette-ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--radius-xs); background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
.ag-palette-row[aria-selected="true"] .ag-palette-ic { background: var(--brand); color: var(--brand-ink); }
.ag-palette-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-palette-tx mark { background: none; color: var(--brand); font-weight: 600; }
.ag-palette-go { opacity: 0; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
.ag-palette-empty { padding: 30px 12px; text-align: center; font-size: .88rem; color: var(--muted); }
.ag-palette-foot { display: flex; gap: 14px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .7rem; color: var(--muted); flex-wrap: wrap; }
.ag-palette-foot kbd { margin-right: 3px; }
.ag-palette-cc { margin-left: auto; font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) { .ag-palette * { animation: none !important; transition: none !important; } }

/* ---------- C20 · consent bar ---------- */
.ag-consent { position: fixed; z-index: 880; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; justify-content: center; font-family: var(--font-body); color: var(--text); pointer-events: none; }
.ag-consent *, .ag-consent *::before, .ag-consent *::after { box-sizing: border-box; }
.ag-consent-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ag-consent-bar {
  pointer-events: auto; width: min(720px, 100%); border: 1px solid var(--glass-line); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(14px); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-3);
  animation: ag-consent-up .28s var(--ease-out) both;
}
@keyframes ag-consent-up { from { opacity: 0; transform: translateY(14px); } }
.ag-consent-top { display: flex; gap: 14px; align-items: flex-start; }
.ag-consent-badge { flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.ag-consent-badge svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linejoin: round; }
.ag-consent-txt { flex: 1; min-width: 0; }
.ag-consent-txt h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: var(--step-0); color: var(--ink); }
.ag-consent-txt p { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--text); }
.ag-consent-x { flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--radius-xs); border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ag-consent-x:hover { background: var(--surface-2); color: var(--ink); }
.ag-consent-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ag-consent-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.ag-consent-opt { flex: 1 1 170px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .2s var(--ease); }
.ag-consent-opt.is-locked { cursor: default; opacity: .85; }
.ag-consent-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-consent-sw { flex: 0 0 auto; width: 32px; height: 18px; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; transition: background .2s var(--ease); }
.ag-consent-sw i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--surface); transition: transform .2s var(--ease); box-shadow: var(--shadow-1); }
.ag-consent-opt input:checked + .ag-consent-sw { background: var(--brand); }
.ag-consent-opt input:checked + .ag-consent-sw i { transform: translateX(14px); }
.ag-consent-opt input:focus-visible + .ag-consent-sw { outline: 2px solid var(--brand); outline-offset: 2px; }
.ag-consent-ol { display: flex; flex-direction: column; min-width: 0; }
.ag-consent-ol b { font-size: .85rem; color: var(--ink); font-weight: 600; }
.ag-consent-ol em { font-style: normal; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-consent-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ag-consent-btn { font: inherit; font-size: .85rem; font-weight: 600; padding: 9px 18px; border-radius: var(--radius-pill); cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--text); transition: background .2s var(--ease), color .2s var(--ease); }
.ag-consent-btn:hover { background: var(--surface-2); color: var(--ink); }
.ag-consent-btn.is-solid { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ag-consent-btn.is-solid:hover { box-shadow: var(--shadow-2); }
.ag-consent-btn:focus-visible, .ag-consent-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ag-consent * { animation: none !important; transition: none !important; } }


/* ---------- ag-consent refinements ----------
   A consent bar is a legal necessity, not a feature: it belongs pinned to the
   bottom edge, one line tall, out of the way of the hero. The granular toggles
   only appear once someone asks to manage them. */
.ag-consent { padding: 0; }
.ag-consent-bar {
  width: 100%; max-width: none; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
  padding: 14px clamp(16px, 4vw, 40px); gap: 12px;
  flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 -10px 40px rgba(0,0,0,.18);
}
.ag-consent-top { flex: 1 1 420px; align-items: center; gap: 12px; }
.ag-consent-txt h2 { font-size: .95rem; margin-bottom: 2px; }
.ag-consent-txt p { font-size: .84rem; margin: 0; color: var(--muted); }
.ag-consent-badge { width: 30px; height: 30px; }
.ag-consent-acts { flex: 0 0 auto; margin: 0; }
/* toggles stay collapsed until Manage is pressed */
.ag-consent-opts { display: none; flex-basis: 100%; }
.ag-consent-bar.is-manage .ag-consent-opts { display: grid; }
@media (max-width: 760px) {
  .ag-consent-bar { flex-direction: column; align-items: stretch; }
  .ag-consent-acts { display: flex; flex-wrap: wrap; gap: 8px; }
  .ag-consent-acts > * { flex: 1 1 auto; }
}


/* ---------- ag-palette trigger sizing ----------
   In the header the trigger competes with the nav for space. Rather than let the
   label truncate to "Sear...", it keeps a floor width on wide screens and drops to
   an icon-only control once space is genuinely tight. */
.ag-palette-trigger { flex: 0 0 auto; min-width: 190px; justify-content: flex-start; white-space: nowrap; }
.ag-palette-trigger .ag-palette-tt { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1320px) {
  .ag-palette-trigger { min-width: 0; padding: 8px 10px; }
  .ag-palette-trigger .ag-palette-tt { display: none; }
}
@media (max-width: 1320px) { .ag-palette-trigger .ag-palette-kb { display: none; } }
