/* ==========================================================================
   Mjolnir Photonics — "Photon" design system
   Direction: x.ai × Stripe. White, structured, Stripe-like sections with
   black x.ai-like "moment" bands (hero, portfolio, security, about, footer).
   One accent (indigo) + one mesh gradient, both rationed.
   Fonts: Inter (UI/body/display), JetBrains Mono (labels/specs). Self-hosted.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/Inter-latin.woff2") format("woff2");
  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-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/Inter-latin-ext.woff2") format("woff2");
  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-weight: 100 800; font-display: swap;
  src: url("../assets/fonts/JetBrainsMono-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* light surface (default) */
  --bg: #ffffff;
  --bg-2: #f6f8fb;            /* alternate light band */
  --bg-3: #eef1f6;            /* subtle fills */
  --ink: #0b0d12;             /* headings, 18.5:1 on white */
  --text: #3c4658;            /* body, 8.6:1 on white */
  --muted: #64708a;           /* secondary, 5.0:1 on white */
  --line: #e4e8ef;            /* hairlines */
  --line-strong: #c9d0dc;     /* form borders, 3.0:1+ vs white */
  --accent: #4f46e5;          /* indigo, 6.3:1 on white */
  --accent-ink: #4338ca;      /* hover */
  --accent-soft: #eef0ff;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --ok: #067647;
  --ok-soft: #ecfdf3;

  /* mesh gradient (Stripe-like), used sparingly */
  --g1: #6d5cff; --g2: #b57bff; --g3: #ff6ec7; --g4: #ffa14a;
  --gradient: linear-gradient(100deg, var(--g1) 0%, var(--g2) 38%, var(--g3) 70%, var(--g4) 100%);

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-0: 0.8125rem;  /* 13 labels */
  --fs-1: 0.9375rem;  /* 15 small */
  --fs-2: 1.0625rem;  /* 17 body */
  --fs-3: 1.1875rem;  /* 19 lead */
  --fs-4: 1.375rem;   /* 22 h4 */
  --fs-5: 1.75rem;    /* 28 h3 */
  --fs-6: clamp(2rem, 1.3rem + 2.4vw, 3rem);       /* h2 32-48 */
  --fs-7: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem);  /* h1 42-76 */
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  /* layout */
  --container: 1200px;
  --narrow: 760px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 64px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, .05), 0 1px 3px rgba(11, 13, 18, .06);
  --shadow: 0 8px 30px rgba(11, 13, 18, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-header: 50; --z-drawer: 60; --z-modal: 100; --z-gate: 110;
}

/* dark band: any section/element with .dark re-tokens itself */
.dark {
  --bg: #0a0a0b;
  --bg-2: #101114;
  --bg-3: #16171b;
  --ink: #f7f7f8;             /* 19:1 */
  --text: #b9bec9;            /* 11:1 */
  --muted: #8a909c;           /* 6.3:1 */
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .28);
  --accent: #a6a0ff;          /* 8.4:1 on #0a0a0b */
  --accent-ink: #c4c0ff;
  --accent-soft: rgba(166, 160, 255, .12);
  --shadow-sm: none;
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-2); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: var(--lh-snug); text-wrap: balance; }
h1 { font-size: var(--fs-7); line-height: var(--lh-tight); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: var(--fs-6); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-5); }
h4 { font-size: var(--fs-4); letter-spacing: -0.01em; }
h5 { font-size: var(--fs-3); letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
.flow, .layers, .checks, .bullets, .numbered, .stats, .toc-list, .session-toc-list, .file-list { list-style: none; }
.flow > li, .layers > li { list-style: none; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: #ffffff; }
::selection { background: var(--accent); color: #fff; }
.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-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--narrow); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.band { background: var(--bg-2); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } .split > .sticky { position: static; } }
.stack > * + * { margin-top: var(--stack, 16px); }
.sprite { position: absolute; }
.anchor { display: block; height: 0; }
.grid--people { gap: 0 32px; }
.measure { max-width: 66ch; }
.center { text-align: center; }
.center .measure, .center .section-head { margin-inline: auto; }

/* ---------- Spacing utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mt-5 { margin-top: clamp(40px, 5vw, 64px); } .mt-6 { margin-top: clamp(56px, 7vw, 96px); }
.mb-3 { margin-bottom: 24px; } .mb-0 { margin-bottom: 0; }
.stack--lg { --stack: 22px; } .stack--xl { --stack: 28px; } .stack--2xl { --stack: 32px; }
.muted { color: var(--muted); }
.justify-center { justify-content: center; }
.no-border-top { border-top: 0; }
.card__media { margin: -26px -26px 22px; border-radius: var(--radius) var(--radius) 0 0; border: 0; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: var(--fs-0); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gradient); }
.eyebrow--plain::before { display: none; }
.lead { font-size: var(--fs-3); line-height: 1.55; color: var(--text); }
.lead strong { color: var(--ink); }
.small { font-size: var(--fs-1); }
.label { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 20px; }
.section-head .lead { max-width: 64ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; margin-bottom: .6em; font-size: var(--fs-5); }
.prose h3 { margin-top: 1.6em; margin-bottom: .5em; font-size: var(--fs-4); }
.prose p, .prose li { font-size: var(--fs-2); line-height: 1.7; }
.prose p + p, .prose ul, .prose ol { margin-top: 1em; }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; }
.prose .note { padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid transparent; font-weight: 600; font-size: var(--fs-1); line-height: 1; white-space: nowrap; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.dark .btn--primary { background: #fff; color: #0a0a0b; }
.dark .btn--primary:hover { background: #e8e8ec; color: #0a0a0b; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-2); }
.dark .btn--secondary:hover { background: rgba(255, 255, 255, .06); }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: 12px; }
.btn--ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: var(--fs-2); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link:hover { text-decoration: none; color: var(--accent-ink); }
.btn.link-btn { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent); font-weight: 600; }

/* ---------- Header: see css/nav.css ---------- */
.page { padding-top: var(--header-h); }
.page--hero-first { padding-top: 0; }

/* ---------- Hero (dark, x.ai) ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(64px, 12vw, 140px)); padding-bottom: clamp(72px, 10vw, 128px); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__glow { position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(109, 92, 255, .38), transparent 60%),
    radial-gradient(45% 45% at 80% 20%, rgba(255, 110, 199, .22), transparent 60%),
    radial-gradient(50% 40% at 60% 90%, rgba(255, 161, 74, .16), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 11, .2) 0%, rgba(10, 10, 11, .75) 70%, #0a0a0b 100%); }
.hero__inner { position: relative; max-width: 900px; }
.hero h1 { color: #fff; max-width: 24ch; margin: 0 0 28px; }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 58ch; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); }
.hero .btn-row { margin-top: 36px; }
.hero__meta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero__meta span { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; color: rgba(255, 255, 255, .8); }
.hero__meta .arrow { color: rgba(255, 255, 255, .35); padding: 0; border: 0; }
.hero .eyebrow { color: rgba(255, 255, 255, .7); }
.hero--compact { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(48px, 7vw, 88px); }

/* ---------- Light title block (subpage opener) ---------- */
.title-block { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(32px, 4.5vw, 56px); border-bottom: 1px solid var(--line); }
.title-block h1 { max-width: 16ch; font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); }
.title-block .lead { max-width: 60ch; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.dark .card { background: var(--bg-2); }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3, .card h4 { margin-bottom: 10px; }
.card h3 { font-size: var(--fs-4); }
.card p { color: var(--text); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card .icon svg { width: 20px; height: 20px; }
.card--link { display: block; color: inherit; }
.card--link:hover { text-decoration: none; color: inherit; }
.card--link .link { margin-top: 18px; }
.card__kicker { display: block; margin-bottom: 12px; }
.card__product { font-weight: 600; color: var(--ink); margin-bottom: 8px; }

/* hairline cell grid (x.ai) */
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cells > * { background: var(--bg); padding: 24px 26px; }
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cells--3, .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cells--2, .cells--3, .cells--4 { grid-template-columns: minmax(0, 1fr); } }
.cell strong { display: block; color: var(--ink); font-size: var(--fs-3); margin-bottom: 6px; letter-spacing: -0.01em; }
.cell span { color: var(--text); }

/* numbered list (failures, steps) */
.numbered { display: grid; gap: 0; border-top: 1px solid var(--line); }
.numbered > li { list-style: none; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.numbered .num { font-family: var(--mono); font-size: var(--fs-1); color: var(--accent); letter-spacing: .08em; padding-top: 6px; }
.numbered h3 { font-size: var(--fs-4); margin-bottom: 10px; }
.numbered .claim { color: var(--ink); font-weight: 500; }
.numbered .scene { margin-top: 10px; color: var(--text); }
.numbered .return { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .numbered > li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* flow / stepper */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.flow__step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.flow__num { font-family: var(--mono); font-size: var(--fs-0); color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; display: block; }
.flow__step h3 { font-size: var(--fs-3); margin-bottom: 8px; }
.flow__step p { font-size: var(--fs-1); }
.flow__step--accent { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.flow__step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -13px; width: 10px; height: 10px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow__step:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow__step::after { display: none !important; } }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.stat__value { display: block; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat__value small { font-size: .5em; font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.stat__label { display: block; margin-top: 10px; font-weight: 600; color: var(--ink); }
.stat__note { display: block; margin-top: 6px; font-size: var(--fs-1); color: var(--muted); }
.stat--gradient .stat__value { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px 48px; }
.stat-row div { display: grid; }
.stat-row strong { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); }
.stat-row span { color: var(--muted); font-size: var(--fs-1); margin-top: 6px; }

/* stack diagram */
.layers { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.layer__tier { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.layer h3 { font-size: var(--fs-3); margin-bottom: 4px; }
.layer p { font-size: var(--fs-1); }
.layer--yours { background: var(--bg-2); border-style: dashed; }
@media (max-width: 560px) { .layer { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.checks { display: grid; gap: 12px; }
.checks li { list-style: none; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.mono-line { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* callout / pull-quote */
.callout { position: relative; padding: 26px 28px 26px 32px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.callout::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--gradient); }
.callout__tag { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.callout p { color: var(--ink); font-size: var(--fs-2); }
.dark .callout { background: var(--bg-2); }

/* figure / photo object */
.figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); aspect-ratio: 16 / 10; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--square { aspect-ratio: 4 / 3; }
.figure--tall { aspect-ratio: 4 / 5; }
.dark .figure { border-color: rgba(255, 255, 255, .12); }

/* product feature rows (Stripe) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature__role { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .1em; text-transform: uppercase; }
.feature h3 { font-size: var(--fs-5); margin-bottom: 14px; }
.feature .bullets { margin-top: 18px; }
.feature .practice { margin-top: 20px; }
.feature:nth-of-type(even) .feature__media { order: -1; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature:nth-of-type(even) .feature__media { order: 0; } }
.bullets { display: grid; gap: 10px; }
.bullets li { list-style: none; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text); }
.bullets li::before { content: ""; width: 6px; height: 6px; margin: 10px 0 0 4px; border-radius: 50%; background: var(--accent); }
.practice { padding: 16px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-1); }
.practice strong { color: var(--ink); }
.spec { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: .85em; color: var(--ink); white-space: nowrap; }
.rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rail span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }

/* deploy mini cards */
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mini div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.mini h4 { font-size: var(--fs-1); margin-bottom: 4px; }
.mini p { font-size: var(--fs-0); color: var(--muted); }
.mini .is-accent { border-color: var(--accent); background: var(--accent-soft); }
.dark .mini div { background: var(--bg-3); }

/* stack (portfolio) cards */
.stack-card { display: flex; flex-direction: column; min-height: 100%; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); color: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.stack-card:hover { text-decoration: none; color: inherit; border-color: var(--line-strong); transform: translateY(-3px); }
.stack-card__kicker { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.stack-card h3 { font-size: var(--fs-4); margin-bottom: 10px; }
.stack-card__product { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.stack-card p { color: var(--text); }
.stack-card .link { margin-top: auto; padding-top: 22px; }
.stack-card--privacy .stack-card__kicker { color: #8fd3ff; }
.stack-card--datacenter .stack-card__kicker { color: #c9b8ff; }
.stack-card--security .stack-card__kicker { color: #ffb480; }
.stackline { margin-top: 40px; font-size: var(--fs-3); color: var(--muted); max-width: 70ch; }
.stackline .k-privacy { color: #8fd3ff; font-weight: 600; }
.stackline .k-security { color: #ffb480; font-weight: 600; }
.stackline .k-sovereign { color: #c9b8ff; font-weight: 600; }

/* team */
.person { padding: 22px 0; border-top: 1px solid var(--line); }
.person h3 { font-size: var(--fs-3); margin-bottom: 2px; }
.person__role { display: block; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.person p { font-size: var(--fs-1); }

/* thesis / quote block */
.thesis { padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--ink); color: #d4d7de; }
.thesis .eyebrow { color: #a6a0ff; }
.thesis p { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.4; letter-spacing: -0.015em; color: #f7f7f8; font-weight: 500; text-wrap: pretty; }
.thesis .k { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* resource menus (lab) */
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 720px) { .resources { grid-template-columns: minmax(0, 1fr); } }
.resource { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.resource h3 { font-size: var(--fs-3); margin-bottom: 14px; }
.resource .menu-label { display: block; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.resource a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.resource a:hover { color: var(--accent); text-decoration: none; }
.resource a:first-of-type { font-weight: 600; color: var(--accent); }

/* who / columns */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cols h3 { font-size: var(--fs-4); margin-bottom: 12px; }
.cols .claim { color: var(--ink); font-weight: 500; margin-bottom: 10px; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* contact */
.contact { position: relative; overflow: hidden; }
.contact__glow { position: absolute; inset: auto -10% -60% -10%; height: 120%; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 50% at 50% 100%, rgba(109, 92, 255, .18), transparent 70%), radial-gradient(35% 40% at 80% 90%, rgba(255, 110, 199, .12), transparent 70%); }
.contact .container { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; align-items: start; }
@media (max-width: 800px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
.footer__tag { display: block; margin-top: 10px; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 24px; }
.footer__nav a { color: var(--text); font-size: var(--fs-1); padding: 6px 0; }
.footer__nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: var(--fs-0); color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label, .field .legend { font-weight: 600; color: var(--ink); font-size: var(--fs-1); }
.field .req { color: var(--danger); }
.input, .field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364708a' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: #8e97a8; }
.field .hint { font-size: var(--fs-1); color: var(--muted); }
.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 4px var(--danger-soft) !important; }
.is-valid { border-color: var(--ok) !important; }
.field.is-invalid .hint, .hint.is-invalid { color: var(--danger); }
.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .choice-group { grid-template-columns: minmax(0, 1fr); } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--ink); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.file-drop { position: relative; display: grid; gap: 6px; place-items: center; text-align: center; padding: 28px 20px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--bg-2); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.file-drop:hover, .file-drop.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop__title { font-weight: 600; color: var(--ink); }
.file-drop__types { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.file-list { display: grid; gap: 8px; margin-top: 10px; }
.file-list:empty { display: none; }
.file-list li, .file-list > div { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: var(--fs-1); }
.file-list button, [data-rm-log] { border: 0; background: transparent; color: var(--danger); font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
[data-rm-log]:hover { background: var(--danger-soft); }
.result { margin-top: 20px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: var(--fs-1); color: var(--text); }
.result:empty { display: none; }
.result.is-ok, .result--ok { border-color: #a6e9c5; background: var(--ok-soft); }
.result.is-error, .result--error { border-color: #f5b5ae; background: var(--danger-soft); }
.result strong { color: var(--ink); }
.result code { display: inline-block; padding: 2px 6px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: .9em; word-break: break-all; }
[data-copy] { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: var(--fs-0); font-weight: 600; cursor: pointer; }
[data-copy]:hover { border-color: var(--ink); }

/* ---------- Modal (video) ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal[data-open] { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 5, 8, .8); backdrop-filter: blur(6px); }
.modal__dialog { position: relative; width: min(100%, 1040px); background: #0a0a0b; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.modal__head h2 { font-size: var(--fs-2); color: #fff; letter-spacing: 0; }
.modal__close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: rgba(255, 255, 255, .1); }
.modal video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
body.modal-open { overflow: hidden; }

/* ---------- Lab: gate ---------- */
.gate { position: fixed; inset: 0; z-index: var(--z-gate); display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 50% at 20% 20%, rgba(109, 92, 255, .25), transparent 60%), radial-gradient(40% 40% at 80% 80%, rgba(255, 110, 199, .14), transparent 60%), #0a0a0b; }
.gate[hidden] { display: none !important; }
.gate__card { width: min(100%, 440px); padding: 34px; border-radius: var(--radius-lg); background: #101114; border: 1px solid rgba(255, 255, 255, .12); color: #b9bec9; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gate__card h1, .gate__card h2 { color: #fff; font-size: var(--fs-5); letter-spacing: -0.02em; margin-bottom: 10px; }
.gate__card p { color: #b9bec9; }
.gate__card form { margin-top: 22px; }
.gate__card label { display: block; font-size: var(--fs-1); font-weight: 600; color: #fff; margin-bottom: 8px; }
.gate__card input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: #0a0a0b; color: #fff; font: inherit; font-size: var(--fs-2); }
.gate__card input:focus { outline: none; border-color: #a6a0ff; box-shadow: 0 0 0 4px rgba(166, 160, 255, .2); }
.gate__error { min-height: 1.4em; margin-top: 10px; color: #ff9b93; font-size: var(--fs-1); font-weight: 500; }
.gate__error:empty { display: none; }
.gate__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.gate .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, .35); }
.gate .btn--secondary:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.gate :focus-visible { outline-color: #fff; }
body.lab-locked { overflow: hidden; }
.gate__hint { margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #8a909c; }
body.lab-locked .lab-shell { visibility: hidden; }
body.lab-unlocked .lab-shell { visibility: visible; }

/* ---------- Lab: header / hub ---------- */
.lab-nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: 8px; }
.lab-nav::-webkit-scrollbar { display: none; }
.lab-nav a { flex: none; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: var(--fs-1); font-weight: 500; white-space: nowrap; }
.lab-nav a:hover, .lab-nav a.is-active { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.toc-groups { display: grid; gap: 48px; }
.toc-group h2 { font-size: var(--fs-4); margin-bottom: 20px; }
.toc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .toc-list { grid-template-columns: minmax(0, 1fr); } }
.toc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.toc-card:hover { text-decoration: none; color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.toc-card-media { position: relative; aspect-ratio: 16 / 9; background: #0a0a0b; }
.toc-card-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.toc-type { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(10, 10, 11, .75); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px); }
.toc-card-body { padding: 20px 22px 22px; display: grid; gap: 8px; }
.toc-card-body h3 { font-size: var(--fs-3); }
.toc-card-body p { font-size: var(--fs-1); color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.toc-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }

/* ---------- Lab: session page + player ---------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text); }
.session { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .session { grid-template-columns: minmax(0, 1fr); } }
.session-toc { margin-top: var(--section); border-top: 1px solid var(--line); padding-top: 40px; }
.session-toc h2 { font-size: var(--fs-4); margin-bottom: 16px; }
.session-toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
@media (max-width: 640px) { .session-toc-list { grid-template-columns: minmax(0, 1fr); } }
.session-toc-list a { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 500; }
.session-toc-list a:hover { color: var(--accent); text-decoration: none; }
.session-toc-list a.is-current { color: var(--ink); font-weight: 600; }
.session-toc-list a:first-child { color: var(--accent); font-weight: 600; }

.mpl-player { border-radius: var(--radius-lg); overflow: hidden; background: #0a0a0b; border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.mpl-player-stage { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; }
.mpl-player-stage video, .mpl-player-stage audio { width: 100%; height: 100%; object-fit: contain; }
.mpl-player-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.mpl-player-stage.is-audio { aspect-ratio: 16 / 7; background: radial-gradient(60% 80% at 50% 100%, rgba(109, 92, 255, .35), transparent 70%), #0a0a0b; }
.mpl-bars { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 45%; padding: 0 24px 12px; pointer-events: none; }
.mpl-bars span, .mpl-bars i { width: 4px; border-radius: 2px; background: var(--gradient); opacity: .8; height: 20%; }
[data-bigplay] { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 10, 11, .55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: transform .2s var(--ease), background .2s var(--ease); }
[data-bigplay]:hover { transform: scale(1.05); background: rgba(10, 10, 11, .75); }
[data-bigplay] svg { width: 30px; height: 30px; fill: currentColor; }
.mpl-controls { padding: 12px 14px 14px; background: #101114; }
.mpl-progress-wrap { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); cursor: pointer; overflow: hidden; }
.mpl-progress-wrap:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.mpl-progress-buf, .mpl-progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; }
.mpl-progress-buf { background: rgba(255, 255, 255, .22); }
.mpl-progress-fill { background: var(--gradient); }
.mpl-controls-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.mpl-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mpl-btn:hover { background: rgba(255, 255, 255, .1); }
.mpl-btn svg { width: 22px; height: 22px; fill: currentColor; }
.mpl-btn--play { background: #fff; color: #0a0a0b; }
.mpl-btn--play:hover { background: #e8e8ec; }
.mpl-time { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .75); margin-left: 6px; }
.mpl-controls-row [data-vol], .mpl-controls-row input[type="range"] { accent-color: #fff; width: 90px; }
.mpl-controls-row select, [data-rate] { min-height: 32px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: #0a0a0b; color: #fff; font-family: var(--mono); font-size: 12px; }
.mpl-controls-row .mpl-spacer { flex: 1; }
.mpl-controls-row [data-fs], .mpl-controls-row [data-mute] { margin-left: auto; }

.session-transcript-col { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; max-height: min(80vh, 760px); display: flex; flex-direction: column; }
.transcript-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--ink); }
.transcript-head span, .transcript-head small { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.transcript-intro { padding: 16px 20px; font-size: var(--fs-1); color: var(--text); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.transcript-scroll { overflow: auto; padding: 8px 0; flex: 1; }
.cue { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 20px; cursor: pointer; border-left: 3px solid transparent; transition: background .15s var(--ease); }
.cue:hover { background: var(--bg-2); }
.cue { width: 100%; background: transparent; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; font: inherit; }
.cue-title, .cue-text { grid-column: 2; }
.cue.is-active, .cue.active, .cue[aria-current="true"] { background: var(--accent-soft); border-left-color: var(--accent); }
.cue-time { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.cue-title { font-weight: 600; color: var(--ink); font-size: var(--fs-1); }
.cue-text { color: var(--text); font-size: var(--fs-1); margin-top: 2px; }
.transcript-doc, .document-text { padding: 20px; font-size: var(--fs-1); line-height: 1.7; white-space: pre-wrap; color: var(--text); }

/* ---------- Chat widget theming (comm-bubble.css is frozen; override look only) ---------- */
#mpl-comm-root { --mpl-comm-accent: var(--accent); }
#mpl-comm-fab { font-family: var(--font) !important; box-shadow: 0 10px 30px rgba(11, 13, 18, .25) !important; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .header, .nav-toggle, .modal, .gate, #mpl-comm-root, .skip-link { display: none !important; }
  .page { padding-top: 0; }
  .dark, .dark * { background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
