/* Horizon Experts — shared styles */
:root {
  --paper: #fff6f2;
  --card: #ffffff;
  --bone: #ffe1d7;
  --sand: #f7e6df;
  --sand-deep: #e8c8ba;
  --brand: #0259dd;
  --brand-hi: #0259dd;
  --brand-hover: #0147b5;
  --brand-deep: #0a1e4a;
  --brand-light: #ff6648;
  --brand-soft: #e3edfe;
  --brand-ink: #0259dd;
  --violet: #84affb;
  --violet-soft: #e3edfe;
  --lime: #ff6648;
  --ink: #0a1e4a;
  --muted: #4a5878;
  --line: #f0dcd3;
  --ok: #2f6b4a;
  --bad: #a3263c;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --r-window: 14px;
  --r-ctrl: 999px;
  --r-panel: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand); color: #ffffff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.035em; font-variation-settings: "wdth" 85; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; letter-spacing: -.03em; font-variation-settings: "wdth" 88; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.small { font-size: .92rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 500 .98rem/1 var(--body);
  padding: .95em 1.4em;
  border-radius: var(--r-ctrl);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand-hi); color: #ffffff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px -8px rgba(2,89,221,.55); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sand-deep); background: var(--bone); }
.kbd {
  font: 500 .78rem/1 var(--mono);
  padding: .3em .5em; border-radius: 6px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost .kbd { background: var(--bone); border-color: var(--line); color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,249,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 650 1.12rem var(--display); letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 38px; }
.brand-name { font: 800 1.08rem/1 var(--body); color: var(--brand); letter-spacing: .01em; }
.brand-name small { font: 700 .74rem var(--body); color: var(--brand-deep); margin-left: .3rem; }
.nav-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: .95rem; color: var(--muted);
  padding: .5rem .9rem; border-radius: var(--r-ctrl); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bone); }
.nav-links a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav-cta .btn { padding: .7em 1.15em; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; padding: 12px 24px 24px; background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: .8rem .9rem; font-size: 1.05rem; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: clamp(80px, 11vw, 140px); }
.section-bone { background: var(--bone); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 2rem 4rem; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 45%, var(--bone) 100%); }
.hero-copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 1.6rem; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lede { text-align: center; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.announce {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--muted); text-decoration: none;
  padding: .4rem .5rem .4rem .45rem; border: 1px solid var(--line); border-radius: var(--r-ctrl); background: var(--paper);
  transition: border-color .2s;
}
.announce:hover { border-color: var(--sand-deep); }
.announce .short { display: none; }
@media (max-width: 520px) { .announce .long { display: none; } .announce .short { display: inline; } .nav-cta .btn-primary { padding: .65em 1em; } }
.announce b { font-weight: 500; color: #ffffff; background: var(--brand); border-radius: var(--r-ctrl); padding: .15rem .6rem; font-size: .8rem; }
#horizon-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64%; z-index: 0; pointer-events: none; }
.hero-stage { position: relative; z-index: 2; margin-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 120px); }

/* load sequence (the one orchestrated moment) */
.boot > * { opacity: 0; transform: translateY(14px); animation: boot .9s var(--ease) forwards; }
.boot > *:nth-child(1) { animation-delay: .05s; }
.boot > *:nth-child(2) { animation-delay: .15s; }
.boot > *:nth-child(3) { animation-delay: .27s; }
.boot > *:nth-child(4) { animation-delay: .39s; }
.boot-late { opacity: 0; transform: translateY(28px) scale(.985); animation: boot 1.2s .55s var(--ease) forwards; }
@keyframes boot { to { opacity: 1; transform: none; } }

/* ---------- app window (Raycast-ish) ---------- */
.window {
  max-width: 920px; margin-inline: auto;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--r-window);
  box-shadow: 0 1px 0 #ffffff inset, 0 40px 80px -40px rgba(10,30,74,.32), 0 18px 40px -24px rgba(10,30,74,.25);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.window-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bone); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--sand-deep); }
.dots i:first-child { background: #ff6648; } .dots i:nth-child(2) { background: #0259dd; } .dots i:nth-child(3) { background: #84affb; }
.window-title { font: 500 .82rem var(--mono); color: var(--muted); flex: 1; text-align: center; margin-right: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-body { display: grid; grid-template-columns: 1fr 240px; min-height: 380px; }
@media (max-width: 760px) { .window-body { grid-template-columns: 1fr; } .test-rail { display: none; } }

.term { font: 400 .86rem/1.75 var(--mono); padding: 20px 22px; color: var(--ink); overflow: hidden; }
.term .ln { white-space: pre-wrap; word-break: break-word; min-height: 1.75em; }
.term .prompt { color: var(--brand-ink); }
.term .dim { color: #8a97b3; }
.term .ok { color: var(--ok); }
.term .bad { color: var(--bad); }
.term .hl { background: var(--brand-soft); color: var(--brand-ink); padding: 0 .3em; border-radius: 4px; }
.caret { display: inline-block; width: .55em; height: 1.1em; background: var(--brand); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.test-rail { border-left: 1px solid var(--line); background: linear-gradient(180deg, var(--bone), #ffffff); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rail-title { font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; }
.test { display: flex; align-items: center; gap: 10px; font: .78rem var(--mono); color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #ffffff; transition: border-color .3s, color .3s, background .3s; }
.test .st { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; transition: background .3s, box-shadow .3s; }
.test.run .st { background: var(--sand-deep); animation: pulse 1s infinite; }
.test.pass { color: var(--ink); }
.test.pass .st { background: var(--ok); }
.test.fail { color: var(--bad); border-color: #f3cfd4; background: #fdf6f7; }
.test.fail .st { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(2,89,221,.45); } }
.reward { margin-top: auto; border-radius: 10px; padding: 12px; background: var(--brand-deep); color: #ffffff; font-size: .82rem; }
.reward strong { display: block; font: 600 1.6rem var(--display); letter-spacing: -.02em; }

/* ---------- logo marquee ---------- */
.trust { padding-block: 44px; border-block: 1px solid var(--line); background: var(--card); }
.trust p { text-align: center; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { font: 600 1.25rem var(--display); color: #8fa3c8; letter-spacing: -.02em; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- offerings (home) ---------- */
.offer-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.offer { border: 1px solid var(--line); background: #ffffff; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.offer:nth-child(1) { grid-row: span 2; border-radius: var(--r-panel); background: var(--brand-deep); color: #f3f7ff; border-color: var(--brand-deep); }
.offer:nth-child(1) h3 { color: #ffffff; font-size: 1.9rem; letter-spacing: -.025em; }
.offer:nth-child(1) p { color: #cfe0fd; }
.offer:nth-child(2) { border-radius: var(--r-panel) var(--r-panel) 6px 6px; }
.offer:nth-child(3) { border-radius: 6px 6px var(--r-panel) var(--r-panel); background: var(--bone); }
.offer p { color: var(--muted); max-width: 46ch; }
.offer a { margin-top: auto; font-weight: 500; text-decoration: none; color: var(--brand-ink); }
.offer:nth-child(1) a { color: #ffffff; }
.offer a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } .offer:nth-child(1) { grid-row: auto; } }

.tree { font: .82rem/1.9 var(--mono); color: #cfe0fd; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 18px 20px; margin-block: 10px 6px; }
.tree b { color: #ffffff; font-weight: 500; }

/* ---------- pipeline (real sequence → numbered) ---------- */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.pipe-line { position: absolute; top: 21px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.pipe-line i { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; padding: 0 14px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 .95rem var(--display); background: #ffffff; border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1; transition: background .4s, border-color .4s, color .4s; }
.step.on .step-n { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .92rem; color: var(--muted); max-width: 24ch; }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .pipe-line { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .pipe-line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { grid-template-columns: 44px 1fr; text-align: left; justify-items: start; padding: 0; column-gap: 18px; }
  .step-n { grid-row: span 2; }
}

/* ---------- numbers band ---------- */
.band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.band div { padding: 28px 24px 0 0; }
.band strong { display: block; font: 600 clamp(2rem, 3.6vw, 2.9rem)/1 var(--display); letter-spacing: -.03em; color: var(--brand-ink); }
.band > div > span { font-size: .94rem; color: var(--muted); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr 1fr; row-gap: 12px; } }

/* ---------- quote ---------- */
.quote { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
.quote blockquote { margin: 0; font: 500 clamp(1.5rem, 2.8vw, 2.3rem)/1.22 var(--display); letter-spacing: -.02em; max-width: 30ch; }
.quote figcaption { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.quote-mark { width: 58px; height: 58px; border-radius: 16px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-ink); font: 700 2.6rem/1 var(--display); }
@media (max-width: 640px) { .quote { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #ffffff; padding: clamp(48px, 7vw, 88px);
  display: grid; gap: 1.4rem; justify-items: start;
}
.cta h2 { color: #ffffff; max-width: 16ch; }
.cta p { color: #e3edfe; max-width: 50ch; }
.cta .btn-primary { background: #ffffff; color: var(--brand-ink); box-shadow: none; }
.cta .btn-primary:hover { background: var(--bone); }
.cta canvas { position: absolute; right: -40px; bottom: -40px; width: 60%; height: 120%; opacity: .55; pointer-events: none; }
.cta > *:not(canvas) { position: relative; }

/* ---------- page header (inner pages) ---------- */
.page-hero { padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 80px); background: linear-gradient(180deg, var(--paper), var(--bone)); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 1.4rem; }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.page-hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000 10%, transparent 70%); opacity: .8; }

/* ---------- product rows (data page) ---------- */
.row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.flip > :first-child { order: 2; }
.row-copy { display: grid; gap: 1.1rem; }
.row-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.checks { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .65rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230259dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row.flip > :first-child { order: 0; } }

.code { border: 1px solid var(--line); border-radius: var(--r-window); background: #ffffff; overflow: hidden; box-shadow: 0 24px 48px -32px rgba(10,30,74,.35); }
.tabs { display: flex; gap: 2px; padding: 8px; background: var(--bone); border-bottom: 1px solid var(--line); }
.tabs button { font: 500 .8rem var(--mono); color: var(--muted); background: none; border: 0; padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: #ffffff; color: var(--brand-ink); box-shadow: 0 1px 2px rgba(10,30,74,.08); }
.code pre { margin: 0; padding: 20px 22px; font: .82rem/1.75 var(--mono); overflow-x: auto; min-height: 290px; }
.code pre[hidden] { display: none; }
.k { color: var(--brand-ink); } .s { color: #0a1e4a; } .c { color: #8a97b3; }

.annot { border: 1px solid var(--line); border-radius: var(--r-window); background: #ffffff; padding: 22px; display: grid; gap: 14px; box-shadow: 0 24px 48px -32px rgba(10,30,74,.35); }
.annot-prompt { font-size: .92rem; background: var(--bone); border-radius: 10px; padding: 14px 16px; }
.annot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.annot-pair div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: .86rem; color: var(--muted); }
.annot-pair div.pick { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.annot-pair b { display: block; font-size: .8rem; margin-bottom: 6px; color: var(--ink); }
.rubric { display: grid; gap: 8px; }
.rubric label { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); width: 0; transition: width 1.2s var(--ease); }
.in .meter i { width: var(--w); }

.domains { display: flex; flex-wrap: wrap; gap: 10px; }
.domains span { padding: .55rem 1rem; border-radius: var(--r-ctrl); border: 1px solid var(--line); background: #ffffff; font-size: .94rem; }

/* ---------- benchmarks ---------- */
.board { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: #ffffff; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bone); flex-wrap: wrap; }
.seg { display: inline-flex; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-ctrl); padding: 3px; }
.seg button { border: 0; background: none; font: 500 .86rem var(--body); color: var(--muted); padding: .45rem .95rem; border-radius: var(--r-ctrl); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #ffffff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; padding: 14px 22px; border-bottom: 1px solid var(--line); }
td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.rank { width: 56px; color: var(--muted); font-family: var(--display); }
td.model b { font-weight: 550; }
td.model span { display: block; font-size: .82rem; color: var(--muted); }
td.score { width: 42%; }
.bar { display: flex; align-items: center; gap: 12px; }
.bar-track { flex: 1; height: 10px; border-radius: 10px; background: var(--bone); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--brand), var(--brand-hi)); transition: width 1s var(--ease); }
.bar b { font: 600 1rem var(--display); width: 52px; text-align: right; }
@media (max-width: 640px) { th:nth-child(3), td:nth-child(3) { display: none; } td, th { padding: 12px 14px; } td.score { width: 46%; } }

.dist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.dist-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #ffffff; display: grid; gap: 10px; }
.dist-card strong { font: 600 2.4rem/1 var(--display); letter-spacing: -.03em; }
.dist-card .meter { height: 8px; }

.notes { display: grid; border-top: 1px solid var(--line); }
.note { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
.note:hover { padding-left: 12px; }
.note time { color: var(--muted); font-size: .9rem; }
.note h3 { font-size: 1.25rem; }
.note p { color: var(--muted); font-size: .95rem; margin-top: 6px; max-width: 64ch; }
.note .read { color: var(--brand-ink); font-weight: 500; font-size: .92rem; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- company ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles div { border-top: 2px solid var(--brand); padding-top: 20px; display: grid; gap: 10px; }
.principles p { color: var(--muted); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.network { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.expert-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.expert-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.expert-list span { color: var(--muted); }
@media (max-width: 860px) { .network { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info dl { margin: 1rem 0 0; display: grid; gap: 1rem; }
.contact-info dt { font-size: .86rem; color: var(--muted); }
.contact-info dd { margin: 0; font-weight: 500; }
form.card { background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; box-shadow: 0 30px 60px -40px rgba(10,30,74,.35); }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bone);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #ffffff; box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { font-size: .88rem; font-weight: 400; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--r-ctrl); cursor: pointer; background: #ffffff; transition: all .2s; }
.chips input:checked + label { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.chips input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-ok { display: none; padding: 14px 16px; border-radius: 12px; background: #eaf3ee; color: var(--ok); font-size: .94rem; }
.sent .form-ok { display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 36px; background: var(--paper); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot p { color: var(--muted); font-size: .94rem; max-width: 34ch; margin-top: 14px; }
.foot h4 { font: 500 .9rem var(--body); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.foot a:hover { color: var(--brand-ink); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .86rem; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #e3efe8; }
.wordmark { font: 700 clamp(4rem, 17vw, 15rem)/.8 var(--display); letter-spacing: -.06em; color: var(--bone); margin-top: 48px; text-align: center; user-select: none; font-variation-settings: "wdth" 80; -webkit-text-stroke: 1px var(--sand); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* ---------- scroll reveal (subtle, opt-in) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .boot > *, .boot-late { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
.js .boot-a, .js .boot-w { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js .boot-a, .js .boot-w { opacity: 1; } }

/* =====================================================================
   v3: advanced motion layer
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: header; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-deep)); }

.js [data-split] { visibility: hidden; }
.js [data-split].split-ready { visibility: visible; }
.split-line { padding-bottom: .1em; margin-bottom: -.1em; }

.hero-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(2,89,221,.55), rgba(2,89,221,0)); pointer-events: none; z-index: 0; }
.hero-stage { perspective: 1600px; }
.tilt { transform-style: preserve-3d; will-change: transform; transform-origin: 50% 0; }
.chip-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  font: 500 .8rem var(--body); color: var(--ink);
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 13px; box-shadow: 0 18px 36px -18px rgba(10,30,74,.4); backdrop-filter: blur(8px);
}
.chip-float i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #e3f1e9; }
.chip-float.c1 { left: 0; top: 60px; }
.chip-float.c2 { right: 0; top: 220px; }
.chip-float.c3 { left: 30px; bottom: 170px; }
.chip-float.c2 i { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chip-float.c3 i { background: var(--brand-light); box-shadow: 0 0 0 4px #f3f7ff; }
@media (max-width: 1100px) { .chip-float { display: none; } }

.magnetic { will-change: transform; }

.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; }
.spot::before {
  padding: 1px; z-index: 2;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(2,89,221,.85), rgba(2,89,221,.35) 35%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot::after { z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(2,89,221,.22), transparent 45%); }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.spot.dark::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(2,89,221,.95), rgba(2,89,221,.2) 40%, transparent 60%); }
.spot.dark::after { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(2,89,221,.16), transparent 45%); }

/* command palette */
.palette { max-width: 1040px; margin-inline: auto; border-radius: 18px; border: 1px solid var(--line); background: #ffffff; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(10,30,74,.45), 0 0 0 8px rgba(228,233,253,.6); }
.pal-search { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: text; }
.pal-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pal-search input { flex: 1; border: 0; outline: 0; font: 400 1.05rem var(--body); color: var(--ink); background: transparent; min-width: 0; }
.pal-search input::placeholder { color: #8f9ab3; }
.pal-search:focus-within { background: linear-gradient(90deg, var(--brand-soft), #ffffff 60%); }
.pal-search .kbd, .pal-foot .kbd { background: var(--bone); border-color: var(--line); color: var(--muted); }
.pal-body { display: grid; grid-template-columns: 340px 1fr; height: 430px; }
.pal-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.pal-group { font-size: .76rem; color: var(--muted); padding: 12px 10px 6px; }
.pal-item { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.pal-item .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #ffffff; font: 600 .72rem var(--display); }
.pal-item .nm { font: .84rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .tg { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.pal-item[aria-selected="true"] { background: var(--brand-soft); }
.pal-item[aria-selected="true"] .nm { color: var(--brand-deep); }
.d-easy { background: var(--brand-light); color: var(--brand-deep) !important; }
.d-medium { background: var(--brand); }
.d-hard { background: var(--brand-deep); }
.pal-empty { padding: 28px 12px; color: var(--muted); font-size: .92rem; }
.pal-detail { padding: 26px 28px; overflow-y: auto; display: grid; align-content: start; gap: 18px; }
.pal-detail h3 { font: 500 1.1rem var(--mono); letter-spacing: 0; }
.pal-detail .instr { color: var(--muted); max-width: 52ch; }
.pal-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.pal-meta div { background: var(--bone); border-radius: 10px; padding: 10px 12px; }
.pal-meta dt { font-size: .74rem; color: var(--muted); }
.pal-meta dd { margin: 2px 0 0; font: 600 1rem var(--display); }
.attempts { display: grid; gap: 8px; }
.attempts .lbl { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.att-row { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.att-dots { display: flex; gap: 5px; }
.att-dots i { width: 16px; height: 16px; border-radius: 5px; background: var(--line); transform: scale(.3); opacity: 0; animation: pop .45s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms + 120ms); }
.att-dots i.p { background: var(--brand); }
@keyframes pop { to { transform: none; opacity: 1; } }
.pal-detail > * { animation: fadeUp .4s var(--ease) both; }
.pal-detail > *:nth-child(2) { animation-delay: .04s; } .pal-detail > *:nth-child(3) { animation-delay: .08s; } .pal-detail > *:nth-child(4) { animation-delay: .12s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.pal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bone); font-size: .8rem; color: var(--muted); }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pal-foot .keys { display: flex; gap: 16px; }
@media (max-width: 820px) {
  .pal-body { grid-template-columns: 1fr; height: auto; }
  .pal-list { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pal-meta { grid-template-columns: 1fr 1fr; }
  .pal-foot .keys { display: none; }
}

/* bento */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 20px; background: #ffffff; padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.tile p { color: var(--muted); font-size: .96rem; max-width: 44ch; }
.tile a { margin-top: auto; padding-top: 8px; font-weight: 500; text-decoration: none; color: var(--brand-ink); }
.tile a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile.env { grid-row: span 2; background: linear-gradient(160deg, var(--brand-deep) 0%, #071433 100%); border-color: var(--brand-deep); color: #f3f7ff; }
.tile.env h3 { color: #ffffff; font-size: 1.8rem; letter-spacing: -.025em; }
.tile.env p { color: #cfe0fd; }
.tile.env a { color: #ffffff; }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile.env { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile.env, .tile.wide { grid-column: auto; } .tile.wide { grid-template-columns: 1fr; } }

.stack { position: relative; height: 160px; margin-top: 8px; }
.layer { position: absolute; left: 0; right: 0; top: 0; height: 46px; border-radius: 12px; border: 1px solid rgba(2,89,221,.28); background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font: .8rem var(--mono); color: #cfe0fd; transition: transform .6s var(--ease); }
.layer b { color: #ffffff; font-weight: 500; }
.layer:nth-child(1) { transform: translateY(0) scale(.9); opacity: .55; }
.layer:nth-child(2) { transform: translateY(52px) scale(.95); opacity: .8; }
.layer:nth-child(3) { transform: translateY(104px); background: rgba(2,89,221,.14); }
.tile.env:hover .layer:nth-child(1) { transform: translateY(-8px) scale(.9); }
.tile.env:hover .layer:nth-child(3) { transform: translateY(114px); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: #cfe0fd; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #c6f04a; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,102,72,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,102,72,0); } }

.pref { display: grid; gap: 10px; }
.pref-track { position: relative; height: 40px; border-radius: 12px; background: var(--bone); display: flex; justify-content: space-between; align-items: center; padding: 0 14px; font-size: .8rem; color: var(--muted); }
.pref-knob { position: absolute; top: 5px; left: 5px; width: calc(50% - 5px); height: 30px; border-radius: 9px; background: #ffffff; box-shadow: 0 4px 10px -4px rgba(10,30,74,.25); display: grid; place-items: center; font-size: .8rem; color: var(--brand-ink); font-weight: 500; animation: knob 5s var(--ease) infinite; }
.pref-knob::after { content: "Preferred"; }
@keyframes knob { 0%, 35% { transform: translateX(0); } 50%, 85% { transform: translateX(100%); } 100% { transform: translateX(0); } }
.agree { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.agree b { color: var(--ink); font-weight: 600; }

.chart { width: 100%; height: 110px; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .ln-a { stroke: var(--brand); }
.chart .ln-b { stroke: var(--brand-light); stroke-dasharray: 4 5; }
.chart .area { fill: url(#gA); stroke: none; }
.legend { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--brand); vertical-align: middle; margin-right: 6px; }
.legend span + span::before { background: var(--brand-light); }

.exploits { display: grid; gap: 8px; }
.exploit { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font: .8rem var(--mono); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bone); color: var(--muted); }
.exploit s { text-decoration-color: var(--brand); text-decoration-thickness: 1.5px; }
.exploit em { font: 500 .74rem var(--body); font-style: normal; color: var(--brand-deep); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* pinned story */
.story { background: var(--paper); }
.story-pin { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; min-height: calc(100vh - 68px); padding-block: 48px; }
.story-steps { display: grid; gap: 2px; position: relative; padding-left: 26px; }
.story-rail { position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--line); border-radius: 2px; }
.story-rail i { position: absolute; inset: 0; background: var(--brand); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; }
.sstep { padding: 12px 0; opacity: .35; transition: opacity .4s; }
.sstep.on { opacity: 1; }
.sstep h3 { display: flex; gap: 12px; align-items: baseline; font-size: 1.35rem; }
.sstep h3 span { font: 500 .85rem var(--body); color: var(--brand-ink); }
.sstep p { color: var(--muted); max-width: 40ch; margin-top: 4px; font-size: .96rem; }
.story-win .window-body { display: block; position: relative; min-height: 360px; }
.panel { position: absolute; inset: 0; padding: 26px; display: grid; align-content: start; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.panel.active { opacity: 1; visibility: visible; transform: none; }
.panel .it { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.panel.active .it { opacity: 1; transform: none; }
.panel h4 { margin: 0; font: 500 .82rem var(--body); color: var(--muted); }
.quoteblock { font-size: 1.04rem; line-height: 1.55; border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }
.meta-line { font-size: .86rem; color: var(--muted); }
.lyr { display: grid; grid-template-columns: 1fr 60px; gap: 12px; align-items: end; font: .82rem var(--mono); }
.lyr .bar-track { height: 8px; margin-top: 6px; }
.lyr .bar-track i { width: 0; transition: width .9s var(--ease) .35s; }
.panel.active .lyr .bar-track i { width: var(--w); }
.lyr > span { text-align: right; color: var(--muted); }
.runrow, .rt, .agent { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: .82rem var(--mono); background: #ffffff; }
.runrow b, .agent b { color: var(--ok); font-weight: 500; }
.rt span:last-child { font: 500 .76rem var(--body); color: var(--brand-deep); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.agent b.f { color: var(--muted); }
.verdict { margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: var(--brand-deep); color: #ffffff; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.verdict strong { font: 600 1.3rem var(--display); }
@media (max-width: 900px) {
  .story { padding-block: 72px; }
  .story-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 0; }
  .story-win .window-body { min-height: 0; }
  .panel { position: relative; inset: auto; display: none; }
  .panel.active { display: grid; }
}

/* odometer */
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.odo .reel { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 70ms); }
.odo .reel span, .odo > span { height: 1em; display: block; }

/* inner hero */
.page-hero .grid-bg { mask-image: radial-gradient(420px circle at var(--gx, 80%) var(--gy, 30%), #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(420px circle at var(--gx, 80%) var(--gy, 30%), #000 0%, transparent 70%); background-image: linear-gradient(rgba(2,89,221,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(2,89,221,.16) 1px, transparent 1px); }
.page-hero canvas.mini-field { position: absolute; right: 0; bottom: 0; width: 55%; height: 100%; opacity: .75; pointer-events: none; }
@media (max-width: 760px) { .page-hero canvas.mini-field { width: 100%; opacity: .3; } }

tbody tr { will-change: transform; background: #ffffff; position: relative; }
tbody tr.lead td.rank { color: var(--brand-ink); font-weight: 600; }

.principles div { border-top: 0; position: relative; }
.principles div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.principles.in div::before { transform: scaleX(1); }
.principles.in div:nth-child(2)::before { transition-delay: .15s; } .principles.in div:nth-child(3)::before { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .js [data-split] { visibility: visible; }
  .pref-knob { animation: none; }
  .panel .it { opacity: 1; transform: none; }
}
.band > div > span { display: block; margin-top: 10px; }
.band strong span, .dist-card strong span { font-size: inherit !important; color: inherit !important; margin: 0 !important; }
.att-row { grid-template-columns: 70px auto 1fr; }
.tile.env .stack { margin-top: auto; }
.tile.env a { margin-top: 18px; }
.chip-float.c1 { left: -30px; } .chip-float.c2 { right: -40px; top: 250px; } .chip-float.c3 { left: -10px; }
.story-win .window-body { min-height: 330px; }
.exploit { grid-template-columns: auto 1fr; } .exploit em { justify-self: end; }
.page-hero canvas.mini-field { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.btn { white-space: nowrap; }
@media (max-width: 420px) { .nav-cta .btn-primary { font-size: .85rem; padding: .6em .9em; } }

/* =====================================================================
   v4: Café au Lait re-makeup — focus motion + full responsive layer
   ===================================================================== */
body { background: var(--paper); overflow-x: clip; }
html { overflow-x: clip; }
img, svg, canvas, video { max-width: 100%; }
h1, h2, h3, p, li, dd, blockquote { overflow-wrap: break-word; }
.brand-name small { color: var(--brand-deep); }
.tile.env, .offer:nth-child(1) { background: linear-gradient(160deg, #10275c 0%, var(--brand-deep) 60%, #071433 100%); }
.cta { background: radial-gradient(120% 140% at 85% 100%, #0147b5 0%, var(--brand-deep) 55%, #06102b 100%); }
.cta .btn-primary { background: var(--brand-light); color: var(--brand-deep); }
.cta .btn-primary:hover { background: #ffffff; }
.cta p { color: #cfe0fd; }
.reward, .verdict { background: var(--brand-deep); }
.hero-glow { background: radial-gradient(closest-side, rgba(2,89,221,.6), rgba(2,89,221,0)); }
.nav-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.announce b, .seg button[aria-pressed="true"], .chips input:checked + label { background: var(--brand-hi); }
.chips input:checked + label { border-color: var(--brand-hi); }
.bar-track i { background: linear-gradient(90deg, var(--brand), var(--brand-hi)); }
.step.on .step-n { background: var(--brand-hi); border-color: var(--brand-hi); }
::selection { background: var(--brand); color: #ffffff; }
:focus-visible { outline-color: var(--brand-hi); }

/* logo: bars are individually animatable */
.brand-mark .lb { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand-mark .lb:nth-of-type(1) { transform: scaleY(.86); }
.brand:hover .brand-mark .lb:nth-of-type(2) { transform: scaleY(1.06); transition-delay: .05s; }
.brand:hover .brand-mark .lb:nth-of-type(3) { transform: scaleY(.9); transition-delay: .1s; }

/* ---------- intro curtain ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--brand-deep); display: grid; place-items: center; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro .brand-mark { width: 96px; height: 102px; }
.intro .brand-mark .lb { opacity: 0; transition: none; }
.intro .brand-mark .ld { opacity: 0; }
.intro-word { font: 800 1.1rem var(--body); letter-spacing: .32em; color: var(--brand-light); overflow: hidden; }
.intro-word span { display: inline-block; transform: translateY(110%); }
.intro-count { position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); right: 32px; font: 500 .9rem var(--mono); color: var(--brand); }
html:not(.js) .intro, .no-intro .intro { display: none; }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1.5px solid var(--brand); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s; }
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brand-hi); transition: opacity .2s; }
.cursor-label { font: 600 .72rem var(--body); color: #ffffff; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); white-space: nowrap; }
.cursor.is-link .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(2,89,221,.12); }
.cursor.is-label .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--brand-hi); border-color: var(--brand-hi); }
.cursor.is-label .cursor-label { opacity: 1; transform: none; }
.cursor.is-label .cursor-dot, .cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-text .cursor-ring { opacity: 0; }
.cursor.is-down .cursor-ring { transform: scale(.82); }
.cursor.is-hidden { opacity: 0; }

/* ---------- focus rail: section gauge ---------- */
.focus-rail { position: fixed; right: 22px; top: 50%; z-index: 40; transform: translateY(-50%); display: none; flex-direction: column; gap: 6px; }
@media (min-width: 1280px) and (min-height: 640px) { .focus-rail { display: flex; } }
.focus-rail button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 22px; }
.focus-rail .fl { font: 500 .78rem var(--body); color: var(--brand-ink); background: var(--card); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .3s var(--ease); white-space: nowrap; }
.focus-rail .fb { width: 14px; height: 3px; border-radius: 3px; background: var(--sand-deep); transition: width .4s var(--ease), background .3s; }
.focus-rail button:hover .fl, .focus-rail button:focus-visible .fl, .focus-rail button.on .fl { opacity: 1; transform: none; }
.focus-rail button.on .fb { width: 34px; background: var(--brand-hi); }
.focus-rail button:not(.on) .fl { opacity: 0; }
.focus-rail button:not(.on):hover .fl, .focus-rail button:not(.on):focus-visible .fl { opacity: 1; transform: none; }
.focus-rail.on-dark .fb { background: rgba(255,255,255,.35); }
.focus-rail .fg { position: absolute; right: -10px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.focus-rail .fg i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--brand); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; }

/* ---------- manifesto: scroll-scrubbed reading ---------- */
.manifesto { padding-block: clamp(96px, 16vw, 200px); }
.manifesto p { font: 600 clamp(1.7rem, 4.4vw, 3.6rem)/1.12 var(--display); letter-spacing: -.03em; font-variation-settings: "wdth" 88; max-width: 22ch; color: var(--ink); }
.manifesto .mw { display: inline-block; opacity: .14; will-change: opacity; }
.manifesto-meta { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vw, 48px); color: var(--muted); font-size: .95rem; }
.manifesto-meta .gauge { width: 140px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.manifesto-meta .gauge i { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- velocity marquee ---------- */
.js .marquee-track { animation: none; }
.marquee-track { will-change: transform; }
.marquee-track span { color: #8fa3c8; transition: color .3s; }
.marquee:hover .marquee-track span:hover { color: var(--brand-ink); }

/* ---------- 3D hover tilt ---------- */
.tilt-hover { transform-style: preserve-3d; will-change: transform; }

/* ---------- mobile menu: dropdown under the sticky header ---------- */
.menu-only { display: none; }
.menu-backdrop { display: none; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  /* anchored to the (sticky) header, so it always drops down right below the
     menu button wherever the page is scrolled to */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; bottom: auto; height: auto;
    max-height: calc(100dvh - 68px - env(safe-area-inset-top, 0px));
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background: var(--paper); border: 0; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(10,30,74,.35);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links li { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .menu-open .nav-links li { opacity: 1; transform: none; }
  .menu-open .nav-links li:nth-child(2) { transition-delay: .04s; } .menu-open .nav-links li:nth-child(3) { transition-delay: .08s; }
  .menu-open .nav-links li:nth-child(4) { transition-delay: .12s; } .menu-open .nav-links li:nth-child(5) { transition-delay: .16s; }
  .nav-links a { font: 600 clamp(1.4rem, 6vw, 1.85rem)/1.15 var(--display); letter-spacing: -.03em; color: var(--ink); padding: .75rem 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav-links a[aria-current="page"] { color: var(--brand-ink); }
  .menu-only { display: block; margin-top: 8px; padding-top: 16px; }
  .menu-only .btn { width: 100%; justify-content: center; font: 500 1.05rem var(--body); padding: 1.05em; border-bottom: 0; color: #ffffff; background: var(--brand-hi) !important; border-radius: 999px; }
  .nav-cta .btn-ghost { display: none; }
  /* invisible tap-away layer under the header (no scroll lock on <body>, which
     used to break the sticky header and pushed the menu to the top of the page) */
  .menu-open .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 40; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgba(10,30,74,.28); cursor: default; -webkit-tap-highlight-color: transparent; }
}
@media (min-width: 961px) and (max-width: 1140px) { .nav-cta .btn-ghost { display: none; } .nav-links a { padding: .5rem .7rem; } }

/* ---------- responsive layer: every breakpoint ---------- */
.wrap { width: min(100% - 2 * clamp(16px, 4vw, 40px), var(--wrap)); }
@media (min-width: 1600px) { :root { --wrap: 1280px; } }
@media (min-width: 2200px) { :root { --wrap: 1400px; } body { font-size: 18px; } }
.site-header { padding-top: env(safe-area-inset-top); }

/* hero */
.hero-copy h1 { font-size: clamp(2.25rem, 7.2vw, 5.4rem); }
.hero-copy .lede { font-size: clamp(1rem, 2.6vw, 1.25rem); }
@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stage { margin-top: 36px; padding-bottom: 56px; }
  .announce { font-size: .82rem; }
}
@media (max-width: 760px) {
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .term { font-size: .74rem; line-height: 1.7; padding: 16px; min-height: 270px; }
  .test-rail { display: grid; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid var(--line); padding: 14px; gap: 8px; }
  .test-rail .rail-title, .test-rail .reward { grid-column: 1 / -1; }
  .test { font-size: .68rem; padding: 7px 8px; min-width: 0; }
  .test { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .window-title { margin-right: 0; font-size: .74rem; }
}
@media (max-width: 380px) { .test-rail { grid-template-columns: 1fr; } }

/* sections */
.section { padding-block: clamp(64px, 11vw, 140px); }
.section-head { margin-bottom: clamp(32px, 6vw, 72px); }
h2 { font-size: clamp(1.75rem, 5vw, 3.25rem); }

/* palette */
@media (max-width: 820px) {
  .pal-search { padding: 14px 16px; }
  .pal-search input { font-size: 1rem; }
  .pal-detail { padding: 20px 18px; }
}
@media (max-width: 480px) {
  .pal-item { grid-template-columns: 26px 1fr; }
  .pal-item .tg { display: none; }
  .pal-search .kbd { display: none; }
  .att-row { grid-template-columns: 64px auto 1fr; gap: 8px; }
  .att-dots i { width: 13px; height: 13px; }
}

/* bento */
@media (max-width: 640px) { .tile { padding: 22px; } .tile.env h3 { font-size: 1.5rem; } .exploit { grid-template-columns: 1fr; gap: 6px; } .exploit em { justify-self: start; } }

/* story */
@media (max-width: 900px), (max-height: 639px) {
  .story-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 0; gap: 32px; }
  .story { padding-block: clamp(64px, 11vw, 120px); }
  .story-win .window-body { min-height: 0; }
  .panel { position: relative; inset: auto; display: none; padding: 20px; }
  .panel.active { display: grid; }
}
@media (max-width: 480px) { .runrow, .rt, .agent { font-size: .74rem; padding: 10px 11px; flex-wrap: wrap; } .lyr { grid-template-columns: 1fr 52px; font-size: .74rem; } }

/* numbers */
@media (max-width: 760px) { .band { grid-template-columns: 1fr 1fr; gap: 8px 16px; } .band div { padding-right: 0; } }
@media (max-width: 360px) { .band { grid-template-columns: 1fr; } }

/* quote + cta */
@media (max-width: 640px) { .quote { gap: 20px; } .quote-mark { width: 46px; height: 46px; font-size: 2rem; } .cta { border-radius: 22px; padding: 40px 24px; } .cta .btn { width: 100%; justify-content: center; } .cta canvas { width: 100%; right: 0; opacity: .35; } }

/* data page */
@media (max-width: 860px) { .row { padding-block: 48px; gap: 28px; } }
@media (max-width: 520px) {
  .code pre { font-size: .72rem; padding: 16px; min-height: 0; }
  .tabs { overflow-x: auto; scrollbar-width: none; } .tabs button { flex: none; }
  .annot { padding: 16px; } .annot-pair { grid-template-columns: 1fr; }
  .rubric label { grid-template-columns: 1fr 70px 30px; font-size: .8rem; }
}

/* benchmarks */
@media (max-width: 640px) {
  .board-head { padding: 16px; } .seg { width: 100%; } .seg button { flex: 1; padding: .5rem .4rem; font-size: .8rem; }
  td.model span { font-size: .76rem; } td.rank { width: 32px; } .bar { gap: 8px; } .bar b { width: 44px; font-size: .9rem; }
}
@media (max-width: 400px) { td, th { padding: 11px 10px; } td.model b { font-size: .88rem; } }

/* company */
@media (max-width: 520px) { .expert-list div { flex-direction: column; gap: 2px; } form.card { padding: 20px; } }

/* footer */
@media (max-width: 420px) { .foot { grid-template-columns: 1fr; } .foot-base { flex-direction: column; } }

/* page hero */
.page-hero h1 { font-size: clamp(2.1rem, 6.4vw, 4.4rem); }
@media (max-width: 640px) { .page-hero { padding-block: 56px 44px; } .page-hero .hero-actions { flex-direction: column; align-items: stretch; } .page-hero .hero-actions .btn { justify-content: center; } }

/* touch devices: no hover-only affordances */
@media (hover: none) { .spot::before, .spot::after { display: none; } .note:hover { padding-left: 0; } }

/* short landscape phones */
@media (max-height: 500px) and (orientation: landscape) { .hero { padding-top: 32px; } .hero-copy h1 { font-size: clamp(2rem, 5vw, 3rem); } }

@media (prefers-reduced-motion: reduce) { .manifesto .mw { opacity: 1 !important; } .intro { display: none; } .cursor { display: none !important; } }
@media (max-width: 1180px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.env { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 32px; align-items: start; }
  .tile.env > :not(.stack) { grid-column: 1; }
  .tile.env .stack { grid-column: 2; grid-row: 1 / span 4; margin-top: 8px; }
  .tile.wide { grid-column: 1 / -1; }
}
@media (max-width: 960px) { .tile.wide { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .tile.env { display: flex; } .tile.env .stack { margin-top: 8px; } .bento { grid-template-columns: 1fr; } .tile.env, .tile.wide { grid-column: auto; } }
.test { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exploit s { overflow-wrap: anywhere; }
.hero-glow { width: min(900px, 160vw); height: min(900px, 160vw); }
@media (max-width: 960px) { .nav-links .menu-only a.btn { display: flex; justify-content: center; text-align: center; } }

/* =====================================================================
   v5: Tech SaaS palette — Carbon / Mist / Steel + Electric / Violet / Lime
   ===================================================================== */
.brand-name { color: var(--ink); }
.brand-name small { color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.progress { background: linear-gradient(90deg, var(--brand), var(--violet), var(--lime)); }
::selection { background: var(--violet); color: #fff; }

/* dark surfaces: carbon with violet/electric glow, lime accents */
.tile.env, .offer:nth-child(1) { background: radial-gradient(120% 90% at 100% 0%, rgba(132,175,251,.55) 0%, transparent 55%), linear-gradient(160deg, #10275c 0%, #0a1e4a 100%); border-color: #0a1e4a; }
.tile.env a, .offer:nth-child(1) a { color: var(--lime); }
.live { color: #cfe0fd; }
.layer { border-color: rgba(255,255,255,.14); }
.layer:nth-child(3) { background: rgba(255,102,72,.12); border-color: rgba(255,102,72,.4); }
.layer:nth-child(3) b { color: var(--lime); }
.cta { background: radial-gradient(90% 120% at 90% 100%, rgba(132,175,251,.75) 0%, transparent 60%), radial-gradient(70% 90% at 0% 0%, rgba(2,89,221,.45) 0%, transparent 60%), #0a1e4a; }
.cta .btn-primary { background: var(--lime); color: #0a1e4a; }
.cta .btn-primary:hover { background: #ff8a72; }
.cta p { color: #cfe0fd; }
.reward, .verdict { background: #0a1e4a; }
.reward strong, .verdict strong { color: var(--lime); }
.intro { background: #0a1e4a; }
.intro-word { color: #ffe1d7; }
.intro-count { color: var(--lime); }

/* fun accents on light surfaces (non-text or AA-safe only) */
.hero-glow { background: radial-gradient(closest-side, rgba(2,89,221,.16), rgba(132,175,251,.08) 55%, rgba(132,175,251,0)); }
.announce b { background: var(--violet); }
.chip-float.c1 i { background: var(--lime); box-shadow: 0 0 0 4px rgba(255,102,72,.35); }
.chip-float.c2 i { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chip-float.c3 i { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.d-easy { background: var(--lime); color: #0a1e4a !important; }
.d-medium { background: var(--brand); }
.d-hard { background: var(--violet); }
.att-dots i.p { background: linear-gradient(135deg, var(--brand), var(--violet)); }
.bar-track i { background: linear-gradient(90deg, var(--brand), var(--violet)); }
.chart .ln-b { stroke: var(--violet); opacity: .7; }
.legend span + span::before { background: var(--violet); }
.chart stop { stop-color: #0259dd; }
.pref-knob { color: var(--violet); }
.exploit em, .rt span:last-child { color: var(--violet); background: var(--violet-soft); }
.exploit s { text-decoration-color: var(--violet); }
.term .hl { background: var(--violet-soft); color: var(--violet); }
.term .prompt { color: var(--brand); }
.seg button[aria-pressed="true"] { background: #0a1e4a; }
.nav-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.focus-rail button.on .fb { background: linear-gradient(90deg, var(--brand), var(--violet)); }
.focus-rail .fg i { background: linear-gradient(180deg, var(--brand), var(--violet)); }
.manifesto-meta .gauge i { background: linear-gradient(90deg, var(--brand), var(--violet)); }
.story-rail i { background: linear-gradient(180deg, var(--brand), var(--violet)); }
.quoteblock { border-left-color: var(--violet); }
.quote-mark { background: var(--violet-soft); color: var(--violet); }
.principles div::before { background: linear-gradient(90deg, var(--brand), var(--violet)); }
.cursor-ring { border-color: var(--brand); }
.cursor.is-label .cursor-ring { background: #0a1e4a; border-color: #0a1e4a; }
.cursor.is-label .cursor-label { color: var(--lime); }
.cursor-dot { background: var(--violet); }
.tile.env.spot.dark::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,102,72,.9), rgba(132,175,251,.35) 40%, transparent 60%); }
.status i { background: #0259dd; box-shadow: 0 0 0 4px #e3edfe; }
.marquee-track span { color: #8fa3c8; }
.marquee:hover .marquee-track span:hover { color: var(--violet); }
.wordmark { color: var(--bone); -webkit-text-stroke: 1px var(--sand-deep); }
.page-hero .grid-bg { background-image: linear-gradient(rgba(2,89,221,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(132,175,251,.14) 1px, transparent 1px); }
.menu-only .btn { background: var(--brand) !important; }
.intro { background: #fff6f2; }
.intro-word { color: #0a1e4a; }
.intro-word span { letter-spacing: .32em; }
.intro-count { color: var(--brand); }

/* =====================================================================
   v6: Lime as a lead colour — surfaces, not specks
   Rule: lime is always a background with carbon text on it (14.3:1),
   never lime text on light surfaces.
   ===================================================================== */
:root { --lime-soft: #ffe1d7; --lime-hover: #ff8a72; --sky: #84affb; --sky-soft: #e3edfe; --coral: #ff6648; --cobalt: #0259dd; --navy: #0a1e4a; }
::selection { background: var(--lime); color: #0a1e4a; }

/* primary buttons: lime with carbon text, inverts on hover */
.btn-primary { background: var(--lime); color: #0a1e4a; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 8px 22px -10px rgba(255,102,72,.55); }
.btn-primary:hover { background: #0a1e4a; color: var(--lime); }
.btn-primary .kbd { background: rgba(10,30,74,.1); border-color: rgba(10,30,74,.18); color: #0a1e4a; }
.btn-primary:hover .kbd { background: rgba(255,102,72,.15); border-color: rgba(255,102,72,.35); color: var(--lime); }
.menu-only .btn { background: var(--lime) !important; color: #0a1e4a !important; }
.cta .btn-primary { background: var(--lime); color: #0a1e4a; }
.cta .btn-primary:hover { background: #ffffff; color: #0a1e4a; }

/* header + nav */
.nav-links a[aria-current="page"] { background: var(--lime-soft); color: #0a1e4a; box-shadow: inset 0 0 0 1px rgba(255,102,72,.35); }
.announce b { background: var(--lime); color: #0a1e4a; font-weight: 600; }

/* hero: a lime breath in the glow */
.hero-glow { background: radial-gradient(closest-side, rgba(255,102,72,.32), rgba(2,89,221,.1) 55%, rgba(132,175,251,0)); }
.test.pass .st { background: #0259dd; }
.test.pass { border-color: #f7c9ba; background: var(--lime-soft); }

/* full-bleed lime band for the client strip */
.trust { background: var(--lime); border-block: 0; }
.trust p { color: rgba(10,30,74,.75); font-weight: 500; }
.trust .marquee-track span { color: rgba(10,30,74,.55); }
.trust .marquee:hover .marquee-track span:hover { color: #0a1e4a; }

/* manifesto: carbon stage, words light up white, lime gauge */
.manifesto { background: radial-gradient(70% 90% at 100% 100%, rgba(132,175,251,.35), transparent 60%), radial-gradient(60% 70% at 0% 0%, rgba(255,102,72,.12), transparent 60%), #0a1e4a; }
.manifesto p { color: #ffffff; }
.manifesto-meta { color: #8fa3c8; }
.manifesto-meta .gauge { background: rgba(255,255,255,.14); }
.manifesto-meta .gauge i { background: var(--lime); }

/* task library: lime selection */
.pal-item[aria-selected="true"] { background: var(--lime-soft); box-shadow: inset 3px 0 0 var(--lime); }
.pal-item[aria-selected="true"] .nm { color: #0a1e4a; font-weight: 500; }
.pal-search:focus-within { background: linear-gradient(90deg, var(--lime-soft), #fff 55%); }
.att-dots i.p { background: #0a1e4a; box-shadow: inset 0 0 0 3px var(--lime); }

/* bento: carbon env tile + lime red-team tile */
.tile.wide { background: var(--lime); border-color: var(--lime); }
.tile.wide h3 { color: #0a1e4a; }
.tile.wide p { color: rgba(10,30,74,.78); }
.tile.wide .exploit { background: rgba(255,255,255,.55); border-color: rgba(10,30,74,.12); color: #0a1e4a; }
.tile.wide .exploit s { text-decoration-color: #0a1e4a; }
.tile.wide .exploit em { background: #0a1e4a; color: var(--lime); }
.tile.wide.spot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(10,30,74,.7), transparent 55%); }
.tile.wide.spot::after { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%); }
.pref-knob { background: var(--lime); color: #0a1e4a; }
.live i { background: var(--lime); }

/* process story */
.verdict { background: var(--lime); color: #0a1e4a; }
.verdict strong { color: #0a1e4a; }
.runrow b, .agent b { color: #0a1e4a; background: var(--lime); padding: 2px 9px; border-radius: 999px; font-weight: 500; }
.agent b.f { background: var(--bone); color: var(--muted); }
.sstep.on h3 span { background: var(--lime); color: #0a1e4a; padding: 1px 8px; border-radius: 999px; }

/* stats: full lime section, carbon numbers */
.stats-lime { background: var(--lime); }
.stats-lime h2 { color: #0a1e4a; }
.stats-lime .band { border-top-color: rgba(10,30,74,.22); }
.stats-lime .band strong { color: #0a1e4a; }
.stats-lime .band > div > span { color: rgba(10,30,74,.75); }
.stats-lime .band > div { border-left: 1px solid rgba(10,30,74,.16); padding-left: 20px; }
.stats-lime .band > div:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 760px) { .stats-lime .band > div { border-left: 0; padding-left: 0; } }

/* quote */
.quote-mark { background: var(--lime); color: #0a1e4a; }

/* checklists everywhere: lime ticks */
.checks li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a1e4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.domains span { transition: background .25s, border-color .25s; }
.domains span:hover { background: var(--lime); border-color: var(--lime); }

/* benchmarks */
.seg button[aria-pressed="true"] { background: #0a1e4a; color: var(--lime); }
tbody tr.lead { background: var(--lime-soft); }
tbody tr.lead td.rank { color: #0a1e4a; }
tbody tr.lead td.rank::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px #0a1e4a; margin-right: 8px; vertical-align: 1px; }
.dist-card:nth-child(3) { background: #0a1e4a; border-color: #0a1e4a; color: #fff; }
.dist-card:nth-child(3) .small { color: #8fa3c8; }
.dist-card:nth-child(3) strong { color: var(--lime); }
.dist-card:nth-child(3) .meter { background: rgba(255,255,255,.14); }
.dist-card:nth-child(3) .meter i { background: var(--lime); }

/* company */
.chips input:checked + label { background: #0a1e4a; border-color: #0a1e4a; color: var(--lime); }
.expert-list span { background: var(--lime-soft); color: #0a1e4a; padding: 2px 10px; border-radius: 999px; font-size: .9rem; align-self: center; }
.form-ok { background: var(--lime-soft); color: #0a1e4a; }

/* cursor + focus rail */
.cursor-ring { border-color: #0a1e4a; }
.cursor-dot { background: #0a1e4a; }
.cursor.is-link .cursor-ring { background: rgba(255,102,72,.45); border-color: #0a1e4a; }
.cursor.is-label .cursor-ring { background: var(--lime); border-color: var(--lime); }
.cursor.is-label .cursor-label { color: #0a1e4a; }
.focus-rail button.on .fl { background: var(--lime); border-color: var(--lime); color: #0a1e4a; }
.focus-rail button.on .fb { background: #0a1e4a; }

/* intro curtain: lime */
.intro { background: var(--lime); }
.intro-word { color: #0a1e4a; }
.intro-count { color: #0a1e4a; }

/* footer: giant lime wordmark */
.wordmark { color: var(--lime); -webkit-text-stroke: 0; }
.foot a:hover { color: var(--brand-ink); background: none; }
.status i { background: #0259dd; box-shadow: 0 0 0 4px var(--lime-soft); }

/* keyboard focus stays clearly visible on lime */
.btn-primary:focus-visible, .trust a:focus-visible, .stats-lime :focus-visible { outline-color: #0a1e4a; }

/* =====================================================================
   v7: Retro pop palette — Blush / Sky / Cobalt / Coral
   coral & sky are surfaces with navy text; cobalt carries hero surfaces
   ===================================================================== */
.brand-name { color: #84affb; }
.brand-name small { color: #ff6648; font-weight: 500; }
.progress { background: linear-gradient(90deg, var(--sky), var(--cobalt), var(--coral)); }

/* difficulty heat: easy sky, medium cobalt, hard coral */
.d-easy { background: var(--sky); color: var(--navy) !important; }
.d-medium { background: var(--cobalt); color: #fff; }
.d-hard { background: var(--coral); color: var(--navy) !important; }

/* selected / current states use sky */
.pal-item[aria-selected="true"] { background: var(--sky-soft); box-shadow: inset 3px 0 0 var(--cobalt); }
.nav-links a[aria-current="page"] { background: var(--sky-soft); color: var(--cobalt); box-shadow: inset 0 0 0 1px rgba(2,89,221,.18); }
.term .hl { background: var(--sky-soft); color: var(--cobalt); }
.rt span:last-child, .exploit em { background: var(--sky-soft); color: var(--cobalt); }
.sstep.on h3 span { background: var(--coral); color: var(--navy); }
.test.pass { background: var(--sky-soft); border-color: #c4d8fd; }
.att-dots i.p { background: var(--cobalt); box-shadow: none; }
.runrow b, .agent b { background: var(--sky-soft); color: var(--cobalt); }

/* hero */
.hero-glow { background: radial-gradient(closest-side, rgba(255,102,72,.22), rgba(132,175,251,.22) 55%, rgba(132,175,251,0)); }
.chip-float.c1 i { background: var(--coral); box-shadow: 0 0 0 4px var(--lime-soft); }
.chip-float.c2 i { background: var(--cobalt); box-shadow: 0 0 0 4px var(--sky-soft); }
.chip-float.c3 i { background: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.reward strong { color: var(--coral); }

/* coral client band */
.trust { background: var(--coral); }
.trust p { color: var(--navy); }
.trust .marquee-track span { color: rgba(10,30,74,.6); }

/* manifesto on cobalt */
.manifesto { background: radial-gradient(70% 90% at 100% 100%, rgba(255,102,72,.35), transparent 60%), radial-gradient(60% 70% at 0% 0%, rgba(132,175,251,.45), transparent 60%), var(--cobalt); }
.manifesto p { color: #ffffff; }
.manifesto-meta { color: #ffe1d7; }
.manifesto-meta .gauge { background: rgba(255,255,255,.22); }
.manifesto-meta .gauge i { background: var(--coral); }

/* bento */
.tile.env, .offer:nth-child(1) { background: radial-gradient(120% 90% at 100% 0%, rgba(2,89,221,.75) 0%, transparent 60%), linear-gradient(160deg, #10275c 0%, var(--navy) 100%); border-color: var(--navy); }
.tile.env a, .offer:nth-child(1) a { color: var(--coral); }
.tile.env p, .live { color: #cfe0fd; }
.layer:nth-child(3) { background: rgba(255,102,72,.16); border-color: rgba(255,102,72,.55); }
.layer:nth-child(3) b { color: var(--coral); }
.tile.env.spot.dark::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,102,72,.95), rgba(132,175,251,.35) 40%, transparent 60%); }
.tile.wide { background: #ff7a60; border-color: #ff7a60; }
.tile.wide .checks li::before { background-color: #ff7a60; }
.tile.wide .exploit em { background: var(--navy); color: var(--coral); }
.pref-knob { background: var(--coral); color: var(--navy); }
.chart .ln-b { stroke: var(--coral); opacity: 1; }
.legend span + span::before { background: var(--coral); }

/* stats on sky */
.stats-lime { background: var(--sky); }

/* story / verdict */
.story-rail i, .focus-rail .fg i { background: linear-gradient(180deg, var(--cobalt), var(--coral)); }
.verdict { background: var(--coral); color: var(--navy); }
.quoteblock { border-left-color: var(--coral); }
.quote-mark { background: var(--coral); color: var(--navy); }

/* cta on cobalt */
.cta { background: radial-gradient(90% 120% at 90% 100%, rgba(255,102,72,.55) 0%, transparent 60%), radial-gradient(70% 90% at 0% 0%, rgba(132,175,251,.55) 0%, transparent 60%), var(--cobalt); }
.cta p { color: #ffffff; }
.cta .btn-primary:hover { background: var(--navy); color: var(--coral); }

/* benchmarks + company */
tbody tr.lead { background: var(--lime-soft); }
tbody tr.lead td.rank::before { background: var(--coral); box-shadow: 0 0 0 3px var(--navy); }
.bar-track i { background: linear-gradient(90deg, var(--cobalt), var(--sky)); }
tbody tr.lead .bar-track i { background: linear-gradient(90deg, var(--cobalt), var(--coral)); }
.dist-card:nth-child(3) { background: var(--navy); border-color: var(--navy); }
.dist-card:nth-child(3) strong { color: var(--coral); }
.dist-card:nth-child(3) .meter i { background: var(--coral); }
.dist-card:nth-child(2) .meter i, .dist-card:nth-child(1) .meter i { background: var(--cobalt); }
.principles div::before { background: linear-gradient(90deg, var(--cobalt), var(--coral)); }
.expert-list span { background: var(--sky-soft); color: var(--cobalt); }
.chips input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--coral); }
.checks li::before { background-color: var(--coral); }
.domains span:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.page-hero .grid-bg { background-image: linear-gradient(rgba(2,89,221,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,102,72,.16) 1px, transparent 1px); }

/* cursor, rail, intro, footer */
.cursor-ring { border-color: var(--cobalt); }
.cursor-dot { background: var(--coral); }
.cursor.is-link .cursor-ring { background: rgba(132,175,251,.35); border-color: var(--cobalt); }
.cursor.is-label .cursor-ring { background: var(--coral); border-color: var(--coral); }
.cursor.is-label .cursor-label { color: var(--navy); }
.focus-rail button.on .fl { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.focus-rail button.on .fb { background: var(--cobalt); }
.intro { background: #ffe1d7; }
.intro-word { color: var(--navy); }
.intro-count { color: var(--cobalt); }
.wordmark { color: var(--coral); }
.foot a:hover { color: var(--brand-ink); background: none; }
.status i { background: var(--cobalt); box-shadow: 0 0 0 4px var(--sky-soft); }
.marquee:hover .marquee-track span:hover { color: var(--navy); }

/* ---------- additions: real-content pages ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.hero-pad { margin-top: 0; padding-bottom: clamp(56px, 8vw, 110px); }
.fact-card { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.fact-card p { color: var(--muted); }
.checks.inv li { color: #cfe0fd; }
.checks.inv li::before { background-color: rgba(255,255,255,.12); }
.band strong { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.contact-info dd a { color: var(--brand-ink); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- team ---------- */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.member { flex: 1 1 320px; max-width: 380px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 8px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.member:hover { transform: translateY(-4px); border-color: var(--sand-deep); box-shadow: 0 18px 40px -22px rgba(10,30,74,.35); }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: linear-gradient(135deg, #84affb, #0259dd); color: #fff; font: 600 1.4rem/1 var(--display); letter-spacing: .02em; box-shadow: 0 0 0 5px var(--brand-soft); }
.member.f .avatar { background: linear-gradient(135deg, #ff9a85, #ff6648); box-shadow: 0 0 0 5px #ffe1d7; }
.member h3 { font-size: 1.35rem; }
.member .role { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.member.f .role { color: #c8391c; }
.member .skills { font-size: .9rem; font-weight: 500; color: var(--ink); margin-top: 4px; }
.member .bio { color: var(--muted); font-size: .97rem; margin-top: 4px; }
.hobbies { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hobbies li { font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }
.member.f .hobbies li { background: #ffe1d7; color: #7a2412; }
@media (prefers-reduced-motion: reduce) { .member { transition: none; } .member:hover { transform: none; } }

/* footer links: only the text colour reacts (hover / tap / back-navigation) */
.foot a, .foot a:hover, .foot a:focus, .foot a:active, .foot a.recently-explored { background: none; background-color: transparent; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.foot a:hover, .foot a:active { color: var(--brand-ink); }

/* mobile menu: selected item is shown by text colour only (no box around it) */
@media (max-width: 960px) {
  .nav-links a[aria-current="page"] { box-shadow: none; outline: none; background: none !important; }
}
