/* Orion: the studio site, on the Orion design language v2.1 (D:\Projects\Orion Design\ORION-DESIGN.md).
   Dark only; Rigel-blue accent; colour only when it means something. The glass theme on top is in space.css.
   Motion answers the visitor (hover, scroll, click). The only loops are the product demos and the hero
   diagram, which explain what the products do (§11), and they pause when off-screen or hidden. */

@font-face { font-family: "Inter"; font-weight: 400; src: url(../fonts/inter-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 600; src: url(../fonts/inter-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; font-weight: 500; src: url(../fonts/space-grotesk-500.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; src: url(../fonts/space-grotesk-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url(../fonts/jetbrains-mono-400.woff2) format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --rigel: #7aa2ff; --betelgeuse: #ff8a5c;
  --page: #05070d; --page-glow: rgba(122, 162, 255, .07);
  --surface: #0f1320; --surface-2: #161b2b; --surface-3: #1f2539;
  --text: #eef1f7; --text-2: #b3bbcb; --muted: #8790a3;
  --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .14); --highlight: rgba(255, 255, 255, .06);
  --accent: #8fb0ff; --accent-hover: #a9c2ff; --on-accent: #07102a; --accent-wash: rgba(143, 176, 255, .12);
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)), rgba(12, 16, 28, .55);
  --glass-strong: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)), rgba(10, 13, 24, .82);
  --glass-line: rgba(255, 255, 255, .09);
  --blur: blur(18px) saturate(150%);
  --good: #4cc38a; --warning: #e8b04a; --critical: #f07a74;
  --warn-wash: rgba(232, 176, 74, .09); --warn-line: rgba(232, 176, 74, .35);
  --series-1: #5b9cf0; --series-2: #e8774a; --series-3: #2fb987; --series-4: #e0a020;
  --series-5: #e06b95; --series-6: #4cbf4c; --series-7: #9a8ff0; --series-8: #ee7a7a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 40px -12px rgba(0, 0, 0, .6);
  --shadow-pop: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -16px rgba(0, 0, 0, .75);
  --tile: #11162a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.2, 1.5, .4, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--text); font: 15.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  background: radial-gradient(1200px 560px at 70% -200px, var(--page-glow), transparent 70%) no-repeat, var(--page); overflow-x: hidden; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code, kbd { font: 12px var(--mono); }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); }

/* scroll progress: a thin accent line along the top */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 50; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- header (§11) */
.top { display: flex; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--tile); border: 1px solid var(--border); display: grid; place-items: center; flex: none; }
.mark svg { width: 26px; height: 26px; color: #fff; }
.top .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.wm { font: 700 15px/1 var(--brand); text-transform: uppercase; letter-spacing: .2em; white-space: nowrap; color: var(--text); text-decoration: none; }
.top .by { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 8.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; transition: color .2s; }
.top .by svg { width: 13px; height: 13px; color: var(--text-2); opacity: .7; flex: none; }
.top .by b { font: 700 8.5px/1 var(--brand); letter-spacing: .3em; color: var(--text-2); }
.top .by:hover { color: var(--text); }
.spacer { flex: 1; }
.links { display: flex; gap: 2px; }
.top a.link { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.top a.link:hover { color: var(--text); background: var(--surface-2); }
.find { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font: 13px var(--body); cursor: pointer; }
.find:hover { color: var(--text); background: var(--surface-2); }
.find svg, .finder-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Orion mark */
.orion line { stroke: currentColor; stroke-width: .9; stroke-linecap: round; opacity: .45; }
.orion circle { fill: currentColor; }
.orion .glow { opacity: .2; }
.orion .betelgeuse { fill: #ff8a5c; }
.orion .rigel { fill: #7aa2ff; }

/* ---------- buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; font: 600 15px var(--body);
  text-decoration: none; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: 0 6px 20px -8px var(--accent); }
.btn.primary:hover { background: var(--accent-hover); box-shadow: 0 10px 26px -8px var(--accent); }
.btn.ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover .ic { transform: translateX(2px); transition: transform .2s var(--ease); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-3);
  border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.pill.warn { color: var(--warning); background: var(--warn-wash); }
.pill.good .dot { animation: ping-dot 2.4s ease-out 3; }
@keyframes ping-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.meta { font: 12.5px var(--mono); color: var(--muted); margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.meta .sep { font-style: normal; opacity: .6; }
.meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; margin-right: 2px; }
.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--accent-wash); box-shadow: 0 0 0 4px var(--accent-wash); } 100% { background: transparent; box-shadow: none; } }

/* ---------- headings */
h1 { font: 600 54px/1.06 var(--body); letter-spacing: -.035em; margin: 0 0 18px; }
.lead { color: var(--text-2); font-size: 18px; margin: 0 0 28px; max-width: 540px; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes ping { 0% { opacity: .6; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes breathe { 50% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 40%, transparent)); } }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- sections */
section { padding: 32px 0 56px; }
.label { font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 6px; }
h2 { font: 600 32px/1.15 var(--body); letter-spacing: -.025em; margin: 0 0 12px; }
h3 { font: 600 16px/1.3 var(--body); margin: 0; }
.sec-sub { color: var(--text-2); margin: 0 0 24px; max-width: 620px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: inset 0 1px 0 var(--highlight), var(--shadow); }

/* reveal on scroll: staggered by --i; content is visible without JS */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

/* segmented filter */
.seg { position: relative; display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button { position: relative; z-index: 1; font: 500 14px var(--body); background: none; border: 0; color: var(--text-2); padding: 6px 14px; border-radius: 7px; cursor: pointer; min-height: 34px; transition: color .2s; }
.seg button:hover, .seg button[aria-selected="true"] { color: var(--text); }
.seg button[aria-selected="true"] { font-weight: 600; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 7px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--border);
  transition: transform .3s var(--ease), width .3s var(--ease); }

/* ---------- product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--highlight), var(--shadow); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform .35s var(--ease), border-color .25s, box-shadow .25s, opacity .3s; will-change: transform; }
.js .pcard.rv { transform: perspective(900px) translateY(16px); }
.js .pcard.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); }
.pcard:hover { --lift: -4px; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: inset 0 1px 0 var(--highlight), var(--shadow-pop); }
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent-wash), transparent 70%); }
.pcard:hover::after { opacity: 1; }
.pcard.hide { display: none; }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pcard h3 { font-size: 18px; }
.pcard h3 a { color: var(--text); text-decoration: none; }
.pcard h3 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card opens the details page */
.pcard p { margin: 0; color: var(--text-2); font-size: 14px; flex: 1; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 10px; font: 12px var(--mono); color: var(--muted); }
.pcard-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.pcard .price { margin-left: auto; font-size: 12px; color: var(--muted); }
.pcard.soon { border-style: dashed; background: transparent; box-shadow: none; }
.tile { width: 52px; height: 52px; border-radius: 13px; background: var(--tile); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none;
  transition: transform .35s var(--pop); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.ghost { color: var(--muted); font: 600 22px var(--body); background: var(--surface-2); }
.tile.sm { width: 34px; height: 34px; border-radius: 9px; }
.tile.lg { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 18px; }
.pcard:hover .tile { transform: rotate(-6deg) scale(1.06); }

/* ---------- showcase */
.show { padding: 36px 0; border-top: 1px solid var(--border); }
.show-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.show.flip .show-text { order: 2; }
.show-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.show-head h3 { font: 600 19px/1.2 var(--brand); letter-spacing: -.01em; }
.show-cat { font-size: 13px; color: var(--muted); }
.show-tag { font: 600 24px/1.2 var(--body); letter-spacing: -.02em; margin: 0 0 10px; }
.show-desc { color: var(--text-2); margin: 0 0 16px; font-size: 14.5px; }
.feats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feats li { display: grid; grid-template-columns: 1fr; gap: 6px; }
.feats .ic, .fic .ic { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.feats b { display: block; font-weight: 600; }
.feats b { font-size: 14px; line-height: 1.3; }
.feats span { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 0 0 22px; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.stats dt { font-size: 12.5px; color: var(--text-2); }
.stats dd { margin: 0; font: 600 24px/1.2 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.demo { position: relative; min-height: 360px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--highlight), var(--shadow);
  padding: 20px; overflow: hidden; }
.demo-hint { position: absolute; right: 14px; top: 12px; font: 11px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.demo-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
.demo h4 { margin: 0 0 12px; font: 600 13px var(--body); color: var(--text-2); }

/* generic showcase: the product's own picture in a browser frame */
.frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface-2); transition: transform .5s var(--ease); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); font: 11px var(--mono); color: var(--muted); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.frame-bar span { margin-left: 8px; }
.frame img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }

/* LLM Gateway demo */
.gw-people { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gw-person { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text); font: 500 13px var(--body); cursor: pointer; transition: border-color .2s, background-color .2s, opacity .2s; }
.gw-person .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--body); color: #fff; background: var(--c); }
.gw-person[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.gw-person.paused { opacity: .55; }
.gw-pipe { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-bottom: 14px; font: 11.5px var(--mono); color: var(--muted); }
.gw-pipe .end { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.gw-pipe .end.gate { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); }
.gw-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 4px, transparent 4px 9px); }
.gw-line .pk { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; opacity: 0; }
.gw-line .pk.req { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.gw-line .pk.res { background: var(--good); box-shadow: 0 0 8px var(--good); }
.gw-line .pk.go { animation: travel .7s var(--ease) forwards; }
.gw-line .pk.back { animation: travel-back .7s var(--ease) forwards; }
.gw-line .pk.bounce { background: var(--warning); animation: bounce .8s var(--ease) forwards; }
@keyframes travel { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 10px); opacity: 1; } }
@keyframes travel-back { 0% { left: calc(100% - 10px); opacity: 1; } 100% { left: 0; opacity: 1; } }
@keyframes bounce { 0% { left: 0; opacity: 1; } 45% { left: 40%; opacity: 1; } 100% { left: 0; opacity: 0; } }
.gw-prompts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font: 500 12.5px var(--body); padding: 6px 11px; border-radius: 99px; border: 1px solid var(--border-strong); background: none; color: var(--text-2); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--accent); background: var(--accent-wash); }
.chip:disabled { opacity: .5; cursor: default; }
.gw-out { min-height: 92px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--text); margin-bottom: 12px; position: relative; }
.gw-out .who { font: 11px var(--mono); color: var(--muted); display: block; margin-bottom: 4px; }
.gw-out .caret { display: inline-block; width: 7px; height: 15px; vertical-align: -2px; background: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.gw-out.warn { background: var(--warn-wash); border: 1px solid var(--warn-line); }
.gw-usage { display: grid; gap: 8px; }
.gw-row { display: grid; grid-template-columns: 70px 1fr 74px 64px auto; gap: 10px; align-items: center; font-size: 12.5px; }
.gw-row .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.gw-row .bar i { display: block; height: 100%; width: 0; background: var(--c); border-radius: inherit; transition: width .6s var(--ease); }
.gw-row .num { font: 12px var(--mono); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.gw-tps { position: absolute; right: 12px; bottom: 8px; font: 11px var(--mono); color: var(--muted); }
.switch { appearance: none; width: 30px; height: 18px; border-radius: 99px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--pop); }
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(12px); }

/* The Duchess demo */
.du-ring { display: block; width: 100%; max-width: 360px; margin: 0 auto 8px; height: auto; overflow: visible; }
.du-ring .arrow { fill: none; stroke-width: 2; stroke-dasharray: 4 5; animation: flow 1s linear infinite; marker-end: url(#du-head); }
.du-ring .arrow.paid { stroke-dasharray: none; opacity: 0; transition: opacity .6s; }
.du-ring .amt { font: 600 11px var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.du-ring .av circle { fill: var(--c); }
.du-ring .av text { fill: #fff; font: 600 13px var(--body); text-anchor: middle; dominant-baseline: central; }
.du-ring .bal { font: 11.5px var(--mono); text-anchor: middle; }
.du-ring .av { cursor: pointer; }
.du-rows { display: grid; gap: 6px; }
.du-row { display: grid; grid-template-columns: 22px 60px 1fr 82px; gap: 10px; align-items: center; font-size: 13px; }
.du-row .av { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.du-row input[type=range] { width: 100%; accent-color: var(--accent); }
.du-row .num { font: 12.5px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.du-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.du-bar .sum { font: 12.5px var(--mono); color: var(--text-2); }
.du-bar select { font: 13px var(--body); background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 8px; }
.confetti { position: absolute; width: 7px; height: 11px; top: 40%; left: 50%; border-radius: 2px; pointer-events: none; animation: confetti 1.4s var(--ease) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* ---------- releases feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed > li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.feed > li.empty { display: block; color: var(--muted); }
.feed-top { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.feed-top .ver { font: 12px var(--mono); color: var(--accent); background: var(--accent-wash); padding: 1px 8px; border-radius: 99px; }
.feed-top time { font-size: 12.5px; color: var(--muted); }
.notes { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }

/* ---------- email sign-up */
.updates { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 28px; }
.updates h2 { font-size: 24px; }
.updates .sec-sub { margin: 0; }
.subscribe { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe input[type=email] { flex: 1 1 220px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .05); color: var(--text); font: 15px var(--body); }
.subscribe input[type=email]:focus { outline: none; border-color: rgba(143, 176, 255, .55); box-shadow: 0 0 0 4px rgba(143, 176, 255, .12); }
.subscribe .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.sub-msg { flex-basis: 100%; margin: 0; font-size: 13.5px; min-height: 20px; color: var(--text-2); }
.sub-msg.ok { color: var(--good); }
.sub-msg.err { color: var(--warning); }
.hp { position: absolute; left: -9999px; }

/* ---------- product page */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 8px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.phero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 48px; }
.phero h1 { font-size: 48px; }
.phero p:not(.lead):not(.meta) { color: var(--text-2); margin: 0 0 24px; }
.pmeta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 12px 0 20px; }
.fgrid h3 { margin: 10px 0 6px; }
.fgrid p { margin: 0; color: var(--text-2); font-size: 14px; }
.fic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-wash); }
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

/* ---------- finder (command palette) */
.finder { width: min(560px, calc(100vw - 28px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); }
.finder::backdrop { background: rgba(2, 4, 10, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.finder[open] { animation: od-in .25s var(--ease); }
.finder-box { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.finder-box input { flex: 1; border: 0; background: none; color: var(--text); font: 16px var(--body); outline: none; min-height: 32px; }
#finder-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
#finder-list li a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
#finder-list li a small { display: block; color: var(--muted); font-size: 12.5px; }
#finder-list li[aria-selected="true"] a, #finder-list li a:hover { background: var(--surface-2); }
#finder-list .empty { padding: 14px; color: var(--muted); }

/* ---------- footer + About Orion (§2a) */
footer.orion-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 40px; padding-bottom: 28px; text-align: center; border-top: 1px solid var(--border); margin-top: 24px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 13.5px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.powered { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 99px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted);
  font: 9.5px var(--mono); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.powered svg { width: 34px; height: 34px; color: var(--text); flex: none; }
.powered svg line { opacity: .6; stroke-width: 1.4; }
.powered b { font: 700 11px var(--brand); letter-spacing: .36em; color: var(--text-2); margin-right: -.4em; }
.powered:hover, .powered:focus-visible { color: var(--text); border-color: color-mix(in srgb, var(--rigel) 40%, transparent); background: var(--accent-wash); }
.orion.twinkle circle:not(.glow) { animation: twinkle 3.2s ease-in-out 3; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.orion.draw line { stroke-dasharray: 60; stroke-dashoffset: 60; animation: od-line .9s cubic-bezier(.6, 0, .2, 1) forwards; }
.orion.draw circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: od-star .5s var(--pop) forwards; }
@keyframes od-line { to { stroke-dashoffset: 0; } }
@keyframes od-star { to { transform: scale(1); } }
.orion-dlg { color-scheme: dark; width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; border: 1px solid rgba(140, 185, 255, .22); border-radius: 20px;
  background: #0a0a0b; color: #ececee; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); font-family: var(--body); }
.orion-dlg::backdrop { background: rgba(4, 4, 6, .72); }
.orion-dlg[open] { animation: od-in .4s var(--ease); }
@keyframes od-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes od-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.od-inner { padding: 30px 26px 22px; text-align: center; background: radial-gradient(120% 70% at 50% 0%, rgba(122, 162, 255, .16), transparent 70%); }
.od-mark svg { width: 168px; height: 168px; color: #fff; filter: drop-shadow(0 0 14px rgba(140, 185, 255, .35)); }
.od-word { font: 700 26px/1.2 var(--brand); letter-spacing: .5em; padding-left: .5em; margin-top: 12px; opacity: 0; animation: od-rise .6s .9s ease forwards; }
.od-product, .od-links, .od-copy, .od-close { opacity: 0; animation: od-rise .6s 1.2s ease forwards; }
.od-product { margin-top: 22px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); text-align: left; }
.od-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.od-logo span { font: 700 16px var(--brand); letter-spacing: .2em; text-transform: uppercase; }
.od-facts { margin: 0; display: grid; }
.od-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13.5px; }
.od-facts > div:first-child { border-top: 0; }
.od-facts dt { color: var(--muted); font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; align-self: center; white-space: nowrap; }
.od-facts dd { margin: 0; text-align: right; color: #ececee; }
.od-facts a { color: #7aa2ff; }
.od-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.od-links a { font: 500 13px var(--body); color: #ececee; text-decoration: none; padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .15); transition: background-color .2s, border-color .2s; }
.od-links a:hover { background: rgba(122, 162, 255, .12); border-color: rgba(122, 162, 255, .5); }
.od-copy { margin: 16px 0 0; font-size: 12px; color: #84848b; }
.od-close { margin-top: 14px; min-height: 34px; padding: 6px 20px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: none; color: #ececee; font: 500 13px var(--body); cursor: pointer; }
.od-close:hover { background: rgba(255, 255, 255, .06); }

/* ---------- responsive */
@media (max-width: 900px) {
  .show-grid, .phero, .updates { grid-template-columns: 1fr; gap: 28px; }
  .show.flip .show-text { order: 0; }
  .art { max-width: 380px; }
  h1, .phero h1 { font-size: 38px; }
  .fgrid { grid-template-columns: 1fr; }
  .links { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .find span, .find kbd { display: none; }
  .wm { font-size: 13px; letter-spacing: .16em; }
  h2 { font-size: 26px; }
  .show-tag { font-size: 23px; }
  .demo { padding: 14px; min-height: 0; }
  .gw-row { grid-template-columns: 56px 1fr 62px auto; }
  .gw-row .wh { display: none; }
  .feed > li { grid-template-columns: auto 1fr; }
  .feed > li > .btn { grid-column: 2; justify-self: start; }
  .seg { max-width: 100%; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .orion.draw line { stroke-dashoffset: 0; } .orion.draw circle { transform: none; }
  .od-word, .od-product, .od-links, .od-copy, .od-close { opacity: 1; }
}

/* small fixes */
.ver:empty { display: none; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.du-row { grid-template-columns: 22px 74px 1fr 82px; }
#hero-meta { flex-wrap: nowrap; align-items: baseline; }
#hero-meta .dot { flex: none; }

/* Studio: "ORION" wordmark spacing (§2) and the principles grid */
.top .wm { letter-spacing: .42em; }
.principles { grid-template-columns: repeat(4, 1fr); }
.principles .num { font: 500 12px/1 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

@media (max-width: 560px) { .feats { grid-template-columns: 1fr; gap: 10px; } }

/* a product's demos, one tab per service it runs */
.demo-wrap { display: flex; flex-direction: column; gap: 10px; }
.demo-tabs { display: flex; gap: 4px; padding: 4px; align-self: flex-start; border-radius: 14px; }
.demo-tabs button { padding: 8px 14px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 600 13px var(--body); cursor: pointer; transition: background .25s, color .25s; }
.demo-tabs button small { font: 500 11.5px var(--body); color: var(--muted); margin-left: 4px; }
.demo-tabs [aria-selected="true"] { background: var(--accent-wash); color: var(--text); }
.demo-tabs [aria-selected="true"] small { color: var(--accent); }
.demo-wrap .demo[hidden] { display: none; }

/* ICD-10 Coder demo */
.icd { display: flex; flex-direction: column; gap: 12px; height: 100%; font-size: 13px; }
.icd-req { font: 11.5px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.icd-req > span:first-child b { font: 600 12.5px var(--body); color: var(--text); }
.icd-model { margin-left: auto; color: var(--muted); } .icd-model b { color: var(--accent); font-weight: 500; }
.icd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: s; }
.icd-steps li { position: relative; padding: 6px 8px 7px; border-radius: 6px; background: var(--surface-2); font: 600 11.5px var(--body); color: var(--muted); counter-increment: s; transition: color .3s, background .3s; overflow: hidden; }
.icd-steps li::before { content: counter(s) " "; font: 10.5px var(--mono); opacity: .7; }
.icd-steps li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.icd-steps li.on { color: var(--text); background: var(--accent-wash); }
.icd-steps li.on::after { animation: icd-fill .45s linear forwards; }
.icd-steps li.done { color: var(--text-2); }
.icd-steps li.done::after { width: 100%; background: var(--good); }
@keyframes icd-fill { to { width: 100%; } }
.icd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; }
.icd-note { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); font: 11.5px/1.5 var(--mono); color: var(--text-2); }
.icd-sec { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.icd-line { margin: 0 0 7px; opacity: .55; transition: opacity .3s; }
.icd-line.on, .icd-line.done { opacity: 1; }
.icd-line mark { background: none; color: inherit; background-image: linear-gradient(var(--warning), var(--warning)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease), color .3s; }
.icd-line.on mark, .icd-line.done mark { background-size: 100% 1.5px; color: var(--text); }
.icd-wr { display: inline-block; padding: 0 5px; border-radius: 4px; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 11px; }
.icd-line.done .icd-wr { text-decoration: line-through; text-decoration-color: var(--critical); }
.icd-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; align-content: start; }
.icd-code { padding: 7px 11px; border-radius: 9px; background: var(--surface-2); border-left: 2px solid var(--good); animation: icd-in .45s var(--ease); }
.icd-code > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icd-code b { font: 600 13px var(--mono); color: var(--text); }
.icd-code .chip { font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: rgba(76, 195, 138, .14); color: var(--good); }
.icd-code p { margin: 3px 0 0; font-size: 12px; line-height: 1.35; color: var(--text); }
.icd-code small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.icd-code.warn, .icd-code.rev { border-left-color: var(--warning); } .icd-code.warn .chip, .icd-code.rev .chip { background: var(--warn-wash); color: var(--warning); }
.icd-code.err { border-left-color: var(--critical); } .icd-code.err .chip { background: rgba(240, 122, 116, .14); color: var(--critical); }
@keyframes icd-in { from { opacity: 0; transform: translateX(10px); } }
.icd-sum { margin: 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 11px var(--mono); color: var(--muted); }
.icd-sum b { color: var(--good); font-weight: 500; }
@media (max-width: 560px) { .icd-body { grid-template-columns: 1fr; } .icd-model { margin-left: 0; } }
