/* Caligo site — premium, institutional privacy-protocol aesthetic.
   Matte navy-black, restrained violet/cyan accents, low glow. Oxanium (display) + Inter (body). */
:root {
  --violet: #7c5cff; --violet-deep: #6a47e6; --teal: #3ad8d0; --teal-soft: #74e6df;
  --bg: #06070f; --bg-2: #080a16;
  --surface: rgba(18, 20, 38, 0.5); --surface-2: rgba(24, 27, 50, 0.42);
  --line: rgba(150, 162, 220, 0.10); --line-strong: rgba(150, 162, 220, 0.18);
  --text: #f1f3fb; --text-dim: #c9cfe9; --text-mute: #7f86ae;
  /* restrained accent gradient — used sparingly */
  --grad: linear-gradient(118deg, var(--violet) 0%, var(--teal) 100%);
  --grad-btn: linear-gradient(125deg, #7c5cff 0%, #5f78ec 100%);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Oxanium", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; font-family: var(--sans); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; letter-spacing: -0.005em; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(124, 92, 255, 0.32); color: #fff; }

/* ---- background: matte, low-glow ---- */
.bg { position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(740px 560px at 52% 52%, rgba(0,0,0,0.20), transparent 64%),
    radial-gradient(1120px 730px at 14% -12%, rgba(124,92,255,0.10), transparent 66%),
    radial-gradient(1060px 710px at 100% 114%, rgba(58,216,208,0.05), transparent 64%),
    radial-gradient(860px 580px at 88% -4%, rgba(124,92,255,0.032), transparent 66%),
    var(--bg); }
.bg::before { content: ""; position: absolute; inset: 0; opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath fill='none' stroke='%238fa0d8' stroke-opacity='0.08' stroke-width='1' d='M14 0 L42 0 L56 24 L42 48 L14 48 L0 24 Z'/%3E%3C/svg%3E");
  background-size: 56px 48px; mask-image: radial-gradient(1300px 900px at 50% 0%, #000 28%, transparent 78%); }
.bg::after { content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: 0.62;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.22'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
    linear-gradient(112deg, transparent 0 31%, rgba(173,145,255,0.085) 35%, transparent 40%, transparent 52%, rgba(99,232,224,0.060) 56%, transparent 62%),
    radial-gradient(ellipse at 20% 43%, transparent 0 31%, rgba(151,119,255,0.060) 39%, transparent 50%),
    radial-gradient(ellipse at 78% 66%, transparent 0 30%, rgba(91,226,219,0.052) 38%, transparent 50%),
    linear-gradient(112deg, transparent 0 20%, rgba(124,92,255,0.095) 38%, rgba(58,216,208,0.048) 49%, transparent 68%),
    linear-gradient(154deg, transparent 0 28%, rgba(255,255,255,0.034) 43%, transparent 58%),
    radial-gradient(ellipse at 18% 42%, rgba(124,92,255,0.07), transparent 45%),
    radial-gradient(ellipse at 78% 66%, rgba(58,216,208,0.043), transparent 44%),
    radial-gradient(ellipse at 52% 50%, rgba(0,0,0,0.24), transparent 52%),
    linear-gradient(18deg, transparent 0 38%, rgba(0,0,0,0.30) 58%, transparent 76%);
  background-size: 220px 220px, 152% 152%, 100% 100%, 100% 100%, 146% 146%, 126% 126%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 42% 46%, 0 0, 0 0, 42% 46%, 50% 50%, 0 0, 0 0, 0 0, 0 0;
  background-blend-mode: overlay, screen, screen, screen, screen, soft-light, screen, screen, multiply, normal;
  filter: blur(10px) saturate(132%) contrast(108%);
  transform: translate3d(-1.8%,-1%,0) scale(1.04);
  will-change: opacity, transform;
  animation: cinematic-veil 42s ease-in-out infinite alternate; }
@keyframes cinematic-veil {
  0% { opacity: 0.50; transform: translate3d(-2.1%,-1.1%,0) scale(1.035); }
  48% { opacity: 0.66; transform: translate3d(0.3%,0.1%,0) scale(1.05); }
  100% { opacity: 0.56; transform: translate3d(1.4%,0.9%,0) scale(1.06); }
}

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-soft); margin: 0 0 18px; font-weight: 500; }

/* ---- header ---- */
.nav-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav-bar.solid { background: rgba(6,7,15,0.72); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent url("./assets/caligo-mark.png") center / 114% 114% no-repeat;
  border: 0;
  flex-shrink: 0;
}
.word { font-family: var(--display); font-weight: 600; letter-spacing: 0.32em; font-size: 17px; text-transform: uppercase; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--teal-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 9px; letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav .link { font-size: 14px; color: var(--text-mute); font-weight: 500; transition: color 0.2s; position: relative; }
.nav .link:hover, .nav .link[aria-current="page"] { color: var(--text); }
.nav .link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--violet); border-radius: 2px; }
.nav-toggle { display: none; width: 42px; height: 42px; flex-shrink: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle i, .nav-toggle::before, .nav-toggle::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle i { top: 50%; transform: translateY(-50%); }
.nav-toggle::before { top: 14px; }
.nav-toggle::after { bottom: 14px; }
.nav-toggle.open i { opacity: 0; }
.nav-toggle.open::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
@media (max-width: 880px) {
  .tag { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(8, 9, 18, 0.97); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -22px rgba(0,0,0,0.75);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav .link { padding: 12px; border-radius: 9px; font-size: 15px; }
  .nav .link:hover, .nav .link[aria-current="page"] { background: rgba(150, 162, 220, 0.06); }
  .nav .link[aria-current="page"]::after { display: none; }
  .nav .btn.primary { margin-top: 6px; justify-content: center; padding: 12px; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 11px 19px; border-radius: 11px;
  cursor: pointer; transition: transform 0.16s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-2); }
.btn.primary { background: var(--grad-btn); border: 1px solid rgba(255,255,255,0.12); color: #fff; box-shadow: 0 2px 12px rgba(108,92,230,0.16); }
.btn.primary:hover { box-shadow: 0 6px 20px rgba(108,92,230,0.24); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); }
.btn.lg { padding: 13px 24px; font-size: 14.5px; border-radius: 12px; }

/* ---- hero (premium, balanced) ---- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-visual { order: -1; max-width: 380px; } }
.hero h1 { font-family: var(--display); font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; margin: 0; font-weight: 600; letter-spacing: -0.015em; }
.hero .lede { color: var(--text-dim); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.68; margin: 24px 0 0; max-width: 500px; }
.cta-row { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); margin-top: 28px; letter-spacing: 0.04em; }
.hero-visual { width: 100%; }
/* entrance */
.enter { opacity: 0; transform: translateY(16px); animation: enter 0.9s var(--ease) forwards; }
.enter.d1 { animation-delay: 0.06s; } .enter.d2 { animation-delay: 0.15s; } .enter.d3 { animation-delay: 0.26s; }
.enter.d4 { animation-delay: 0.37s; } .enter.d5 { animation-delay: 0.48s; } .enter.dv { animation-delay: 0.30s; }
@keyframes enter { to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mute); opacity: 0; animation: enter 1s var(--ease) 0.9s forwards; }
.scroll-cue i { width: 1px; height: 32px; background: linear-gradient(var(--teal-soft), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 0.9; } }

/* ---- sections + scroll reveal ---- */
.section { padding: clamp(72px, 11vh, 124px) 0; position: relative; }
.statement { font-family: var(--display); font-size: clamp(26px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.14; margin: 12px 0 0; max-width: 15ch; }
.statement.wide { max-width: 22ch; }
.lede { color: var(--text-dim); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; margin: 22px 0 0; max-width: 58ch; }

/* public-vs-shielded ledger — flat technical visual for the problem section */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; max-width: 720px; }
@media (max-width: 600px) { .ledger { grid-template-columns: 1fr; } }
.ledger .col { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); }
.ledger .col.priv { border-color: rgba(124,92,255,0.20); }
.ledger .lbl { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.ledger .col.priv .lbl { color: var(--teal-soft); }
.ledger .lbl .st { letter-spacing: 0.12em; color: var(--text-mute); }
.ledger .ln { display: flex; gap: 10px; font-family: var(--mono); font-size: 12.5px; margin-top: 11px; }
.ledger .ln .k { width: 62px; flex-shrink: 0; color: var(--text-mute); }
.ledger .ln .v { color: var(--text-dim); }
.ledger .hid { color: var(--text-mute); letter-spacing: 0.14em; }
.ledger .col.priv .ln .v { color: var(--teal-soft); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.left { transform: translateY(26px); } .reveal.left.in { transform: none; }
.reveal.right { transform: translateY(26px); } .reveal.right.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .enter, .scroll-cue { opacity: 1 !important; transform: none !important; animation: none !important; }
  .bg::after { transform: none !important; animation: none !important; }
}

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.narrow { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 880px) { .split, .split.narrow { grid-template-columns: 1fr; gap: 38px; } }

/* numbered rows */
.rows { margin-top: 22px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row .n { font-family: var(--mono); font-size: 14px; color: var(--violet); padding-top: 4px; }
.row h3 { font-family: var(--display); font-size: clamp(18px, 2.1vw, 22px); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.row p { color: var(--text-dim); font-size: 15px; margin: 9px 0 0; max-width: 62ch; line-height: 1.65; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* flow diagram — calmer */
.flow { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 46px; flex-wrap: wrap; }
.flow .node { position: relative; flex: 1; min-width: 130px; text-align: center; z-index: 1; }
.flow .dot { width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--teal-soft);
  transition: transform 0.5s var(--ease); }
.flow .dot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.flow.in .dot { animation: pop 0.6s var(--ease) backwards; }
.flow.in .node:nth-child(3) .dot { animation-delay: 0.1s; } .flow.in .node:nth-child(4) .dot { animation-delay: 0.2s; } .flow.in .node:nth-child(5) .dot { animation-delay: 0.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flow .node b { font-family: var(--display); display: block; font-size: 15px; font-weight: 600; }
.flow .node small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.flow .node span.cap { display: block; color: var(--text-mute); font-size: 13px; margin-top: 9px; line-height: 1.55; }
.flow-line { position: absolute; top: 25px; left: 9%; right: 9%; height: 1px; background: var(--line); z-index: 0; overflow: hidden; }
.flow-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet), var(--teal)); opacity: 0.55; transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease) 0.2s; }
.flow.in .flow-line::after { transform: scaleX(1); }
@media (max-width: 640px) { .flow-line { display: none; } .flow { gap: 28px; } }

/* emission split bar */
.emit-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); margin-top: 28px; background: var(--surface); }
.emit-bar i { display: block; height: 100%; width: 0; transition: width 1.3s var(--ease) var(--d, 0s); }
.emit-bar.in i.a { width: 55%; } .emit-bar.in i.b { width: 15%; } .emit-bar.in i.c { width: 30%; }
.emit-legend { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 22px; }
.emit-legend div { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.emit-legend b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.emit-legend strong { font-family: var(--display); display: block; font-size: clamp(26px, 3.4vw, 38px); color: var(--text); font-weight: 600; line-height: 1; margin-bottom: 7px; letter-spacing: -0.01em; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 46px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding-top: 16px; border-top: 1px solid var(--line); }
.stat .v { font-family: var(--display); font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.stat .k { font-family: var(--mono); font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 7px; }

/* principles */
.principles { margin-top: 10px; }
.principle { padding: 22px 0; border-top: 1px solid var(--line); }
.principle h3 { font-family: var(--display); font-size: clamp(17px, 2vw, 21px); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.principle p { color: var(--text-dim); font-size: 15px; margin: 9px 0 0; max-width: 64ch; line-height: 1.65; }

/* timeline */
.timeline { margin-top: 30px; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.tl { position: relative; padding: 0 0 40px 16px; }
.tl::before { content: ""; position: absolute; left: -28px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text-mute); }
.tl.done::before { background: var(--violet); border-color: var(--violet); }
.tl .when { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-soft); }
.tl h3 { font-family: var(--display); font-size: clamp(18px, 2.1vw, 22px); font-weight: 600; margin: 7px 0 0; letter-spacing: -0.01em; }
.tl p { color: var(--text-dim); font-size: 15px; margin: 9px 0 0; max-width: 62ch; line-height: 1.65; }

/* CTA band — institutional */
.cta-band { position: relative; text-align: center; padding: clamp(48px, 6.5vw, 74px) 26px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(124,92,255,0.04), rgba(58,216,208,0.018)), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 30px 60px -40px rgba(0,0,0,0.7); }
.cta-band::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 1px; background: linear-gradient(90deg, transparent, rgba(124,92,255,0.34), transparent); }
.cta-band h2 { font-family: var(--display); font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; margin: 0; letter-spacing: -0.018em; }
.cta-band p { color: var(--text-dim); margin: 16px auto 28px; max-width: 480px; font-size: 16px; line-height: 1.65; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 34px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; flex-wrap: wrap; gap: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-mark { width: 24px; height: 24px; }
.footer .word { font-size: 13px; }
.footer-links a { color: var(--text-mute); margin-left: 22px; font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.fine { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.02em; }

/* ---- public/private flow (protocol page) ---- */
.ppflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; margin-top: 40px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
@media (max-width: 760px) { .ppflow { grid-template-columns: 1fr; } }
.ppflow .pp { padding: 26px 24px; display: flex; flex-direction: column; }
.ppflow .pp.mid { background: rgba(124, 92, 255, 0.05); }
.ppflow .pp .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.ppflow .pp.priv .lbl { color: var(--teal-soft); }
.ppflow .pp h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 14px 0 0; letter-spacing: -0.01em; }
.ppflow .pp p { color: var(--text-mute); font-size: 13.5px; line-height: 1.55; margin: 8px 0 0; }
.ppflow .pp code { font-family: var(--mono); font-size: 12px; background: rgba(150, 162, 220, 0.10); padding: 1px 5px; border-radius: 5px; color: var(--text-dim); }
.ppflow .arr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 0 6px; min-width: 94px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
@media (max-width: 760px) { .ppflow .arr { flex-direction: row; gap: 16px; min-width: 0; padding: 10px 0; border: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } }
.ppflow .arr span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--violet); white-space: nowrap; }
.ppflow .arr span.dim { color: var(--text-mute); }

/* ---- docs ---- */
.docs { display: grid; grid-template-columns: 224px 1fr; gap: 56px; align-items: start; padding: 116px 0 40px; }
@media (max-width: 920px) { .docs { grid-template-columns: 1fr; gap: 0; padding-top: 96px; } .docs-nav { display: none; } }
.docs-nav { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; padding-right: 8px; }
.docs-nav .group { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin: 22px 0 9px; }
.docs-nav .group:first-child { margin-top: 0; }
.docs-nav a { display: block; font-size: 13.5px; color: var(--text-mute); padding: 6px 0 6px 13px; border-left: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.docs-nav a:hover { color: var(--text-dim); }
.docs-nav a.active { color: var(--text); border-left-color: var(--violet); }
.docs-main { min-width: 0; max-width: 768px; padding-bottom: 70px; }
.docs-main .doc-intro { font-size: 18px; color: var(--text-dim); line-height: 1.7; margin: 6px 0 0; }
.doc-sec { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.doc-sec:first-of-type { border-top: none; padding-top: 18px; }
.doc-sec h2 { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.doc-sec h3 { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 28px 0 0; letter-spacing: -0.01em; }
.doc-sec p { color: var(--text-dim); font-size: 15.5px; line-height: 1.72; margin: 14px 0 0; }
.doc-sec ul { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; margin: 13px 0 0; padding-left: 20px; }
.doc-sec li { margin: 7px 0; }
.doc-sec b { color: var(--text); font-weight: 600; }
code, .code { font-family: var(--mono); font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--teal-soft); }
.codeblock { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--text-dim); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 16px 0 0; overflow-x: auto; white-space: pre; }
.codeblock .c { color: var(--text-mute); }
.codeblock .v { color: var(--violet); }
.doc-table { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 13.5px; }
.doc-table td, .doc-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-table th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; }
.doc-table td.addr { font-family: var(--mono); font-size: 12px; color: var(--teal-soft); word-break: break-all; }
.callout { border: 1px solid var(--line); border-left: 2px solid var(--violet); border-radius: 8px; padding: 14px 16px; margin: 18px 0 0; font-size: 14px; color: var(--text-dim); line-height: 1.6; background: var(--surface); }
.callout b { color: var(--text); }
