/* ---------- Tokens ---------- */
:root {
  /* Named palette */
  --night: #07103A;        /* Backbone: hero + deep bands */
  --ultramarine: #2B44E6;  /* Signal: primary accent */
  --photon: #8BEAFF;       /* Light-in-fiber: highlights on dark */
  --frost: #F3F5FB;        /* Light ground */
  --ink: #0C1433;          /* Text */
  --steel: #4F5A7A;        /* Secondary text */

  /* Light theme (default) */
  --ground: var(--frost);
  --surface: #FFFFFF;
  --text: var(--ink);
  --text-2: var(--steel);
  --rule: #D6DCEB;
  --rule-strong: #AEB8D0;
  --field-bg: #FFFFFF;
  --field-border: #7D89A8;
  --link: var(--ultramarine);
  --accent: var(--ultramarine);
  --accent-press: #2238C9;
  --accent-ink: var(--ultramarine);
  --band: var(--night);
  --band-deep: #050B29;
  --band-text: #F1F4FF;
  --band-text-2: #B9C4E8;
  --band-rule: rgba(185, 196, 232, 0.18);
  --panel: #FFFFFF;
  --panel-text: var(--ink);
  --panel-text-2: var(--steel);
  --seg-bg: #E8EDF9;
  --seg-on: #FFFFFF;
  --tint: #E8EDF9;
  --header-bg: rgba(243, 245, 251, 0.84);
  --focus: var(--ultramarine);
  --focus-ring: rgba(43, 68, 230, 0.22);
  --error: #C0262D;
  --creator-ink: #0A6784;
  --creator-bg: rgba(10, 103, 132, 0.1);
  --brand-bg: rgba(43, 68, 230, 0.09);
  --route: #AEB8D0;
  --thread: #4E6BFF;
  --thread-glow: rgba(78, 107, 255, 0.2);
  --thread-soft: rgba(78, 107, 255, 0.5);
  --thread-track: rgba(78, 107, 255, 0.24);
  --card-home: linear-gradient(180deg, #142A4E 0%, #0C1943 100%);
  --shadow-panel: 0 30px 80px -40px rgba(3, 8, 32, 0.75);

  /* Fixed in both themes: the dark "fiber" bands */
  --hero-text: #F1F4FF;
  --hero-text-2: #B9C4E8;

  /* Type: one family, three widths */
  --ff: "Archivo", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --fs-label: 0.8125rem;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.3vw, 3rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.625rem);

  --gutter: clamp(20px, 4vw, 48px);
  --seam: 92px;
  --rail: 0px;
  --rail-line: 0px;
  --maxw: 1240px;
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #070E2B;
    --surface: #0E1839;
    --text: #E7ECFA;
    --text-2: #A2ADCB;
    --rule: #1E2A55;
    --rule-strong: #34427A;
    --field-bg: #0A1330;
    --field-border: #5F6D99;
    --link: #8FA2FF;
    --accent: #3A56F5;
    --accent-press: #4B66FF;
    --accent-ink: #8FA2FF;
    --band: #0B1850;
    --band-deep: #040A22;
    --band-text: #E7ECFA;
    --band-text-2: #A9B4D2;
    --band-rule: rgba(169, 180, 210, 0.2);
    --panel: #0E1839;
    --panel-text: #E7ECFA;
    --panel-text-2: #A2ADCB;
    --seg-bg: #070E2B;
    --seg-on: #25336A;
    --tint: #0B1437;
    --header-bg: rgba(7, 14, 43, 0.82);
    --focus: #8BEAFF;
    --focus-ring: rgba(139, 234, 255, 0.28);
    --error: #FF8A8F;
    --creator-ink: #8BEAFF;
    --creator-bg: rgba(139, 234, 255, 0.1);
    --brand-bg: rgba(143, 162, 255, 0.12);
    --route: #34427A;
    --thread: #7D93FF;
    --thread-glow: rgba(125, 147, 255, 0.18);
    --thread-soft: rgba(125, 147, 255, 0.5);
    --thread-track: rgba(125, 147, 255, 0.26);
    --card-home: linear-gradient(180deg, #182E64 0%, #0E1C56 100%);
    --shadow-panel: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --ground: #070E2B;
    --surface: #0E1839;
    --text: #E7ECFA;
    --text-2: #A2ADCB;
    --rule: #1E2A55;
    --rule-strong: #34427A;
    --field-bg: #0A1330;
    --field-border: #5F6D99;
    --link: #8FA2FF;
    --accent: #3A56F5;
    --accent-press: #4B66FF;
    --accent-ink: #8FA2FF;
    --band: #0B1850;
    --band-deep: #040A22;
    --band-text: #E7ECFA;
    --band-text-2: #A9B4D2;
    --band-rule: rgba(169, 180, 210, 0.2);
    --panel: #0E1839;
    --panel-text: #E7ECFA;
    --panel-text-2: #A2ADCB;
    --seg-bg: #070E2B;
    --seg-on: #25336A;
    --tint: #0B1437;
    --header-bg: rgba(7, 14, 43, 0.82);
    --focus: #8BEAFF;
    --focus-ring: rgba(139, 234, 255, 0.28);
    --error: #FF8A8F;
    --creator-ink: #8BEAFF;
    --creator-bg: rgba(139, 234, 255, 0.1);
    --brand-bg: rgba(143, 162, 255, 0.12);
    --route: #34427A;
    --thread: #7D93FF;
    --thread-glow: rgba(125, 147, 255, 0.18);
    --thread-soft: rgba(125, 147, 255, 0.5);
    --thread-track: rgba(125, 147, 255, 0.26);
    --card-home: linear-gradient(180deg, #182E64 0%, #0E1C56 100%);
    --shadow-panel: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--ff);
  font-size: var(--fs-body);
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: rgba(139, 234, 255, 0.45); color: var(--ink); }

.sprite { position: absolute; }

/* ---------- 404 ---------- */
.nf-body {
  background: var(--band);
  color: var(--band-text);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.nf {
  max-width: 34rem;
  text-align: center;
}
.nf-mark {
  width: 56px;
  height: 56px;
  color: var(--band-text);
  margin-bottom: 26px;
}
.nf h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.nf p {
  color: var(--band-text-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 26px;
}
.nf .btn-primary {
  margin: 0;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -120px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The seam: a centre column the line of light runs down. Content lives on
   either side of it and never crosses it. */
.seam {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--seam) minmax(0, 1fr);
  align-items: start;
}
.seam > .col-l { grid-column: 1; }
.seam > .col-m { grid-column: 2; }
.seam > .col-r { grid-column: 3; }
.node-slot { display: grid; justify-items: center; align-items: center; }

@media (max-width: 999px) {
  :root { --rail: 40px; --rail-line: 15px; }
  .wrap { padding-left: calc(var(--gutter) + var(--rail)); }
  .seam { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .seam > .col-l, .seam > .col-m, .seam > .col-r { grid-column: 1; justify-self: start !important; text-align: left !important; }
  .node-slot { justify-items: start; }
}

/* ---------- Type ---------- */
.display {
  font-stretch: 125%;
  font-weight: 720;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h2 {
  font-stretch: 118%;
  font-weight: 680;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h3 {
  font-stretch: 112%;
  font-weight: 640;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.label {
  font-stretch: 78%;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text-2);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}
.flow > * + * { margin-top: var(--flow, 1rem); }

/* ---------- Buttons ---------- */
@property --trace {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ff);
  font-stretch: 108%;
  font-weight: 620;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.004em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* Primary: lift, glow, and a light sweep */
.btn-primary {
  overflow: hidden;
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px -14px rgba(43, 68, 230, 0.8);
}
.btn-primary:hover {
  background: var(--accent-press);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 36px -16px rgba(43, 68, 230, 0.95),
    0 0 0 4px rgba(139, 234, 255, 0.16);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.36) 48%, rgba(255, 255, 255, 0) 64%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { animation: vf-sheen 0.85s var(--ease-out); }
@keyframes vf-sheen { to { transform: translateX(130%); } }

/* Secondary: a pulse of light traces the outline */
.btn-ghost, .btn-outline { background: transparent; }
.btn-ghost {
  color: var(--hero-text);
  border-color: rgba(241, 244, 255, 0.3);
  background: rgba(241, 244, 255, 0.04);
  --trace-color: var(--photon);
}
.btn-ghost:hover { border-color: rgba(241, 244, 255, 0.5); background: rgba(241, 244, 255, 0.08); }
.btn-outline {
  color: var(--text);
  border-color: var(--rule-strong);
  --trace-color: var(--accent);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost::before, .btn-outline::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--trace), transparent 0deg 230deg, var(--trace-color) 300deg, #FFFFFF 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.btn-ghost:hover::before, .btn-outline:hover::before,
.btn-ghost:focus-visible::before, .btn-outline:focus-visible::before {
  opacity: 1;
  animation: vf-trace 1.5s linear infinite;
}
@keyframes vf-trace { to { --trace: 360deg; } }

.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  --h-fg: var(--hero-text);
  --h-fg-2: #C6CEEC;
  color: var(--h-fg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.site-header.is-solid {
  --h-fg: var(--text);
  --h-fg-2: var(--text-2);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--rule);
}
.site-header.menu-open { --h-fg: var(--hero-text); --h-fg-2: #C6CEEC; background: var(--night); border-bottom-color: transparent; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--h-fg);
  text-decoration: none;
  font-stretch: 120%;
  font-weight: 740;
  font-size: 1.1875rem;
  letter-spacing: -0.012em;
  --node: var(--photon);
}
.site-header.is-solid .brand { --node: var(--accent); }
.site-header.menu-open .brand { --node: var(--photon); }
.brand:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  color: var(--h-fg-2);
  text-decoration: none;
  font-stretch: 104%;
  font-weight: 540;
  font-size: 0.9688rem;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--photon));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--h-fg); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 1.15em; font-size: 0.9375rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(198, 206, 236, 0.35);
  border-radius: 12px;
  background: transparent;
  color: var(--h-fg);
  cursor: pointer;
  touch-action: manipulation;
}
.site-header.is-solid:not(.menu-open) .nav-toggle { border-color: var(--rule-strong); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
.nav-toggle .close { display: none; }
.menu-open .nav-toggle .open { display: none; }
.menu-open .nav-toggle .close { display: block; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--night);
  color: var(--hero-text);
  padding: 24px var(--gutter) 40px;
}
.mobile-menu ul { list-style: none; display: grid; gap: 4px; }
.mobile-menu li a {
  display: block;
  padding: 14px 0;
  color: var(--hero-text);
  text-decoration: none;
  font-stretch: 120%;
  font-weight: 660;
  font-size: 1.625rem;
  letter-spacing: -0.012em;
  border-bottom: 1px solid rgba(185, 196, 232, 0.14);
}
.mobile-menu li a[aria-current="page"] { color: var(--photon); }
.mobile-menu .menu-actions { display: grid; gap: 12px; margin-top: 28px; }

@media (max-width: 979px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
}

/* ---------- Pages + transitions ---------- */
.page { display: block; }
.page.is-leaving { animation: vf-leave 0.2s cubic-bezier(0.4, 0, 1, 1) both; }
@keyframes vf-leave { to { opacity: 0; transform: translateY(-12px); } }
.page.is-entering { animation: vf-enter 0.54s cubic-bezier(0.25, 0.8, 0.25, 1) both; }
@keyframes vf-enter {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 calc(100% - 100vh) 0); }
}
.scan {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(139, 234, 255, 0), var(--photon) 18%, #FFFFFF 50%, var(--photon) 82%, rgba(139, 234, 255, 0));
  box-shadow: 0 0 16px 2px rgba(139, 234, 255, 0.65), 0 0 64px 10px rgba(43, 68, 230, 0.4);
}
.scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 140px;
  background: linear-gradient(180deg, rgba(139, 234, 255, 0), rgba(139, 234, 255, 0.12));
}
.scan.run { animation: vf-scan 0.54s cubic-bezier(0.25, 0.8, 0.25, 1) both; }
@keyframes vf-scan {
  0% { opacity: 1; transform: translateY(0); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh); }
}

/* ---------- Dark "fiber" bands ---------- */
.dark-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--hero-text);
  background:
    radial-gradient(52% 62% at 16% 88%, rgba(38, 66, 200, 0.6) 0%, rgba(38, 66, 200, 0) 72%),
    radial-gradient(46% 60% at 88% 16%, rgba(28, 50, 160, 0.45) 0%, rgba(28, 50, 160, 0) 70%),
    linear-gradient(180deg, #0A1446 0%, #060D33 100%);
}
.dark-top::after {
  /* fine grain so the gradient reads as a material, not a flat fill */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fiber { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.scrim { position: absolute; inset: 0; z-index: -2; pointer-events: none; }

/* ---------- Home: hero ---------- */
.hero { padding-block: calc(var(--header-h) + clamp(56px, 8vw, 116px)) clamp(150px, 15vw, 214px); }
.hero .scrim {
  background: linear-gradient(180deg, rgba(7, 16, 58, 0.72) 0%, rgba(7, 16, 58, 0.45) 45%, rgba(7, 16, 58, 0.1) 100%);
}
.hero-inner { position: relative; row-gap: 30px; }
.hero-aside { display: grid; gap: 26px; justify-items: start; max-width: 30em; padding-top: 0.6em; }
.hero-title { max-width: 12em; color: var(--hero-text); }
.hero-lead { color: var(--hero-text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.motion-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(185, 196, 232, 0.24);
  border-radius: 999px;
  background: rgba(7, 16, 58, 0.5);
  color: #C6CEEC;
  font-stretch: 86%;
  font-weight: 560;
  font-size: var(--fs-small);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.motion-toggle:focus, .motion-toggle:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
.motion-toggle:hover { border-color: rgba(185, 196, 232, 0.5); color: #FFFFFF; }
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle .play { display: none; }
.motion-toggle.is-paused .play { display: block; }
.motion-toggle.is-paused .pause { display: none; }

@media (max-width: 719px) {
  .hero { padding-bottom: 168px; }
  .motion-toggle { left: auto; right: var(--gutter); }
  .hero .scrim {
    background: linear-gradient(180deg, rgba(7, 16, 58, 0.86) 0%, rgba(7, 16, 58, 0.6) 58%, rgba(7, 16, 58, 0.1) 100%);
  }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); scroll-margin-top: var(--header-h); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.band { background: var(--band); color: var(--band-text); }
.band .lead { color: var(--band-text-2); }
.band a:not(.btn) { color: var(--photon); }

/* Services */
.services-head { row-gap: 36px; margin-bottom: clamp(44px, 5vw, 72px); }
.services-head .col-l { display: grid; gap: 20px; }
.stat {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.stat-num {
  font-stretch: 125%;
  font-weight: 780;
  font-size: clamp(3rem, 2.3rem + 2.6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.stat figcaption { color: var(--text-2); max-width: 30em; }
.stat .src { display: block; margin-top: 8px; font-stretch: 86%; font-size: var(--fs-small); }
.service-list { list-style: none; display: grid; }
.service { align-items: stretch; }
.service > .col-l, .service > .col-r {
  border-top: 1px solid var(--rule);
  padding-block: 26px 30px;
}
.service-main { display: grid; gap: 8px; }
.service-main p { color: var(--text-2); }
.service .why { color: var(--text); font-size: 0.9688rem; line-height: 1.55; }
.service .why .label { display: block; margin-bottom: 4px; color: var(--accent-ink); }
.service-icon {
  position: relative;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--accent-ink);
  transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.service-icon.lit {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 5px var(--brand-bg), 0 10px 24px -12px var(--thread-soft);
}

@media (max-width: 999px) {
  .service > .col-m { order: -1; border-top: 1px solid var(--rule); padding-top: 24px; }
  .service > .col-l { border-top: 0; padding-block: 0 6px; }
  .service > .col-r { border-top: 0; padding-block: 0 28px; }
  .service { row-gap: 10px; }
}

/* Niche */
.niche h2 { color: var(--band-text); }
.niche-head { row-gap: 20px; margin-bottom: clamp(36px, 4vw, 56px); }
.niche-core { display: grid; justify-items: center; margin-bottom: clamp(22px, 2.6vw, 34px); }
.niche-core .discipline { width: min(100%, 466px); }
.disciplines { row-gap: clamp(20px, 2.4vw, 30px); }
.disciplines > .col-l { justify-self: end; }
.disciplines > .col-r { justify-self: start; }
.disciplines .discipline { width: min(100%, 448px); }
.discipline {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 24px 26px;
  border: 1px solid var(--band-rule);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}
.discipline.is-home {
  border-color: rgba(139, 234, 255, 0.45);
  background: var(--card-home);
}
.discipline-icon {
  width: 34px;
  height: 34px;
  color: var(--photon);
  transition: filter 0.6s ease, transform 0.6s var(--ease-out);
}
.discipline-icon.lit { filter: drop-shadow(0 0 12px rgba(139, 234, 255, 0.75)); transform: scale(1.06); }
.discipline h3 { font-size: 1.3125rem; color: var(--band-text); }
.discipline > p { color: var(--band-text-2); font-size: 0.9688rem; line-height: 1.55; }
.discipline .who { color: var(--band-text); font-size: 0.875rem; line-height: 1.5; }
.discipline .who .label { display: block; margin-bottom: 2px; color: var(--photon); }
.niche-foot { row-gap: 28px; margin-top: clamp(36px, 4.5vw, 56px); }
.niche-foot .label { margin-bottom: 12px; color: var(--band-text-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-stretch: 92%;
  font-size: var(--fs-small);
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--band-rule);
  color: var(--band-text);
  background: rgba(255, 255, 255, 0.03);
}
.platforms ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.platforms li { color: var(--band-text); font-stretch: 104%; font-weight: 540; font-size: 0.9375rem; }

/* Process: a real sequence, so it reads down the seam */
.process-head { row-gap: 20px; margin-bottom: clamp(36px, 4vw, 52px); }
.route { list-style: none; display: grid; }
.hop { align-items: stretch; }
.hop-body { display: grid; gap: 8px; padding-block: 18px 22px; width: min(100%, 27rem); }
.hop > .col-l.hop-body { justify-self: end; text-align: right; }
.hop > .col-r.hop-body { justify-self: start; }
.hop p { color: var(--text-2); font-size: 0.9688rem; line-height: 1.55; }
.hop .out { color: var(--text); }
.hop .out .label { display: block; margin-bottom: 2px; color: var(--accent-ink); }
.hop .node-slot { align-items: start; padding-top: 20px; }
.hop-node {
  position: relative;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--rule-strong);
  background: var(--ground);
  color: var(--text-2);
  font-stretch: 122%;
  font-weight: 720;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}
.hop-node.lit { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

@media (max-width: 999px) {
  .hop { row-gap: 8px; padding-bottom: 12px; }
  .hop .node-slot { padding-top: 6px; }
  .hop-body { padding-block: 0 8px; }
}

/* Creators */
.creators, .tinted { background: var(--tint); }
.creators-grid { row-gap: 36px; }
.creators-copy { display: grid; gap: 22px; justify-items: start; width: min(100%, 30rem); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.perks { list-style: none; display: grid; gap: 14px; width: min(100%, 30rem); }
.perk {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.perk-dot {
  grid-row: 1 / span 2;
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 50%;
  border: 2px solid var(--rule-strong);
  background: var(--surface);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.perk-dot.lit { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--brand-bg); }
.perk h3 { font-size: 1.125rem; }
.perk p { color: var(--text-2); font-size: 0.9688rem; }

/* Contact */
.contact { background: var(--band); }
.contact-grid { row-gap: 40px; }
.contact-grid > .col-l { align-self: center; }
.contact-copy { display: grid; gap: 22px; width: min(100%, 30rem); }
.contact-copy h2 { color: var(--band-text); }
.contact-notes { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.contact-notes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--band-text-2); }
.contact-notes svg { width: 22px; height: 22px; color: var(--photon); margin-top: 2px; }
.contact-notes strong { color: var(--band-text); font-weight: 620; }
.direct { color: var(--band-text-2); }
.direct a { font-weight: 600; }

.panel {
  position: relative;
  z-index: 3;
  width: min(100%, 34rem);
  background: var(--panel);
  color: var(--panel-text);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-panel);
}
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .role legend { font-weight: 620; font-size: 0.9375rem; color: var(--panel-text); }
.field .hint { font-size: var(--fs-small); color: var(--panel-text-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--panel-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--panel-text-2); opacity: 0.85; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.err { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: var(--fs-small); font-weight: 540; }
.err:empty { display: none; }
.err svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.role { border: 0; padding: 0; margin: 0; min-width: 0; }
.role legend { padding: 0; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--seg-bg); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-stretch: 104%;
  color: var(--panel-text-2);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seg input:checked + label {
  background: var(--seg-on);
  color: var(--panel-text);
  box-shadow: 0 1px 2px rgba(12, 20, 51, 0.14), 0 6px 16px -8px rgba(12, 20, 51, 0.35);
}
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-note { font-size: var(--fs-small); color: var(--panel-text-2); text-align: center; }

.sent { display: grid; gap: 16px; }
.sent h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
.sent p { color: var(--panel-text-2); }
.sent-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-bg);
  color: var(--accent-ink);
}
.sent-badge svg { width: 26px; height: 26px; }
.sent textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--seg-bg);
  color: var(--panel-text);
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.5;
  resize: vertical;
}
.sent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sent-actions .btn { min-height: 46px; }
.sent .btn-outline { color: var(--panel-text); }


@media (max-width: 559px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--band-deep);
  color: var(--band-text-2);
  padding-block: clamp(56px, 7vw, 88px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer-brand .brand { color: var(--band-text); --node: var(--photon); }
.footer-brand p { max-width: 24em; }
.site-footer h2 {
  font-stretch: 78%;
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--band-text-2);
  margin-bottom: 14px;
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--band-text); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--photon); text-decoration: underline; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--band-rule);
  color: var(--band-text);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.social a:hover { border-color: var(--photon); color: var(--photon); background: rgba(139, 234, 255, 0.06); }
.social svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--band-rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-small);
}
.footer-base a { color: var(--band-text-2); }

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- Inner page headers ---------- */
.page-hero { padding-block: calc(var(--header-h) + clamp(56px, 7vw, 104px)) clamp(64px, 7vw, 104px); }
.page-hero .scrim { background: linear-gradient(90deg, rgba(7, 16, 58, 0.9) 0%, rgba(7, 16, 58, 0.6) 45%, rgba(7, 16, 58, 0) 75%); }
.page-hero-inner { display: grid; gap: 22px; justify-items: start; }
.page-hero h1 { max-width: 15em; }
.page-hero .lead { color: var(--hero-text-2); }
.crumb { font-stretch: 86%; font-weight: 600; font-size: var(--fs-small); color: var(--photon); letter-spacing: 0.01em; }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .page-hero .scrim { background: linear-gradient(180deg, rgba(7, 16, 58, 0.82), rgba(7, 16, 58, 0.5)); }
}

/* ---------- About ---------- */
.page-hero-inner { row-gap: 22px; }
.page-hero-inner .col-l { display: grid; gap: 18px; justify-items: start; }
.page-hero h1 { max-width: 12em; }
.page-hero .lead { color: var(--hero-text-2); padding-top: 0.4em; }
.story-grid { row-gap: 24px; }
.prose { display: grid; gap: 1.1em; font-size: 1.0625rem; line-height: 1.72; width: min(100%, 34rem); }
.prose p { text-wrap: pretty; }
.values-head { margin-bottom: clamp(32px, 4vw, 48px); }
.values-grid { row-gap: clamp(30px, 4vw, 48px); }
.values-grid > .col-l { justify-self: end; }
.values-grid > .col-r { justify-self: start; }
.value { display: grid; gap: 10px; align-content: start; width: min(100%, 27rem); }
.value-node {
  position: relative;
  z-index: 3;
  width: 13px;
  height: 13px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 2px solid var(--rule-strong);
  background: var(--ground);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.value-node.lit { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--brand-bg); }
.tinted .value-node { background: var(--tint); }
.values-grid > .col-l .value-node { justify-self: end; }
.value p { color: var(--text-2); }
.sides-grid { row-gap: clamp(20px, 2.4vw, 32px); }
.sides-grid > .col-l { justify-self: end; }
.sides-grid > .col-r { justify-self: start; }
.side {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  justify-items: start;
  width: min(100%, 27rem);
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--band-rule);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}
.side h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); color: var(--band-text); }
.ticks { list-style: none; display: grid; gap: 12px; align-content: start; color: var(--band-text-2); }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.ticks svg { width: 20px; height: 20px; color: var(--photon); margin-top: 3px; }
.side .btn { margin-top: 8px; }
.cta-strip-inner { row-gap: 20px; align-items: center; }
.cta-strip-inner .col-l { display: grid; gap: 12px; width: min(100%, 34rem); }
.cta-strip-inner p { color: var(--text-2); }
.cta-action { justify-self: start; }

/* ---------- Blog ---------- */
.post-jump { display: grid; gap: 8px; margin-top: 22px; justify-items: start; }
.post-jump a {
  color: var(--hero-text);
  text-decoration: none;
  font-stretch: 104%;
  font-weight: 560;
  font-size: 0.9688rem;
  border-bottom: 1px solid rgba(185, 196, 232, 0.35);
  padding-bottom: 3px;
}
.post-jump a:hover { border-bottom-color: var(--photon); color: var(--photon); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--text-2); font-stretch: 90%; font-size: var(--fs-small); }
.entry { row-gap: 28px; scroll-margin-top: calc(var(--header-h) + 28px); }
.entry + .entry { margin-top: clamp(64px, 8vw, 104px); }
.entry-main { display: grid; gap: 1.25rem; font-size: 1.0625rem; line-height: 1.7; width: min(100%, 34rem); }
.entry-main p { text-wrap: pretty; }
.entry-main strong { font-weight: 680; color: var(--text); }
.entry-head { display: grid; gap: 14px; }
.entry-head h2 { font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.625rem); }
.entry-dek { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.entry-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; width: min(100%, 24rem); }
.intro { font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem); line-height: 1.62; color: var(--text); }
.part { display: grid; gap: 1.25rem; margin-top: clamp(26px, 3.5vw, 40px); }
.part-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--brand-bg);
  color: var(--accent-ink);
  font-stretch: 88%;
  font-weight: 640;
  font-size: var(--fs-small);
}
.part-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.part-tag.c { background: var(--creator-bg); color: var(--creator-ink); }
.part h3 {
  font-stretch: 118%;
  font-weight: 680;
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.9375rem);
  letter-spacing: -0.015em;
}
.part h4 {
  margin-top: 0.6rem;
  font-stretch: 112%;
  font-weight: 640;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.3;
}
.rules { display: grid; gap: 12px; padding-left: 1.35em; }
.rules li { padding-left: 4px; }
.rules li::marker { font-weight: 700; color: var(--accent-ink); }
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 22px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--tint);
}
.callout-num {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.callout.c .callout-num { color: var(--creator-ink); }
.callout figcaption { font-size: 1rem; line-height: 1.5; color: var(--text); }
.pull { display: grid; gap: 14px; }
.pull blockquote {
  position: relative;
  padding-top: 30px;
  font-stretch: 108%;
  font-weight: 520;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  line-height: 1.38;
  color: var(--text);
  text-wrap: pretty;
}
.pull blockquote::before {
  content: "\201C";
  position: absolute;
  top: -16px;
  left: -4px;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: var(--creator-ink);
}
.pull figcaption { color: var(--text-2); font-size: 0.9375rem; }
.tldr {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
}
.tldr h3 { font-size: 1.0625rem; font-stretch: 112%; letter-spacing: 0; }
.tldr ul { list-style: none; display: grid; gap: 10px; }
.tldr li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; font-size: 0.9688rem; line-height: 1.5; }
.tldr li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.tldr li.c::before { background: var(--creator-ink); }
sup { line-height: 0; }
.cite {
  display: inline-grid;
  place-items: center;
  min-width: 1.35em;
  height: 1.35em;
  margin-left: 2px;
  padding: 0 0.3em;
  border-radius: 6px;
  background: var(--brand-bg);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1;
  text-decoration: none;
  vertical-align: 0.5em;
}
.cite:hover { background: var(--accent); color: #FFFFFF; text-decoration: none; }
.entry-foot { row-gap: 28px; margin-top: clamp(32px, 4vw, 52px); }
.post-close {
  display: grid;
  gap: 1rem;
  width: min(100%, 34rem);
  padding: clamp(26px, 3.4vw, 36px);
  border-radius: 20px;
  background: var(--band);
  color: var(--band-text);
}
.post-close h3 { font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem); color: var(--band-text); }
.post-close p { color: var(--band-text-2); }
.sources {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.sources h3 { font-size: 1.125rem; font-stretch: 112%; letter-spacing: 0; }
.sources ol { display: grid; gap: 12px; padding-left: 1.3em; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
.sources li { padding-left: 4px; scroll-margin-top: calc(var(--header-h) + 24px); }
.sources li::marker { font-weight: 700; color: var(--accent-ink); }
.sources li.flash { animation: vf-flash 1.6s ease; border-radius: 6px; }
@keyframes vf-flash { 0%, 40% { background: var(--brand-bg); } 100% { background: transparent; } }
.sources a { word-break: break-word; }

@media (max-width: 999px) {
  .entry-side { position: static; width: 100%; }
  .entry-main { width: 100%; }
}

/* ---------- The thread: the hero's light, drawn down the page ---------- */
.page { position: relative; }
.thread {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.t-track { stroke: var(--thread-track); stroke-width: 1.5; }
.t-end { fill: var(--thread); stroke: var(--band); stroke-width: 3; transition: opacity 0.4s ease; }
.t-glow { stroke: var(--thread-glow); stroke-width: 8; }
.t-line { stroke: var(--thread); stroke-width: 2; }
.t-branch-glow { stroke: var(--thread-glow); stroke-width: 6; }
.t-branch { stroke: var(--thread); stroke-width: 1.5; }
.t-head-halo { fill: var(--thread-glow); }
.t-head { fill: #FFFFFF; stroke: var(--thread); stroke-width: 1.5; }
.band .discipline-icon { color: var(--photon); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; transform: none; }
  .btn-primary:hover::after, .btn-primary:focus-visible::after { animation: none; }
  .btn-ghost:hover::before, .btn-outline:hover::before,
  .btn-ghost:focus-visible::before, .btn-outline:focus-visible::before { animation: none; }
  .nav-links a::after { transition: none; }
  .page.is-leaving, .page.is-entering, .scan.run, .sources li.flash { animation: none; }
  .service-icon, .hop-node, .perk-dot, .value-node, .discipline-icon { transition: none; }
}
