/* Sigma Maze Labs: "Solve the maze". Dark is the brand default; light is a full variant (legal pages print light). */

/* ── Fonts (self-hosted, OFL; see /assets/fonts/LICENSE-*.txt) ── */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/assets/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ── Tokens: light ── */
:root {
  color-scheme: light;
  --bg: #F5F5F0;
  --bg-glow: radial-gradient(1100px 600px at 85% -10%, rgba(123, 63, 228, 0.07), transparent 60%), radial-gradient(900px 520px at -10% 105%, rgba(26, 95, 208, 0.06), transparent 60%);
  --surface: #FFFFFF;
  --surface-2: #EFEFE9;
  --grid: rgba(13, 15, 20, 0.07);
  --grid-strong: rgba(13, 15, 20, 0.14);
  --text: #0D0F14;
  --text-2: #4A4F5C;
  --muted: #6B707C;
  --accent: #1A5FD0;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(26, 95, 208, 0.10);
  --violet: #7B3FE4;
  --rh: #4F7A00;
  --live: #11804F;
  --danger: #E0263A;
  --maze-wall: rgba(13, 15, 20, 0.13);
  --maze-search: rgba(123, 63, 228, 0.20);
  --maze-path: #1A5FD0;
  --maze-glow: rgba(26, 95, 208, 0.22);
  --shade: rgba(245, 245, 240, 0.94);
  --shadow: 0 1px 2px rgba(13, 15, 20, 0.04), 0 10px 30px rgba(13, 15, 20, 0.06);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 16px;
}

/* ── Tokens: dark (system preference unless the visitor chose light) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #05060A;
    --bg-glow: radial-gradient(1100px 640px at 85% -12%, rgba(157, 92, 255, 0.14), transparent 60%), radial-gradient(900px 520px at -10% 105%, rgba(61, 139, 255, 0.07), transparent 60%);
    --surface: #0D0F16;
    --surface-2: #141722;
    --grid: rgba(255, 255, 255, 0.06);
    --grid-strong: rgba(255, 255, 255, 0.13);
    --text: #F4F5F7;
    --text-2: #A7ACBA;
    --muted: #7A808F;
    --accent: #3D8BFF;
    --accent-ink: #05060A;
    --accent-soft: rgba(61, 139, 255, 0.12);
    --violet: #9D5CFF;
    --rh: #C6F432;
    --live: #3DDC97;
    --danger: #FF4D5E;
    --maze-wall: rgba(255, 255, 255, 0.085);
    --maze-search: rgba(157, 92, 255, 0.30);
    --maze-path: #3D8BFF;
    --maze-glow: rgba(61, 139, 255, 0.30);
    --shade: rgba(5, 6, 10, 0.92);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05060A;
  --bg-glow: radial-gradient(1100px 640px at 85% -12%, rgba(157, 92, 255, 0.14), transparent 60%), radial-gradient(900px 520px at -10% 105%, rgba(61, 139, 255, 0.07), transparent 60%);
  --surface: #0D0F16;
  --surface-2: #141722;
  --grid: rgba(255, 255, 255, 0.06);
  --grid-strong: rgba(255, 255, 255, 0.13);
  --text: #F4F5F7;
  --text-2: #A7ACBA;
  --muted: #7A808F;
  --accent: #3D8BFF;
  --accent-ink: #05060A;
  --accent-soft: rgba(61, 139, 255, 0.12);
  --violet: #9D5CFF;
  --rh: #C6F432;
  --live: #3DDC97;
  --danger: #FF4D5E;
  --maze-wall: rgba(255, 255, 255, 0.085);
  --maze-search: rgba(157, 92, 255, 0.30);
  --maze-path: #3D8BFF;
  --maze-glow: rgba(61, 139, 255, 0.30);
  --shade: rgba(5, 6, 10, 0.92);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must not unhide elements */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
/* The maze floor: a faint 32 px grid behind everything. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .5;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .16s var(--ease); }
.skip:focus { top: 12px; }
.dev-notice { position: relative; z-index: 60; background: repeating-linear-gradient(-45deg, #ffb547, #ffb547 12px, #ffc56b 12px, #ffc56b 24px); color: #1a1205; font: 600 12px/1.4 var(--mono); padding: 8px 16px; text-align: center; }

.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-title { font-size: clamp(28px, 4vw, 48px); max-width: 18ch; }
.section-sub { color: var(--text-2); margin-top: 12px; font-size: 17px; }

/* ── Buttons, chips, badges ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 var(--maze-glow); }
.btn-primary:hover { box-shadow: 0 0 0 6px var(--accent-soft), 0 8px 28px var(--maze-glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--grid-strong); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-large { height: 56px; padding: 0 28px; font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--grid-strong); font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--text-2); text-transform: uppercase; }
.chip.mono { text-transform: none; letter-spacing: .02em; }
.chip-status { color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, transparent); }
.chip-explore { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11px/1 var(--mono); letter-spacing: .06em; }
.badge-sol { color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.badge-rh { color: var(--rh); background: color-mix(in srgb, var(--rh) 14%, transparent); }
.badges { display: inline-flex; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.dot.live { background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { transition: transform .16s var(--ease); color: var(--accent); }
.link-arrow:hover span { transform: translateX(3px); }
.card { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); }

/* ── Header ── */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), backdrop-filter .2s; }
.nav.scrolled, body:not(.home) .nav { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--grid); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-mark .lm-frame { stroke: var(--grid-strong); stroke-width: 1.5; }
.logo-mark .lm-sigma { fill: var(--text); }
.logo-mark .lm-block { fill: var(--accent); transition: transform .4s var(--ease); transform-box: fill-box; transform-origin: center; }
.brand:hover .lm-block { transform: scale(1.25); }
.wordmark { font: 500 15px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.wordmark span { color: var(--muted); }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; position: relative; padding: 6px 0; transition: color .16s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { display: none; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--grid-strong); border-radius: 999px; font: 500 12px/1 var(--mono); color: var(--text-2); white-space: nowrap; }
.status-pill .dot { display: none; }
.status-pill.is-live .dot { display: inline-block; background: var(--live); animation: pulse 2.2s var(--ease) infinite; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--grid-strong); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#theme-toggle .moon { display: none; }
:root[data-theme="light"] #theme-toggle .sun { display: none; }
:root[data-theme="light"] #theme-toggle .moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) #theme-toggle .sun { display: none; } :root:not([data-theme="dark"]) #theme-toggle .moon { display: block; } }
.nav-contact { display: none; }
.menu-sheet { position: fixed; inset: 68px 0 0 0; background: var(--bg); z-index: 49; padding: 32px 16px; border-top: 1px solid var(--grid); }
.menu-sheet nav { display: flex; flex-direction: column; }
.menu-sheet a { font: 600 32px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--grid); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav-contact { display: inline-flex; }
  .status-pill { display: inline-flex; }
  .menu-sheet { display: none !important; }
}
@media (min-width: 600px) and (max-width: 899px) { .status-pill { display: inline-flex; } }

/* ── Hero ── */
.hero { position: relative; min-height: min(92vh, 860px); min-height: min(92svh, 860px); display: flex; align-items: center; margin-top: -68px; padding: 120px 0 72px; overflow: hidden; isolation: isolate; }
.maze { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .38; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, var(--bg) 100%), linear-gradient(90deg, var(--shade) 0%, color-mix(in srgb, var(--shade) 60%, transparent) 45%, transparent 75%); }
@media (max-width: 899px) { .hero-shade { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent) 0%, transparent 30%, var(--bg) 100%); } }
@media (min-width: 900px) { .maze { opacity: 1; } }
.hero-inner { width: 100%; }
.hero-copy { max-width: 820px; }
.hero-title { font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 700; margin-bottom: 26px; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(10px); animation: rise .7s var(--ease) forwards; animation-delay: calc(120ms + var(--i, 0) * 60ms); }
.hero-title .w:nth-of-type(1) { --i: 0; } .hero-title .w:nth-of-type(2) { --i: 1; } .hero-title .w:nth-of-type(3) { --i: 2; } .hero-title .w:nth-of-type(4) { --i: 3; }
.hero-title .w:nth-of-type(5) { --i: 4; } .hero-title .w:nth-of-type(6) { --i: 5; } .hero-title .w:nth-of-type(7) { --i: 6; }
.hero-title .accent { color: var(--accent); text-shadow: 0 0 40px var(--maze-glow); }
@keyframes rise { to { opacity: 1; transform: none; } }
.br-wide { display: none; }
@media (min-width: 600px) { .br-wide { display: inline; } }
.hero-sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 54ch; margin-bottom: 34px; opacity: 0; animation: rise .7s var(--ease) .6s forwards; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: rise .7s var(--ease) .75s forwards; }
.readout { position: absolute; top: 88px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.readout .v { color: var(--text-2); }
.readout-l { left: 16px; } .readout-r { right: 16px; }
@media (min-width: 768px) { .readout-l { left: 32px; } .readout-r { right: 32px; } }
@media (max-width: 599px) { .readout-l { display: none !important; } }


/* ── Thesis ── */
.thesis-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.thesis-grid li { padding: 28px 0; border-top: 1px solid var(--grid); }
.thesis-grid .idx { display: block; font-size: 13px; color: var(--accent); margin-bottom: 18px; }
.thesis-grid h3 { margin-bottom: 12px; font-size: 24px; }
.thesis-grid p { color: var(--text-2); }
.ul { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0% 2px; padding-bottom: 4px; transition: background-size .9s var(--ease) .2s; }
.in .ul { background-size: 100% 2px; }
@media (min-width: 900px) {
  .thesis-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .thesis-grid li { border-top: none; border-left: 1px solid var(--grid); padding: 8px 0 8px 28px; }
}

/* ── Products ── */
.product-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.product { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.product:hover, .product:focus-within { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent), 0 20px 60px -20px var(--maze-glow); }
.product-visual { position: relative; height: 260px; border-bottom: 1px solid var(--grid); background: radial-gradient(400px 220px at 50% 50%, color-mix(in srgb, var(--violet) 9%, transparent), transparent 70%), var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.visual-note { position: absolute; right: 12px; bottom: 10px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-visual { display: block; place-items: stretch; }
.site-preview { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.visual-note.on-image { background: color-mix(in srgb, var(--surface-2) 80%, transparent); padding: 2px 8px; border-radius: 4px; }
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
@media (min-width: 600px) { .product-body { padding: 28px 32px 30px; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.product-title { font-size: 30px; letter-spacing: -0.035em; }
.product-lead { color: var(--text-2); font-size: 17px; }
.product-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.product-points li { position: relative; padding-left: 22px; font-size: 15px; }
.product-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.product-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--grid); flex-wrap: wrap; }
.disclaimer { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Radar */
.radar { width: 230px; height: 230px; overflow: visible; }
.radar-grid circle, .radar-grid path { fill: none; stroke: var(--grid-strong); stroke-width: 1; }
.radar-sweep { transform-origin: 120px 120px; animation: spin 4s linear infinite; }
.product:hover .radar-sweep { animation-duration: 2.6s; }
.sweep-stop-0 { stop-color: var(--danger); stop-opacity: 0; }
.sweep-stop-1 { stop-color: var(--danger); stop-opacity: .28; }
.radar-core { fill: var(--danger); }
.blip { transform-box: fill-box; transform-origin: center; }
.blip-dot { fill-opacity: .8; }
.blip-sol { fill: var(--violet); } .blip-rh { fill: var(--rh); }
.blip-ring { fill: none; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ripple 2.4s var(--ease) infinite; }
.blip-ring.blip-sol { stroke: var(--violet); fill: none; } .blip-ring.blip-rh { stroke: var(--rh); fill: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* Notification stack */
.notif-stack { position: relative; width: min(330px, 86%); height: 200px; }
.notif { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--grid-strong); box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; opacity: 0; animation: notif 9s var(--ease) infinite; }
.notif b { display: block; font-weight: 600; font-size: 13px; }
.notif span:not(.notif-icon) { color: var(--muted); font-size: 12px; }
.notif time { margin-left: auto; align-self: flex-start; font: 500 11px/1 var(--mono); color: var(--muted); }
.notif-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; font-size: 14px; }
.notif.n1 { animation-delay: 0s; } .notif.n2 { animation-delay: 1.4s; } .notif.n3 { animation-delay: 2.8s; }
.product:hover .notif { animation-duration: 7s; }
@keyframes notif {
  0% { opacity: 0; transform: translateY(-24px) scale(.96); top: 0; }
  6% { opacity: 1; transform: none; top: 0; }
  20% { top: 0; }
  26% { top: 70px; opacity: 1; transform: scale(.98); }
  40% { top: 70px; }
  46% { top: 140px; opacity: .55; transform: scale(.95); }
  80% { top: 140px; opacity: .55; }
  90%, 100% { top: 140px; opacity: 0; transform: scale(.93); }
}

/* ── Validator infrastructure ── */
.infra-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--grid-strong) 1px, transparent 0); background-size: 22px 22px; opacity: .55; mask-image: radial-gradient(140% 120% at 50% 55%, #000 55%, transparent); -webkit-mask-image: radial-gradient(140% 120% at 50% 55%, #000 55%, transparent); }
.infra-readout { position: absolute; left: 14px; top: 12px; display: grid; gap: 3px; font: 500 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); z-index: 1; }
.infra-live { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 88%, var(--text)); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); z-index: 1; }
.infra-live .dot { width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); animation: pulse 2.2s var(--ease) infinite; }
.infra-cluster { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; }
.infra-node { display: grid; justify-items: center; gap: 8px; font: 600 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.infra-node .t-violet { color: color-mix(in srgb, var(--violet) 75%, var(--text-2)); }
.infra-node .t-accent { color: var(--accent); }
.infra-node.main { transform: translateY(2px); }
.infra-rack { width: 46px; height: 76px; border-radius: 8px; padding: 8px 7px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent); background: linear-gradient(to top, color-mix(in srgb, var(--violet) 14%, var(--surface-2)), color-mix(in srgb, var(--violet) 32%, var(--surface-2))); }
.infra-rack i { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--violet) 75%, transparent); opacity: .8; animation: rackPulse 2.6s var(--ease) infinite; }
.infra-rack i:nth-child(2) { animation-delay: .35s; }
.infra-rack i:nth-child(3) { animation-delay: .7s; }
@keyframes rackPulse { 0%, 100% { opacity: .3; } 50% { opacity: .95; } }
.infra-uplink { position: relative; display: grid; justify-items: center; height: 26px; }
.infra-uplink .wire { width: 1px; height: 100%; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 55%, transparent), transparent); }
.infra-uplink .beam { position: absolute; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: ripple 2.6s var(--ease) infinite; }
.infra-server { width: 60px; height: 104px; border-radius: 12px; padding: 9px; display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 14%, transparent); }
.srv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.infra-server .led { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 2.2s var(--ease) infinite; }
.infra-server .slot { width: 22px; height: 3px; border-radius: 2px; background: var(--grid-strong); }
.infra-server i { height: 2px; border-radius: 1px; background: var(--grid-strong); }
.infra-server i.hot { background: linear-gradient(to right, color-mix(in srgb, var(--accent) 65%, transparent), transparent); animation: rackPulse 3s var(--ease) infinite; }
.product:hover .infra-rack i, .product:hover .infra-server i.hot, .product:hover .infra-uplink .beam { animation-duration: 1.5s; }


/* ── Method ── */
.method-grid { display: grid; gap: 32px; margin-top: 40px; align-items: center; }
.loop { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.loop-svg { width: 100%; height: 100%; }
.loop-track { fill: none; stroke: var(--grid-strong); stroke-width: 1.5; stroke-dasharray: 2 6; }
.loop-track-glow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 160px 160px; opacity: .65; }
.loop-pulse { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.loop-center { font: 700 44px/1 var(--display); fill: var(--accent); }
.loop-center-sub { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
.loop-nodes { position: absolute; inset: 0; }
.loop-node {
  --r: 36.875cqw;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--grid-strong); background: var(--surface);
  color: var(--text-2); font: 600 13px/1 var(--mono); letter-spacing: .04em; cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.loop-node:nth-child(1) { --a: 0deg; } .loop-node:nth-child(2) { --a: 72deg; } .loop-node:nth-child(3) { --a: 144deg; }
.loop-node:nth-child(4) { --a: 216deg; } .loop-node:nth-child(5) { --a: 288deg; }
.loop-node:hover { color: var(--text); border-color: var(--accent); }
.loop-node[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 0 24px var(--maze-glow); }


/* ── Lab ── */
.lab-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; }
.lab-list li { display: grid; gap: 12px; padding: 24px 0; border-top: 1px solid var(--grid); align-items: start; }
.lab-list li:last-child { border-bottom: 1px solid var(--grid); }
.lab-list h3 { margin-bottom: 6px; }
.lab-list p { color: var(--text-2); max-width: 70ch; }
.lab-list .chip { justify-self: start; }
@media (min-width: 768px) { .lab-list li { grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; } .lab-list .chip { margin-top: 4px; } }

/* ── Principles ── */
.principles-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .principles-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.principles-grid li { padding: 26px; border: 1px solid var(--grid); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.principles-grid svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.principles-grid h3 { margin-bottom: 8px; }
.principles-grid p { color: var(--text-2); }

/* ── Contact ── */
.contact { position: relative; overflow: hidden; padding: 96px 0; border-top: 1px solid var(--grid); isolation: isolate; }
@media (min-width: 900px) { .contact { padding: 140px 0; } }
.contact-maze { position: absolute; inset: 0; z-index: -1; opacity: .9; background:
  radial-gradient(600px 300px at 50% 50%, var(--accent-soft), transparent 70%),
  repeating-linear-gradient(90deg, transparent 0 27px, var(--grid) 27px 28px),
  repeating-linear-gradient(0deg, transparent 0 27px, var(--grid) 27px 28px);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact h2 { font-size: clamp(32px, 5vw, 64px); max-width: 16ch; }
.contact p { color: var(--text-2); font-size: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--grid); padding: 36px 0 44px; font-size: 14px; color: var(--text-2); }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { color: var(--text); font-weight: 500; }
.footer-note { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.4fr 1fr auto; align-items: center; } .footer-meta { text-align: right; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font: 600 14px/1 var(--body); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Reveal on scroll (only once JS is running, so content is never hidden without it) ── */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Legal pages ── */
.legal { padding: 56px 0 96px; }
.legal-col { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.legal .lang-switch { font: 500 13px/1.5 var(--mono); color: var(--muted); margin-bottom: 36px; }
.legal .lang-switch a { color: var(--text-2); }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: var(--text); }
.legal .note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 14px; margin: 18px 0; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal code { font: 13px var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* ── 404 ── */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.lost svg { width: 160px; height: 160px; margin: 0 auto 28px; }
.lost h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 14px; }
.lost p { color: var(--text-2); margin-bottom: 28px; }
.lost .wall { fill: none; stroke: var(--grid-strong); stroke-width: 3; stroke-linecap: round; }
.lost .dead { fill: none; stroke: var(--danger); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 8; }
.lost .x { fill: none; stroke: var(--danger); stroke-width: 4; stroke-linecap: round; }

/* ── Motion & print ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-title .w, .hero-sub, .hero-ctas { opacity: 1; transform: none; }
  .notif.n1 { opacity: 1; top: 0; } .notif.n2 { opacity: 1; top: 70px; } .notif.n3 { opacity: .55; top: 140px; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --text: #000; --text-2: #222; --muted: #555; --surface: #fff; --grid: #ddd; --accent: #000; }
  body { background: #fff; }
  body::before, .nav, .footer-links, .toast, .skip, .dev-notice { display: none !important; }
  .legal { padding: 0; }
}
