/* ============================================================
   GaonSphere — Sovereign OS for personal injury firms
   Brand-book palette · hybrid light/dark
   ============================================================ */

:root {
  /* Brand */
  --navy:   #0A1838;  /* Sphere Navy — dark sections */
  --deep:   #050C1F;  /* Deep Core */
  --signal: #2E7BFF;  /* Signal Blue — primary accent (light) */
  --cyan:   #5EE4FF;  /* Luminous Cyan — glow / logo core only */
  --mist:   #F2F6FF;

  /* Light body */
  --paper:  #F5F6F3;
  --white:  #FFFFFF;
  --ink:    #141C2E;
  --muted:  #51607A;
  --hair-l: #DFE4EC;   /* hairline on light */
  --hair-d: rgba(94,228,255,0.14); /* hairline on dark */

  /* Accent-on-dark (cyan reads better than signal on navy for text) */
  --accent-d: #6FCBFF;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1240px;
  --gutter-d: 80px;
  --gutter-t: 48px;
  --gutter-m: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.022em; margin: 0; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--signal); text-decoration: none; }
a:hover { color: #1A5FE0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter-d); }
@media (max-width: 1280px) { .shell { padding: 0 var(--gutter-t); } }
@media (max-width: 768px)  { .shell { padding: 0 var(--gutter-m); } }

/* ------------------------------------------------------------
   Section shells — dark & light
   ------------------------------------------------------------ */
.sec { padding: 128px 0; position: relative; }
@media (max-width: 768px) { .sec { padding: 84px 0; } }

.sec-dark {
  background: var(--navy);
  color: var(--mist);
}
.sec-dark h1, .sec-dark h2, .sec-dark h3, .sec-dark h4 { color: #FFFFFF; }
.sec-light { background: var(--paper); color: var(--ink); }
.sec-white { background: var(--paper); color: var(--ink); }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow .mono { color: var(--signal); }
.sec-dark .eyebrow .mono { color: var(--accent-d); }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.5; }

.sec h2 { font-size: clamp(30px, 3.7vw, 46px); max-width: 20ch; }
.lede { font-size: 18px; max-width: 56ch; margin-top: 20px; color: var(--muted); }
.sec-dark .lede { color: #A9BBD6; }

/* ------------------------------------------------------------
   Reveal (stagger fade)
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 3px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #1A5FE0; color: #fff; }
.sec-dark .btn-primary, .btn-primary.on-dark { background: var(--signal); color: #fff; box-shadow: 0 0 0 1px rgba(94,228,255,0.25), 0 8px 30px rgba(46,123,255,0.35); }
.sec-dark .btn-primary:hover, .btn-primary.on-dark:hover { background: #4A8CFF; color: #fff; }

.btn-ghost { color: var(--ink); border: 1px solid var(--hair-l); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.on-dark.btn-ghost, .sec-dark .btn-ghost { color: var(--mist); border: 1px solid rgba(255,255,255,0.22); }
.on-dark.btn-ghost:hover, .sec-dark .btn-ghost:hover { border-color: var(--accent-d); color: var(--accent-d); }

.link-underline { position: relative; display: inline-block; font-weight: 500; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform-origin: left center; transform: scaleX(0); transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
.link-underline:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------
   Logo mark
   ------------------------------------------------------------ */
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.mark.lg { width: 40px; height: 40px; }
.mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wordmark { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.wordmark .a { color: #fff; }
.wordmark .b { color: var(--cyan); }
.sec-light .wordmark .a, .sec-white .wordmark .a { color: var(--ink); }
.sec-light .wordmark .b, .sec-white .wordmark .b { color: var(--signal); }

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease; background: transparent; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10,24,56,0.82); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--hair-d); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; color: #B7C7E2; transition: color 180ms ease; }
.nav-links a:hover { color: #fff; }
.nav-links .btn-primary { margin-left: 6px; padding: 10px 18px; }
@media (max-width: 900px) { .nav-links a:not(.btn) { display: none; } }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero { padding: 176px 0 128px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; left: 50%; width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(46,123,255,0.28), rgba(94,228,255,0.08) 34%, transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 940px; }
.hero-mark { width: 96px; height: 96px; margin-bottom: 36px; filter: drop-shadow(0 0 26px rgba(94,228,255,0.45)); }
.hero-mark img { width: 100%; height: 100%; object-fit: contain; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 600; color: #fff; max-width: 15ch; }
.hero h1 .accent { color: var(--cyan); }
.hero-sub { color: #B7C7E2; font-size: 19px; max-width: 50ch; margin-top: 26px; }
.hero-cta { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { margin-top: 60px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-meta-item { color: #7E92B4; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-meta-item b { color: var(--accent-d); font-weight: 500; }
@media (max-width: 768px) { .hero { padding: 132px 0 84px; } .hero-mark { width: 72px; height: 72px; } }

/* ------------------------------------------------------------
   Stats (wedge)
   ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.stat { border-top: 1px solid var(--hair-l); padding-top: 24px; }
.sec-dark .stat { border-top-color: var(--hair-d); }
.stat-num { font-family: var(--font-head); font-size: clamp(52px, 6vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.sec-dark .stat-num { color: #fff; }
.stat-num .u { color: var(--signal); }
.sec-dark .stat-num .u { color: var(--cyan); }
.stat-label { color: var(--muted); margin-top: 16px; font-size: 16px; max-width: 32ch; }
.sec-dark .stat-label { color: #A9BBD6; }
.stat-src { color: #97A4BA; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 16px; }
.stats-foot { margin-top: 46px; color: #97A4BA; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; gap: 38px; } }

/* ------------------------------------------------------------
   Sovereignty moat
   ------------------------------------------------------------ */
.moat-head { max-width: 24ch; }
.moat-line { font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1.02; color: #fff; }
.moat-line .cy { color: var(--cyan); }
.moat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 60px; background: var(--hair-d); border: 1px solid var(--hair-d); }
.moat-card { background: var(--navy); padding: 34px 30px 38px; position: relative; }
.moat-card .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--cyan); }
.moat-card h3 { font-size: 21px; font-weight: 600; margin: 18px 0 12px; color: #fff; letter-spacing: -0.01em; }
.moat-card p { color: #A9BBD6; font-size: 15px; line-height: 1.6; }
.moat-foot { margin-top: 48px; display: flex; align-items: flex-start; gap: 16px; padding: 26px 30px; border: 1px solid var(--hair-d); border-left: 2px solid var(--cyan); background: rgba(94,228,255,0.04); }
.moat-foot .mono { color: var(--cyan); white-space: nowrap; padding-top: 3px; }
.moat-foot p { color: #C9D6EE; font-size: 16px; max-width: 70ch; }
.moat-foot p b { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .moat-grid { grid-template-columns: 1fr; } .moat-foot { flex-direction: column; gap: 10px; } }

/* ------------------------------------------------------------
   Mechanism — inside / outside (divider grow)
   ------------------------------------------------------------ */
.mech { display: grid; grid-template-columns: 1fr 1px 1fr; margin-top: 60px; }
.mech-col { padding: 6px 52px; }
.mech-col.left { padding-left: 0; }
.mech-col.right { padding-right: 0; }
.mech-divider { position: relative; }
.mech-divider::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; background: var(--signal); height: var(--grow, 0%); transform: translate(-50%,-50%); transition: height 850ms cubic-bezier(.2,.7,.2,1); }
.mech-divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%,-50%) rotate(45deg); background: var(--signal); opacity: var(--dot, 0); transition: opacity 500ms ease 450ms; }
.mech.in .mech-divider { --grow: 100%; --dot: 1; }
.mech-tag { color: var(--signal); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.mech-h { font-family: var(--font-head); font-size: 28px; font-weight: 600; margin: 16px 0; letter-spacing: -0.02em; }
.mech-p { color: var(--muted); font-size: 17px; max-width: 38ch; }
.mech-list { margin-top: 26px; padding: 0; list-style: none; display: grid; gap: 13px; }
.mech-list li { display: grid; grid-template-columns: 14px 1fr; gap: 13px; align-items: start; font-size: 15px; color: var(--ink); }
.mech-list li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; background: var(--signal); border-radius: 50%; }
.mech-list.hollow li::before { background: transparent; border: 1px solid var(--signal); }
@media (max-width: 900px) {
  .mech { grid-template-columns: 1fr; }
  .mech-col { padding: 0; }
  .mech-divider { height: 1px; margin: 46px 0; }
  .mech-divider::before { width: var(--grow,0%); height: 1px; }
  .mech.in .mech-divider { --grow: 100%; }
}

/* ------------------------------------------------------------
   Products
   ------------------------------------------------------------ */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 56px; background: var(--hair-l); border: none; }
.product { background: var(--mist); padding: 40px; display: flex; flex-direction: column; min-height: 340px; transition: background 200ms ease; }
.product:target { background: var(--white); outline: 1px solid var(--signal); outline-offset: -1px; animation: flash 1600ms ease-out; }
@keyframes flash { 0%,55% { box-shadow: inset 0 0 0 2px var(--signal); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-name { font-family: var(--font-head); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.product-name b { color: var(--signal); }
.product-status { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; border: 1px solid var(--hair-l); white-space: nowrap; }
.product-status.live { color: #0B8A4B; border-color: #9AD9B7; background: #EAF7F0; }
.product-status.is-link { cursor: pointer; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.product-status.live.is-link:hover { background: #0B8A4B; border-color: #0B8A4B; color: #fff; }
.product-tag { color: var(--signal); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 24px; }
.product-desc { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-top: 13px; max-width: 46ch; flex: 1; }
.product-editions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.edition { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); padding: 5px 10px; background: var(--mist); border: 1px solid var(--hair-l); }
.product-foot { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 5px 9px; border: 1px solid var(--hair-l); }
.chip.key { color: var(--signal); border-color: var(--signal); }
.product-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.product-note b { color: var(--ink); font-weight: 600; }
@media (max-width: 768px) { .products-grid { grid-template-columns: 1fr; } .product { padding: 32px 24px; min-height: auto; } }

/* ------------------------------------------------------------
   Roadmap
   ------------------------------------------------------------ */
.roadmap { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair-d); border: 1px solid var(--hair-d); }
.phase { background: var(--navy); padding: 28px 24px 32px; position: relative; min-height: 230px; display: flex; flex-direction: column; }
.phase-marker { position: absolute; left: 24px; top: -1px; width: 24px; height: 2px; background: #46608F; }
.phase.active .phase-marker { background: var(--cyan); animation: pulse 2.2s ease-in-out infinite; }
.phase-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: #7E92B4; }
.phase-when { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent-d); margin-top: 6px; }
.phase.active .phase-when { color: var(--cyan); }
.phase-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin-top: 18px; color: #fff; }
.phase-desc { color: #A9BBD6; font-size: 14px; margin-top: 10px; flex: 1; }
@keyframes pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } .phase { min-height: auto; } }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta { text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(46,123,255,0.3), transparent 55%); pointer-events: none; }
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); margin: 0 auto; max-width: 18ch; }
.cta p { color: #B7C7E2; font-size: 18px; margin: 20px auto 34px; max-width: 46ch; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Closed-beta CTA, left-aligned + light tint (index / product / roadmap) — sibling of the roadmap block */
.cta-left { text-align: left; }
.cta-left::before { display: none; }
.cta-left .cta-inner { max-width: 640px; margin: 0; }
.cta-left .eyebrow { justify-content: flex-start; }
.cta-left .eyebrow .mono { color: var(--cyan); }
.cta-left h2 { margin: 0; max-width: 20ch; }
.cta-left p { color: #B7C7E2; margin: 20px 0 34px; max-width: 46ch; }
.cta-left .cta-actions { justify-content: flex-start; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { background: var(--deep); color: #93A4C4; padding: 72px 0 44px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.footer .wordmark .a { color: #fff; } .footer .wordmark .b { color: var(--cyan); }
.footer-tag { color: #93A4C4; font-size: 14px; margin-top: 16px; max-width: 30ch; line-height: 1.6; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #6A7C9C; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: #93A4C4; font-size: 14px; transition: color 180ms ease; }
.footer ul a:hover { color: var(--cyan); }
.footer-founder { margin-top: 20px; font-size: 14px; line-height: 1.7; }
.footer-founder b { color: #fff; font-weight: 600; }
.footer-founder a { color: var(--accent-d); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-disclaimer { color: #7E90AE; font-size: 12px; max-width: 62ch; line-height: 1.65; }
.footer-disclaimer b { color: #C9D6EE; font-weight: 600; }
.footer-copy { color: #5F718F; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   MULTI-PAGE COMPONENTS
   ============================================================ */

/* Page head (dark, shorter than hero) */
.phead { padding: 168px 0 96px; position: relative; overflow: hidden; }
.phead::before { content: ""; position: absolute; top: -30%; left: 62%; width: 760px; height: 760px; transform: translateX(-50%); background: radial-gradient(circle, rgba(46,123,255,0.22), rgba(94,228,255,0.06) 36%, transparent 62%); pointer-events: none; }
.phead-inner { position: relative; max-width: 900px; }
.phead h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -0.03em; color: #fff; max-width: 17ch; }
.phead h1 .accent { color: var(--cyan); }
.phead .lede { color: #B7C7E2; font-size: 19px; max-width: 52ch; margin-top: 24px; }
@media (max-width: 768px) { .phead { padding: 128px 0 72px; } }

/* Arrow link */
.arrow-link { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--signal); }
.arrow-link .ar { transition: transform 200ms ease; }
.arrow-link:hover .ar { transform: translateX(4px); }
.sec-dark .arrow-link { color: var(--accent-d); }

/* Product overview cards as links (index) */
a.product { color: inherit; }
a.product:hover { background: var(--mist); }
a.product .go { margin-top: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); display: inline-flex; align-items: center; gap: 7px; }
a.product:hover .go .ar { transform: translateX(4px); }
a.product .go .ar { transition: transform 200ms ease; }

/* Teaser two-up (index one-core-four-eyes) */
.teaser-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.teaser-card { border-top: 2px solid var(--signal); padding-top: 22px; }
.teaser-card .mech-tag { color: var(--signal); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.teaser-card h3 { font-size: 22px; font-weight: 600; margin: 12px 0 10px; letter-spacing: -0.01em; }
.teaser-card p { color: var(--muted); font-size: 16px; max-width: 42ch; }
@media (max-width: 760px) { .teaser-two { grid-template-columns: 1fr; gap: 32px; } }

/* Deep product blocks (product.html) */
.pblock { display: grid; grid-template-columns: 320px 1fr; gap: 60px; padding: 76px 0; border-top: 1px solid var(--hair-l); align-items: start; }
.pblock:first-of-type { border-top: none; padding-top: 8px; }
.p-aside { position: sticky; top: 104px; }
.p-aside .product-name { font-size: 34px; }
.p-aside .product-status { display: inline-block; margin-top: 16px; }
.p-aside .product-status.is-link { cursor: pointer; }
.p-aside .p-tag { color: var(--signal); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 16px; }
.p-body > p { font-size: 18px; color: var(--ink); max-width: 62ch; }
.p-body > p + p { margin-top: 18px; }
.p-body .muted { color: var(--muted); }
.p-body .mech-list { margin-top: 26px; }
.p-body .product-editions { margin-top: 24px; }
.p-body .product-foot { margin-top: 22px; }
.callout { border: 1px solid var(--hair-l); border-left: 2px solid var(--signal); background: var(--mist); padding: 22px 24px; margin-top: 26px; }
.callout .mono { color: var(--signal); }
.callout h4 { font-size: 17px; font-weight: 600; margin: 8px 0 8px; }
.callout p { color: var(--muted); font-size: 15px; max-width: 60ch; }
@media (max-width: 860px) { .pblock { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; } .p-aside { position: static; } }

/* Packages (roadmap.html) */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair-l); border: 1px solid var(--hair-l); margin-top: 52px; }
.package { background: var(--white); padding: 40px; display: flex; flex-direction: column; }
.package .mono { color: var(--signal); }
.package h3 { font-size: 26px; font-weight: 600; margin: 14px 0 8px; letter-spacing: -0.02em; }
.package .p-for { color: var(--muted); font-size: 15px; }
.package ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.package li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--ink); }
.package li::before { content: ""; width: 7px; height: 7px; margin-top: 7px; background: var(--signal); border-radius: 50%; }
.package.pkg-2 li:nth-child(n+4)::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(94,228,255,0.18); }
.package-note { margin-top: 32px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
@media (max-width: 760px) { .packages { grid-template-columns: 1fr; } }

/* Thesis (about.html) */
.thesis-line { font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 3.8vw, 46px); letter-spacing: -0.025em; line-height: 1.08; max-width: 20ch; }
.thesis-line .accent { color: var(--signal); }
.thesis-sub { color: var(--muted); font-size: 18px; max-width: 56ch; margin-top: 24px; }

/* Prose (about origin) */
.prose { max-width: 64ch; }
.prose p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 20px; }
.prose b { color: var(--ink); font-weight: 600; }

/* Principles (about) */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair-l); border: 1px solid var(--hair-l); margin-top: 48px; }
.principle { background: var(--white); padding: 34px 32px; }
.principle .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--signal); }
.principle h3 { font-size: 20px; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 44ch; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Founder signature block (about) */
.signature { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.signature .mark { width: 44px; height: 44px; }
.signature .sig-name { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: #fff; }
.signature .sig-role { color: #93A4C4; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }

/* ============================================================
   NAVIGATION AIDS (progress bar · back-to-top · hero chevron · smooth)
   ============================================================ */

/* Smooth in-page anchoring + nav-height offset */
:root { --nav-h: 74px; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 26px); }
section[id], article[id], .pblock[id] { scroll-margin-top: calc(var(--nav-h) + 26px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 900px) { :root { --nav-h: 74px; } }

/* Gentle proximity snap — landing page only (body.snap) */
body.snap { scroll-snap-type: y proximity; }
body.snap main > section { scroll-snap-align: start; }

/* Scroll-progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 60; pointer-events: none;
  background: rgba(46,123,255,0.14);
}
.scroll-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--signal), var(--cyan));
  transform-origin: left center;
}

/* Back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--hair-l);
  box-shadow: 0 8px 26px rgba(20,28,46,0.16);
  opacity: 0; transform: translateY(10px) scale(0.94); pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--signal); color: var(--signal); }
.to-top.on-dark {
  background: rgba(10,24,56,0.7); color: var(--cyan);
  border-color: rgba(94,228,255,0.4);
  box-shadow: 0 0 0 1px rgba(94,228,255,0.15), 0 8px 30px rgba(0,0,0,0.4), 0 0 22px rgba(94,228,255,0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.to-top.on-dark:hover { color: #fff; border-color: var(--cyan); }
.to-top svg { width: 18px; height: 18px; display: block; }

/* Hero / page-head scroll affordance */
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 2; display: grid; place-items: center; gap: 6px;
  color: #8FB0DF; opacity: 0.9;
  transition: opacity 400ms ease;
}
.scroll-cue .txt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.scroll-cue svg { width: 20px; height: 20px; animation: cueBounce 1.8s ease-in-out infinite; }
.scroll-cue.hide { opacity: 0; pointer-events: none; }
@keyframes cueBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
@media (max-width: 768px) { .scroll-cue { display: none; } }
