/* ============================================================
   NU.Digital — Redesign 2026
   Apple-inspired design system · light/dark · lime accent
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-ext-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}

/* ---------- Design tokens ---------- */
:root {
  /* brand */
  --green: #c1f50d;
  --green-dim: #9ec40a;
  --green-ink: #101205;

  /* light theme (default) */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.98);
  --text: #1d1d1f;
  --text-strong: #000000;
  --muted: #55555c;
  --faint: #73737a;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #4f7a05;          /* readable green on white */
  --accent-soft: rgba(120, 165, 12, 0.12);
  /* toned down: the ambient fields now contribute colour here too */
  --halo-a: rgba(193, 245, 13, 0.13);
  --halo-b: rgba(193, 245, 13, 0.05);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.10);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 24px 48px -16px rgba(0, 0, 0, 0.16);
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 46%);
  --cta-glow: 0 14px 38px -14px rgba(140, 180, 10, 0.55);
  --header-bg: rgba(255, 255, 255, 0.66);
  --canvas-opacity: 0.9;

  /* ambient background fields */
  --amb-1: rgba(193, 245, 13, 0.085);
  --amb-2: rgba(132, 180, 16, 0.05);
  --amb-3: rgba(193, 245, 13, 0.04);
  --section-alt-bg: rgba(245, 245, 247, 0.85);

  /* hero elevation drawing */
  --hero-line: rgba(0, 0, 0, 0.42);
  --hero-line-soft: rgba(0, 0, 0, 0.17);
  --hero-fill: rgba(255, 255, 255, 0.62);
  --hero-win: #6b9c07;
  --hero-node: #4f7a05;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #0b0b0d;
  --bg-elevated: #111113;
  --surface: rgba(22, 22, 25, 0.72);
  --surface-solid: #141416;
  --glass: rgba(20, 20, 22, 0.97);
  --text: #f5f5f7;
  --text-strong: #ffffff;
  --muted: #a4a4ab;
  --faint: #82828b;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #c1f50d;
  --accent-soft: rgba(193, 245, 13, 0.10);
  --halo-a: rgba(193, 245, 13, 0.14);
  --halo-b: rgba(109, 40, 217, 0.10);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  --card-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 28px 60px -24px rgba(0, 0, 0, 0.9);
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 46%);
  --cta-glow: 0 16px 44px -16px rgba(193, 245, 13, 0.55);
  --header-bg: rgba(8, 8, 10, 0.62);
  --canvas-opacity: 1;
  --amb-1: rgba(193, 245, 13, 0.055);
  --amb-2: rgba(109, 40, 217, 0.10);
  --amb-3: rgba(193, 245, 13, 0.035);
  --section-alt-bg: rgba(11, 11, 13, 0.72);
  --hero-line: rgba(255, 255, 255, 0.26);
  --hero-line-soft: rgba(255, 255, 255, 0.13);
  --hero-fill: rgba(255, 255, 255, 0.02);
  --hero-win: #c1f50d;
  --hero-node: #c1f50d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #000000;
    --bg-soft: #0b0b0d;
    --bg-elevated: #111113;
    --surface: rgba(22, 22, 25, 0.72);
    --surface-solid: #141416;
    --glass: rgba(20, 20, 22, 0.97);
    --text: #f5f5f7;
    --text-strong: #ffffff;
    --muted: #a4a4ab;
    --faint: #82828b;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: #c1f50d;
    --accent-soft: rgba(193, 245, 13, 0.10);
    --halo-a: rgba(193, 245, 13, 0.14);
    --halo-b: rgba(109, 40, 217, 0.10);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px -20px rgba(0, 0, 0, 0.8);
    --card-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 28px 60px -24px rgba(0, 0, 0, 0.9);
    --gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 46%);
    --cta-glow: 0 16px 44px -16px rgba(193, 245, 13, 0.55);
    --header-bg: rgba(8, 8, 10, 0.62);
    --canvas-opacity: 1;
    --amb-1: rgba(193, 245, 13, 0.10);
    --amb-2: rgba(109, 40, 217, 0.15);
    --amb-3: rgba(193, 245, 13, 0.06);
    --section-alt-bg: rgba(11, 11, 13, 0.72);
    --hero-line: rgba(255, 255, 255, 0.26);
    --hero-line-soft: rgba(255, 255, 255, 0.13);
    --hero-fill: rgba(255, 255, 255, 0.02);
    --hero-win: #c1f50d;
    --hero-node: #c1f50d;
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ---------- Ambient background ----------
   Three fixed colour fields drifting on very long cycles. Animated via
   transform only, so the compositor handles them and nothing repaints. */
html::before,
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 82vmax;
  height: 82vmax;
  border-radius: 50%;
}
html::before {
  top: -26vmax;
  left: -18vmax;
  background: radial-gradient(circle closest-side, var(--amb-1), transparent 100%);
  animation: nud-drift-a 68s ease-in-out infinite alternate, nud-breathe 13s ease-in-out infinite alternate;
}
body::before {
  top: 22vmax;
  right: -30vmax;
  background: radial-gradient(circle closest-side, var(--amb-2), transparent 100%);
  animation: nud-drift-b 88s ease-in-out infinite alternate, nud-breathe 17s ease-in-out -6s infinite alternate;
}
body::after {
  bottom: -34vmax;
  left: 12vmax;
  background: radial-gradient(circle closest-side, var(--amb-3), transparent 100%);
  animation: nud-drift-c 76s ease-in-out infinite alternate, nud-breathe 21s ease-in-out -11s infinite alternate;
}
@keyframes nud-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vmax, 5vmax, 0) scale(1.12); }
}
@keyframes nud-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-6vmax, 7vmax, 0) scale(0.94); }
}
@keyframes nud-drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.96); }
  to   { transform: translate3d(9vmax, -5vmax, 0) scale(1.1); }
}
/* the fields breathe: a slow opacity swell, offset per field so the
   page never pulses in lockstep */
@keyframes nud-breathe {
  from { opacity: 0.62; }
  to   { opacity: 1; }
}
/* content sits above the fields; .site-header already owns z-index 100 */
body > main,
body > footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(193, 245, 13, 0.35); color: var(--text-strong); }

h1, h2, h3, h4 { margin: 0; color: var(--text-strong); text-wrap: balance; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  font-weight: 640;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.04;
  font-weight: 630;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.07;
  font-weight: 620;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow.plain::before { display: none; }

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.mono.accent { color: var(--accent); }

.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #d3ff3d, var(--green) 55%, #a8d80b);
  color: var(--green-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--cta-glow);
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 66%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 20px 48px -14px rgba(163, 205, 15, 0.75); }
.btn-primary:hover::after { animation: nud-sheen 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.btn-primary:active { transform: translateY(0) scale(0.985); }
@keyframes nud-sheen {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}

/* the one action the page is asking for */
.btn-lg {
  min-height: 56px;
  padding: 0 34px;
  font-size: 16.5px;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
:root[data-theme="dark"] .btn-secondary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text-strong); border-color: var(--line-strong); }

.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible { border-radius: 999px; }

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--green);
  color: var(--green-ink);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.nav-shell {
  margin: 14px auto 0;
  max-width: 1180px;
  padding: 0 24px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: var(--header-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 40px -18px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
:root[data-theme="dark"] .nav-wrap { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 44px -18px rgba(0, 0, 0, 0.85); }
/* once the page scrolls, the pill visibly detaches from the content */
.site-header.is-scrolled .nav-wrap {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 20px 52px -16px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .site-header.is-scrolled .nav-wrap {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 56px -16px rgba(0, 0, 0, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 640;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand svg { width: 26px; height: 26px; color: var(--accent); flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 520;
  letter-spacing: -0.01em;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--text-strong); }
.nav-links a[aria-current="page"] {
  color: var(--text-strong);
  background: var(--accent-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d3ff3d, var(--green) 55%, #a8d80b);
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 26px -10px rgba(150, 190, 12, 0.6);
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
}
.theme-toggle:hover { color: var(--text-strong); border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
}
.mobile-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.2s ease, top 0.3s ease;
}
.mobile-toggle span:nth-child(1) { top: 14px; }
.mobile-toggle span:nth-child(2) { top: 19px; }
.mobile-toggle span:nth-child(3) { top: 24px; }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 84px 20px auto 20px;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    visibility: hidden; /* keeps closed menu out of the tab order */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), visibility 0s linear 0.3s;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), visibility 0s;
  }
  .nav-links a { font-size: 17px; padding: 13px 16px; }
  .mobile-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    min-height: 48px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d3ff3d, var(--green) 55%, #a8d80b);
    color: var(--green-ink) !important;
    font-weight: 640;
  }
}
@media (min-width: 981px) { .nav-cta-mobile { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: clip;
}
.page-hero {
  position: relative;
  padding: 170px 0 70px;
  overflow: clip;
}
/* ---------- Hero figure: architectural elevation feeding workflow nodes ---------- */
.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
.hero-figure {
  justify-self: center;
  width: 100%;
  max-width: 360px;
}
/* below the two-column breakpoint the drawing follows the copy, so keep it
   compact — the headline and the CTA own the first screen */
@media (max-width: 700px) {
  .hero-grid { gap: 8px; }
  .hero-figure { max-width: 250px; }
}
@media (min-width: 1100px) {
  .hero .container.hero-grid {
    max-width: 1340px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 56px;
  }
  .hero-figure { justify-self: end; max-width: 420px; }
}

.hero-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-svg .ground path,
.hero-svg .dim path { stroke: var(--hero-line-soft); stroke-width: 1; }
.hero-svg .bd {
  stroke: var(--hero-line);
  stroke-width: 1.25;
  fill: var(--hero-fill);
}
.hero-svg .mesh {
  stroke: var(--hero-line-soft);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.hero-svg .riser { stroke: var(--hero-line-soft); stroke-width: 1.15; }
.hero-svg .node { fill: var(--hero-node); }
.hero-svg .node-halo { fill: var(--green); opacity: 0.3; }
.hero-svg .door { fill: var(--hero-win); opacity: 0.45; }
.hero-svg .node-ring { fill: none; stroke: var(--hero-node); stroke-width: 1.5; opacity: 0; }
.hero-svg .w { fill: var(--hero-win); opacity: 0.28; }

/* Windows light up in a staggered rhythm; a data point rises from the top of
   each building to its node, which acknowledges the arrival with one ring. */
.hero-figure.is-live .w {
  animation: nud-window 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.hero-figure.is-live .spark {
  stroke: var(--hero-node);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 5 95;
  opacity: 0;
  animation: nud-spark 7.2s cubic-bezier(0.4, 0, 0.5, 1) infinite;
  animation-delay: var(--d, 0s);
}
.hero-figure.is-live .node-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: nud-node 7.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes nud-window {
  0%, 70%, 100% { opacity: 0.26; }
  80% { opacity: 1; }
}
@keyframes nud-spark {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  5%   { opacity: 1; }
  70%  { opacity: 1; }
  75%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes nud-node {
  0%   { opacity: 0.75; transform: scale(0.45); }
  30%  { opacity: 0; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.2); }
}

.halo {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 74% 18%, var(--halo-a), transparent 70%),
    radial-gradient(32% 38% at 12% 30%, var(--halo-b), transparent 70%);
  filter: blur(2px);
  /* opacity only — GSAP owns the transform for the scroll parallax */
  animation: nud-halo-breathe 11s ease-in-out infinite alternate;
}
@keyframes nud-halo-breathe {
  from { opacity: 0.72; }
  to   { opacity: 1; }
}

.hero .container, .page-hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
:root[data-theme="dark"] .hero-badge { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(193, 245, 13, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(193, 245, 13, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(193, 245, 13, 0.08); }
}

.hero h1 { margin-top: 26px; max-width: 28ch; text-wrap: balance; }
@media (max-width: 360px) { .hero h1 { hyphens: auto; } }
.hero .lead { margin-top: 26px; }
/* center, not stretch — otherwise the secondary button matches the primary's height */
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--faint);
}

.trust-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 820px;
}
.trust-strip .stat {
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
:root[data-theme="dark"] .trust-strip .stat { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.trust-strip strong {
  display: block;
  font-size: 15.5px;
  font-weight: 630;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.trust-strip span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 720px) { .trust-strip { grid-template-columns: 1fr; margin-top: 44px; } }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 720px) { .scroll-hint { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
/* translucent so the ambient fields stay visible through alternating sections */
.section-alt { background: var(--section-alt-bg); }
.section-tight { padding: 70px 0; }
@media (max-width: 720px) { .section { padding: 72px 0; } .page-hero { padding: 140px 0 50px; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 18px;
}
.section-head h2 { margin-top: 16px; max-width: 21ch; }
.section-head > p, .section-sub {
  max-width: 400px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.section-head .btn-secondary, .section-head .btn-ghost { flex: none; }
@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } }
.narrow-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.narrow-copy h2 { margin-top: 16px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 1020px) {
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px;
  border-radius: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gloss);
  opacity: 0.55;
  pointer-events: none;
}
.card > * { position: relative; }
a.card:hover, .card.hoverable:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(193, 245, 13, 0.45);
}
.card h3 { margin-top: 14px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.card .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-cta {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}
.card-cta .arr { transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1); display: inline-block; }
a.card:hover .card-cta .arr { transform: translateX(5px); }

/* numbered friction rows */
.friction-list { display: flex; flex-direction: column; gap: 12px; }
.friction-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 24px;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), border-color 0.3s ease;
}
.friction-item:hover { transform: translateX(6px); border-color: rgba(193, 245, 13, 0.4); }
.friction-item .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  min-width: 26px;
  font-weight: 600;
}
.friction-item span:last-child { color: var(--text); font-size: 15.5px; line-height: 1.5; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 40px;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: 28px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gloss);
  opacity: 0.5;
  pointer-events: none;
}
.price-card > * { position: relative; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.price-card.popular {
  border-color: rgba(193, 245, 13, 0.55);
  box-shadow: 0 0 0 1px rgba(193, 245, 13, 0.35), 0 30px 70px -30px rgba(150, 190, 12, 0.45), var(--card-shadow);
}

.badge {
  align-self: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.price-card.popular .badge {
  background: var(--green);
  color: var(--green-ink);
  border-color: transparent;
}
.price-card h3 { margin-top: 20px; font-size: 18px; line-height: 1.4; font-weight: 560; color: var(--muted); }
.price {
  margin-top: 14px;
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 640;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  line-height: 1.05;
}
.price small {
  display: block;
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.price-note { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.price-note strong { color: var(--accent); font-weight: 600; }

.list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%2378a50c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.price-card .inline-actions { margin-top: auto; padding-top: 26px; }

/* ---------- Steps / process ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gloss);
  opacity: 0.5;
  pointer-events: none;
}
.step > * { position: relative; }
.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.step h3 { margin-top: 14px; font-size: 19px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(44px, 6vw, 80px);
  border-radius: 36px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: left;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 60% at 88% 0%, var(--halo-a), transparent 70%),
    var(--gloss);
  opacity: 0.8;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-top: 16px; max-width: 22ch; }
.cta-band p { margin-top: 18px; color: var(--muted); max-width: 620px; font-size: 17px; line-height: 1.65; }
.cta-band .inline-actions { margin-top: 32px; }
.cta-band.accent-border { border-color: rgba(193, 245, 13, 0.45); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item {
  border-radius: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.is-open { border-color: rgba(193, 245, 13, 0.4); }
.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-strong);
}
.faq-button strong { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.faq-button .faq-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), background-color 0.3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--accent-soft); }
.faq-answer {
  display: none;
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 72ch;
}
.faq-item.is-open .faq-answer { display: block; }
/* smooth unfold where the browser can interpolate to auto (progressive) */
@supports (interpolate-size: allow-keywords) {
  .faq-answer {
    display: block;
    height: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: clip;
    visibility: hidden; /* closed answers leave the tab order */
    interpolate-size: allow-keywords;
    transition: height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding-bottom 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.38s;
  }
  .faq-item.is-open .faq-answer {
    height: auto;
    padding-bottom: 24px;
    opacity: 1;
    visibility: visible;
    transition: height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding-bottom 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
  }
  @media (prefers-reduced-motion: reduce) {
    .faq-answer, .faq-item.is-open .faq-answer { transition: none; }
  }
}
.faq-answer a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-stack { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gloss);
  opacity: 0.5;
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card h3 { margin-top: 10px; font-size: 18px; }
.contact-card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form { padding: 34px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15.5px;
  color: var(--text-strong);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 100%;
  appearance: none;
}
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea { background: #0e0e10; border-color: rgba(255, 255, 255, 0.34); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .field input,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .field select,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .field textarea { background: #0e0e10; border-color: rgba(255, 255, 255, 0.34); }
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23888890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.show-errors input:invalid, .show-errors textarea:invalid {
  border-color: #cf3a2b;
  box-shadow: 0 0 0 4px rgba(207, 58, 43, 0.12);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.form-privacy { font-size: 13px; color: var(--faint); max-width: 340px; line-height: 1.5; }
.form-privacy a { color: var(--muted); }
.form-status { margin-top: 14px; font-size: 14.5px; min-height: 1.2em; }
.form-status[data-tone="warn"] { color: #c4331f; }
:root[data-theme="dark"] .form-status[data-tone="warn"] { color: #ff8d78; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .form-status[data-tone="warn"] { color: #ff8d78; }
}
.form-success {
  margin-top: 22px;
  padding: 26px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(193, 245, 13, 0.4);
}
.form-success svg { color: var(--accent); }
.form-success h3 { margin-top: 12px; font-size: 19px; }
.form-success p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.form-success a { color: var(--accent); }

/* ---------- Blog ---------- */
.post-card { padding: 34px; }
.post-card time { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }
.post-card h2 { margin-top: 16px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.post-card p { margin-top: 12px; }

.blog-article { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.blog-article h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 60px; margin-bottom: 16px; }
.blog-article h3 { font-size: 21px; margin-top: 38px; margin-bottom: 12px; }
.blog-article p { font-size: 17px; line-height: 1.72; margin-top: 16px; color: var(--text); }
.blog-article ul, .blog-article ol { margin-top: 16px; padding-left: 24px; color: var(--text); }
.blog-article li { font-size: 17px; line-height: 1.7; margin-bottom: 10px; }
.blog-article a { color: var(--accent); text-underline-offset: 3px; }
.blog-article blockquote {
  margin: 36px 0;
  padding: 26px 30px;
  border: 1px solid rgba(193, 245, 13, 0.4);
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--text-strong);
}
.blog-meta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Legal ---------- */
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 24px; margin-top: 52px; letter-spacing: -0.02em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-top: 14px; color: var(--text); font-size: 16px; line-height: 1.7; }
.legal-body ul { margin-top: 14px; padding-left: 22px; color: var(--text); font-size: 16px; line-height: 1.7; }
.legal-body a { color: var(--accent); text-underline-offset: 3px; }
.legal-note {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
:root[data-theme="dark"] .legal-note { background: var(--surface-solid); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 70px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 300px; }
.footer-brand a[href^="mailto"], .footer-brand a[href^="tel"] { color: var(--text-strong); text-decoration: none; font-weight: 560; }
.footer-brand a[href^="mailto"]:hover, .footer-brand a[href^="tel"]:hover { color: var(--accent); }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col .mono { margin-bottom: 6px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
  width: fit-content;
  /* comfortable tap target without changing the visual rhythm (4px gap + 8px padding ≈ old 12px gap) */
  padding: 4px 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.footer-brand p a {
  display: inline-block;
  padding: 3px 0;
}
.footer-col a:hover { color: var(--text-strong); }
.footer-col a[aria-current="page"] { color: var(--accent); }
.footer-bottom {
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Reveal (GSAP hooks) ---------- */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
/* safety net: if GSAP is unavailable, never hide content */
.js.no-anim [data-reveal],
.js.no-anim [data-reveal-group] > * {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-badge .dot, .scroll-hint::after { animation: none; }
  /* fields and drawing stay, motion stops */
  html::before, body::before, body::after { animation: none; }
  .halo { animation: none; }
  .btn-primary:hover::after { animation: none; }
  .hero-figure.is-live .w,
  .hero-figure.is-live .spark,
  .hero-figure.is-live .node-ring { animation: none; }
  .hero-figure .w { opacity: 0.5; }
  .hero-figure .spark { opacity: 0; }
}

/* ---------- 404 ---------- */
.error-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.center .cta-band h2, .center .lead { margin-left: auto; margin-right: auto; }
.max-copy { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.65; }

/* Contact form intro (content of 2026-10-01) */
.v-form-intro { font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.v-form-intro strong { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-strong); }
.v-form-intro small { display: block; margin-top: 8px; font-size: 12px; }
