/* ============================================================================
   SI — Systems Intelligence
   Visual system: dark graphite / deep navy, cyan-indigo-violet accents.
   Hand-authored. No frameworks, no external requests, no webfonts.
   ---------------------------------------------------------------------------
   01 tokens          06 marquee       11 portal
   02 reset & base    07 sections      12 footer
   03 ambient         08 capabilities  13 reveal & motion
   04 header / nav    09 rail          14 responsive
   05 hero            10 vision        15 a11y / reduced-motion / print
   ========================================================================= */

/* ---------------------------------------------------------------- 01 tokens */
:root {
  /* surfaces */
  --bg:         #04060b;
  --bg-1:       #06090f;
  --graphite:   #0b1018;
  --navy:       #081221;
  --navy-2:     #0a1729;

  /* hairlines */
  --line:        rgba(255, 255, 255, .075);
  --line-2:      rgba(255, 255, 255, .13);
  --line-3:      rgba(255, 255, 255, .22);

  /* type */
  --text:   #eef4fb;
  --text-2: #b6c3d5;
  --text-3: #8c9bb0;

  /* accents */
  --cyan:   #38ddf7;
  --cyan-d: #12b8d8;
  --indigo: #7078f7;
  --violet: #a98bfa;

  --accent: var(--cyan);

  --grad: linear-gradient(112deg, #38ddf7 0%, #7078f7 52%, #a98bfa 100%);
  --grad-text: linear-gradient(96deg, #dbeaff 0%, #b9c6ff 42%, #d6b8ff 100%);

  /* geometry */
  --radius:    18px;
  --radius-lg: 24px;
  --pill:      999px;
  --header-h:  68px;
  --shell:     1200px;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* motion */
  --ease:     cubic-bezier(.22, .68, .28, 1);
  --ease-out: cubic-bezier(.16, .84, .3, 1);

  --shadow-card: 0 30px 70px -40px rgba(0, 0, 0, .9);

  color-scheme: dark;
}

/* ------------------------------------------------------- 02 reset and base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: clamp(1rem, .96rem + .16vw, 1.0625rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 600; color: var(--text); }

::selection { background: rgba(56, 221, 247, .26); color: #fff; }

:focus-visible {
  outline: 2px solid #6ee7ff;
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 999;
  transform: translateY(-160%);
  padding: .6rem 1rem;
  border-radius: var(--pill);
  background: var(--graphite);
  border: 1px solid var(--line-2);
  font-size: .85rem;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.svg-defs { position: absolute; }

/* scrollbar (progressive enhancement, desktop) */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: #04060b; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56,221,247,.35), rgba(169,139,250,.35));
    border: 3px solid #04060b;
    border-radius: var(--pill);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(56,221,247,.6), rgba(169,139,250,.6));
    border: 3px solid #04060b;
  }
}

/* --------------------------------------------------------------- 03 ambient */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(20, 42, 74, .55) 0%, rgba(4, 6, 11, 0) 60%),
    linear-gradient(180deg, #04060b 0%, #05080e 42%, #04060b 100%);
}

.ambient-grid {
  position: absolute;
  inset: -10% -10% 0;
  background-image:
    linear-gradient(to right, rgba(140, 180, 230, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 180, 230, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(115% 95% at 50% 4%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
          mask-image: radial-gradient(115% 95% at 50% 4%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
  opacity: .75;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  /* No CSS blur here: these are already soft radial gradients, and a blur filter
     on a 60vw element forces re-rasterisation every time it is transformed. */
  will-change: transform;
}
.glow-a {
  width: 62vw; height: 62vw;
  top: -24vw; left: -12vw;
  background: radial-gradient(circle at 50% 50%, rgba(24, 116, 168, .30) 0%, rgba(24, 116, 168, 0) 62%);
  animation: drift-a 46s var(--ease) infinite alternate;
}
.glow-b {
  width: 54vw; height: 54vw;
  top: 6vw; right: -18vw;
  background: radial-gradient(circle at 50% 50%, rgba(86, 74, 205, .26) 0%, rgba(86, 74, 205, 0) 62%);
  animation: drift-b 58s var(--ease) infinite alternate;
}
.glow-c {
  width: 70vw; height: 46vw;
  bottom: -22vw; left: 18vw;
  background: radial-gradient(circle at 50% 50%, rgba(120, 70, 190, .20) 0%, rgba(120, 70, 190, 0) 64%);
  animation: drift-c 66s var(--ease) infinite alternate;
}

@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, 4vw, 0) scale(1.14); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-7vw, 6vw, 0) scale(.94); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(.96); } to { transform: translate3d(4vw, -5vw, 0) scale(1.1); } }

.ambient-grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* everything readable sits above the ambient layer */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------ 04 header/nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 6, 11, .58);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(4, 6, 11, .86);
  border-bottom-color: var(--line);
}

.progress {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: rgba(255,255,255,.05);
}
.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(56, 221, 247, .55);
  transition: width .12s linear;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  color: var(--cyan);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 10px rgba(56, 221, 247, .32));
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); filter: drop-shadow(0 0 14px rgba(56,221,247,.55)); }
.brand-text { display: flex; align-items: baseline; gap: .5rem; }
.brand-text strong {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-text > span {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .5rem .8rem;
  border-radius: var(--pill);
  font-size: .9rem;
  color: var(--text-2);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-idx {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--cyan);
  opacity: .65;
}
.nav-list a:hover .nav-idx { opacity: 1; }

/* buttons --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: var(--pill);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .35s var(--ease),
              border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--grad);
  color: #03121a;
  font-weight: 600;
  box-shadow: 0 12px 34px -14px rgba(56, 221, 247, .55),
              inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -16px rgba(56, 221, 247, .7),
              inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost, .btn-quiet {
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover, .btn-quiet:hover {
  color: var(--text);
  border-color: rgba(56, 221, 247, .45);
  background: rgba(56, 221, 247, .07);
  transform: translateY(-2px);
}
.btn-quiet { border-color: transparent; padding-inline: .6rem; }
.btn-quiet:hover { border-color: var(--line); background: rgba(255,255,255,.04); }

/* mobile toggle --------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  place-items: center;
}
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .2s linear, width .3s var(--ease);
}
.nav-toggle-bars i:first-child { top: 0; }
.nav-toggle-bars i:last-child { bottom: 0; width: 70%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-5.25px) rotate(-45deg); width: 100%; }

/* ---------------------------------------------------------------- 05 hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(4.5rem, 12vh, 8rem) clamp(5rem, 12vh, 9rem);
  isolation: isolate;
  overflow: hidden;
}

.hero-visual { position: absolute; inset: 0; z-index: 0; }
.mesh { width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease) .2s; }
.mesh.is-ready { opacity: 1; }
.hero-veil {
  position: absolute;
  inset: 0;
  /* The vignette lives here rather than in the canvas: the compositor paints
     it for free, and it keeps the headline legible over the mesh. */
  background:
    radial-gradient(50% 34% at 50% 54%, rgba(4, 6, 11, .68) 0%, rgba(4, 6, 11, .28) 58%, rgba(4, 6, 11, 0) 84%),
    radial-gradient(122% 104% at 50% 48%, rgba(4, 6, 11, 0) 38%, rgba(4, 6, 11, .45) 74%, rgba(4, 6, 11, .86) 100%),
    linear-gradient(180deg, rgba(4, 6, 11, .72) 0%, rgba(4, 6, 11, 0) 20%, rgba(4, 6, 11, .30) 76%, var(--bg) 98%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .95rem .45rem .7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow-mark {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 221, 247, .16), 0 0 14px rgba(56, 221, 247, .9);
  animation: pulse-dot 3.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(56,221,247,.16), 0 0 12px rgba(56,221,247,.75); }
  50%      { box-shadow: 0 0 0 6px rgba(56,221,247,.06), 0 0 22px rgba(56,221,247,1); }
}

.hero-title {
  font-size: clamp(2.6rem, 8.4vw, 6rem);
  line-height: .97;
  letter-spacing: -.038em;
  font-weight: 650;
  text-wrap: balance;
  /* drop-shadow, not text-shadow: text-shadow paints through clipped gradient
     glyphs (background-clip:text + transparent colour) and greys them out */
  filter: drop-shadow(0 3px 18px rgba(4, 6, 11, .82));
}
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; }

.grad {
  background: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: sheen 12s ease-in-out infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { color: #cfe0ff; }
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  line-height: 1.6;
  text-shadow: 0 1px 22px rgba(4, 6, 11, .8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin-top: .35rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .85rem;
  margin-top: 1.4rem;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-meta i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

/* hero entrance */
[data-hero] { opacity: 0; transform: translateY(20px); animation: hero-in 1.1s var(--ease-out) forwards; }
[data-hero="1"] { animation-delay: .12s; }
[data-hero="2"] { animation-delay: .26s; }
[data-hero="3"] { animation-delay: .38s; }
[data-hero="4"] { animation-delay: .54s; }
[data-hero="5"] { animation-delay: .68s; }
[data-hero="6"] { animation-delay: .96s; }
[data-hero="7"] { animation-delay: 1.08s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vh, 2rem);
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .5rem;
  color: var(--text-3);
  animation: hero-in 1s var(--ease-out) 1.1s forwards;
  opacity: 0;
}
.scroll-cue-line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--line-3) 40%, var(--cyan));
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 14px;
  background: var(--cyan);
  animation: cue-run 2.6s var(--ease) infinite;
}
@keyframes cue-run {
  0%   { transform: translateY(-16px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}
.scroll-cue-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.scroll-cue:hover { color: var(--text-2); }

/* ------------------------------------------------------------- 06 marquee */
.marquee-band {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0));
  padding-block: 1.05rem;
  overflow: hidden;
}
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  animation: marquee 48s linear infinite;
}
.marquee-band:hover .marquee-track,
.marquee-band:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .5;
}

/* ------------------------------------------------------------- 07 sections */
.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(8,18,33,0), rgba(8,18,33,.55) 30%, rgba(8,18,33,.55) 70%, rgba(8,18,33,0)); }

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 900px;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}
.section-idx {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section-idx span {
  color: var(--cyan);
  padding-right: .75rem;
  border-right: 1px solid var(--line-2);
}
.section-title {
  font-size: clamp(1.85rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.032em;
  font-weight: 600;
  text-wrap: balance;
}
.section-lede {
  color: var(--text-2);
  max-width: 62ch;
  font-size: clamp(1rem, .96rem + .22vw, 1.1rem);
}
.grad-soft {
  background: linear-gradient(96deg, #8ee9ff 0%, #a8b4ff 55%, #cbb0ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------- 08 capabilities */
.card-grid {
  display: grid;
  gap: clamp(.9rem, 1.6vw, 1.35rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
@media (min-width: 1120px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.05rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255,255,255,.052) 0%, rgba(255,255,255,.016) 42%, rgba(255,255,255,.006) 100%),
    linear-gradient(180deg, rgba(8,16,28,.7), rgba(6,9,15,.7));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 42%; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.34), transparent);
  opacity: .7;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 0; height: 1.5px;
  background: var(--grad);
  transition: width .6s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 40px 80px -46px rgba(56,221,247,.45); }
.card:hover::after { width: 100%; }

.card-glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
              rgba(56, 221, 247, .13), rgba(112, 120, 247, .08) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.card:hover .card-glow { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.012));
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover .card-icon {
  transform: translateY(-2px);
  border-color: rgba(56, 221, 247, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 30px -8px var(--accent);
}
.card:nth-child(3n+1) { --accent: var(--cyan); }
.card:nth-child(3n+2) { --accent: var(--indigo); }
.card:nth-child(3n)   { --accent: var(--violet); }

.card-title {
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: .55rem;
}
.card-copy { color: var(--text-2); font-size: .95rem; line-height: 1.58; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.card-copy { margin-bottom: 1.35rem; }
.card-tags span {
  padding: .22rem .6rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .63rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ 09 rail */
.rail-wrap { position: relative; }

.rail-line {
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.03), var(--line-2) 12%, var(--line-2) 88%, rgba(255,255,255,.03));
  overflow: hidden;
}
.rail-sweep {
  position: absolute;
  top: 0;
  width: 26%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56,221,247,.95), rgba(169,139,250,.9), transparent);
  filter: blur(.2px);
  animation: rail-run 7s var(--ease) infinite;
}
@keyframes rail-run {
  0%   { left: -26%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
  position: relative;
}
.stage { position: relative; padding-top: 4.4rem; display: flex; flex-direction: column; }
.stage::before {
  content: "";
  position: absolute;
  top: 30px; left: 4px;
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}
.stage-node {
  position: absolute;
  top: 22px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 221, 247, .12), 0 0 16px rgba(56, 221, 247, .75);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.stage:hover .stage-node {
  transform: scale(1.35);
  box-shadow: 0 0 0 7px rgba(56, 221, 247, .1), 0 0 26px rgba(56, 221, 247, 1);
}
.stage-idx {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--cyan);
  margin-bottom: .55rem;
}
.stage-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .55rem;
}
.stage-copy { color: var(--text-2); font-size: .94rem; }
.stage-list { margin-top: auto; padding-top: 1.1rem; display: grid; gap: .4rem; }
.stage-list li {
  position: relative;
  padding-left: 1rem;
  font-size: .82rem;
  color: var(--text-3);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .02em;
}
.stage-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 1px;
  background: var(--accent);
  opacity: .8;
}
.stage:nth-child(1) { --accent: var(--cyan); }
.stage:nth-child(2) { --accent: #59c8f5; }
.stage:nth-child(3) { --accent: var(--indigo); }
.stage:nth-child(4) { --accent: var(--violet); }

.loop { margin-top: clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.loop-svg { width: 100%; height: 68px; display: block; }
.loop-path { animation: loop-dash 18s linear infinite; stroke-dasharray: 9 11; }
@keyframes loop-dash { to { stroke-dashoffset: -320; } }
.loop-caption {
  display: grid;
  gap: .3rem;
  margin-top: -1.15rem;
  justify-items: center;
  font-size: .92rem;
  color: var(--text-3);
}
.loop-caption strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  /* the arc passes behind this label: a soft backdrop keeps it crisp */
  padding: .18rem 1.1rem;
  background: radial-gradient(closest-side, rgba(6,10,18,.96) 62%, rgba(6,10,18,0));
}
.loop-caption span { max-width: 52ch; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.principle { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.principle-key {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.principle p:last-child { color: var(--text-2); font-size: .95rem; }

/* ---------------------------------------------------------------- 10 vision */
.section-vision {
  background:
    radial-gradient(70% 60% at 18% 0%, rgba(16, 52, 92, .5) 0%, rgba(4,6,11,0) 62%),
    radial-gradient(60% 60% at 92% 100%, rgba(84, 60, 180, .32) 0%, rgba(4,6,11,0) 60%);
  border-block: 1px solid var(--line);
}
.vision-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 940px) {
  .vision-inner { grid-template-columns: 190px minmax(0, 1fr); align-items: start; }
  .vision-inner .section-idx { position: sticky; top: calc(var(--header-h) + 2rem); }
  .vision-inner > *:not(.section-idx) { grid-column: 2; }
}

.statement {
  font-size: clamp(1.4rem, 3.1vw, 2.45rem);
  line-height: 1.32;
  letter-spacing: -.024em;
  font-weight: 500;
  max-width: 44ch;
  color: var(--text);
  text-wrap: pretty;
}
.statement-quiet { font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: var(--text-2); max-width: 48ch; }
.statement .w { opacity: .14; transition: opacity .8s var(--ease); }
.statement.is-lit .w { opacity: 1; }

.vision-sign {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  min-width: min(100%, 320px);
}
.vision-mark { color: var(--cyan); filter: drop-shadow(0 0 12px rgba(56,221,247,.35)); }
.vision-sign-text { display: grid; gap: .1rem; }
.vision-sign-text strong { font-size: .96rem; }
.vision-sign-text span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- 11 portal */
.portal { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }

.portal-frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10,18,32,.85), rgba(5,8,14,.9));
  box-shadow: 0 60px 120px -70px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.portal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(56,221,247,.055) 50%, transparent 58%);
  transform: translateX(-60%);
  animation: portal-scan 9s var(--ease) infinite;
  pointer-events: none;
}
@keyframes portal-scan {
  0%, 55%  { transform: translateX(-70%); opacity: 0; }
  62%      { opacity: 1; }
  100%     { transform: translateX(70%); opacity: 0; }
}

.portal-chrome {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.portal-chrome .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.portal-chrome .dot:first-child { background: rgba(56,221,247,.5); }
.portal-title {
  margin-left: .7rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-3);
}
.portal-badge {
  margin-left: auto;
  padding: .2rem .55rem;
  border: 1px solid rgba(169,139,250,.35);
  border-radius: var(--pill);
  background: rgba(169,139,250,.1);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cbb0ff;
}

.portal-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  min-height: 280px;
}
.portal-side { display: grid; gap: .85rem; align-content: start; }
.portal-main { display: grid; gap: .85rem; align-content: start; }
.portal-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }

.sk {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.045), rgba(255,255,255,.10), rgba(255,255,255,.045));
  background-size: 220% 100%;
  animation: shimmer 4.2s linear infinite;
}
.sk-line { height: 9px; }
.sk-block { height: 62px; border-radius: 10px; }
.sk-block.tall { height: 104px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -220% 0; } }

.portal-note {
  padding: 0 1.1rem 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.tiles {
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.tile { padding-top: 1.15rem; border-top: 1px solid var(--line); transition: border-color .4s var(--ease); }
.tile:hover { border-top-color: rgba(56,221,247,.4); }
.tile-idx {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-bottom: .7rem;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .66rem;
  color: var(--cyan);
}
.tile h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .45rem; }
.tile p { color: var(--text-2); font-size: .91rem; }

.next-close { margin-top: clamp(2rem, 4vw, 3rem); color: var(--text-3); font-size: .95rem; }
.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(56,221,247,.5);
  text-underline-offset: 4px;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
.link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---------------------------------------------------------------- 12 footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,10,17,0), rgba(6,10,17,.85) 45%);
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
}
.footer-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.footer-brand { display: flex; align-items: flex-start; gap: .9rem; }
.footer-brand .brand-mark { color: var(--cyan); }
.footer-wordmark { font-weight: 600; letter-spacing: -.015em; }
.footer-tag {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: .3rem;
}
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 2rem; }
.footer-head {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .95rem;
}
.footer-nav ul { display: grid; gap: .5rem; }
.footer-nav a { color: var(--text-2); font-size: .92rem; transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--cyan); }
.footer-nav span { color: var(--text-3); font-size: .88rem; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .67rem;
  letter-spacing: .1em;
  color: var(--text-3);
}
.footer-note { text-transform: uppercase; }

/* -------------------------------------------------- 13 reveal and motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { --d: 1; }
[data-delay="2"] { --d: 2; }
[data-delay="3"] { --d: 3; }
[data-delay="4"] { --d: 4; }
[data-delay="5"] { --d: 5; }

/* ------------------------------------------------------------ 14 responsive */
@media (max-width: 1080px) {
  .nav-idx { display: none; }
}

@media (max-width: 900px) {
  .brand-text > span { display: none; }
}

@media (max-width: 900px) {
  .rail { grid-template-columns: 1fr; gap: 0; }
  .rail-line { display: none; }
  .stage {
    padding: 1.6rem 0 1.6rem 2.2rem;
    border-bottom: 1px solid var(--line);
  }
  .stage:last-child { border-bottom: 0; }
  .stage::before {
    top: 0; bottom: 0; left: 4px;
    width: 1px; height: auto;
    background: linear-gradient(180deg, var(--line-2), var(--line), transparent);
  }
  .stage-node { top: 2.1rem; left: 0; }
  .loop-svg { display: none; }
  .loop-caption { margin-top: 1.5rem; }
  .portal-body { grid-template-columns: 1fr; }
  .portal-side { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    align-content: start;
    gap: 0;
    padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3rem;
    background: rgba(4, 6, 11, .93);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
            backdrop-filter: blur(22px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { display: grid; gap: .25rem; width: 100%; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    width: 100%;
    padding: 1.15rem .25rem;
    border-radius: 0;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--text);
  }
  .nav-list a:hover { background: none; color: var(--cyan); }
  .nav-idx { display: inline; font-size: .7rem; }
  .nav-cta { margin-top: 2rem; }
  .nav-cta .btn { width: 100%; padding: 1rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .hero { min-height: 92svh; }
  /* the field is wider than a phone viewport: keep the copy crisp over it */
  .hero-veil {
    background:
      radial-gradient(64% 24% at 50% 58%, rgba(4, 6, 11, .82) 0%, rgba(4, 6, 11, .52) 58%, rgba(4, 6, 11, 0) 88%),
      linear-gradient(180deg, rgba(4, 6, 11, .74) 0%, rgba(4, 6, 11, 0) 16%, rgba(4, 6, 11, .42) 72%, var(--bg) 98%);
  }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: .6rem; font-size: .62rem; }
  .portal-tiles { grid-template-columns: repeat(2, 1fr); }
  .portal-side { display: none; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-text strong { font-size: 1rem; }
  .hero-title { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .portal-badge { display: none; }
}

/* --------------------------------------------- 15 a11y / reduced / print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-hero] { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .mesh { opacity: 1; }
  .statement .w { opacity: 1; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-contrast: more) {
  :root { --text-2: #cdd8e6; --text-3: #a9b8c9; --line: rgba(255,255,255,.18); }
}

@media print {
  .ambient, .hero-visual, .marquee-band, .site-header, .scroll-cue { display: none; }
  body { background: #fff; color: #111; }
  .card, .portal-frame { border-color: #ccc; box-shadow: none; }
  [data-reveal], [data-hero] { opacity: 1; transform: none; }
}

/* ============================================================================
   V2.1 additions — knowledge pages, long-form typography, unused contact styles.
   Appended rather than rewritten so the V2 visual system above stays intact.
   ---------------------------------------------------------------------------
   16 subpage hero      19 q&a / details   22 pathway cards
   17 long-form prose   20 contact styles (unused)  23 small utilities
   18 on-this-page      21 prev/next
   ========================================================================= */

/* -------------------------------------------------- 16 subpage hero + crumbs */
.page-hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60vw; height: 40vw;
  background: radial-gradient(circle at 50% 50%, rgba(56, 221, 247, .13), rgba(112, 120, 247, .07) 45%, transparent 70%);
  pointer-events: none;
}
.page-hero .shell { position: relative; display: grid; gap: clamp(.9rem, 1.8vw, 1.4rem); max-width: 900px }
.page-hero .hero-title { font-size: clamp(2.1rem, 5.6vw, 3.9rem) }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-size: .78rem; color: var(--text-3) }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem }
.crumbs li { display: flex; align-items: center; gap: .55rem }
.crumbs li + li::before { content: "/"; color: var(--line-3) }
.crumbs a { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(56,221,247,.35); text-underline-offset: 3px }
.crumbs a:hover { color: var(--cyan) }
.crumbs [aria-current="page"] { color: var(--text) }

.lede { color: var(--text-2); font-size: clamp(1.05rem, .98rem + .4vw, 1.28rem); line-height: 1.62; max-width: 62ch }

/* ----------------------------------------------------- 17 long-form prose */
.prose { display: grid; gap: clamp(1rem, 2vw, 1.5rem); max-width: 74ch }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.028em;
  font-weight: 600;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0 }
.prose h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  letter-spacing: -.02em;
  font-weight: 600;
  margin-top: 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose p { color: var(--text-2); font-size: 1rem; line-height: 1.75 }
.prose p strong, .prose li strong { color: var(--text) }
.prose ul, .prose ol { display: grid; gap: .55rem; color: var(--text-2); padding-left: 0 }
.prose ul li, .prose ol li { position: relative; padding-left: 1.35rem; line-height: 1.65 }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 7px; height: 1px; background: var(--accent, var(--cyan)); opacity: .85;
}
.prose ol { counter-reset: item }
.prose ol li { counter-increment: item; padding-left: 2rem }
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem; color: var(--cyan); letter-spacing: .08em;
}
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(56,221,247,.45); text-underline-offset: 4px }
.prose a:hover { color: var(--cyan) }
.prose blockquote {
  border-left: 1px solid var(--line-2);
  padding: .35rem 0 .35rem 1.25rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: clamp(1rem, 2vw, 1.75rem) 0 }

.note {
  display: grid; gap: .5rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(56,221,247,.06), rgba(112,120,247,.03) 60%, transparent);
  color: var(--text-2);
  font-size: .95rem;
}
.note strong { color: var(--text) }
.note-flag {
  border-color: rgba(169,139,250,.32);
  background: linear-gradient(160deg, rgba(169,139,250,.09), rgba(112,120,247,.03) 60%, transparent);
}

/* ------------------------------------------------ 18 on-this-page + layout */
.doc-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem) }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr) 230px; align-items: start }
  .doc-layout > .toc { grid-column: 2; grid-row: 1 }
  .doc-layout > .doc-main { grid-column: 1; grid-row: 1 }
}
.toc { display: grid; gap: .7rem }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 2rem) } }
.toc-head {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.toc ol { display: grid; gap: .1rem }
.toc a { display: block; padding: .35rem 0; font-size: .88rem; color: var(--text-2); border-left: 1px solid var(--line); padding-left: .8rem; transition: color .25s var(--ease), border-color .25s var(--ease) }
.toc a:hover { color: var(--text); border-color: var(--line-3) }
.toc a.is-current { color: var(--cyan); border-color: var(--cyan) }

.cap-block { display: grid; gap: .9rem; padding-top: clamp(1.75rem, 3.5vw, 2.75rem); border-top: 1px solid var(--line) }
.cap-block:first-of-type { padding-top: 0; border-top: 0 }
.cap-block .cap-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap }
.cap-block .cap-head h2 { margin: 0 }
.cap-block .card-icon { margin: 0; width: 48px; height: 48px }
.cap-tags { display: flex; flex-wrap: wrap; gap: .4rem }
.in-practice {
  display: grid; gap: .5rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent, var(--cyan));
  border-radius: 0 12px 12px 0;
  background: rgba(255,255,255,.02);
}
.in-practice strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent, var(--cyan));
}
.in-practice p { margin: 0; color: var(--text-2); font-size: .95rem }

/* ---------------------------------------------------- 19 questions section */
.qa { display: grid; gap: .75rem }
.qa details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.qa details[open] { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)) }
.qa summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-size: 1.02rem; font-weight: 550; letter-spacing: -.012em; color: var(--text);
}
.qa summary::-webkit-details-marker { display: none }
.qa summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--cyan); border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.qa details[open] summary::after { transform: rotate(-135deg); margin-top: -2px }
.qa summary:hover { color: var(--cyan) }
.qa .qa-body { padding: 0 1.2rem 1.15rem; color: var(--text-2); font-size: .97rem; line-height: 1.7; display: grid; gap: .7rem }
.qa .qa-body a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(56,221,247,.45); text-underline-offset: 4px }

/* ---------------------------------- 20 contact styles (kept, currently unused)
   No verified public contact destination exists, so no contact block is rendered.
   These rules are retained for the moment one does — see docs/KNOWLEDGE-MAINTENANCE.md. */
.contact {
  display: grid; gap: 1rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.contact-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap }
.contact-head h2, .contact-head h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -.02em }
.contact p { color: var(--text-2); font-size: .97rem; max-width: 62ch }
.contact-slot {
  display: grid; gap: .55rem;
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56,221,247,.10), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.contact-label {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.contact-value {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 550;
  letter-spacing: -.01em; text-transform: none; word-break: break-word;
}
.contact-value a {
  color: var(--cyan); text-decoration: none;
  border-bottom: 1px solid rgba(56,221,247,.35); padding-bottom: 1px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact-value a:hover { color: #7ce9ff; border-color: rgba(56,221,247,.85) }
.contact-note {
  margin: 0; max-width: 58ch;
  font-size: .92rem; line-height: 1.6; letter-spacing: 0; text-transform: none;
  color: var(--text-3);
}
.contact-slot .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px rgba(169,139,250,.8) }

/* ---------------------------------------------------------- 21 prev / next */
.doc-nav { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: clamp(2.5rem, 5vw, 3.5rem) }
.doc-nav a {
  display: grid; gap: .3rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.doc-nav a:hover { transform: translateY(-3px); border-color: rgba(56,221,247,.4); background: rgba(56,221,247,.05) }
.doc-nav .dir { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan) }
.doc-nav .ttl { font-size: 1.02rem; font-weight: 550; color: var(--text) }
.doc-nav .sub { font-size: .85rem; color: var(--text-3) }
.doc-nav .next { text-align: right }

/* -------------------------------------------------------- 22 pathway cards */
.pathway { display: grid; gap: clamp(.9rem, 1.8vw, 1.35rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) }
.path-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: .6rem;
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 55%, rgba(255,255,255,.006));
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.path-card:hover { transform: translateY(-4px); border-color: rgba(56,221,247,.4); background: linear-gradient(165deg, rgba(56,221,247,.07), rgba(255,255,255,.012) 60%) }
.path-card .cap {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
}
.path-card h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em }
.path-card p { color: var(--text-2); font-size: .94rem; flex: 1 }
.path-card .go { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--text); margin-top: .35rem }
.path-card:hover .go { color: var(--cyan) }
.path-card .go svg { transition: transform .35s var(--ease) }
.path-card:hover .go svg { transform: translateX(3px) }

/* ------------------------------------------------------ 23 small utilities */
.jump {
  display: flex; flex-wrap: wrap; gap: .5rem .35rem; align-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
/* On wide screens the sticky "on this page" rail already covers this, so the
   chips would just duplicate it. Below 1000px the rail sits under the content,
   where these chips are the only quick navigation. */
.page-hero .jump { display: none; }
@media (max-width: 1000px) { .page-hero .jump { display: flex; } }
.jump a { padding: .32rem .7rem; border: 1px solid var(--line); border-radius: var(--pill); color: var(--text-2); transition: color .25s var(--ease), border-color .25s var(--ease) }
.jump a:hover { color: var(--cyan); border-color: rgba(56,221,247,.45) }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem) }
[id] { scroll-margin-top: calc(var(--header-h) + 20px) }
.footer-nav a[aria-current="page"] { color: var(--cyan) }
