/* Self-hosted, unmodified Geist variable fonts. See ../fonts/OFL.txt. */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ============================================================
   Xettl shared stylesheet (website v2)
   1. Tokens (light, dark, no-JS fallback, legacy aliases)
   2. Base
   3. Shared shell: header, navigation, theme control, footer
   4. Primitives: layout, type, buttons, panels, forms
   5. Spatial field (Animus-inspired decorative geometry)
   6. Inner pages: About, Resources, articles, archive, legal
   7. Legacy homepage v1 (retained until home-v2.css replaces it)
   8. Responsive, reduced motion, print
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* Brand anchors (reference only; components use semantic tokens) */
  --brand-blue: #1266f1;
  --brand-blue-dark: #0848b8;
  --brand-paper: #fbfaf6;
  --brand-white: #ffffff;
  --brand-ink: #0d1420;
  --brand-navy: #071625;

  /* Surfaces and text: light */
  --canvas: #fbfaf6;
  --canvas-deep: #f3f5f8;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .66);
  --surface-glass-strong: rgba(255, 255, 255, .86);
  --surface-accent: #eaf1fd;
  --text: #0d1420;
  --text-muted: #55616f;
  --text-subtle: #5f6b7a;
  --text-on-accent: #ffffff;
  --border: #d9dee6;
  --border-strong: #b7c1ce;
  --border-glass: rgba(13, 20, 32, .09);

  /* Accent, focus, state */
  --accent: #1266f1;
  --accent-hover: #0848b8;
  --accent-text: #0b5bd8;
  --accent-soft: rgba(18, 102, 241, .10);
  --focus: #1266f1;
  --success: #137650;
  --warning: #9a5b00;
  --danger: #b42318;

  /* Spatial geometry */
  --grid-line: rgba(13, 20, 32, .045);
  --geo-line: rgba(18, 102, 241, .22);
  --glow: rgba(18, 102, 241, .10);
  --shadow-panel: 0 24px 60px rgba(13, 20, 32, .08);

  /* Scene materials (Three.js / projected labels) */
  --scene-bg: #fbfaf6;
  --scene-fog: #fbfaf6;
  --scene-line: #9db8e6;
  --scene-line-strong: #1266f1;
  --scene-particle: #7aa4ee;
  --scene-label: #0d1420;
  --scene-label-muted: #5b6878;
  --scene-initials: #0b5bd8;
  --scene-chip-bg: rgba(255, 255, 255, .78);
  --scene-pending: #9a5b00;

  /* Layout and motion */
  --page-max: 1240px;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 64px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --dur-ui: 180ms;
  --dur-scene: 600ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  color-scheme: light;
}

/* Dark: reversed surface hierarchy, same geometry and blue anchor */
:root[data-theme="dark"] {
  --canvas: #071625;
  --canvas-deep: #040e19;
  --surface: #0c1d30;
  --surface-glass: rgba(14, 32, 52, .62);
  --surface-glass-strong: rgba(10, 26, 44, .86);
  --surface-accent: rgba(18, 102, 241, .16);
  --text: #eef3fa;
  --text-muted: #a3b2c4;
  --text-subtle: #8396ab;
  --text-on-accent: #ffffff;
  --border: #1f3550;
  --border-strong: #33506f;
  --border-glass: rgba(190, 215, 255, .14);

  --accent: #1266f1;
  --accent-hover: #0b5bd8;
  --accent-text: #7fb0ff;
  --accent-soft: rgba(127, 176, 255, .14);
  --focus: #8dbaff;
  --success: #4cc794;
  --warning: #f0b45a;
  --danger: #ff8a80;

  --grid-line: rgba(170, 200, 255, .05);
  --geo-line: rgba(141, 186, 255, .24);
  --glow: rgba(60, 130, 255, .18);
  --shadow-panel: 0 24px 60px rgba(0, 0, 0, .35);

  --scene-bg: #071625;
  --scene-fog: #071625;
  --scene-line: #2f5684;
  --scene-line-strong: #6ea6ff;
  --scene-particle: #a9c8ff;
  --scene-label: #eef3fa;
  --scene-label-muted: #91a4ba;
  --scene-initials: #8dbaff;
  --scene-chip-bg: rgba(12, 29, 48, .78);
  --scene-pending: #f0b45a;

  color-scheme: dark;
}

/* No-JS fallback: follow the OS when theme.js has not set data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --canvas: #071625;
    --canvas-deep: #040e19;
    --surface: #0c1d30;
    --surface-glass: rgba(14, 32, 52, .62);
    --surface-glass-strong: rgba(10, 26, 44, .86);
    --surface-accent: rgba(18, 102, 241, .16);
    --text: #eef3fa;
    --text-muted: #a3b2c4;
    --text-subtle: #8396ab;
    --border: #1f3550;
    --border-strong: #33506f;
    --border-glass: rgba(190, 215, 255, .14);
    --accent-hover: #0b5bd8;
    --accent-text: #7fb0ff;
    --accent-soft: rgba(127, 176, 255, .14);
    --focus: #8dbaff;
    --success: #4cc794;
    --warning: #f0b45a;
    --danger: #ff8a80;
    --grid-line: rgba(170, 200, 255, .05);
    --geo-line: rgba(141, 186, 255, .24);
    --glow: rgba(60, 130, 255, .18);
    --shadow-panel: 0 24px 60px rgba(0, 0, 0, .35);
    --scene-bg: #071625;
    --scene-fog: #071625;
    --scene-line: #2f5684;
    --scene-line-strong: #6ea6ff;
    --scene-particle: #a9c8ff;
    --scene-label: #eef3fa;
    --scene-label-muted: #91a4ba;
    --scene-initials: #8dbaff;
    --scene-chip-bg: rgba(12, 29, 48, .78);
    --scene-pending: #f0b45a;
    color-scheme: dark;
  }
}

/* Legacy aliases used by the v1 homepage markup until it is replaced */
:root {
  --blue: var(--accent);
  --blue-dark: var(--accent-hover);
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --paper: var(--canvas);
  --soft: var(--surface-accent);
  --navy: var(--brand-navy);
  --white: var(--surface);
  --green: var(--success);
}

/* ---------- 2. Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3,
.kicker,
.lead {
  text-wrap: balance;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 640;
}

h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform var(--dur-ui) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 3. Shared shell ---------- */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  max-width: var(--page-max);
  margin: 12px auto 0;
  padding: 0 12px 0 22px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  min-height: 44px;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 29px;
  object-fit: contain;
}

/* Blue corrected mark on light, white mark on dark */
.brand-mark--dark {
  display: none;
}

:root[data-theme="dark"] .brand-mark--light {
  display: none;
}

:root[data-theme="dark"] .brand-mark--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-mark--light {
    display: none;
  }

  :root:not([data-theme]) .brand-mark--dark {
    display: block;
  }
}

/* v1 markup used a single .brand img; keep it legible until replaced */
.brand > img:not(.brand-mark) {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.brand span {
  color: var(--text);
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.045em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color var(--dur-ui), background-color var(--dur-ui);
}

.desktop-nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.desktop-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-cta {
  justify-self: end;
}

/* Theme control: Light / Dark / System. Hidden until theme.js runs. */
.theme-switch {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--canvas);
}

:root[data-theme-js] .theme-switch {
  display: inline-flex;
}

.theme-switch button {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur-ui), background-color var(--dur-ui);
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button[aria-pressed="true"] {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.theme-switch svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switch--labeled button {
  grid-auto-flow: column;
  flex: 1;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-ui) var(--ease-out);
}

.mobile-menu[open] summary span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.mobile-menu[open] summary span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu-panel,
.mobile-menu > nav {
  position: absolute;
  top: 54px;
  right: -4px;
  width: min(300px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.mobile-menu-panel nav,
.mobile-menu > nav {
  display: flex;
  flex-direction: column;
}

/* v1 markup: <details class="mobile-menu"><summary/><nav/></details> */
.mobile-menu > nav a:not(.button),
.mobile-menu > nav button:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.mobile-menu > nav .button {
  margin-top: 8px;
}

.mobile-menu-panel nav a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  font-size: 16px;
  font-weight: 600;
}

.mobile-menu-panel nav a:not(.button):hover {
  background: var(--accent-soft);
}

.mobile-menu-panel nav a[aria-current="page"] {
  color: var(--accent-text);
}

.mobile-menu-panel .button {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

.mobile-menu-panel .theme-switch {
  width: 100%;
  margin-top: 10px;
}

.mobile-menu-label {
  margin: 14px 12px 0;
  color: var(--text-subtle);
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 64px var(--gutter) 32px;
  border-top: 1px solid var(--border);
  background: var(--canvas-deep);
  color: var(--text);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 6vw;
  max-width: var(--page-max);
  margin: auto;
  padding-bottom: 48px;
}

.footer-top > div:first-child > p {
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 16px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.footer-column b {
  margin-bottom: 6px;
  color: var(--text-subtle);
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-column a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-muted);
}

.footer-column a:hover {
  color: var(--accent-text);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  max-width: var(--page-max);
  margin: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:last-child {
  max-width: 680px;
}

/* ---------- 4. Primitives ---------- */

.page-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker,
.mono-label {
  margin: 0 0 18px;
  color: var(--accent-text);
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-subtle);
}

.mono-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--geo-line);
}

.lead {
  max-width: 600px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.button.secondary,
.button.outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.button.secondary:hover,
.button.outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.glass-panel {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-l);
  background: var(--surface-glass);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.section {
  max-width: 1500px;
  margin: auto;
  padding: 110px 6.5vw;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 40px;
}

/* Forms (shared field primitives; waitlist page composes these) */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.field label span {
  color: var(--text-subtle);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color var(--dur-ui), box-shadow var(--dur-ui);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-subtle);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field textarea {
  min-height: 115px;
  resize: vertical;
}

.field-hint,
.field-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.field-hint {
  color: var(--text-muted);
}

.field-error {
  color: var(--danger);
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.form-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-note a {
  color: var(--accent-text);
  text-decoration: underline;
}

.form-status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--border-glass);
  border-left: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface-accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
}

.form-status[data-state="success"] {
  border-left-color: var(--success);
}

.form-status[data-state="pending"] {
  border-left-color: var(--warning);
}

.form-status[data-state="error"] {
  border-left-color: var(--danger);
}

.form-status[hidden] {
  display: none;
}

.form-step {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--accent-text);
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: .12em;
}

/* ---------- 5. Spatial field ---------- */

/* Thin grid, concentric rings and a soft light source. Pure CSS, static,
   aria-hidden by construction (pseudo-elements). Opt in with body.spatial. */
body.spatial {
  position: relative;
  isolation: isolate;
}

body.spatial::before,
body.spatial::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.spatial::before { content: none; }

body.spatial::after {
  background:
    radial-gradient(circle at 82% 14%, transparent 0 139px, var(--geo-line) 139px 140px, transparent 140px 239px, var(--geo-line) 239px 240px, transparent 240px 379px, var(--geo-line) 379px 380px, transparent 380px),
    radial-gradient(ellipse 50% 40% at 82% 14%, var(--glow), transparent 70%);
  opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
}

/* Fine horizontal rule with node ticks, used between suspended items */
.geo-rule {
  position: relative;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--geo-line);
}

.geo-rule::before,
.geo-rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--geo-line);
  border-radius: 50%;
  background: var(--canvas);
}

.geo-rule::before {
  left: 0;
}

.geo-rule::after {
  right: 0;
}

/* ---------- 6. Inner pages ---------- */

.inner {
  min-height: 100vh;
}

.inner-main,
.field-main {
  max-width: var(--page-max);
  margin: auto;
  padding: 88px var(--gutter) 110px;
}

.inner-hero {
  max-width: 900px;
  margin-bottom: 64px;
}

.inner-hero h1 {
  margin: 0;
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: .98;
  letter-spacing: -.065em;
}

.inner-hero > p:not(.kicker, .mono-label) {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* About */
.story {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 7vw;
  align-items: center;
}

.story-image {
  position: relative;
  height: 620px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-l);
}

.story-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  color: var(--text);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .1em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.story-copy > p:not(.kicker, .attribution) {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.story-copy blockquote {
  margin: 32px 0 8px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.attribution {
  margin-left: 24px;
  color: var(--text-subtle);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .04em;
}

.about-page .story {
  margin-bottom: 110px;
}

.problem-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 110px;
}

.problem-grid article,
.audience-grid article {
  position: relative;
  min-height: 260px;
  padding: 30px 28px 34px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-m);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.problem-grid article > span,
.audience-grid article > span {
  display: block;
  margin-bottom: 44px;
  color: var(--accent-text);
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.problem-grid h3,
.audience-grid h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.04em;
}

.problem-grid p,
.audience-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.statement {
  position: relative;
  isolation: isolate;
  margin: 0 0 110px;
  padding: 64px clamp(24px, 6vw, 80px);
  overflow: hidden;
  text-align: center;
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 119px, var(--geo-line) 119px 120px, transparent 120px 219px, var(--geo-line) 219px 220px, transparent 220px),
    radial-gradient(ellipse 60% 70% at 50% 50%, var(--glow), transparent 70%);
}

.statement h2 {
  max-width: 760px;
  margin: 0 auto;
}

.statement p:not(.kicker) {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.statement .button {
  margin-top: 28px;
}

/* Resources hub */
.resources-hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 6vw;
  align-items: end;
  margin-bottom: 56px;
}

.resources-hero h1 {
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: .98;
  letter-spacing: -.065em;
}

.resources-hero > div:last-child p:not(.meta-line) {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.meta-line {
  color: var(--text-subtle);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .04em;
}

.guide-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The fine connector that links the three guides into one path */
.guide-grid::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--geo-line);
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  scroll-margin-top: calc(var(--header-h) + 32px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-l);
  background: var(--surface-glass);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color var(--dur-ui), transform var(--dur-ui) var(--ease-out);
}

.guide-card:hover,
.guide-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.guide-node {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 28px;
  border: 1px solid var(--geo-line);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--accent-text);
  font: 600 10px/1 var(--font-mono);
}

.guide-card small {
  color: var(--text-subtle);
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guide-card h2 {
  margin: 12px 0 12px;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.guide-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.guide-card h2 a:focus-visible {
  outline: none;
}

.guide-card:has(h2 a:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.guide-card p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.guide-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font: 500 12px/1.4 var(--font-mono);
}

.guide-card-foot b {
  color: var(--accent-text);
  font-weight: 600;
}

.resources-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin: 72px 0 0;
  padding: 40px clamp(24px, 4vw, 48px);
}

.resources-cta h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.resources-cta p:not(.kicker) {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.archive-section {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.archive-section h2 {
  font-size: 18px;
  letter-spacing: -.01em;
}

.archive-section > p {
  max-width: 640px;
  margin: 8px 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  scroll-margin-top: calc(var(--header-h) + 32px);
  border-bottom: 1px solid var(--border);
}

.archive-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.archive-list a:hover {
  color: var(--accent-text);
}

.archive-list small {
  flex-shrink: 0;
  color: var(--text-subtle);
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Articles */
.article {
  max-width: 820px;
  margin: auto;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.article h1 {
  margin: 0 0 26px;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.article h2 {
  margin-top: 50px;
  font-size: clamp(26px, 3vw, 33px);
  letter-spacing: -.04em;
}

.article h3 {
  margin-top: 28px;
  font-size: 19px;
}

.article p,
.article li {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.article li + li {
  margin-top: 6px;
}

.article p.kicker,
.legal p.kicker {
  color: var(--accent-text);
  font-size: 11px;
  line-height: 1.3;
}

.article .archive-notice {
  font-size: 14px;
}

.article .lead {
  max-width: none;
  font-size: 19px;
}

.article a:not(.button) {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article .callout {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 1px solid var(--border);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--surface-accent);
  color: var(--text-muted);
  line-height: 1.7;
}

.article .callout b {
  color: var(--text);
}

.article .source {
  font-size: 14px;
}

.article .button {
  color: var(--text-on-accent);
  text-decoration: none;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 650;
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-m);
  background: var(--canvas);
}

.article-cta p {
  margin: 0;
  font-size: 15px;
}

.print-guide {
  min-height: 40px;
  margin-bottom: 24px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.print-guide:hover {
  background: var(--accent-soft);
}

.archive-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 0 0 30px;
  padding: 14px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.archive-notice b {
  color: var(--text);
  font: 600 11px/1.6 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Legal */
.legal {
  max-width: 820px;
  margin: auto;
}

.legal h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 6.6vw, 80px);
  line-height: 1;
  letter-spacing: -.06em;
}

.legal h2 {
  margin-top: 44px;
  font-size: 26px;
  letter-spacing: -.03em;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.legal a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 7. Legacy homepage v1 ----------
   Retained so the current index.html keeps rendering until Antigravity's
   home-v2.css / waitlist.css replace these sections. Tokenized; not part of
   the v2 design language. Safe to delete once index.html no longer uses them. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 540px) auto;
  justify-content: center;
  column-gap: 56px;
  align-items: center;
  margin-top: calc(-1 * (var(--header-h) + 12px));
  padding: 144px max(4.5vw, calc((100vw - 1280px) / 2 + 4.5vw)) 68px;
}

.hero-copy {
  max-width: 540px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(62px, 7vw, 105px);
  line-height: .87;
  letter-spacing: -.078em;
  font-weight: 680;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  padding: 0 0 60px 40px;
}

.hero-phone {
  width: 100%;
  max-width: clamp(300px, 20vw, 420px);
  margin: 0;
}

.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  box-shadow: 0 40px 90px rgba(5, 14, 26, .3);
}

.hero-card {
  position: absolute;
  right: 8px;
  bottom: 20px;
  z-index: 1;
  width: 205px;
  aspect-ratio: 1.6;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #1266f1, #083f9f);
  box-shadow: 0 30px 60px rgba(8, 63, 159, .38);
  transform: rotate(-13deg);
}

.hero-card-chip {
  display: block;
  width: 32px;
  height: 25px;
  margin: 0 0 26px;
  border-radius: 5px;
  background: #e8cc8f;
}

.hero-card b {
  display: block;
  margin-bottom: 4px;
  font: 650 15px/1 var(--font-mono);
  letter-spacing: .04em;
}

.hero-card small {
  display: block;
  font: 700 8px/1 var(--font-mono);
  letter-spacing: .08em;
  opacity: .75;
}

.kicker.light {
  color: #a8c8ff;
}

.journey-section {
  padding: 110px max(6.5vw, calc((100vw - 1500px) / 2 + 6.5vw));
  background: var(--brand-navy);
  color: #ffffff;
}

.journey-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8vw;
  align-items: end;
  max-width: 1050px;
  margin-bottom: 75px;
}

.journey-heading > p {
  margin: 0;
  color: #9bacbf;
  font-size: 14px;
  line-height: 1.7;
}

.preview-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(18, 102, 241, .16), rgba(5, 14, 26, .4));
}

.preview-stage-grid > article {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(5, 14, 26, .22);
  opacity: .75;
  transition: opacity .2s, border-color .2s, transform .2s, background .2s;
}

.preview-stage-grid > article:hover,
.preview-stage-grid > article:focus,
.preview-stage-grid > article.active {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(5, 14, 26, .34);
  opacity: 1;
  transform: translateY(-3px);
}

.stage-copy {
  min-height: 308px;
}

.stage-copy > span {
  color: #a8c8ff;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stage-copy > h3 {
  margin: 16px 0 12px;
  font-size: 25px;
  letter-spacing: -.04em;
}

.stage-copy > p {
  min-height: 72px;
  margin: 0;
  color: #b7c2cf;
  line-height: 1.65;
}

.journey-mobile-stage {
  display: none;
}

.stage-screen {
  position: relative;
  margin: 16px 0 0;
}

.stage-screen > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(214, 222, 232, .9);
  border-radius: 24px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .24);
}

.faq-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 9vw;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 24px 42px 24px 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 24px;
  right: 4px;
  color: var(--accent-text);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  max-width: 700px;
  padding: 0 42px 24px 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.resources-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.resources-teaser .kicker {
  flex-shrink: 0;
  margin: 0;
}

.resources-teaser .lead {
  flex: 1;
  min-width: 260px;
  max-width: none;
  margin: 0;
}

.build-with-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  background: var(--canvas-deep);
}

.build-with-us > div {
  max-width: 680px;
}

.build-with-us > div > p:last-child {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.disclosure-section {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
}

.disclosure-section .disclosure-legal {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.disclosure-section .disclosure-note {
  max-width: 720px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
}

.waitlist-modal {
  width: min(560px, 92vw);
  max-height: 88vh;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-m);
  background: var(--canvas);
  color: var(--text);
  box-shadow: 0 40px 90px rgba(5, 14, 26, .35);
}

.waitlist-modal::backdrop {
  background: rgba(5, 14, 26, .55);
  backdrop-filter: blur(4px);
}

.waitlist-modal-head {
  padding: 34px 34px 0;
}

.waitlist-modal-head p:last-child {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.waitlist-modal #waitlist-container {
  padding: 26px 34px 34px;
}

.waitlist-modal #waitlist-container .waitlist-form {
  padding: 0;
  border-radius: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.waitlist-form {
  align-self: center;
  padding: 30px;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
}

.waitlist-success span {
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
}

.waitlist-success h3 {
  margin: 23px 0 7px;
  font-size: 28px;
}

.waitlist-success p {
  color: var(--text-muted);
  line-height: 1.6;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wl-step1-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 13px;
  border-radius: 6px;
  background: var(--surface-accent);
  color: var(--text-muted);
  font-size: 12px;
}

.wl-step1-summary button {
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

/* ---------- 8. Responsive, motion, print ---------- */

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions > .theme-switch {
    display: none !important;
  }

  .mobile-menu {
    display: block;
  }

  .site-header:not(:has(.header-actions)) {
    grid-template-columns: 1fr auto auto;
  }

  .story,
  .resources-hero,
  .faq-section,
  .journey-heading,
  .hero {
    grid-template-columns: 1fr;
  }

  .story-image {
    height: 520px;
  }

  .problem-grid,
  .audience-grid,
  .guide-grid,
  .preview-stage-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid article,
  .audience-grid article {
    min-height: 0;
  }

  .problem-grid article > span,
  .audience-grid article > span {
    margin-bottom: 24px;
  }

  /* Vertical connector on stacked guides */
  .guide-grid::before {
    top: 28px;
    bottom: 28px;
    left: 40px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .hero-copy {
    margin: 0 auto;
    padding: 35px 0 16px;
    text-align: center;
  }

  .actions {
    justify-content: center;
  }

  .stage-copy,
  .stage-copy > p {
    min-height: 0;
  }

  .footer-top {
    grid-template-columns: 1fr 160px 160px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 56px;
  }

  .site-header {
    top: 8px;
    max-width: calc(100% - 20px);
    margin-top: 8px;
    padding: 0 6px 0 16px;
    gap: 8px;
  }

  .brand span {
    font-size: 19px;
  }

  .header-actions {
    gap: 4px;
  }

  .inner-main,
  .field-main {
    padding: 56px 20px 80px;
  }

  .lead {
    font-size: 16px;
  }

  .story-image {
    height: 420px;
  }

  .story-copy blockquote {
    font-size: 20px;
  }

  .resources-cta {
    grid-template-columns: 1fr;
  }

  .archive-list {
    grid-template-columns: 1fr;
  }

  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    margin: 0 -20px;
  }

  .article p,
  .article li {
    font-size: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > div:first-child {
    grid-column: 1 / 3;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section,
  .journey-section {
    padding: 80px 20px;
  }

  .hero {
    padding: 111px 19px 52px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .actions {
    flex-direction: column;
    gap: 16px;
  }

  .hero-visual {
    padding: 0 12px 44px;
  }

  .hero-phone {
    max-width: 260px;
  }

  .hero-card {
    width: 160px;
    right: -4px;
    bottom: 8px;
    padding: 15px;
  }

  .waitlist-form {
    padding: 23px 19px;
  }
}

@media (max-width: 420px) {
  .header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-ui: 0ms;
    --dur-scene: 0ms;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  .site-header,
  .site-footer,
  .article-nav,
  .article-cta,
  .print-guide,
  .skip-link {
    display: none !important;
  }

  body,
  .inner,
  .inner-main {
    background: #ffffff;
    color: #000000;
  }

  body.spatial::before,
  body.spatial::after {
    display: none;
  }

  .inner-main {
    padding: 0;
  }

  .article {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #ffffff;
  }

  .article p,
  .article li {
    color: #222222;
  }
}

/* Shared refinement: content and supplied assets take precedence over decorative chrome. */
[hidden] { display: none !important; }
::selection { color: var(--text-on-accent); background: var(--accent); }
html { scrollbar-color: var(--border-strong) var(--canvas); }
input, textarea { caret-color: var(--accent-text); }
body.spatial::before, body.spatial::after, .statement::before, .guide-grid::before, .mono-label::before { content: none; }
.site-header { top: 0; width: calc(100% - 2 * var(--gutter)); margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; isolation: isolate; }
.site-header::before { content: ""; position: absolute; z-index: -1; inset: 0 -18px; border-radius: 0 0 16px 16px; background: transparent; pointer-events: none; }
.site-header.is-scrolled::before { background: color-mix(in srgb,var(--canvas) 94%,transparent); box-shadow: 0 8px 32px #07162508; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled::before { background: color-mix(in srgb,var(--canvas) 82%,transparent); backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%); }
}
.desktop-nav a { border-radius: 8px; }
.desktop-nav a[aria-current="page"] { color: var(--accent-text); box-shadow: none; border-radius: 8px; }
.theme-toggle { display: none; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; touch-action: manipulation; }
:root[data-theme-js] .theme-toggle { display: inline-flex; }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover { background: var(--accent-soft); color: var(--accent-text); } }
@media (max-width: 680px) {
  .site-header { width: calc(100% - 32px); max-width: none; padding: 0; margin: 0 auto; }
  .site-header::before { inset-inline: -10px; border-radius: 12px; }
  .header-actions { gap: 6px; }
}
@media (forced-colors: active) { .theme-toggle { border: 1px solid ButtonText; } .site-header.is-scrolled::before { background: Canvas; } }
:root:not([data-theme-js]) .theme-switch, :root:not([data-theme-js]) .mobile-menu-label { display: none; }
.button { border-radius: 4px; box-shadow: none; font-weight: 500; }
.theme-switch { border: 0; background: none; }
.theme-switch button { border-radius: 4px; }
.brand, .inner-hero h1, .resources-hero h1, .article h1, .legal h1, h2 { letter-spacing: -.035em; }
.kicker, .mono-label, .meta-line, .archive-list small, .archive-notice b, .guide-card small, .guide-card-foot, .footer-column b {
  font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.5;
}
.kicker, .mono-label { color: var(--text-muted); font-weight: 400; }
.inner-hero h1, .resources-hero h1 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.1; }
.article, .glass-panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.article { padding: 0; max-width: 760px; }
.article h1 { font-size: clamp(36px, 4.7vw, 60px); line-height: 1.12; }
.article .callout { border-left-width: 1px; border-radius: 0; background: transparent; }
.article-cta { border-radius: 0; border-left: 0; border-right: 0; background: none; padding-left: 0; padding-right: 0; }
.resources-hero { display: block; }
.resources-hero h1 { max-width: 19ch; }
.resources-hero > div:last-child { max-width: 56ch; margin-top: 24px; }
.guide-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 64px; }
.guide-card { padding: 28px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.guide-card:first-child { grid-row: auto; }
.guide-card:first-child h2 { font-size: clamp(24px, 2.3vw, 30px); }
.guide-card:hover, .guide-card:focus-within { transform: none; border-color: var(--border); }
.guide-card h2 { max-width: 23ch; }
.guide-card h2 a::after { border-radius: 0; }
.guide-card-foot { margin-top: 20px; border: 0; padding: 0; }
.guide-node { display: none; }
.resources-cta { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-left: 0; padding-right: 0; }
.site-footer { background: var(--canvas); border-top: 1px solid var(--border); }
.footer-bottom { color: var(--text-muted); }
@media (max-width: 767px) {
  .guide-grid { grid-template-columns: 1fr; gap: 0; }
  .guide-card:first-child { grid-row: auto; }
  .article { margin: 0; }
}
@media print {
  .site-header, .site-footer { display: none; }
}
