/* ===========================================================
   LucidArc — Brand Stylesheet
   Dark-canvas, pill-shaped, founder-close.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&display=swap');

/* Satoshi — primary display + body face. Hosted locally. */
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Regular.woff2') format('woff2'),
       url('fonts/Satoshi-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Medium.woff2') format('woff2'),
       url('fonts/Satoshi-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surface */
  --canvas: #0a0a0a;
  --canvas-soft: #1a1c20;
  --canvas-card: #191919;
  --canvas-mid: #363a3f;
  --midnight: #0d1726;
  --hairline: #212327;

  /* Text */
  --ink: #ffffff;
  --body: #dadbdf;
  --mute: #7d8187;

  /* Accent */
  --accent-sunset: #ff7a17;
  --accent-sunset-soft: #ffc285;
  --accent-dusk: #7c3aed;
  --accent-twilight: #c4b5fd;
  --accent-breeze: #a0c3ec;

  /* Semantic */
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  /* Radii */
  --r-sm: 8px;
  --r-pill: 9999px;

  /* Type */
  --font-display: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing */
  --s-xxs: 2px;
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-2xl: 32px;
  --s-3xl: 48px;
  --s-4xl: 64px;
  --s-5xl: 96px;
  --s-6xl: 128px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: 0.7; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- Background field ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,0.08), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(255,122,23,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s-xl);
}
.section {
  padding: var(--s-6xl) 0;
  border-bottom: 1px solid var(--hairline);
}
.section--tight { padding: var(--s-4xl) 0; }
.section:last-of-type { border-bottom: none; }
@media (max-width: 768px) {
  .section { padding: var(--s-4xl) 0; }
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: var(--s-3xl) 0; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-xl); }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--s-xl); }
  .grid-3.keep-mobile { grid-template-columns: repeat(3, 1fr); gap: var(--s-sm); }
}

.row { display: flex; gap: var(--s-md); align-items: center; flex-wrap: wrap; }
.spacer-xl { height: var(--s-xl); }
.spacer-3xl { height: var(--s-3xl); }

/* ---------- Typography ---------- */
.display-xl {
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.display-lg {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.display-md {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.display-sm {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.display-xs {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
}
.body-lg { font-size: 18px; line-height: 28px; color: var(--body); }
.body-md { font-size: 16px; line-height: 24px; color: var(--body); }
.body-sm { font-size: 14px; line-height: 20px; color: var(--body); }
.mute { color: var(--mute); }
.ink { color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-sunset);
  border-radius: 50%;
}
.eyebrow--plain::before { display: none; }
.eyebrow--mute { color: var(--mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  transition: all .25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ink);
  opacity: 1;
  border-color: var(--ink);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255,255,255,0.18);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.03);
  opacity: 1;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn .arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--s-xl);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--hairline); }
.card--link:hover { transform: translateY(-2px); }
.card--padded { padding: var(--s-2xl); }
.card--airy { padding: var(--s-3xl); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--s-md) var(--s-xl);
  max-width: 1240px;
  margin: 0 auto;
  gap: var(--s-xl);
}
.nav-inner > .nav-brand { justify-self: start; }
.nav-inner > .nav-links { justify-self: center; }
.nav-inner > .nav-cta { justify-self: end; }
.nav-inner > .nav-mobile-toggle { justify-self: end; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav-brand:hover { opacity: 1; }
.nav-brand-mark { width: 26px; height: 26px; }
.nav-brand-wordmark {
  height: 22px;
  width: auto;
  display: block;
  /* the actual brand name lives in the mark's alt attribute; this img is decorative */
}
@media (max-width: 480px) {
  .nav-brand-wordmark { height: 18px; }
}
.nav-links {
  display: flex;
  gap: var(--s-xl);
  align-items: center;
}
.nav-link {
  font-size: 14px;
  color: var(--body);
  position: relative;
  padding: 4px 0;
}
.nav-link:hover, .nav-link.active { color: var(--ink); opacity: 1; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.nav-cta { margin-left: auto; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--s-6xl) 0 var(--s-5xl);
  position: relative;
}
.hero-eyebrow { margin-bottom: var(--s-xl); }
.hero-title { max-width: 14ch; }
.hero-sub {
  max-width: 60ch;
  margin-top: var(--s-xl);
  color: var(--body);
}
.hero-cta { margin-top: var(--s-2xl); display: flex; gap: var(--s-md); flex-wrap: wrap; }
@media (max-width: 768px) {
  .hero { padding: var(--s-4xl) 0; }
}

/* ---------- Section header ---------- */
.section-head { margin-bottom: var(--s-3xl); max-width: 60ch; }
.section-head .eyebrow { margin-bottom: var(--s-lg); }

/* ---------- Service tile ---------- */
.svc-tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  height: 100%;
}
.svc-tile .svc-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.svc-tile h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
}
.svc-tile p { color: var(--body); font-size: 15px; line-height: 24px; }
.svc-tile .svc-list {
  margin-top: var(--s-xs);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.0px;
  text-transform: uppercase;
  color: var(--mute);
  display: flex; flex-direction: column; gap: 4px;
}

/* ---------- Metric / stat ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.stat-num {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Case tile ---------- */
.case-tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  height: 100%;
  text-decoration: none;
}
.case-tile .case-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--midnight), var(--canvas));
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
}
.case-tile:hover .case-image { border-color: var(--hairline); }
.case-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-xl);
}
.case-tile .case-image-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}
.case-tile h4 { font-size: 22px; letter-spacing: -0.01em; font-weight: 400; color: var(--ink); }
.case-tile p { color: var(--mute); font-size: 14px; }

/* ---------- Process step ---------- */
.step {
  display: flex;
  gap: var(--s-lg);
  padding: var(--s-xl) 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--mute);
  min-width: 80px;
}
.step-body h4 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: var(--s-sm);
}
.step-body p { color: var(--body); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }
.tier {
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--s-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}
.tier--featured {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.tier--featured .body-md, .tier--featured p { color: rgba(10,10,10,0.7); }
.tier--featured .tier-features li { border-color: rgba(10,10,10,0.12); }
.tier--featured .tier-features li::before { background: var(--canvas); }
.tier--featured .eyebrow { color: var(--canvas); }
.tier--featured .eyebrow::before { background: var(--canvas); }
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tier-price .num {
  font-size: 44px;
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.tier-price .per { font-size: 14px; color: var(--mute); }
.tier--featured .tier-price .per { color: rgba(10,10,10,0.6); }
.tier-features { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-sm); }
.tier-features li {
  font-size: 14px;
  line-height: 22px;
  display: flex;
  gap: var(--s-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--ink);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--s-4xl) 0 var(--s-2xl);
  border-top: 1px solid var(--hairline);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-3xl);
  margin-bottom: var(--s-3xl);
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--s-lg);
}
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-xl);
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--mute);
  flex-wrap: wrap;
  gap: var(--s-md);
}

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--s-sm); }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
}
.field input,
.field select,
.field textarea {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  transition: border-color .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Logo SVG fallback (for icon use) ---------- */
.brand-mark { width: 28px; height: 28px; }
.brand-mark path, .brand-mark polygon { fill: var(--ink); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
.divider-h { height: 1px; background: var(--hairline); width: 100%; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.0px;
  text-transform: uppercase;
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.tag--accent { color: var(--accent-sunset); border-color: rgba(255,122,23,0.3); }

.logo-strip {
  display: flex;
  align-items: center;
  gap: var(--s-3xl);
  flex-wrap: wrap;
  opacity: 0.55;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-soft) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--s-4xl) var(--s-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-xl);
  flex-wrap: wrap;
}
.cta-band h3 {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 24ch;
}

/* =============================================================
   Cosmic Minimalism — Shared Utilities
   ============================================================= */

/* ---------- Pulsing dots ---------- */
@keyframes tag-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,122,23,0.65); }
  70% { box-shadow: 0 0 0 10px rgba(255,122,23,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,23,0); }
}
@keyframes star-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes anchor-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

.dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-sunset);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,122,23,0.65);
  animation: tag-pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
.dot-live--dusk { background: var(--accent-dusk); }
.dot-live--breeze { background: var(--accent-breeze); }
.dot-live--twilight { background: var(--accent-twilight); }

/* ---------- Telemetry rows ---------- */
.tel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.tel-row + .tel-row { border-top: 1px dashed var(--hairline); }
.tel-label { color: var(--mute); }
.tel-value { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Eyebrow variants ---------- */
.eyebrow-live {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
}
.eyebrow-live .dot-live { width: 6px; height: 6px; }

/* ---------- Dotted divider with center dot ---------- */
.divider-dotted {
  position: relative;
  height: 1px;
  margin: 28px 0 24px;
  background-image: linear-gradient(to right, var(--hairline) 50%, transparent 50%);
  background-size: 8px 1px;
}
.divider-dotted::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Section atmospheric ambient ---------- */
.section-ambient {
  position: relative;
  overflow: hidden;
}
.section-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(124,58,237,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 20% 90%, rgba(255,122,23,0.04) 0%, transparent 70%);
  z-index: 0;
}
.section-ambient > * { position: relative; z-index: 1; }

/* ---------- Hero atmospheric glow ---------- */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}
.hero-ambient-glow {
  position: absolute;
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background:
    radial-gradient(circle, rgba(255,122,23,0.10) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(124,58,237,0.10) 0%, transparent 60%);
  filter: blur(50px);
  animation: hero-pulse 9s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* ---------- Status panel (mission control style) ---------- */
.status-panel {
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.status-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
}
.status-panel-head .sp-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.status-panel-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- Card refinements ---------- */
.card--aurora {
  position: relative;
  overflow: hidden;
}
.card--aurora .aurora-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity .8s ease;
  background: radial-gradient(ellipse 80% 50% at 80% 110%, rgba(255,122,23,0.18), transparent 60%);
}
.card--aurora:hover .aurora-glow { opacity: 0.9; }
.card--aurora.aurora-dusk .aurora-glow { background: radial-gradient(ellipse 80% 50% at 80% 110%, rgba(124,58,237,0.20), transparent 60%); }
.card--aurora.aurora-breeze .aurora-glow { background: radial-gradient(ellipse 80% 50% at 80% 110%, rgba(160,195,236,0.16), transparent 60%); }
.card--aurora.aurora-twilight .aurora-glow { background: radial-gradient(ellipse 80% 50% at 80% 110%, rgba(196,181,253,0.16), transparent 60%); }
.card--aurora > * { position: relative; z-index: 1; }

/* ---------- System code label (used on cards) ---------- */
.sys-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
}
.sys-code::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-sunset);
  box-shadow: 0 0 8px rgba(255,122,23,0.6);
}
.sys-code--dusk::before { background: var(--accent-dusk); box-shadow: 0 0 8px rgba(124,58,237,0.6); }
.sys-code--breeze::before { background: var(--accent-breeze); box-shadow: 0 0 8px rgba(160,195,236,0.6); }
.sys-code--twilight::before { background: var(--accent-twilight); box-shadow: 0 0 8px rgba(196,181,253,0.6); }

/* ---------- Launch sequence CTA (smaller variant for inner pages) ---------- */
.cta-launch {
  position: relative;
  overflow: hidden;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--s-4xl) var(--s-3xl);
}
.cta-launch::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 75% 25%, rgba(124,58,237,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 25% 85%, rgba(255,122,23,0.08) 0%, transparent 60%);
}
.cta-launch > * { position: relative; z-index: 1; }
.cta-launch-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-xl);
  flex-wrap: wrap;
}
.cta-launch h3 {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 24ch;
  margin-top: 8px;
}

/* ---------- Phase markers (used on about/contact) ---------- */
.phase-marker {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1.5px solid var(--hairline);
  flex-shrink: 0;
  transition: all .4s ease;
}
.phase-marker--sunset {
  background: var(--accent-sunset); border-color: var(--accent-sunset);
  box-shadow: 0 0 0 4px rgba(255,122,23,0.12), 0 0 18px rgba(255,122,23,0.55);
}
.phase-marker--dusk {
  background: var(--accent-dusk); border-color: var(--accent-dusk);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12), 0 0 18px rgba(124,58,237,0.55);
}
.phase-marker--breeze {
  background: var(--accent-breeze); border-color: var(--accent-breeze);
  box-shadow: 0 0 0 4px rgba(160,195,236,0.12), 0 0 18px rgba(160,195,236,0.55);
}
.phase-marker--twilight {
  background: var(--accent-twilight); border-color: var(--accent-twilight);
  box-shadow: 0 0 0 4px rgba(196,181,253,0.12), 0 0 18px rgba(196,181,253,0.55);
}

/* =============================================================
   Cosmic Nav — Header v2
   ============================================================= */

.nav { transition: background .35s ease; }
.nav-inner { gap: var(--s-lg); position: relative; }

/* Brand */
.nav-brand .nav-brand-mark {
  transition: transform .4s ease, filter .4s ease;
}
.nav-brand:hover .nav-brand-mark {
  transform: rotate(-8deg);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.4));
}
.nav-brand:hover { opacity: 1; }

/* Nav links — with active dot + animated underline */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--body);
  transition: color .2s ease;
}
.nav-link:hover { color: var(--ink); opacity: 1; }
.nav-link-dot {
  width: 5px; height: 5px;
  background: var(--accent-sunset);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .25s ease, transform .25s ease;
}
.nav-link.active .nav-link-dot {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 8px rgba(255,122,23,0.7);
}
.nav-link:hover .nav-link-dot {
  opacity: 0.5;
  transform: scale(0.8);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-link.active::after { background: var(--accent-sunset); }

/* Live status pill */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  background: var(--canvas);
}
.nav-status-dot {
  width: 6px; height: 6px;
  background: var(--accent-sunset);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,122,23,0.65);
  animation: tag-pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
.nav-status-time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Mobile menu toggle */
.nav-mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-mobile-toggle span {
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 49;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(124,58,237,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 50% 80%, rgba(255,122,23,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.nav-mobile-inner {
  position: relative;
  text-align: center;
  padding: 40px;
}
.nav-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.nav-mobile-links a {
  font-size: 38px;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  display: block;
  transition: color .25s ease;
}
.nav-mobile-links a:hover { color: var(--accent-sunset); }
.nav-mobile-status {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Responsive nav */
@media (max-width: 1060px) {
  .nav-status { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
}
@media (min-width: 861px) {
  .nav-mobile-overlay { display: none; }
}

/* ===========================================================
   LEGAL PAGES — Privacy, Terms (readable long-form layout)
   =========================================================== */
.legal-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--hairline);
}
.legal-hero .legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.legal-hero .legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-hero .legal-meta .doc-code {
  color: var(--ink);
}
.legal-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 18px;
  max-width: 22ch;
}
.legal-hero p.lead {
  font-size: 17px;
  line-height: 27px;
  color: var(--body);
  max-width: 68ch;
}

.legal-body {
  padding: 56px 0 96px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.7fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) {
  .legal-body { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 64px; }
}

/* Sticky table of contents */
.legal-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.legal-toc a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  border-left: 1px solid transparent;
  padding-left: 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a .toc-num { color: var(--mute); }
.legal-toc a:hover .toc-num { color: var(--accent-sunset); }
@media (max-width: 960px) {
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .legal-toc-label { width: 100%; }
  .legal-toc a { padding: 4px 10px; border: 1px solid var(--hairline); border-radius: 999px; }
}

/* Document content */
.legal-content {
  max-width: 68ch;
}
.legal-section {
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}
.legal-section:first-child {
  border-top: none;
  padding-top: 0;
}
.legal-section-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-sunset);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.legal-section-code::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-sunset);
  box-shadow: 0 0 8px var(--accent-sunset);
}
.legal-section h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-section h3 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 500;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-section p {
  font-size: 15.5px;
  line-height: 27px;
  color: var(--body);
  margin-bottom: 14px;
}
.legal-section ul, .legal-section ol {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.legal-section ul li, .legal-section ol li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15.5px;
  line-height: 26px;
  color: var(--body);
}
.legal-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-sunset);
  line-height: 26px;
}
.legal-section ol { counter-reset: legal-ol; }
.legal-section ol li { counter-increment: legal-ol; padding-left: 32px; }
.legal-section ol li::before {
  content: counter(legal-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--accent-sunset);
  line-height: 26px;
}
.legal-section strong { color: var(--ink); font-weight: 500; }
.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 3px;
}
.legal-section a:hover {
  opacity: 1;
  text-decoration-color: var(--accent-sunset);
}

.legal-callout {
  padding: 18px 22px;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent-sunset);
  border-radius: 8px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 24px;
  color: var(--body);
}
.legal-callout strong { color: var(--ink); }

/* ===========================================================
   FORM SUCCESS — inline confirmation, shared by hero/modal/contact
   =========================================================== */
.form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  animation: form-success-in 0.5s cubic-bezier(.2, .7, .3, 1) forwards;
}
.form-success[hidden] { display: none; }
@keyframes form-success-in {
  to { opacity: 1; transform: translateY(0); }
}
.form-success-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-page, var(--accent-sunset));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 12px rgba(255, 122, 23, 0.4);
}
.form-success-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.form-success-text .mute { color: var(--mute); }
.form-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--danger);
}
.form-error[hidden] { display: none; }

/* ===========================================================
   FLOATING CTA — bottom-right pill, all pages except /contact
   =========================================================== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.floating-cta.shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 24px;
  /* Layered backgrounds — ink fill via padding-box; flowing 4-accent gradient via border-box */
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(90deg,
      var(--accent-sunset),
      var(--accent-dusk),
      var(--accent-breeze),
      var(--accent-twilight),
      var(--accent-sunset),
      var(--accent-dusk),
      var(--accent-breeze),
      var(--accent-twilight),
      var(--accent-sunset)
    ) border-box;
  background-size: auto, 400% 100%;
  background-position: 0 0, 0% 50%;
  color: var(--canvas);
  border: 1.6px solid transparent;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cta-border-flow 8s linear infinite;
}
@keyframes cta-border-flow {
  from { background-position: 0 0, 0% 50%; }
  to   { background-position: 0 0, 400% 50%; }
}
.floating-cta-trigger:hover {
  transform: translateY(-1px);
  animation-duration: 4s;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .floating-cta-trigger { animation: none; }
}
.floating-cta-arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  transition: transform 0.2s ease;
}
.floating-cta-trigger:hover .floating-cta-arrow { transform: translateX(2px); }
.floating-cta-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  color: var(--mute);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.floating-cta-close:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: scale(1.05);
}
@media (max-width: 480px) {
  .floating-cta { bottom: 16px; right: 16px; }
  .floating-cta-trigger { padding: 12px 20px; font-size: 13px; }
}

/* CTA Modal */
.cta-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cta-modal.open { display: flex; }
.cta-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.cta-modal.open .cta-modal-backdrop { opacity: 1; }
.cta-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 36px 28px 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: scale(0.96) translateY(20px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(.2, .7, .3, 1),
    opacity 0.3s ease;
}
.cta-modal.open .cta-modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.cta-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  color: var(--mute);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cta-modal-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ink);
}
.cta-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-page-soft, var(--accent-sunset-soft));
  margin-bottom: 8px;
}
.cta-modal-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-page, var(--accent-sunset));
  box-shadow: 0 0 8px var(--accent-page, var(--accent-sunset));
}
.cta-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 22px;
  max-width: 28ch;
  color: var(--ink);
}
.cta-modal-form .field { margin-bottom: 10px; }
.cta-modal-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.cta-modal-form input,
.cta-modal-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-family: var(--font-display);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cta-modal-form input::placeholder { color: var(--mute); opacity: 0.7; }
.cta-modal-form input:focus,
.cta-modal-form select:focus {
  outline: none;
  border-color: var(--accent-page, var(--accent-sunset));
  background: rgba(255, 255, 255, 0.05);
}
.cta-modal-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%237d8187' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 36px;
  cursor: pointer;
}
.cta-modal-form select option { background: var(--canvas); color: var(--ink); }
.cta-modal-form-row { display: flex; gap: 10px; }
.cta-modal-form-row > .field { flex: 1; min-width: 0; }
.cta-modal-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 13px 18px;
  font-size: 14px;
}
.cta-modal-foot {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-top: 10px;
}
@media (max-width: 480px) {
  .cta-modal { padding: 16px; }
  .cta-modal-panel { padding: 30px 22px 20px; }
  .cta-modal-title { font-size: 19px; margin-bottom: 18px; }
  .cta-modal-form-row { flex-direction: column; gap: 0; }
}

/* ===========================================================
   SCOPE MANIFEST — Editorial 2-col rows per group
   Replaces the 6-card scope grid. Vertical, scannable, premium.
   Per-page color via --accent-page / --accent-page-soft.
   =========================================================== */
.scope-manifest {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.scope-manifest-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.5fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}
.scope-manifest-row:first-child {
  border-top: none;
  padding-top: 8px;
}
.scope-manifest-row:last-child {
  padding-bottom: 8px;
}

.scope-manifest-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 96px; /* clears the sticky nav when scrolling */
}
.scope-manifest-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scope-manifest-code::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-page, var(--accent-sunset));
  box-shadow: 0 0 8px var(--accent-page, var(--accent-sunset));
}
.scope-manifest-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--accent-page-soft, var(--accent-sunset-soft));
  max-width: 18ch;
}

.scope-manifest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scope-manifest-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--body);
  border-bottom: 1px dashed var(--hairline);
}
.scope-manifest-list li:last-child {
  border-bottom: none;
}
.scope-manifest-list li::before {
  content: '→';
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-page, var(--accent-sunset));
  flex-shrink: 0;
  letter-spacing: 0;
  line-height: 24px;
}

/* Mobile — stack head above list */
@media (max-width: 760px) {
  .scope-manifest-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .scope-manifest-head {
    position: static;
  }
  .scope-manifest-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  .scope-manifest-list li {
    padding: 10px 0;
    font-size: 14.5px;
    line-height: 23px;
  }
}

/* ===========================================================
   PHASE SPINE — "How we work" prominent process layout
   Vertical zig-zag with giant numerals.
   Used on all 4 service pages. Per-page color via --accent-page / --accent-page-soft.
   =========================================================== */
.phase-spine {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.phase-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.5fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.phase-row:first-child {
  border-top: none;
  padding-top: 16px;
}
.phase-row:last-child { padding-bottom: 16px; }

/* Alternating row direction — zig-zag */
.phase-row--right {
  grid-template-columns: 1.5fr minmax(220px, 0.85fr);
}
.phase-row--right .phase-numeral { order: 2; text-align: right; padding-right: 8px; }
.phase-row--right .phase-content { order: 1; }

/* Giant numeral — the visual spine */
.phase-numeral {
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 400;
  color: var(--accent-page-soft, var(--accent-sunset-soft));
  text-align: left;
  padding-left: 8px;
  user-select: none;
  /* Subtle inner glow via stroke for depth */
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.05);
}

/* Content side */
.phase-content { max-width: 56ch; }

.phase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.phase-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phase-code::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-page, var(--accent-sunset));
  box-shadow: 0 0 8px var(--accent-page, var(--accent-sunset));
}
.phase-weeks {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--canvas-card);
}

.phase-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}

.phase-desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--body);
  margin-bottom: 24px;
}

/* Deliverable callout — the "you walk away with" line */
.phase-deliverable {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  max-width: 100%;
}
.phase-deliverable-label {
  color: var(--mute);
  flex-shrink: 0;
}
.phase-deliverable-text {
  color: var(--accent-page-soft, var(--accent-sunset-soft));
}

/* Mobile — stack and shrink */
@media (max-width: 760px) {
  .phase-row,
  .phase-row--right {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 40px 0;
  }
  .phase-row--right .phase-numeral { order: 1; text-align: left; padding-right: 0; }
  .phase-row--right .phase-content { order: 2; }
  .phase-numeral {
    font-size: clamp(78px, 22vw, 120px);
    line-height: 0.9;
    text-align: left;
    padding-left: 0;
  }
  .phase-title { font-size: clamp(26px, 6.5vw, 36px); }
  .phase-desc { font-size: 15px; line-height: 25px; margin-bottom: 18px; }
  .phase-deliverable {
    padding: 12px 14px;
    font-size: 10.5px;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ===========================================================
   SERVICES DROPDOWN
   =========================================================== */
.nav-services-wrap {
  position: relative;
  list-style: none;
}

/* Bridge buffer so hover doesn't break on the gap between trigger and panel */
.nav-services-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 18px;
  pointer-events: none;
}
.nav-services-wrap:hover::after,
.nav-services-wrap:focus-within::after,
.nav-services-wrap.open::after {
  pointer-events: auto;
}

/* Trigger button — inherits .nav-link styling; only resets button defaults */
.nav-link-services {
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
}
/* Caret — the only visual addition vs. a plain .nav-link */
.nav-caret {
  width: 9px;
  height: 9px;
  color: currentColor;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-services-wrap.open .nav-caret,
.nav-services-wrap:hover .nav-caret {
  transform: rotate(180deg);
}
/* When dropdown is pinned open via click, light the dot like .active does */
.nav-link-services[aria-expanded="true"] .nav-link-dot {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 8px rgba(255, 122, 23, 0.7);
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 380px;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0.22s;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  z-index: 100;
}
.nav-services-wrap:hover .nav-dropdown,
.nav-services-wrap:focus-within .nav-dropdown,
.nav-services-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown item — full clickable card row */
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s ease;
  opacity: 1;
}
.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.035);
  opacity: 1;
}
.nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.045);
}

.nav-dropdown-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.nav-dropdown-dot.sunset { background: var(--accent-sunset); }
.nav-dropdown-dot.dusk { background: var(--accent-dusk); }
.nav-dropdown-dot.breeze { background: var(--accent-breeze); }
.nav-dropdown-dot.twilight { background: var(--accent-twilight); }
.nav-dropdown-item:hover .nav-dropdown-dot.sunset { box-shadow: 0 0 10px var(--accent-sunset); }
.nav-dropdown-item:hover .nav-dropdown-dot.dusk { box-shadow: 0 0 10px var(--accent-dusk); }
.nav-dropdown-item:hover .nav-dropdown-dot.breeze { box-shadow: 0 0 10px var(--accent-breeze); }
.nav-dropdown-item:hover .nav-dropdown-dot.twilight { box-shadow: 0 0 10px var(--accent-twilight); }

.nav-dropdown-text {
  flex: 1;
  min-width: 0;
}
.nav-dropdown-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-dropdown-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--mute);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.nav-dropdown-item:hover .nav-dropdown-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--ink);
}

.nav-dropdown-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 5px;
  line-height: 1.4;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--hairline);
  margin: 8px 10px;
}

/* "View all services" footer row */
.nav-dropdown-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
  opacity: 1;
}
.nav-dropdown-all:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  opacity: 1;
}
.nav-dropdown-all .nav-dropdown-arrow {
  opacity: 1;
  transform: translateX(0);
  font-size: 12px;
  letter-spacing: 0;
}

/* ===========================================================
   MOBILE DROPDOWN (accordion inside the mobile overlay)
   =========================================================== */
.nav-mobile-services-wrap { width: 100%; }

.nav-mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  line-height: 1.1;
}
.nav-mobile-services-toggle .nav-caret {
  width: 14px;
  height: 14px;
  margin-left: 12px;
  color: var(--mute);
}
.nav-mobile-services-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
  color: var(--ink);
}

.nav-mobile-services-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), padding 0.3s ease;
  list-style: none;
  padding: 0;
  margin-top: 0;
}
.nav-mobile-services-list.open {
  max-height: 460px;
  margin-top: 16px;
}
.nav-mobile-services-list li {
  padding: 14px 0 14px 18px;
  border-left: 1px solid var(--hairline);
  margin-left: 4px;
}
.nav-mobile-services-list li:first-child { padding-top: 4px; }
.nav-mobile-services-list li:last-child {
  border-left-color: transparent;
  border-top: 1px dashed var(--hairline);
  padding-top: 16px;
  margin-top: 8px;
}
.nav-mobile-services-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--body);
  line-height: 1.3;
  transition: color 0.2s ease;
}
.nav-mobile-services-list a:hover { color: var(--ink); opacity: 1; }
.nav-mobile-services-list a .nav-dropdown-dot {
  width: 7px; height: 7px; margin-top: 0;
}
.nav-mobile-services-list a .nav-mobile-services-tagline {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
  margin-left: 4px;
}
.nav-mobile-services-list li:last-child a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--body);
}

/* Hide desktop dropdown on mobile, hide mobile accordion on desktop */
@media (max-width: 860px) {
  .nav-services-wrap .nav-dropdown { display: none; }
}
@media (min-width: 861px) {
  .nav-mobile-services-wrap { display: none; }
}

/* =============================================================
   Cosmic Footer — v2
   ============================================================= */

.footer-cosmic {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}
.footer-cosmic::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124,58,237,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(255,122,23,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Watermark mark */
.footer-watermark {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: 580px;
  height: 660px;
  pointer-events: none;
  opacity: 1;
  z-index: 0;
}
.footer-watermark svg { width: 100%; height: 100%; }
.footer-watermark path { fill: rgba(255,255,255,0.025); }
@media (max-width: 960px) {
  .footer-watermark { width: 380px; height: 440px; right: -18%; }
}

/* Closing arc section */
.footer-arc {
  padding: 96px 0 64px;
  position: relative;
  z-index: 1;
}
.footer-arc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .footer-arc-grid { grid-template-columns: 1fr; gap: 48px; } }
.footer-arc-head {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-top: 24px;
  max-width: 18ch;
}
.footer-arc-visual { display: flex; justify-content: flex-end; align-items: center; }
@media (max-width: 960px) { .footer-arc-visual { justify-content: center; } }
.footer-arc-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  overflow: visible;
}
.footer-arc-ember {
  transform-box: fill-box;
  transform-origin: center;
  animation: anchor-pulse 4s ease-in-out infinite;
}

/* Live status bar */
.footer-status-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}
.footer-status-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 96px 100%;
  pointer-events: none;
}
.footer-status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
@media (max-width: 760px) { .footer-status-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .footer-status-row { grid-template-columns: 1fr; } }
.fs-cell {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.fs-cell + .fs-cell { border-left: 1px solid var(--hairline); }
@media (max-width: 760px) {
  .fs-cell:nth-child(odd):not(:first-child) { border-left: none; border-top: 1px solid var(--hairline); }
  .fs-cell:nth-child(even) { border-top: 1px solid var(--hairline); }
  .fs-cell:nth-child(1), .fs-cell:nth-child(2) { border-top: none; }
}
@media (max-width: 420px) {
  .fs-cell + .fs-cell { border-left: none; border-top: 1px solid var(--hairline); }
}
.fs-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
}
.fs-value {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.fs-value .dot-live { width: 6px; height: 6px; }

/* Main footer grid */
.footer-main {
  padding: 72px 0 48px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-cosmic .footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-col-code {
  color: var(--accent-sunset);
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 400;
}
.footer-cosmic .footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-cosmic .footer-col ul li { padding: 4px 0; }
.footer-cosmic .footer-col ul li a {
  font-size: 14.5px;
  color: var(--body);
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-cosmic .footer-col ul li a:hover { color: var(--ink); opacity: 1; }
.footer-cosmic .footer-col ul li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
  flex-shrink: 0;
}
.footer-cosmic .footer-col ul li a:hover::before {
  background: var(--accent-sunset);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255,122,23,0.7);
}

/* Compact stations marquee */
.footer-marquee-strip {
  border-top: 1px solid var(--hairline);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.footer-marquee-strip::before, .footer-marquee-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  pointer-events: none;
  z-index: 2;
}
.footer-marquee-strip::before { left: 0; background: linear-gradient(to right, var(--canvas), transparent); }
.footer-marquee-strip::after { right: 0; background: linear-gradient(to left, var(--canvas), transparent); }
.footer-marquee-track {
  display: flex;
  width: max-content;
  animation: footer-marquee-scroll 60s linear infinite;
}
.footer-marquee-track > span {
  padding: 0 22px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mute);
}
.footer-marquee-track .sep { color: var(--accent-sunset); }
.footer-marquee-track .station-code { color: var(--ink); }
@keyframes footer-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Bottom bar */
.footer-bottom-bar {
  position: relative;
  z-index: 1;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.footer-bottom-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--mute);
}
.footer-tagline-mono {
  font-family: var(--font-mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--mute);
}
.footer-tagline-mono .sep { color: var(--accent-sunset); margin: 0 6px; }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
