:root {
  color-scheme: dark;
  --night: #080d19;
  --night-raised: #10182a;
  --ink: #f4f7ff;
  --muted: #b7c3d6;
  --quiet: #8998b1;
  --line: #26334b;
  --spectrum: linear-gradient(100deg, #ff3b79 2%, #ffae27 22%, #e5ef42 39%, #42df90 56%, #34dafa 71%, #367aff 85%, #a958ff 100%);
  font-family: Inter, "SF Pro Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: radial-gradient(ellipse at 79% 28%, #14213b 0, #0b1120 28rem, var(--night) 67rem); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #76e1f5; outline-offset: 5px; border-radius: 5px; }
.skip-link { position: absolute; z-index: 5; top: -80px; left: 20px; padding: 12px 16px; color: var(--night); background: #fff; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid #ffffff10; }
.topbar-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.05em; }
.wordmark img { display: block; width: 38px; height: 38px; border-radius: 50%; object-fit: contain; }
.wordmark-suffix { color: #a8b7cf; font-weight: 450; }
.topbar nav { display: flex; align-items: center; gap: 31px; }
.topbar nav a { min-height: 44px; display: inline-flex; align-items: center; color: #cad5e7; font-size: 13px; text-decoration: none; transition: color .18s ease; }
.topbar nav a:hover, footer a:hover { color: #fff; }
.topbar nav .nav-github { min-height: 40px; padding: 0 16px; border: 1px solid #45536c; border-radius: 7px; color: #f3f6fc; }
.topbar nav .nav-github:hover { border-color: #8a9bb8; background: #ffffff08; }
h1, h2, h3, p { margin-top: 0; }
.hero { min-height: 690px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 24px; padding-block: 55px 68px; }
.hero-copy { position: relative; z-index: 1; padding-block: 25px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: #d3deee; font-size: 13px; font-weight: 560; }
.spectrum-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--spectrum); box-shadow: 0 0 18px #6e72f477; }
h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(58px, 7.15vw, 92px); line-height: .99; letter-spacing: -.078em; font-weight: 660; }
h1 > span { display: block; color: #91aaff; }
.hero-lede { max-width: 490px; margin-bottom: 30px; color: #bdc9dc; font-size: 18px; line-height: 1.7; }
.hero-link { min-height: 50px; display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; font-weight: 620; text-decoration: none; }
.hero-link span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #566680; border-radius: 50%; transition: background .2s ease, color .2s ease; }
.hero-link:hover span { color: var(--night); background: #fff; }
.hero-visual { position: relative; height: 550px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { position: absolute; z-index: -1; width: min(430px, 88%); aspect-ratio: 1; border: 1px solid #a3b9ff10; border-radius: 50%; box-shadow: 0 0 0 54px #a3b9ff06, 0 0 0 110px #a3b9ff04; content: ""; }
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-mark { width: min(300px, 58%); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 34px #5778ff24); transition: opacity .35s ease; }
.hero-visual.has-canvas .hero-mark { opacity: 0; }
.motion-toggle { position: absolute; right: 3%; bottom: 3%; min-width: 90px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 12px; color: #d9e2f1; background: #10182a; border: 1px solid #47536b; border-radius: 99px; font: inherit; font-size: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.motion-toggle:hover { background: #19243a; border-color: #a1b1cb; }
.pause-glyph { width: 10px; height: 12px; display: inline-block; border-right: 3px solid currentColor; border-left: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .pause-glyph { width: 0; height: 0; border: 7px solid transparent; border-right: 0; border-left: 11px solid currentColor; }
.motion-toggle[hidden] { display: none; }
.thesis-strip { border-block: 1px solid #ffffff13; background: #ffffff04; }
.thesis-inner { min-height: 82px; display: flex; align-items: center; gap: 18px; }
.strip-mark { width: 25px; height: 25px; display: block; flex: none; background: var(--spectrum); border-radius: 50%; box-shadow: 0 0 18px #7d76ff44; }
.thesis-inner p { margin: 0; font-size: 15px; font-weight: 540; }
.strip-rule { flex: 1; height: 1px; margin-left: 24px; background: linear-gradient(90deg, #53617a, transparent); }
.strip-caption { color: #a4b2c8; font-size: 12px; white-space: nowrap; }
.section-block { padding-block: 112px; }
.pipeline { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.section-heading { max-width: 430px; }
.section-heading .eyebrow, .principles-copy .eyebrow, .closing .eyebrow { color: #aebdd3; }
h2 { margin-bottom: 18px; font-size: clamp(38px, 4.3vw, 54px); line-height: 1.08; letter-spacing: -.06em; font-weight: 620; }
.section-heading > p:last-child, .principles-copy > p:last-child { margin-bottom: 0; color: #b3bfd2; font-size: 16px; line-height: 1.75; }
.pipeline-list { border-top: 1px solid var(--line); }
.pipeline-step { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 17px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.step-count { padding-top: 4px; color: #a5b4ca; font-size: 13px; }
.pipeline-step h3 { margin-bottom: 7px; font-size: 18px; letter-spacing: -.025em; font-weight: 590; }
.pipeline-step p { max-width: 510px; margin-bottom: 0; color: #b1bed2; font-size: 15px; line-height: 1.65; }
.step-aside { padding-top: 4px; color: #98a7bf; font-size: 12px; }
.principles { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 100px; padding-block: 88px 116px; border-top: 1px solid var(--line); }
.principles-copy { max-width: 430px; }
.evidence-panel { padding: 24px 26px 18px; background: linear-gradient(140deg, #131e33, #0d1525 75%); border: 1px solid #33415b; border-radius: 10px; box-shadow: 0 25px 60px #0003; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; color: #eef2f9; font-size: 14px; font-weight: 590; }
.panel-tag { padding: 5px 8px; color: #d2daea; background: #27334b; border-radius: 4px; font-size: 12px; font-weight: 500; }
.ledger-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; min-height: 54px; border-top: 1px solid #29354c; color: #c3cede; font-size: 14px; }
.ledger-key { display: inline-flex; align-items: center; gap: 9px; color: #e8edf7; }
.ledger-indicator { width: 8px; height: 8px; border-radius: 50%; }
.observed { background: #55d5a4; }
.inferred { background: #9b89ff; }
.unknown { background: #e7ad53; }
.ledger-footer { display: flex; justify-content: space-between; margin-top: 11px; padding-top: 15px; color: #a1afc4; border-top: 1px solid #29354c; font-size: 12px; }
.closing { display: grid; grid-template-columns: 86px 1fr 270px; align-items: center; gap: 28px; padding-block: 35px 75px; border-top: 1px solid var(--line); }
.closing > img { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; }
.closing .eyebrow { margin-bottom: 12px; }
.closing h2 { margin-bottom: 0; font-size: 36px; }
.closing-note { max-width: 250px; margin: 0; color: #aebbd0; font-size: 15px; line-height: 1.65; }
footer { border-top: 1px solid #ffffff12; }
.footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-mark { font-size: 16px; }
.footer-mark img { width: 28px; height: 28px; }
footer p, footer a:last-child { margin: 0; color: #a3afc2; font-size: 13px; }
footer a { text-decoration: none; }
footer a:last-child { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
@media (max-width: 850px) {
  .wrap { width: min(100% - 44px, 700px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 0; padding-block: 75px 42px; }
  .hero-copy { max-width: 650px; }
  h1 { max-width: 620px; font-size: clamp(58px, 11vw, 82px); }
  .hero-visual { height: 470px; }
  .pipeline, .principles { grid-template-columns: 1fr; gap: 45px; }
  .section-block { padding-block: 82px; }
  .principles { padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .topbar-inner { min-height: 70px; }
  .wordmark { font-size: 17px; gap: 8px; }
  .wordmark img { width: 33px; height: 33px; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 12px; }
  .topbar nav a:nth-child(2) { display: none; }
  .topbar nav .nav-github { min-height: 38px; padding-inline: 11px; font-size: 11px; }
  .hero { padding-top: 57px; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: clamp(52px, 13vw, 69px); }
  .hero-lede { font-size: 16px; }
  .hero-visual { height: 355px; margin-inline: -10px; }
  .hero-visual::before { width: min(280px, 84%); box-shadow: 0 0 0 35px #a3b9ff06, 0 0 0 72px #a3b9ff04; }
  .hero-mark { width: min(220px, 58%); }
  .motion-toggle { right: 2%; bottom: 0; }
  .thesis-inner { min-height: 72px; gap: 10px; }
  .thesis-inner p { font-size: 13px; }
  .strip-mark { width: 21px; height: 21px; }
  .strip-rule { display: none; }
  .strip-caption { display: none; }
  .section-block { padding-block: 66px; }
  h2 { font-size: 39px; }
  .section-heading > p:last-child, .principles-copy > p:last-child { font-size: 15px; }
  .pipeline { gap: 27px; }
  .pipeline-step { grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding-block: 20px; }
  .pipeline-step h3 { font-size: 17px; }
  .pipeline-step p { font-size: 14px; }
  .step-aside { display: none; }
  .principles { gap: 27px; padding-bottom: 68px; }
  .evidence-panel { padding: 18px 15px 14px; }
  .ledger-row { grid-template-columns: 108px 1fr; gap: 8px; font-size: 12px; }
  .ledger-key { gap: 6px; font-size: 13px; }
  .closing { grid-template-columns: 54px 1fr; gap: 16px; padding-block: 28px 51px; }
  .closing > img { width: 50px; height: 50px; }
  .closing h2 { font-size: 30px; }
  .closing-note { grid-column: 2; font-size: 14px; }
  .footer-inner { min-height: 75px; flex-wrap: wrap; gap: 8px 14px; padding-block: 13px; }
  footer p { order: 3; width: 100%; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Current evidence story and handoff panels. */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: 74px; align-items: start; }
.spectrum-dash { width: 18px; height: 3px; display: inline-block; border-radius: 4px; background: var(--spectrum); }
.evidence-story { overflow: hidden; border: 1px solid #33415b; border-radius: 10px; background: linear-gradient(145deg, #121d31, #0d1423); box-shadow: 0 24px 65px #0003; }
.story-head { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #29354c; color: #c4cede; font-size: 11px; font-weight: 570; letter-spacing: .06em; }
.story-connector { height: 1px; background: linear-gradient(90deg,#ff5891,#40dfcf,#578aff); }
.story-body { display: grid; grid-template-columns: 1fr 1fr; }
.reference-frame { position: relative; margin: 23px 16px 20px 20px; border: 1px solid #46516a; border-radius: 6px; background: #111a2b; }
.window-bar { height: 28px; display: flex; align-items: center; gap: 5px; padding-inline: 9px; border-bottom: 1px solid #303d55; }
.window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #f27683; }
.window-bar i:nth-child(2) { background: #ecc75d; }.window-bar i:nth-child(3) { background: #63d6a0; }
.window-bar span { margin-left: auto; color: #99a8bf; font-size: 10px; }
.mock-screen { position: relative; min-height: 215px; padding: 17px 15px; }
.mock-nav { display: flex; align-items: center; gap: 9px; margin-bottom: 25px; }.mock-nav b { width: 17px; height: 17px; border-radius: 5px; background: linear-gradient(135deg,#ff547f,#43d8ee); }.mock-nav i { width: 27px; height: 4px; border-radius: 2px; background: #65738c; }.mock-nav i:first-of-type { margin-left: auto; }
.mock-title { width: 62%; height: 10px; margin-bottom: 9px; border-radius: 4px; background: #e1e8f2; }.mock-subtitle { width: 79%; height: 5px; margin-bottom: 6px; border-radius: 4px; background: #6d7c94; }.mock-subtitle:last-of-type { width: 54%; }
.mock-action { width: 64px; height: 20px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg,#fb5d8b,#a468ff); }
.mock-cards { display: flex; gap: 7px; margin-top: 21px; }.mock-cards i { height: 44px; flex: 1; border: 1px solid #3c4961; background: linear-gradient(145deg,#18253a,#111a2b); border-radius: 4px; }
.screen-callout { position: absolute; padding: 5px 7px; border: 1px solid #5e85a5; border-radius: 4px; background: #102034; color: #d8e4f0; font-size: 11px; }.callout-heading { top: 45px; right: -4px; }.callout-surface { right: 16px; bottom: 39px; border-color: #a974cb; }
.evidence-output { display: flex; flex-direction: column; padding: 16px 18px 12px 12px; border-left: 1px solid #29354c; }
.output-line { min-height: 61px; display: grid; grid-template-columns: 16px minmax(0,1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid #26324a; }
.output-icon { width: 14px; height: 14px; display: grid; place-items: center; font-size: 10px; }.output-icon.observed { color: #57d5a4; }.output-icon.inferred { color: #ae94ff; }.output-icon.uncertain { color: #f2bd67; font-weight: 700; }
.output-line > div { display: grid; gap: 4px; }.output-line b { color: #edf2f9; font-size: 13px; font-weight: 580; }.output-line div span { color: #b0bdd0; font-size: 12px; }
.confidence { color: #a4b2c8; font-size: 10px; white-space: nowrap; }
.output-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 13px; color: #b0bdd0; font-size: 11px; }
.illustrative-note { margin: 0; padding: 0 20px 14px; color: #a5b2c7; font-size: 12px; }
.development-note { display: flex; align-items: center; gap: 9px; margin: 24px 0 0; color: #b2bfd3; font-size: 14px; line-height: 1.6; }
.development-note span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #a18bff; }
.handoff-panel { min-height: 270px; padding: 22px 24px 17px; border: 1px solid #35415a; border-radius: 10px; background: radial-gradient(ellipse at 52% 57%,#1b2540 0,#10182a 43%,#0c1322 100%); box-shadow: 0 18px 48px #0002; }
.handoff-label { color: #bdc9dc; font-size: 14px; }
.handoff-flow { min-height: 168px; display: grid; grid-template-columns: 1fr 1.15fr 1fr 1.15fr 1fr; align-items: center; gap: 9px; }
.handoff-node { display: flex; flex-direction: column; align-items: center; gap: 11px; color: #e4eaf4; text-align: center; font-size: 13px; line-height: 1.45; }
.handoff-node img { width: 38px; height: 38px; object-fit: contain; }.kelra-node img { width: 46px; height: 46px; filter: drop-shadow(0 0 22px #5488ff40); }
.handoff-node small { color: #adb9cd; font-size: 12px; }.handoff-link { height: 1px; background: linear-gradient(90deg,#ff518d,#e2d641,#4ed9e8,#697bff); }
.code-glyph { color: #80dcb5; font-family: ui-monospace, monospace; font-size: 26px; }.handoff-foot { margin: 0; padding-top: 12px; border-top: 1px solid #35415a; color: #b5c1d4; font-size: 12px; text-align: center; }
@media (max-width: 850px) { .process { grid-template-columns: 1fr; gap: 42px; } }
@media (max-width: 560px) {
  .story-head { grid-template-columns: 1fr 22px 1fr; gap: 6px; padding: 13px 10px; font-size: 9px; }
  .story-body { grid-template-columns: 1fr; }.reference-frame { margin: 14px 12px; }.mock-screen { min-height: 187px; }
  .evidence-output { padding: 5px 14px 14px; border-top: 1px solid #29354c; border-left: 0; }
  .output-line { min-height: 55px; }.output-line b { font-size: 12px; }.output-line div span { font-size: 11px; }.confidence { font-size: 9px; }
  .illustrative-note { padding-inline: 13px; font-size: 10px; }.handoff-panel { padding: 18px 12px 14px; }
  .handoff-flow { min-height: 150px; gap: 5px; }.handoff-node { font-size: 11px; }.handoff-node img { width: 32px; height: 32px; }.kelra-node img { width: 40px; height: 40px; }.handoff-node small { font-size: 10px; }.handoff-foot { font-size: 10px; }
}

/* White canvas theme: Kelra's spectrum stays the signature color. */
:root {
  color-scheme: light;
  --night: #f7f9fc;
  --night-raised: #ffffff;
  --ink: #111b2d;
  --muted: #475569;
  --quiet: #64748b;
  --line: #e1e7ef;
  background: #fff;
  color: var(--ink);
}
body { color: var(--ink); background: radial-gradient(ellipse at 78% 22%, #f0f5ff 0, #fff 34rem); }
.topbar { border-bottom-color: #e7ebf1; }
.wordmark { color: #142033; }
.wordmark-suffix { color: #64748b; }
.topbar nav a { color: #475569; }
.topbar nav a:hover, footer a:hover { color: #111b2d; }
.topbar nav .nav-github { color: #1e293b; border-color: #cbd5e1; }
.topbar nav .nav-github:hover { border-color: #94a3b8; background: #f8fafc; }
.eyebrow, .section-heading .eyebrow, .principles-copy .eyebrow, .closing .eyebrow { color: #475569; }
h1 { color: #101a2b; }
h1 > span { color: #3559c7; }
.hero-lede, .section-heading > p:last-child, .principles-copy > p:last-child { color: #475569; }
.hero-link { color: #142033; }
.hero-link span { color: #1e293b; border-color: #cbd5e1; }
.hero-link:hover span { color: #fff; background: #1e293b; }
.hero-visual::before { border-color: #5475db18; box-shadow: 0 0 0 54px #5475db0b, 0 0 0 110px #5475db07; }
.motion-toggle { color: #334155; background: #fff; border-color: #cbd5e1; box-shadow: 0 5px 18px #172b4d12; }
.motion-toggle:hover { background: #f5f8fc; border-color: #94a3b8; }
.thesis-strip { border-color: #e5eaf1; background: #f8fafc; }
.strip-rule { background: linear-gradient(90deg, #cbd5e1, transparent); }
.strip-caption { color: #64748b; }
.pipeline-list, .pipeline-step, .principles, .closing, footer { border-color: #e1e7ef; }
.step-count, .step-aside { color: #64748b; }
.pipeline-step p { color: #526176; }
.evidence-story { background: #fff; border-color: #dce3ed; box-shadow: 0 18px 44px #19345b0b; }
.story-head { color: #475569; border-color: #e1e7ef; }
.reference-frame { background: #fff; border-color: #cbd5e1; }
.window-bar { border-color: #e2e8f0; }
.window-bar span { color: #64748b; }
.mock-nav i { background: #94a3b8; }
.mock-title { background: #263449; }
.mock-subtitle { background: #aab5c4; }
.mock-cards i { border-color: #dbe3ee; background: linear-gradient(145deg,#f8fafc,#fff); }
.screen-callout { color: #334155; background: #fff; border-color: #93a4ba; box-shadow: 0 3px 12px #172b4d12; }
.evidence-output { border-color: #e1e7ef; }
.output-line { border-color: #e5eaf1; }
.output-line b { color: #1e293b; }
.output-line div span, .output-foot, .illustrative-note { color: #526176; }
.confidence { color: #64748b; }
.development-note { color: #526176; }
.handoff-panel { background: radial-gradient(ellipse at 52% 56%,#f2f6ff 0,#fff 66%); border-color: #dce4ef; box-shadow: 0 16px 42px #19345b0b; }
.handoff-label, .handoff-node { color: #334155; }
.handoff-node small { color: #64748b; }
.handoff-foot { color: #526176; border-color: #e1e7ef; }
.closing-note, footer p, footer a:last-child { color: #64748b; }
@media (max-width: 560px) {
  .hero-visual::before { box-shadow: 0 0 0 35px #5475db0b, 0 0 0 72px #5475db07; }
}

/* Stronger cobalt accents give the light theme a more recognizable tech feel. */
:root { --accent: #3047ed; }
.hero { grid-template-columns: 1fr 1fr; }
.hero-copy { max-width: 570px; }
h1 { max-width: none; font-size: clamp(54px, 5vw, 74px); line-height: .98; letter-spacing: -.07em; }
h1 > span { color: var(--accent); }
.hero-visual {
  background-image: linear-gradient(#3652ed12 1px, transparent 1px), linear-gradient(90deg, #3652ed12 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 76%);
}
.hero-visual::before { width: min(450px, 90%); border-color: #3047ed3a; box-shadow: 0 0 0 42px #3047ed0c, 0 0 0 90px #3047ed08; }
.hero-link { min-height: 48px; gap: 14px; padding: 0 16px 0 19px; color: #fff; background: var(--accent); border-radius: 7px; box-shadow: 0 8px 20px #3047ed27; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.hero-link:hover { color: #fff; background: #2035d3; box-shadow: 0 10px 25px #3047ed38; transform: translateY(-1px); }
.hero-link span, .hero-link:hover span { width: 26px; height: 26px; color: #fff; border-color: #ffffff70; background: transparent; }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; color: #334155; border: 1px solid #d9e0f6; border-radius: 999px; background: #f4f6ff; font-size: 12px; font-weight: 550; white-space: nowrap; }
.status i, .stage-note span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #6c7ff2; box-shadow: 0 0 0 3px #3047ed18; }
.stage-note { display: flex; align-items: center; gap: 9px; margin: 19px 0 0; color: #64748b; font-size: 12px; }
.thesis-strip { position: relative; overflow: hidden; background: linear-gradient(100deg,#eef1ff,#f9faff 56%,#fff); }
.thesis-strip::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--spectrum); content: ""; }
.thesis-inner p { color: #1d2a48; font-size: 16px; font-weight: 620; }
.strip-mark { box-shadow: 0 0 0 6px #3047ed10; }
.strip-caption { color: #475569; }
.evidence-story { border-color: #ccd5f8; box-shadow: 0 22px 55px #223cae13; }
.story-head { background: #f6f7ff; }
.evidence-output { padding: 20px 20px 16px; color: #fff; background: #b52e5d; border-left: 0; }
.output-line { border-color: #ffffff35; }
.output-line b, .output-line div span, .output-foot, .confidence { color: #fff; }
.output-line div span, .confidence { color: #e0e6ff; }
.output-icon.observed, .output-icon.inferred, .output-icon.uncertain { color: #fff; }
.output-foot { border-top: 1px solid #ffffff35; }
.illustrative-note { padding-top: 12px; }
.handoff-panel { background: linear-gradient(135deg,#eef1ff,#fbfcff 68%); border-color: #d7defb; }
.kelra-node { padding: 12px 9px; border: 1px solid #dbe2ff; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px #3047ed12; }
.motion-toggle { color: #3047ed; border-color: #bcc7ff; box-shadow: 0 6px 20px #3047ed1c; }
.motion-toggle:hover { color: #2035d3; background: #f4f6ff; border-color: #8999f5; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 650px; }
  h1 { max-width: 620px; font-size: clamp(58px, 10vw, 78px); }
  .evidence-output { border-top: 1px solid #ffffff35; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(48px, 12vw, 64px); }
  .hero-visual { background-size: 30px 30px; }
  .status { min-height: 30px; padding-inline: 9px; font-size: 11px; }
  .evidence-output { padding: 10px 14px 14px; }
}

/* Give the page a real layout rhythm: canvas, evidence, then a workflow band. */
h1 > span { color: inherit; }
.principles {
  display: block;
  width: 100%;
  padding: 0;
  color: #fff;
  background: #2e43d8;
  border: 0;
}
.principles-layout {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
  padding-block: 104px 112px;
}
.principles-copy { max-width: 450px; }
.principles-copy .eyebrow { color: #fff; }
.principles-copy h2 { max-width: 440px; font-size: clamp(42px, 4.4vw, 58px); }
.principles-copy > p:last-child, .principles-copy .development-note { color: #f0f3ff; }
.principles-copy .development-note span { background: #fff; box-shadow: 0 0 0 3px #ffffff38; }
.principles .spectrum-dash { box-shadow: 0 0 0 3px #ffffff26; }
.handoff-panel {
  min-height: 300px;
  padding: 26px 28px 20px;
  color: #fff;
  background: #ffffff12;
  border: 1px solid #ffffff64;
  border-radius: 4px 22px 4px 22px;
  box-shadow: none;
}
.handoff-label { color: #fff; font-weight: 600; }
.handoff-node { color: #fff; }
.handoff-node small { color: #263bc5; }
.handoff-link { height: 2px; background: linear-gradient(90deg,#ff8cab,#fff27a,#8ef5d0,#dce3ff); }
.code-glyph { color: #fff; }
.handoff-foot { color: #f0f3ff; border-color: #ffffff54; }
@media (max-width: 850px) {
  .principles-layout { grid-template-columns: 1fr; gap: 38px; padding-block: 76px 82px; }
  .principles-copy { max-width: 620px; }
}
@media (max-width: 560px) {
  .principles-layout { gap: 30px; padding-block: 62px 68px; }
  .principles-copy h2 { font-size: 40px; }
  .handoff-panel { min-height: 260px; padding: 20px 12px 16px; }
}
.process.section-block { display: block; }
.process .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .64fr);
  align-items: end;
  gap: 14px 72px;
  max-width: none;
  margin-bottom: 48px;
}
.process .section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.process .section-heading h2 { max-width: 570px; margin-bottom: 0; }
.process .section-heading > p:last-child { max-width: 390px; margin-bottom: 5px; }
.evidence-story { border-radius: 4px 26px 4px 26px; }
.story-body { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.reference-frame { margin: 28px 24px 26px; }
.mock-screen { min-height: 250px; }
.evidence-output { padding: 26px 26px 20px; }
@media (max-width: 850px) {
  .process .section-heading { grid-template-columns: 1fr; gap: 15px; margin-bottom: 32px; }
  .process .section-heading .eyebrow { grid-column: auto; }
  .process .section-heading > p:last-child { max-width: 520px; }
  .story-body { grid-template-columns: 1fr 1fr; }
  .reference-frame { margin: 20px 12px 20px 16px; }
  .evidence-output { padding: 16px 14px; }
}
@media (max-width: 560px) {
  .story-body { grid-template-columns: 1fr; }
  .reference-frame { margin: 14px 12px; }
  .evidence-output { padding: 10px 14px 14px; }
}

/* Kelra's logo animation leads the full-screen pink launch canvas. */
.hero { display:block; width:100%; min-height:0; margin:0; padding:0; text-align:left; background:#fff; }
.hero-copy { display:contents; }
.hero-topline {
  width:min(1320px,calc(100% - 64px));
  margin:0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  text-align: left;
}
.hero-topline .wordmark { color: #fff; }
.hero-topline .wordmark-suffix { color: #fff; opacity: .78; }
.hero-topline nav { display: flex; align-items: center; gap: 28px; }
.hero-topline nav a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-size: 13px; text-decoration: none; opacity: .9; }
.hero-topline nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hero-topline .status { justify-self: end; color: #fff; border-color: #ffffff70; background: #ffffff18; }
.hero-topline .status i { background: #fff; box-shadow: 0 0 0 3px #ffffff30; }
.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: min(790px, calc(100svh - 82px));
  overflow: hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:0;
  padding:45px 32px 38px;
  color: #fff;
  border-radius:0;
  background:linear-gradient(135deg,#c82e69 0%,#cb326c 56%,#ce366f 100%);
}
.hero-stage::before, .hero-stage::after { position:absolute; z-index:-1; pointer-events:none; content:""; }
.hero-stage::before { inset:0; background:radial-gradient(ellipse at 72% 0%,#a01d5930,transparent 40%),radial-gradient(ellipse at 18% 85%,#94164c25,transparent 45%); }
.hero-stage::after { inset:0; opacity:.08; background-image:linear-gradient(115deg,transparent 0 49.92%,#fff6 50%,transparent 50.08%); }
.hero-orb { position:absolute; z-index:-1; width:min(66vw,790px); aspect-ratio:1; top:56%; left:50%; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle,#ffd4e15c 0 18%,#ffa6bf32 44%,transparent 71%); }
.hero-copy-main { position:relative; z-index:3; width:min(850px,100%); align-self:center; text-align:center; }
.hero-copy-main .eyebrow { display:none; }
.hero-copy-main .spectrum-dot { background:#fff; box-shadow:0 0 0 5px #ffffff32; }
.hero-stage .hero-copy-main h1 { max-width:850px; margin:0 auto 18px; color:#fff; font-size:clamp(48px,6vw,78px); line-height:.98; letter-spacing:-.07em; }
.hero-stage .hero-copy-main h1 span { color:inherit; }
.hero-stage .hero-lede { max-width:600px; margin:0 auto 22px; color:#fff; font-size:17px; line-height:1.6; }
.hero-stage .hero-link, .hero-stage .hero-link:hover { min-height:48px; margin:0 auto; padding:0 18px 0 21px; color:#a83253; background:#fff; border-radius:999px; box-shadow:0 8px 22px #8b214326; }
.hero-stage .hero-link:hover { background:#fff2f6; transform:translateY(-1px); }
.hero-stage .hero-link span, .hero-stage .hero-link:hover span { width:26px; height:26px; color:#a83253; border-color:#a8325350; }

.hero-visual {
  position:relative;
  align-self:center;
  flex:0 0 auto;
  width:min(900px,92vw);
  height:400px;
  margin:4px auto 0;
  overflow:hidden;
  background:none;
  mask-image:none;
}
.hero-visual::before { width:min(64%,390px); border:1px solid #ffffff2e; background:radial-gradient(circle,#fff3f030 0 40%,transparent 72%); box-shadow:0 0 0 36px #ffffff0b,0 0 0 72px #ffffff07; }
.particle-canvas { overflow:hidden; }
.hero-mark { width:min(280px,50%); filter:drop-shadow(0 24px 45px #9e234333); }
.hero-visual.has-canvas .hero-mark { opacity:0; }
.orbit-card { display:none; }
.hero-stage .motion-toggle { z-index:3; right:max(24px,calc((100% - 1260px)/2)); bottom:20px; color:#9d3153; border-color:#ffffffb0; background:#fff; box-shadow:0 8px 24px #81284628; }
.hero-stage .motion-toggle:hover { color:#79263a; border-color:#fff; background:#fff6f8; }
.hero-footline { position:relative; right:auto; bottom:auto; display:flex; align-items:center; gap:13px; margin-top:0; color:#fff; font-size:12px; }
.hero-footline i { width:4px; height:4px; border-radius:50%; background:#fff; opacity:.72; }
.hero-topline .wordmark { color:#fff; }
.hero-topline .wordmark-suffix { color:#fff; opacity:.78; }
.hero-topline nav a { color:#fff; }
.hero-topline .status { color:#fff; border-color:#ffffff70; background:#ffffff18; }
.hero-topline .status i { background:#fff; }
.thesis-strip { background:linear-gradient(100deg,#fff4f1,#fffaf8 55%,#fff); }
.principles { background:linear-gradient(120deg,#fff5f2,#fff 72%); }

/* Kelra's animated logo leads the full-screen pink launch stage. */
.hero { display:block; width:100%; min-height:0; margin:0; padding:0; text-align:left; background:#fff; }
.hero-copy { display:contents; }
.hero-topline { width:min(1320px,calc(100% - 64px)); min-height:82px; margin:0 auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; text-align:left; }
.hero-topline .wordmark, .hero-topline .wordmark-suffix, .hero-topline nav a, .hero-topline .status { color:#fff; }
.hero-topline .wordmark-suffix { opacity:.78; }
.hero-topline nav { display:flex; align-items:center; gap:28px; }
.hero-topline nav a { min-height:44px; display:inline-flex; align-items:center; font-size:13px; text-decoration:none; opacity:.9; }
.hero-topline nav a:hover { opacity:1; text-decoration:underline; text-underline-offset:4px; }
.hero-topline .status { justify-self:end; border-color:#ffffff70; background:#ffffff18; }
.hero-topline .status i { background:#fff; box-shadow:0 0 0 3px #ffffff30; }
.hero-stage { position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; min-height:min(790px,calc(100svh - 82px)); margin:0; padding:45px 24px 38px; overflow:hidden; color:#fff; background:linear-gradient(135deg,#c82e69 0%,#cb326c 56%,#ce366f 100%); }
.hero-stage::before,.hero-stage::after { position:absolute; z-index:-1; inset:0; pointer-events:none; content:""; }
.hero-stage::before { background:radial-gradient(ellipse at 72% 0%,#a01d5930,transparent 40%),radial-gradient(ellipse at 18% 85%,#94164c25,transparent 45%); }
.hero-stage::after { opacity:.08; background-image:linear-gradient(115deg,transparent 0 49.92%,#fff6 50%,transparent 50.08%); }
.hero-orb { position:absolute; z-index:-1; top:56%; left:50%; width:min(66vw,790px); aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle,#ffd4e15c 0 18%,#ffa6bf32 44%,transparent 71%); }
.hero-copy-main { position:relative; z-index:3; align-self:center; width:min(850px,100%); text-align:center; }
.hero-copy-main .eyebrow { display:none; }
.hero-stage .hero-copy-main h1 { max-width:850px; margin:0 auto 18px; color:#fff; font-size:clamp(48px,6vw,78px); line-height:.98; letter-spacing:-.07em; text-align:center; }
.hero-stage .hero-copy-main h1 span { color:inherit; }
.hero-stage .hero-lede { max-width:600px; margin:0 auto 22px; color:#fff; font-size:17px; line-height:1.6; text-align:center; }
.hero-stage .hero-link,.hero-stage .hero-link:hover { min-height:48px; margin:0 auto; padding:0 18px 0 21px; color:#a83253; background:#fff; border-radius:999px; box-shadow:0 8px 22px #8b214326; }
.hero-stage .hero-link:hover { color:#8c2948; background:#fff2f6; box-shadow:0 12px 28px #8b21433d; }
.hero-stage .hero-link span { border-color:#a8325350; }

.hero-visual { position:relative; flex:none; align-self:center; width:min(900px,92vw); height:400px; margin:4px auto 0; overflow:hidden; background:none; mask-image:none; }
.hero-visual::before { width:min(64%,390px); border:1px solid #ffffff2e; background:radial-gradient(circle,#fff3f030 0 40%,transparent 72%); box-shadow:0 0 0 36px #ffffff0b,0 0 0 72px #ffffff07; }
.hero-visual.has-canvas .hero-mark { opacity:0; }
.hero-mark { position:relative; z-index:1; width:min(280px,50%); filter:drop-shadow(0 24px 45px #9e234333); }
.particle-canvas { z-index:1; overflow:hidden; }
.orbit-card { display:none; }
.hero-stage .motion-toggle { z-index:3; right:max(24px,calc((100% - 1260px)/2)); bottom:20px; color:#9d3153; border-color:#ffffffb0; background:#fff; box-shadow:0 8px 24px #81284628; }
.hero-stage .motion-toggle:hover { color:#79263a; border-color:#fff; background:#fff6f8; }
.hero-footline { position:relative; right:auto; bottom:auto; display:flex; justify-content:center; align-items:center; gap:13px; margin-top:0; color:#fff; font-size:12px; }
.hero-footline i { width:4px; height:4px; border-radius:50%; background:#fff; opacity:.72; }
.topbar { display:none; }
footer .footer-mark { color:#172033; }
footer .wordmark-suffix { color:#64748b; }
.thesis-strip { background:linear-gradient(100deg,#fff4f1,#fffaf8 55%,#fff); }
@media (max-width:1000px) { .hero-stage { min-height:min(760px,calc(100svh - 82px)); } .hero-visual { height:360px; } }
@media (max-width:850px) { .hero-topline { grid-template-columns:1fr auto auto; min-height:72px; gap:16px; } .hero-topline nav { display:flex; gap:16px; } .hero-stage { min-height:min(740px,calc(100svh - 72px)); } .hero-visual { height:330px; } }
@media (max-width:620px) {
  .hero-topline { width:calc(100% - 36px); min-height:68px; grid-template-columns:1fr auto; gap:12px; }
  .hero-topline .wordmark { font-size:16px; gap:7px; }
  .hero-topline .wordmark img { width:32px; height:32px; }
  .hero-topline nav { display:none; }
  .hero-topline .status { min-height:32px; padding-inline:9px; font-size:11px; }
  .hero-stage { min-height:min(740px,calc(100svh - 68px)); padding:42px 20px; }
  .hero-stage .hero-copy-main h1 { font-size:clamp(43px,11.5vw,62px); }
  .hero-stage .hero-lede { max-width:420px; font-size:16px; }
  .hero-visual { width:min(620px,100vw); height:300px; margin-top:3px; }
  .hero-visual::before { width:min(75%,310px); }
  .hero-mark { width:min(220px,58%); }
  .hero-stage .motion-toggle { right:14px; bottom:14px; }
  .hero-footline { gap:9px; font-size:10px; }
}
@media (max-width:380px) { .hero-stage .hero-copy-main h1 { font-size:42px; } .hero-visual { height:260px; } .hero-footline { gap:6px; font-size:9px; } }

.principles {
  color: #202538;
  background: linear-gradient(115deg,#fff3ee 0%,#fff9f7 54%,#fff 100%);
}
.principles-copy .eyebrow { color: #5b5868; }
.principles-copy > p:last-child, .principles-copy .development-note { color: #515567; }
.principles-copy .development-note span { background: #d87966; box-shadow: 0 0 0 3px #d8796626; }
.principles .spectrum-dash { box-shadow: none; }
.handoff-panel { color: #242737; background: #ffffffc9; border-color: #edd9d2; box-shadow: 0 16px 45px #994b3510; }
.handoff-label, .handoff-node { color: #343647; }
.handoff-node small { color: #655d6d; }
.handoff-foot { color: #5b5d6b; border-color: #eadfdc; }
@media (max-width: 1000px) {
  .reference-peek { left: 2%; width: 218px; }
  .evidence-peek { right: 2%; width: 242px; }
}
@media (max-width: 850px) {
  .hero { padding-top: 65px; }
  .hero-visual { height: 480px; }
  .reference-peek { left: 3%; top: 18%; width: 190px; }
  .evidence-peek { right: 3%; top: 16%; width: 220px; }
  .peek-page { min-height: 130px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(48px, 12vw, 68px); }
  .hero-lede { max-width: 450px; font-size: 16px; }
  .hero-visual { height: 360px; margin-top: 12px; }
  .orbit-card { display: none; }
  .hero-visual::before { width: min(330px, 88%); }
  .motion-toggle { right: 3%; bottom: 1%; }
}

/* White hero with a large, unobstructed Kelra particle mark. */
.hero-stage {
  min-height: min(900px, calc(100svh - 82px));
  color: #142033;
  background: #fff;
}
.hero-stage::before,
.hero-stage::after,
.hero-orb,
.hero-visual::before { display: none; }
.hero-topline .wordmark,
.hero-topline .wordmark-suffix,
.hero-topline nav a,
.hero-topline .status { color: #172033; }
.hero-topline .wordmark-suffix { color: #64748b; opacity: 1; }
.hero-topline .status { border-color: #dce3ed; background: #f7f9fc; }
.hero-topline .status i { background: #6478e8; box-shadow: 0 0 0 3px #6478e822; }
.hero-stage .hero-copy-main h1,
.hero-stage .hero-copy-main h1 span { color: #172033; }
.hero-stage .hero-lede { color: #475569; }
.hero-stage .hero-link,
.hero-stage .hero-link:hover { color: #fff; background: #3047ed; box-shadow: 0 8px 22px #3047ed27; }
.hero-stage .hero-link:hover { background: #2035d3; }
.hero-stage .hero-link span,
.hero-stage .hero-link:hover span { color: #fff; border-color: #ffffff85; }
.hero-visual { width: min(1320px, 98vw); height: min(650px, 67vh); min-height: 480px; margin-top: 8px; overflow: visible; }
.hero-visual .particle-canvas { inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-mark { width: min(540px, 58%); filter:none; }
.hero-stage .motion-toggle { right: max(24px, calc((100% - 1260px)/2)); bottom: 20px; color: #3047ed; border-color: #cbd5e1; background: #fff; box-shadow: 0 6px 20px #172b4d12; }
.hero-stage .motion-toggle:hover { color: #2035d3; border-color: #8999f5; background: #f4f6ff; }
@media (max-width: 1000px) {
  .hero-stage { min-height: min(820px, calc(100svh - 82px)); }
  .hero-visual { height: min(590px, 62vh); min-height: 400px; }
}
@media (max-width: 850px) {
  .hero-stage { min-height: 0; padding: 34px 20px 74px; }
  .hero-visual { width: min(1000px, 100vw); height: min(560px, 62vw); min-height: 360px; margin-top: 12px; }
}
@media (max-width: 620px) {
  .hero-topline .wordmark, .hero-topline .wordmark-suffix, .hero-topline nav a, .hero-topline .status { color: #172033; }
  .hero-stage { padding: 30px 18px 76px; }
  .hero-stage .hero-copy-main h1 { font-size: clamp(43px, 11.5vw, 62px); }
  .hero-stage .hero-lede { font-size: 16px; }
  .hero-visual { width: 100vw; height: min(470px, 112vw); min-height: 315px; margin: 8px -18px 0; }
  .hero-mark { width: min(330px, 70%); }
  .hero-stage .motion-toggle { right: 14px; bottom: 14px; }
}
@media (max-width: 380px) {
  .hero-visual { height: 300px; min-height: 300px; }
}

/* Give the logo animation most of the hero canvas. */
.hero-stage { min-height: min(1000px, calc(100svh - 82px)); }
.hero-visual { width: min(1480px, 100vw); height: 620px; min-height: 500px; margin-top: 0; }
.hero-stage .hero-copy-main h1 { margin-bottom: 12px; }
.hero-stage .hero-lede { margin-bottom: 16px; }
@media (max-width: 1000px) {
  .hero-visual { height: 560px; min-height: 430px; }
}
@media (max-width: 850px) {
  .hero-stage { min-height: 0; }
  .hero-visual { height: 500px; min-height: 390px; }
}
@media (max-width: 620px) {
  .hero-visual { height: min(420px, 108vw); min-height: 320px; }
}
@media (max-width: 380px) {
  .hero-visual { height: 320px; min-height: 320px; }
}
