/* Ophiucian design system. Every page loads this file; product pages add a
   theme class on <body> (.theme-aegis, .theme-assetforge, .theme-sforia)
   that only re-points the accent tokens.

   Breakpoints (max-width): 1180 wide, 1024 desktop, 760 tablet, 480 phone.
   Type scale: --t-xs … --t-6, fluid between 360px and 1440px viewports.
   Contrast: --text, --text-2, --muted and --faint all pass WCAG AA (≥ 4.5:1)
   on --bg through --surface-3. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* surfaces: matte black → charcoal */
  --bg: #0a0a0b;
  --bg-band: #0e0e10;
  --surface: #131315;
  --surface-2: #19191c;
  --surface-3: #212125;
  --line: rgb(236 230 218 / 0.08);
  --line-strong: rgb(236 230 218 / 0.15);
  --line-bright: rgb(236 230 218 / 0.28);

  /* ivory type */
  --text: #ece6da;
  --text-2: #cfc9bd;
  --muted: #a39e94;
  --faint: #8f8a80;

  /* deep, muted violet */
  --violet: #9d8fe6;
  --violet-strong: #7b6bd0;
  --violet-deep: #3a2f73;
  --violet-ink: #0d0b17;

  /* accent tokens (themes re-point these) */
  --accent: var(--violet);
  --accent-strong: var(--violet-strong);
  --accent-deep: var(--violet-deep);
  --accent-soft: rgb(157 143 230 / 0.12);
  --accent-line: rgb(157 143 230 / 0.35);

  /* semantic */
  --ok: #7fcf9f;
  --warn: #e2bd6a;
  --danger: #e48a7e;
  --info: #8fb8e6;

  --nav-bg: rgb(10 10 11 / 0.72);

  /* type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace; /* code and checksums only */

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: clamp(0.97rem, 0.2vw + 0.93rem, 1.06rem);
  --t-md: clamp(1.08rem, 0.35vw + 1rem, 1.25rem);
  --t-lg: clamp(1.3rem, 0.8vw + 1.1rem, 1.7rem);
  --t-xl: clamp(1.7rem, 1.8vw + 1.25rem, 2.6rem);
  --t-2xl: clamp(2.2rem, 3.2vw + 1.3rem, 3.8rem);
  --t-3xl: clamp(2.7rem, 5.6vw + 1rem, 6rem);

  /* space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 136px;
  --section-y: clamp(64px, 8.5vw, 116px);

  /* layout */
  --maxw: 1280px;
  --maxw-narrow: 880px;
  --measure: 66ch;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 68px;

  /* shape */
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -24px rgb(0 0 0 / 0.7);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-1: 120ms;
  --d-2: 200ms;
  --d-3: 420ms;
  --d-4: 800ms;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 56px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body { margin: 0; background: var(--bg); }

body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

main { flex: 1; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--d-1) ease; }
a:hover { color: var(--text); }
:where(p, li, dd, .limits span) > a:not([class]) { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(p, li, dd, .limits span) > a:not([class]):hover { text-decoration-color: currentColor; }
:where(nav, .site-footer, .mega) a { text-decoration: none !important; }

::selection { background: var(--accent); color: var(--violet-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

h1 em, h2 em, h3 em { font-style: normal; color: var(--muted); }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
:not(pre) > code { padding: 0.1em 0.4em; border-radius: var(--r-xs); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

[hidden] { display: none !important; }

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

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: top var(--d-2) var(--ease-out);
}
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--maxw-narrow) + 2 * var(--gutter)); }

.section { position: relative; padding: var(--section-y) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--flush-top { padding-top: 0; }
.section--band { background: var(--bg-band); border-block: 1px solid var(--line); }


.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

/* ---------- type utilities ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-5);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--muted);
}

.display { font-size: var(--t-3xl); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; }
.h1 { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.h2 { font-size: var(--t-xl); letter-spacing: -0.03em; }
.h3 { font-size: var(--t-lg); letter-spacing: -0.02em; }

.lede { font-size: var(--t-md); line-height: 1.55; color: var(--muted); max-width: 60ch; }
:is(h1, h2, .h1, .h2) + .lede { margin-top: var(--s-5); }
.lede strong { color: var(--text-2); font-weight: 500; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); font-size: 0.88em; letter-spacing: 0; }
.small { font-size: var(--t-sm); }
.nums { font-variant-numeric: tabular-nums; }

.prose { max-width: var(--measure); color: var(--text-2); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- section head with index rail ---------- */

.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-5) var(--s-7); margin-bottom: clamp(36px, 5vw, 64px); }
.head__index {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--t-xs);
  color: var(--faint);
}
.head__index b { display: none; }
.head h2 { font-size: var(--t-2xl); letter-spacing: -0.035em; max-width: 20ch; }
.head p { margin-top: var(--s-4); color: var(--muted); max-width: 58ch; }
.head__aside { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 0.95rem/1 var(--font-sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--d-2) ease, border-color var(--d-2) ease, color var(--d-2) ease, transform var(--d-1) ease, box-shadow var(--d-2) ease;
}
.btn:hover { color: var(--btn-fg); border-color: var(--line-bright); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn .btn__arrow { transition: transform var(--d-2) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--text); --btn-fg: #0a0a0b; --btn-line: var(--text); box-shadow: 0 0 0 0 var(--accent-soft); }
.btn--primary:hover { --btn-bg: #fff; background: #fff; border-color: #fff; color: #0a0a0b; box-shadow: 0 0 0 5px var(--accent-soft); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--violet-ink); --btn-line: var(--accent); }
.btn--accent:hover { background: var(--text); border-color: var(--text); color: #0a0a0b; }

.btn--ghost { --btn-line: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line); }

.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.86rem; border-radius: var(--r-sm); gap: 8px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--block { width: 100%; }

.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; pointer-events: none; cursor: default; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-bright);
  border-top-color: var(--btn-fg);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--d-2) var(--ease-out); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- badges, chips, inputs ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: none; }
.badge--dot::before { display: block; }
.badge--accent { color: var(--pc-accent, var(--accent)); border-color: color-mix(in oklab, var(--pc-accent, var(--accent)) 35%, transparent); }
.badge--ok { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 35%, transparent); }
.badge--warn { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 35%, transparent); }
.badge--info { color: var(--info); border-color: color-mix(in oklab, var(--info) 35%, transparent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font: 500 0.84rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--d-1) ease, border-color var(--d-1) ease, color var(--d-1) ease;
}
.chip:hover { border-color: var(--line-bright); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0a0a0b; }
.chip__count { font-size: 0.72rem; opacity: 0.6; }

.field { display: grid; gap: 8px; }
.field > span, .field > label { font-size: var(--t-sm); color: var(--text-2); font-weight: 500; }
.field small { color: var(--faint); font-size: 0.8rem; }

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--d-1) ease, box-shadow var(--d-1) ease, background-color var(--d-1) ease;
}
.textarea { padding: 12px 14px; min-height: 160px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-bright); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface-2); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }

.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-left: 42px; }
.search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  color: var(--faint);
  font-size: 0.72rem;
  pointer-events: none;
}
.search .input:focus ~ kbd, .search .input:not(:placeholder-shown) ~ kbd { display: none; }

/* ---------- brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; color: var(--text); transition: transform var(--d-4) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__core { fill: var(--accent); }
.brand__word { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; }
.brand__word span { color: var(--faint); font-weight: 400; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--d-3) ease, border-color var(--d-3) ease, backdrop-filter var(--d-3) ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
/* backdrop-filter would make the header the containing block of the fixed mobile panel. */
.site-header.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header__bar { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }

.site-nav { flex: 1; }
.site-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font: 450 0.92rem/1 var(--font-sans);
  cursor: pointer;
  transition: color var(--d-1) ease, background-color var(--d-1) ease;
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.site-nav__link[aria-current="page"] { color: var(--text); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -14px;
  height: 1px;
  background: var(--accent);
}
.site-nav__caret { width: 26px; padding: 0; margin-left: -6px; justify-content: center; }
.site-nav__caret svg { width: 14px; height: 14px; transition: transform var(--d-2) var(--ease-out); }
.site-nav__caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

/* mega menu */
.mega {
  position: absolute;
  left: -12px;
  top: calc(100% + 15px);
  width: min(760px, calc(100vw - 2 * var(--gutter)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: rgb(19 19 21 / 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.8);
  overflow: hidden;
  animation: mega-in var(--d-2) var(--ease-out);
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega__main { padding: var(--s-3); display: grid; gap: 2px; }
.mega__label { padding: var(--s-3) var(--s-3) var(--s-2); font-size: 0.7rem; color: var(--faint); }
.mega__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px var(--s-3);
  border-radius: var(--r);
  color: var(--text);
  transition: background-color var(--d-1) ease;
}
.mega__item:hover, .mega__item:focus-visible { background: var(--surface-3); color: var(--text); }
.mega__item img { width: 40px; height: 40px; border-radius: 10px; }
.mega__item b { display: block; font-weight: 500; font-size: 0.95rem; }
.mega__item > div { min-width: 0; }
.mega__item div > span { display: block; font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega__side { padding: var(--s-3); border-left: 1px solid var(--line); background: rgb(255 255 255 / 0.015); display: grid; align-content: start; gap: 2px; }
.mega__side a { display: block; padding: 9px var(--s-3); border-radius: var(--r-sm); color: var(--text-2); font-size: 0.9rem; }
.mega__side a:hover { background: var(--surface-3); color: var(--text); }
.mega__side a small { display: block; color: var(--faint); font-size: 0.78rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: 500 0.88rem/1 var(--font-sans);
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--d-2) var(--ease-out), top var(--d-2) var(--ease-out);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4.25px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-5) var(--gutter) var(--s-8);
  background: var(--bg);
  border-top: 1px solid var(--line);
  animation: mobile-in var(--d-3) var(--ease-out);
}
@keyframes mobile-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav__group + .mobile-nav__group { margin-top: var(--s-6); }
.mobile-nav__label { font-size: 0.7rem; color: var(--faint); margin-bottom: var(--s-2); }
.mobile-nav__group a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.15rem; }
.mobile-nav__group a[aria-current="page"] { color: var(--accent); }
.mobile-nav__group a small { font-size: 0.72rem; color: var(--faint); }
.mobile-nav .actions { margin-top: var(--s-6); }
.mobile-nav .actions .btn { flex: 1; }

body.is-locked { overflow: hidden; }

@media (max-width: 1024px) {
  .site-nav, .site-header__actions .btn--ghost { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .site-header__actions .btn--primary { display: none; }
}

/* ---------- breadcrumbs ---------- */

.crumbs { margin-bottom: var(--s-6); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.74rem; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-bright); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------- page head (sub pages) ---------- */

.page-head { position: relative; isolation: isolate; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-head h1 { font-size: var(--t-3xl); line-height: 0.98; letter-spacing: -0.045em; max-width: 14ch; }
.page-head .lede { margin-top: var(--s-5); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
.page-head__meta { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.page-head__meta div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.page-head__meta dt { color: var(--faint); font-size: 0.74rem; }
.page-head__meta dd { margin: 0; color: var(--text-2); text-align: right; }
.page-head__glyph { position: absolute; z-index: -1; right: calc(var(--gutter) * -1); top: 50%; width: min(520px, 60vw); transform: translateY(-50%); color: var(--line-strong); opacity: 0.6; pointer-events: none; }

@media (max-width: 860px) {
  .page-head__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- hero (home) ---------- */

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-7);
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 100%;
}
.hero__status a { color: var(--text-2); }
.hero__status a:hover { color: var(--text); }
.hero__status .pulse { flex-shrink: 0; }
.hero__status [data-latest-release] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ok); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }

/* ---------- orbit: the dual-serpent centrepiece ---------- */

.orbit { position: relative; width: 100%; aspect-ratio: 1; perspective: 1200px; }
.orbit__stage { position: absolute; inset: 0; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 600ms var(--ease-out); transform-style: preserve-3d; will-change: transform; }
.orbit svg { width: 100%; height: 100%; overflow: visible; display: block; }

.orbit__grat { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbit__grat--dash { stroke-dasharray: 2 6; }
.orbit__ticks { fill: none; stroke: var(--line-bright); stroke-width: 7; stroke-dasharray: 0.35 4.65; }
.orbit__ticks--major { stroke: var(--muted); stroke-width: 12; stroke-dasharray: 0.5 29.5; }
.orbit__axis { stroke: var(--line); stroke-width: 1; }
.orbit__label { fill: var(--faint); font-size: 10px; }
.orbit__label--accent { fill: var(--accent); }
.orbit__track { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbit__ring--b .orbit__track { stroke-dasharray: 1 5; }

.orbit__stars path { fill: none; stroke: var(--line-bright); stroke-width: 0.8; stroke-dasharray: 3 4; }
.orbit__stars circle { fill: var(--text); animation: twinkle 5s ease-in-out infinite; }
.orbit__stars circle:nth-child(3n) { animation-delay: -1.7s; }
.orbit__stars circle:nth-child(3n + 1) { animation-delay: -3.3s; }
@keyframes twinkle { 50% { opacity: 0.35; } }

.orbit__core { fill: var(--bg); stroke: var(--accent); stroke-width: 1; }
.orbit__core-dot { fill: var(--accent); }

/* Each serpent is four dashes on the same closed path (pathLength 1000):
   a thin tail, body, thick fore-body and a one-unit head, all ending at the
   same point. Moving their offsets together slides the serpent round its ring. */
.serpent path { fill: none; stroke-linecap: round; animation-duration: 18s; animation-timing-function: linear; animation-iteration-count: infinite; }
.serpent__tail { stroke-width: 1.4; stroke-dasharray: 560 440; animation-name: s-tail; opacity: 0.55; }
.serpent__body { stroke-width: 3.2; stroke-dasharray: 420 580; animation-name: s-body; }
.serpent__fore { stroke-width: 6; stroke-dasharray: 210 790; animation-name: s-fore; }
.serpent__head { stroke-width: 12; stroke-dasharray: 1 999; animation-name: s-head; }
.serpent--a path { stroke: url(#orbit-a); }
.serpent--b path { stroke: url(#orbit-b); animation-delay: -9s; }
.serpent--a .serpent__head { stroke: var(--text); }
.serpent--b .serpent__head { stroke: var(--accent); }
@keyframes s-tail { from { stroke-dashoffset: 560; } to { stroke-dashoffset: -440; } }
@keyframes s-body { from { stroke-dashoffset: 420; } to { stroke-dashoffset: -580; } }
@keyframes s-fore { from { stroke-dashoffset: 210; } to { stroke-dashoffset: -790; } }
@keyframes s-head { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -999; } }

.orbit__spin { transform-origin: 300px 300px; animation: spin 120s linear infinite; }
.orbit.is-paused *, .orbit.is-paused { animation-play-state: paused !important; }

/* ---------- window frame ---------- */

.window {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow), 0 60px 120px -40px rgb(0 0 0 / 0.9);
  overflow: hidden;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  font-size: 0.72rem;
  color: var(--faint);
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-strong); }
.window__title { flex: 1; text-align: center; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__meta { color: var(--faint); }
.window img { width: 100%; }
.window--glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent);
}

.figure { margin: 0; }
.figure figcaption, .caption {
  display: flex;
  gap: 10px;
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--faint);
}
.caption__tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.2em;
}

.marks::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.marks::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* ---------- tabs ---------- */

.tabs__list { display: flex; gap: var(--s-1); padding: 4px; margin: 0 0 var(--s-6); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 500 0.9rem/1 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--d-2) ease, color var(--d-2) ease;
}
.tab img { width: 20px; height: 20px; border-radius: 5px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset; }
.tab-panel:focus-visible { outline-offset: 8px; }
.js .tab-panel[data-active="true"] { animation: panel-in var(--d-3) var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- cards (catalog) ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-4); }
.grid--1 { grid-template-columns: minmax(0, 1fr); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.pcard {
  --pc-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--d-2) ease, transform var(--d-3) var(--ease-out), background-color var(--d-2) ease;
}
.pcard:hover { border-color: color-mix(in oklab, var(--pc-accent) 40%, var(--line-strong)); transform: translateY(-3px); }
.pcard:focus-within { border-color: var(--line-bright); }

.pcard__art { position: relative; height: 176px; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pcard__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 120%, color-mix(in oklab, var(--pc-accent) 26%, transparent), transparent 60%),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 24px);
  opacity: 0.9;
}
.pcard__art-shot { position: absolute; inset: 18px 18px auto; width: calc(100% - 36px); height: auto; border-radius: 8px 8px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: 0 20px 40px rgb(0 0 0 / 0.6); transition: transform var(--d-4) var(--ease-out); transform-origin: 50% 0; }
.pcard:hover .pcard__art-shot { transform: translateY(-4px) scale(1.015); }
.pcard__art-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 26px rgb(0 0 0 / 0.55));
  transition: transform var(--d-3) var(--ease-out);
}
.pcard:hover .pcard__art-icon { transform: translate(-50%, -50%) scale(1.06); }
.pcard__art-icon.is-pixel { image-rendering: pixelated; }
.pcard__art-glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--pc-accent); }
.pcard__art-glyph svg { width: 64px; height: 64px; }

.pcard__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.pcard__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__name { font-size: 1.28rem; letter-spacing: -0.02em; font-weight: 500; }
.pcard__name a { color: var(--text); }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__text { color: var(--muted); font-size: 0.94rem; flex: 1; }
.pcard__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.74rem; color: var(--faint); }
.pcard__facts li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pcard__facts svg { width: 13px; height: 13px; flex-shrink: 0; }
.pcard__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* feature card: wide, screenshot on the right */
.pcard--feature { flex-direction: row; min-height: 340px; }
.pcard--feature .pcard__art { order: 2; width: 56%; height: auto; flex-shrink: 0; border-bottom: 0; border-left: 1px solid var(--line); }
.pcard--feature .pcard__art-shot { inset: 36px auto auto 36px; width: 130%; max-width: none; border-radius: 10px 0 0 0; border-right: 0; }
.pcard--feature .pcard__art-icon { width: 120px; height: 120px; }
.pcard--feature .pcard__body { padding: clamp(24px, 3vw, 40px); justify-content: center; }
.pcard--feature .pcard__name { font-size: var(--t-xl); letter-spacing: -0.03em; }
.pcard--feature .pcard__text { flex: 0 1 auto; font-size: 1rem; max-width: 46ch; }
@media (max-width: 860px) {
  .pcard--feature { flex-direction: column; min-height: 0; }
  .pcard--feature .pcard__art { order: 0; width: auto; height: 220px; border-left: 0; border-bottom: 1px solid var(--line); }
  .pcard--feature .pcard__art-shot { inset: 24px auto auto 24px; width: 120%; }
}

.count { font-variant-numeric: tabular-nums; }
.is-live::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.bump { animation: bump 900ms ease-out; }
@keyframes bump { from { color: var(--ok); } }

/* loading skeletons */
.skeleton { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; min-height: 320px; }
.skeleton::before {
  content: "";
  display: block;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.035) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.empty {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  padding: clamp(32px, 5vw, 56px) var(--s-5);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty b { color: var(--text); font-weight: 500; font-size: 1.05rem; }

/* ---------- catalog toolbar ---------- */

.toolbar { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toolbar__label { font-size: 0.7rem; color: var(--faint); margin-right: 6px; }
.toolbar__count { margin-left: auto; font-size: 0.78rem; color: var(--faint); }
.toolbar .select { width: auto; min-height: 40px; font-size: 0.88rem; }

/* ---------- tables ---------- */

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.table caption { text-align: left; padding: var(--s-4) var(--s-5); color: var(--faint); font-size: var(--t-sm); caption-side: bottom; border-top: 1px solid var(--line); }
.table th, .table td { padding: 14px var(--s-5); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 0.7rem; font-weight: 500; color: var(--faint); background: var(--surface-2); }
.table tbody th { font-weight: 500; color: var(--text); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td { color: var(--text-2); }
.table a { color: var(--text); }
.table a:hover { color: var(--accent); }
.table .yes, .yes { color: var(--ok); }
.table .partial, .partial { color: var(--warn); }
.table .no, .no { color: var(--faint); }

/* ---------- spec list ---------- */

.spec { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line-strong); }
.spec dt, .spec dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { padding-right: var(--s-6); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--faint); padding-top: 17px; }
.spec dd { margin: 0; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- principles ---------- */

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.principle { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 32px) clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(2n) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.principle__n { font-size: 0.78rem; color: var(--accent); padding-top: 0.5em; }
.principle h3 { font-size: var(--t-lg); letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.principle h3 em { color: var(--text-2); }
.principle p { color: var(--muted); }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(2n) { padding-left: 0; border-left: 0; }
  .principle { grid-template-columns: 44px minmax(0, 1fr); }
}

/* ---------- release log ---------- */

.release-notice {
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
}
.release-notice a { text-decoration: underline; text-underline-offset: 0.18em; }

.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.log__item { display: grid; grid-template-columns: 120px minmax(0, 220px) minmax(0, 1fr) auto; gap: var(--s-5); align-items: start; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.log__date { font-size: 0.8rem; color: var(--faint); padding-top: 0.2em; }
.log__product { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.log__product img { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }
.log__product a { color: var(--text); font-weight: 500; }
.log__product a:hover { color: var(--accent); }
.log__version { font-size: 0.8rem; color: var(--accent); }
.log__notes { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.93rem; }
.log__notes li + li { margin-top: 4px; }
.log__more { color: var(--faint); font-size: 0.85rem; }
@media (max-width: 860px) {
  .log__item { grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-4); }
  .log__date { grid-column: 1 / -1; }
  .log__notes { grid-column: 1 / -1; }
  .log__item > .btn { grid-row: 2; grid-column: 2; }
}

/* full release entries (product pages, releases page) */
.releases { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.release { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: var(--s-5) var(--s-7); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.release header { display: grid; gap: 6px; align-content: start; }
.release h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.release time { font-size: 0.78rem; color: var(--faint); }
.release header .badge, .release .tag { justify-self: start; }
.release ul { margin: 0; padding-left: 1.1em; color: var(--text-2); }
.release li + li { margin-top: 6px; }
.release li::marker { color: var(--accent); }
.release .links, .release .files { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); padding: 0; list-style: none; grid-column: 2; }
.release .links a, .files a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.84rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.release .files li { margin: 0; }
.release .files a { min-height: 44px; }
.files a svg { flex: 0 0 16px; width: 16px; height: 16px; }
.release .links a:hover, .files a:hover { border-color: var(--line-bright); color: var(--text); background: var(--surface-2); }
.release .tag { font-size: 0.68rem; letter-spacing: 0.1em; padding: 3px 8px; border-radius: var(--r-xs); color: var(--accent); border: 1px solid var(--accent-line); }
.release > :not(header) { grid-column: 2; }
.release .sha { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); overflow-wrap: anywhere; }
.release-checksums { min-width: 0; }
.release-checksums summary { min-height: 44px; padding: 10px 0; color: var(--text-2); cursor: pointer; }
.release-checksums dl { display: grid; gap: var(--s-3); margin: 0; }
.release-checksums dt, .release-checksums code { overflow-wrap: anywhere; }
.release-checksums dd { margin: 2px 0 0; color: var(--muted); }
.release-checksums code { font-family: var(--font-mono); font-size: var(--t-xs); }
.release--older { display: none; }
.releases.is-expanded .release--older { display: grid; }
.releases__more { margin-top: var(--s-5); }
@media (max-width: 760px) {
  .release { grid-template-columns: minmax(0, 1fr); }
  .release > :not(header), .release .links, .release .files { grid-column: 1; }
}

/* ---------- info blocks ---------- */

.software-actions { margin-top: var(--s-6); }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.workflow-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
}
.workflow-card:hover, .workflow-card:focus-visible { border-color: var(--accent); }
.workflow-card:hover h3, .workflow-card:focus-visible h3 { color: var(--accent); }
.workflow-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.workflow-card__image--bottom { object-position: center bottom; }
.workflow-card__image--contain { object-fit: contain; }
.workflow-card__body { display: grid; gap: var(--s-2); padding: var(--s-5); }
.workflow-card__body .eyebrow { justify-content: space-between; margin: 0; }
.workflow-card__body .eyebrow span { color: var(--accent); }
.workflow-card__body h3 { font-size: 1.1rem; }
.workflow-card__body p:last-child { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 1100px) {
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .workflow-grid { grid-template-columns: minmax(0, 1fr); }
}

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.block { background: var(--bg-band); padding: clamp(22px, 3vw, 32px); }
.section--band .block { background: var(--bg); }
.block__icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--accent); margin-bottom: var(--s-5); }
.block__icon svg { width: 18px; height: 18px; }
.block h3 { font-size: 1.12rem; letter-spacing: -0.015em; margin-bottom: var(--s-3); }
.block p, .block li { color: var(--muted); font-size: 0.95rem; }
.block p + p { margin-top: var(--s-3); }
.block ul { margin: 0; padding-left: 1.1em; }
.block strong { color: var(--text-2); font-weight: 500; }

/* ---------- code / verify ---------- */

.code {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  padding: 14px 14px 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: #070708;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-2);
}
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; scrollbar-width: thin; padding: 0; border: 0; background: none; }
.code::before { content: "$"; color: var(--accent); flex-shrink: 0; }
.aegis-scan-command::before { content: none; }
.aegis-scan-command code { white-space: pre-wrap; overflow-wrap: anywhere; }
.aegis-scan-output {
  margin: 0;
  padding: clamp(18px, 4vw, 32px);
  color: var(--text-2);
  font: 0.86rem/1.7 var(--font-mono);
  white-space: pre-wrap;
}
.aegis-scan-history { margin-top: var(--s-7); }
.copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font: 500 0.76rem/1 var(--font-sans);
  cursor: pointer;
}
.copy:hover { color: var(--text); border-color: var(--line-bright); }
.copy svg { width: 14px; height: 14px; }
.copy.is-done { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 40%, transparent); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--d-2) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 0 22px; max-width: var(--measure); color: var(--muted); }
.faq details > div p + p { margin-top: 0.8em; }

/* ---------- product pages ---------- */

.product-hero { position: relative; isolation: isolate; padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.product-hero__icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: var(--s-6); box-shadow: 0 20px 50px -10px color-mix(in oklab, var(--accent) 40%, transparent); }
.product-hero h1 { font-size: var(--t-3xl); line-height: 0.95; letter-spacing: -0.05em; }
.product-hero__tagline { margin-top: var(--s-4); font-size: var(--t-xl); font-weight: 500; line-height: 1.15; color: var(--muted); letter-spacing: -0.03em; max-width: 22ch; }
.product-hero .lede { margin-top: var(--s-5); }
.product-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-4); }
.product-hero__bg {
  position: absolute;
  z-index: -1;
  inset: -10% -10% auto 30%;
  height: 120%;
  background: radial-gradient(50% 45% at 60% 40%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}
@media (max-width: 960px) {
  .product-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.download { display: grid; gap: var(--s-3); margin-top: var(--s-6); justify-items: start; }
.download__meta { font-size: 0.76rem; color: var(--faint); overflow-wrap: anywhere; }
.download__meta a { color: var(--text-2); }
.download__note { font-size: var(--t-sm); color: var(--faint); max-width: 54ch; }
.btn--big { min-height: 56px; padding: 0 28px; font-size: 1rem; border-radius: 12px; }
.btn--big svg { transition: transform var(--d-2) var(--ease-out); }
.btn--big:hover svg { transform: translateY(2px); }

.platform-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s-3); width: 100%; }
.platform-download { min-width: 0; display: grid; gap: 6px; }
.platform-download .btn { width: 100%; justify-content: flex-start; white-space: normal; text-align: left; min-height: 44px; padding: 10px 14px; line-height: 1.3; font-size: 0.86rem; }
.platform-download .sha { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); overflow-wrap: anywhere; }

.assetforge-case__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.assetforge-case__render .window {
  background: radial-gradient(ellipse at 50% 52%, var(--accent-soft), transparent 68%), var(--surface);
}
.assetforge-case__render img { display: block; max-width: 420px; height: auto; margin-inline: auto; }
.assetforge-case__steps { margin: 0; padding-left: 1.4em; }
.assetforge-case__steps li { padding-inline-start: .35em; }
.assetforge-case__steps li + li { border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-4); }
.assetforge-case__steps li::marker { color: var(--accent); font-family: var(--font-mono); }
.assetforge-case__steps h3 { font-size: 1rem; margin-bottom: .35em; }
.assetforge-case__steps p { color: var(--muted); margin: 0; }
.assetforge-case__details .download__note { margin: var(--s-5) 0 0; }
.assetforge-case__proof { margin-top: var(--s-6); }
.assetforge-case__proof img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .assetforge-case__grid { grid-template-columns: minmax(0, 1fr); }
  .assetforge-case__render img { max-width: 320px; }
}

/* in-page navigation with scroll spy */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgb(10 10 11 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 52px; }
.subnav__name { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); flex-shrink: 0; }
.subnav__name img { width: 22px; height: 22px; border-radius: 6px; }
.subnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.subnav ul a:hover { color: var(--text); }
.subnav ul a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.subnav .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .subnav__name { display: none; }
  .subnav .btn { display: none; }
}

/* numbered feature rows */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.feature { position: relative; padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 32px) clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.feature + .feature { padding-left: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.feature:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.feature__n { display: block; margin-bottom: var(--s-6); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); }
.feature h3 { font-size: 1.22rem; letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature p + p { margin-top: var(--s-3); }
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(3n + 1) { padding-left: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); }
  .feature:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .feature:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
}

/* honest limits */
.limits { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.limits li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.limits li::before { content: ""; width: 9px; height: 9px; margin-top: 0.5em; border: 1px solid var(--warn); transform: rotate(45deg); }
.limits strong { color: var(--text); font-weight: 500; }
.limits--plain li::before { border-color: var(--accent); }

/* pipeline diagram */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.pipeline::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, var(--accent-line), var(--line-strong)); }
.pipeline li { position: relative; padding: 0 var(--s-3) 0 0; }
.pipeline__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-4);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: var(--bg);
  font-size: 0.72rem;
  color: var(--accent);
}
.pipeline li b { display: block; font-weight: 500; margin-bottom: 4px; }
.pipeline li div > span { display: block; color: var(--muted); font-size: 0.86rem; }
.js .pipeline.is-in .pipeline__node { animation: node-in 600ms var(--ease-out) both; }
.js .pipeline.is-in li:nth-child(2) .pipeline__node { animation-delay: 120ms; }
.js .pipeline.is-in li:nth-child(3) .pipeline__node { animation-delay: 240ms; }
.js .pipeline.is-in li:nth-child(4) .pipeline__node { animation-delay: 360ms; }
.js .pipeline.is-in li:nth-child(5) .pipeline__node { animation-delay: 480ms; }
.js .pipeline.is-in li:nth-child(6) .pipeline__node { animation-delay: 600ms; }
@keyframes node-in { 0% { box-shadow: 0 0 0 0 var(--accent-soft); border-color: var(--line-bright); } 40% { box-shadow: 0 0 0 10px var(--accent-soft); border-color: var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--accent-line); } }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr; gap: var(--s-5); }
  .pipeline::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent-line), var(--line-strong)); }
  .pipeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  .pipeline__node { margin: 0; }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); font-size: 0.76rem; color: var(--text-2); }

/* call-to-action band */
.cta { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line-strong); border-radius: calc(var(--r-lg) + 4px); padding: clamp(32px, 6vw, 80px); background: radial-gradient(70% 120% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
.cta h2 { font-size: var(--t-2xl); letter-spacing: -0.04em; max-width: 16ch; }
.cta p { margin-top: var(--s-4); color: var(--muted); max-width: 48ch; }
.cta .actions { justify-content: flex-end; }
.cta__glyph { position: absolute; z-index: -1; right: -120px; top: -180px; width: 440px; color: var(--line-strong); pointer-events: none; }
@media (max-width: 860px) {
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta .actions { justify-content: flex-start; }
}

/* ---------- links list (contact, elsewhere) ---------- */

.channels { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
.channels a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: padding var(--d-3) var(--ease-out), background-color var(--d-2) ease;
}
.channels a:hover { padding-left: 10px; color: var(--text); }
.channels__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--accent); }
.channels__icon svg { width: 18px; height: 18px; }
.channels b { display: block; font-weight: 500; }
.channels div > span { display: block; color: var(--muted); font-size: 0.88rem; }
.channels__go { font-size: 0.76rem; color: var(--faint); }
.channels__go svg { width: 16px; height: 16px; vertical-align: middle; }

/* contact composer */
.composer { display: grid; gap: var(--s-5); padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.composer__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.composer fieldset { border: 0; margin: 0; padding: 0; }
.composer legend { font-size: var(--t-sm); color: var(--text-2); font-weight: 500; margin-bottom: var(--s-3); padding: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color var(--d-1) ease, border-color var(--d-1) ease, color var(--d-1) ease;
}
.segmented span:hover { border-color: var(--line-bright); color: var(--text); }
.segmented input:checked + span { background: var(--text); border-color: var(--text); color: #0a0a0b; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact__notes { margin-top: var(--s-6); }
.composer__hint { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--faint); }
.composer__status { font-size: var(--t-sm); color: var(--ok); min-height: 1.4em; }
.composer__status.is-error { color: var(--danger); }
@media (max-width: 620px) {
  .composer__row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer { position: relative; margin-top: auto; padding: clamp(56px, 8vw, 96px) 0 var(--s-6); border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.site-footer__about p { margin-top: var(--s-4); color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.site-footer h2 { font-size: 0.7rem; font-weight: 500; color: var(--faint); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); font-size: 0.92rem; text-decoration: none; }
.site-footer ul a:hover { color: var(--text); }
.site-footer__word {
  margin: clamp(48px, 8vw, 96px) 0 0;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.8;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  white-space: nowrap;
  text-align: center;
}
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--faint); }
.site-footer__base span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}

/* ---------- reveal ---------- */

.reveal-pending { opacity: 0; transform: translateY(20px); }
.reveal-pending.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }

.rise { animation: rise 900ms var(--ease-out) both; }
.rise--2 { animation-delay: 90ms; }
.rise--3 { animation-delay: 180ms; }
.rise--4 { animation-delay: 270ms; }
.rise--5 { animation-delay: 360ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Word-by-word headline reveal: site.js wraps each word in .w > span. */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-words .w > span { display: inline-block; animation: word-in 1000ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes word-in { from { transform: translateY(105%); } }

/* ---------- Aegis Antivirus conceptual detection report ---------- */

.ap { display: grid; gap: 18px; padding: clamp(16px, 2.4vw, 26px); background: radial-gradient(80% 60% at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); font-size: 0.9rem; }
.ap__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ap__verdict { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--accent-line); border-radius: var(--r-xs); color: var(--accent); font-size: 0.7rem; letter-spacing: 0.1em; }
.ap__verdict::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap__file { color: var(--text-2); overflow-wrap: anywhere; }
.ap__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ap__label { margin-bottom: 10px; font-size: 0.68rem; color: var(--faint); }
.ap__evidence { list-style: none; margin: 0; padding: 0; }
.ap__evidence li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ap__evidence li:first-child { padding-top: 0; }
.ap__evidence b { font-weight: 500; font-size: 0.86rem; }
.ap__evidence span { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.ap__ai { padding: 16px; border: 1px solid var(--accent-line); border-radius: var(--r); background: var(--accent-soft); }
.ap__ai p:not(.ap__label) { color: var(--text-2); font-size: 0.9rem; line-height: 1.55; }
.ap__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ap__tabs { width: 100%; margin: 0; }
.ap__tabs .tab { min-height: 34px; padding: 0 12px; font-size: 0.82rem; }
.ap > .tab-panel { display: grid; gap: 18px; }
.ap > .tab-panel[hidden] { display: none; }
@media (max-width: 600px) {
  .ap__body { grid-template-columns: 1fr; }
}

/* ---------- scroll scenes ----------
   site.js sets --p (0 → 1) on each [data-scene]; everything below is derived
   from it. Values given with `--p` are the resting state used without JS or
   with reduced motion, when pinned scenes also keep their natural height. */

.scene { position: relative; --p: 1; }
.scenes .scene--pin { height: var(--scene-h, 240vh); }
.scenes .scene--pin > .scene__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__stage { position: relative; }

/* Hero: the orbit opens up and the title lifts away as you scroll. */
.hero2 { --p: 0; --scene-h: 150vh; }
.hero2 .scene__stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: calc(100svh - var(--header-h)); padding: var(--s-8) 0; isolation: isolate; overflow-x: clip; }
.scenes .hero2 .scene__stage { min-height: 0; padding: 0 0 var(--header-h); }
.hero2__orbit {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(118vh, 1180px, 150vw);
  transform: translate(-50%, -50%) scale(calc(1 + var(--p) * 1.5)) rotate(calc(var(--p) * 30deg));
  opacity: calc(0.55 - var(--p) * 0.3);
}
.hero2__copy { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; transform: translateY(calc(var(--p) * -14vh)) scale(calc(1 - var(--p) * 0.1)); opacity: calc(1 - var(--p) * 1.25); }
.hero2__title { font-size: clamp(3rem, 9vw, 8.6rem); line-height: 0.92; letter-spacing: -0.055em; font-weight: 600; max-width: min(100%, 12ch); }
.hero2__lede { margin: var(--s-6) auto 0; text-align: center; max-width: 44ch; }
.hero2 .actions { justify-content: center; margin-top: var(--s-7); }
.hero2 .btn:not(.btn--primary) { background: rgb(10 10 11 / 0.75); }
.hero2 .hero__status { margin-top: var(--s-6); }
.hero2__cue { position: absolute; left: 50%; bottom: var(--s-6); transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 0.78rem; color: var(--faint); opacity: calc(1 - var(--p) * 5); }
.hero2__cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
html:not(.scenes) .hero2__cue { display: none; }

/* Statement: words light up one after another. */
.statement { --scene-h: 220vh; }
.statement .scene__stage { display: grid; place-items: center; padding: var(--section-y) 0; }
.scenes .statement .scene__stage { padding: 0; }
.statement__text { font-size: clamp(1.9rem, 4.4vw, 4.2rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 500; max-width: 24ch; margin: 0 auto; text-align: center; }
.statement__text .w { opacity: clamp(0.14, calc(var(--p) * 1.3 * (var(--n) + 2) - var(--i)), 1); }
.statement__note { margin-top: var(--s-6); text-align: center; color: var(--faint); font-size: var(--t-sm); }

/* Product title card: the name fills the screen, then shrinks away while the
   app window rises and flattens into place. */
.tcard { --scene-h: 270vh; --a: clamp(0, calc(var(--p) / 0.4), 1); --b: clamp(0, calc((var(--p) - 0.18) / 0.5), 1); --c: clamp(0, calc((var(--p) - 0.66) / 0.24), 1); }
.tcard .scene__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 2.4vh, 28px); padding: var(--section-y) var(--gutter); }
.scenes .tcard .scene__stage { padding: calc(var(--header-h) + 2vh) var(--gutter) 3vh; }
.tcard__label { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; color: var(--muted); font-size: var(--t-sm); }
.tcard__name {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  transform: translateY(calc((1 - var(--a)) * 26vh)) scale(calc(1 + (1 - var(--a)) * var(--grow, 1.7)));
}
.tcard__window { width: min(1080px, 100%, calc(var(--ratio, 1.6) * 52vh)); transform-origin: 50% 0; transform: perspective(1600px) translateY(calc((1 - var(--b)) * 70vh)) rotateX(calc((1 - var(--b)) * 30deg)) scale(calc(0.82 + var(--b) * 0.18)); }
.tcard__window--wide { --ratio: 2; }
.tcard--long .tcard__name { --grow: 0.95; }
.tcard__window .window { box-shadow: var(--shadow), 0 60px 140px -30px color-mix(in oklab, var(--accent) 30%, transparent); }
.tcard__info { display: grid; justify-items: center; gap: var(--s-4); text-align: center; opacity: var(--c); transform: translateY(calc((1 - var(--c)) * 24px)); }
.tcard__info p { color: var(--muted); max-width: 52ch; }
.tcard__glow { position: absolute; z-index: -1; inset: 30% 10% -10%; background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 70%); opacity: var(--b); pointer-events: none; }
.tcard .scene__stage { isolation: isolate; }
@media (max-width: 700px) {
  .tcard__name { --grow: 0.75; }
  .tcard--long .tcard__name { --grow: 0.1; }
  .ap--compact .ap__body > div:first-child, .ap--compact .ap__head .ap__file { display: none; }
}

/* Product pages: centred title card, then the screenshot tilts flat as it enters. */
.product-hero__card, .product-hero__card > div { display: grid; justify-items: center; text-align: center; }
.product-hero__card .product-hero__icon { margin-bottom: var(--s-5); }
.product-hero__card h1 { font-size: clamp(3.4rem, 12vw, 10rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 600; }
.product-hero__card .product-hero__badges { justify-content: center; }
.product-hero__card .product-hero__tagline { margin-inline: auto; max-width: 24ch; }
.product-hero__card .lede { margin-inline: auto; text-align: center; }
.product-hero__card .download { justify-items: center; }
.product-hero__card .download__note { margin-inline: auto; }
.product-hero__card .actions { justify-content: center; }
.product-shot { padding: 0 0 var(--section-y); }
.product-shot .figure { max-width: 1180px; margin: 0 auto; transform-origin: 50% 0; transform: perspective(1600px) rotateX(calc((1 - var(--p)) * 24deg)) translateY(calc((1 - var(--p)) * 60px)) scale(calc(0.9 + var(--p) * 0.1)); }
.product-shot figcaption { justify-content: center; }

/* ---------- product themes ---------- */

.theme-aegis {
  --accent: #5fd0e2;
  --accent-strong: #2fb5cc;
  --accent-deep: #0f4752;
  --accent-soft: rgb(95 208 226 / 0.12);
  --accent-line: rgb(95 208 226 / 0.35);
}
.theme-assetforge {
  --accent: #f0ad45;
  --accent-strong: #e08f1c;
  --accent-deep: #5a3a0c;
  --accent-soft: rgb(240 173 69 / 0.12);
  --accent-line: rgb(240 173 69 / 0.35);
}
.theme-sforia {
  --accent: #5fe0a2;
  --accent-strong: #22c47f;
  --accent-deep: #0c4a2f;
  --accent-soft: rgb(95 224 162 / 0.12);
  --accent-line: rgb(95 224 162 / 0.35);
}

/* ---------- responsive helpers ---------- */

@media (max-width: 960px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head__aside { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .actions .btn { flex: 1 1 auto; }
  .brand__word span { display: none; }
}

@media (min-width: 1800px) {
  :root { --maxw: 1440px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .orbit__stage { transform: none !important; }
  .hero2__cue::after { animation: none; }
  /* Serpents freeze mid-orbit instead of running to their end state. */
  .serpent path, .orbit__spin { animation: none !important; }
  .serpent__tail { stroke-dashoffset: 260; }
  .serpent__body { stroke-dashoffset: 120; }
  .serpent__fore { stroke-dashoffset: -90; }
  .serpent__head { stroke-dashoffset: -299; }
  .serpent--b .serpent__tail { stroke-dashoffset: -240; }
  .serpent--b .serpent__body { stroke-dashoffset: -380; }
  .serpent--b .serpent__fore { stroke-dashoffset: -590; }
  .serpent--b .serpent__head { stroke-dashoffset: -799; }
}

@media print {
  .site-header, .site-footer, .subnav, .orbit, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- music page ---------- */
.track {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.track__top { display: flex; gap: var(--s-4); align-items: center; }
.track__cover { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-3); }
.track__cover--glyph {
  background:
    radial-gradient(circle at 50% 50%, var(--bg) 0 9%, transparent 10%),
    repeating-radial-gradient(circle at 50% 50%, var(--surface-3) 0 3px, var(--surface-2) 3px 5px);
  border: 1px solid var(--line-strong);
}
.track__title { font-size: 1.12rem; letter-spacing: -0.015em; }
.track__meta { color: var(--faint); font-size: 0.85rem; margin-top: 2px; }
.track__text { color: var(--muted); font-size: 0.95rem; }
.track__player { display: flex; align-items: center; gap: var(--s-3); }
.track__play {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.track__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.track__play.is-playing::before { width: 12px; height: 14px; margin-left: 0; border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.track__play:hover { background: var(--accent-line); }
.track__play:focus-visible, .track__seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.track__seek { flex: 1; min-width: 0; accent-color: var(--accent); }
.track__time { color: var(--faint); font-size: 0.82rem; min-width: 84px; text-align: right; }
.track__status { color: var(--warn); font-size: 0.88rem; }
.track__status:empty { position: absolute; }
.track__links { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: 0.88rem; color: var(--faint); }

.resources { list-style: none; padding: 0 !important; display: grid; gap: var(--s-3); }
.resources li { display: flex; flex-direction: column; gap: 1px; }
.resources a { color: var(--text); font-weight: 500; }
.resources span { color: var(--muted); font-size: 0.88rem; }
.block .resources__sub { margin-top: var(--s-5); }
