/* AXLE site: shared styles. Formative type, dual theme, instrument idiom. */

@font-face {
  font-family: "Formative";
  src: url("fonts/Formative-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Formative";
  src: url("fonts/Formative-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Formative";
  src: url("fonts/Formative-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060708;
  --bg-raise: #0b0d0f;
  --ink: #ece9e2;
  --muted: #98948a;
  --dim: #5c5952;
  --line: rgba(236, 233, 226, 0.1);
  --line-soft: rgba(236, 233, 226, 0.06);
  --ember: #ff6a3c;
  --ember-soft: rgba(255, 106, 60, 0.14);
  --badge-bg: #ece9e2;
  --badge-ink: #0a0908;
  --nav-veil: rgba(6, 7, 8, 0.72);
  --grain-opacity: 0.035;
  --frame-edge: rgba(236, 233, 226, 0.14);
  --frame-ring: rgba(236, 233, 226, 0.07);
  --frame-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --scene-a: rgba(255, 106, 60, 0.055);
  --scene-b: rgba(64, 96, 148, 0.07);
  --type: "Formative", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}
[data-theme="light"] {
  --bg: #f2efe9;
  --bg-raise: #faf8f3;
  --ink: #17140f;
  --muted: #6d675c;
  --dim: #9a948a;
  --line: rgba(23, 20, 15, 0.14);
  --line-soft: rgba(23, 20, 15, 0.08);
  --ember: #d24d20;
  --ember-soft: rgba(210, 77, 32, 0.11);
  --badge-bg: #17140f;
  --badge-ink: #f2efe9;
  --nav-veil: rgba(242, 239, 233, 0.78);
  --grain-opacity: 0.05;
  --frame-edge: rgba(23, 20, 15, 0.18);
  --frame-ring: rgba(23, 20, 15, 0.05);
  --frame-shadow: 0 24px 60px rgba(23, 20, 15, 0.18);
  --scene-a: rgba(210, 77, 32, 0.06);
  --scene-b: rgba(64, 96, 148, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--type);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
::selection {
  background: var(--ember);
  color: #0a0605;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 1.5px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ── atmosphere ─────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
}
.rules {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    var(--line-soft) 1px,
    transparent 1px
  );
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
  opacity: 0.5;
}

/* ── nav ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-veil);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 22px;
  width: auto;
}
[data-theme="light"] .brand-mark {
  filter: invert(1);
}
.nav-brand span {
  font-size: 14px;
  letter-spacing: 0.32em;
  font-weight: 600;
  padding-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
}
.nav-links a {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.nav-cta:hover {
  border-color: var(--ember);
  background: var(--ember-soft);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ember);
}
.theme-toggle svg {
  width: 15px;
  height: 15px;
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ── shared section scaffolding ─────────────────── */
main {
  position: relative;
  z-index: 4;
  background: var(--bg);
  transition: background 0.35s ease;
}
.band {
  position: relative;
  padding: clamp(90px, 12vw, 170px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line-soft);
}
.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 90px);
}
.band-index {
  font-size: 12.5px;
  letter-spacing: 0.28em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.band-index b {
  color: var(--ember);
  font-weight: 600;
}
.band-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
h1,
h2,
h3 {
  font-weight: 600;
}
h2 em,
h1 em,
.close-inner h2 em {
  font-style: normal;
  color: var(--ember);
  font-weight: 600;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ember);
}

/* ── page hero (subpages) ───────────────────────── */
.page-hero {
  padding: clamp(150px, 20vh, 220px) clamp(20px, 5vw, 72px)
    clamp(60px, 8vw, 110px);
  position: relative;
  z-index: 4;
}
.page-hero h1 {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 24px 0 22px;
  max-width: 900px;
}
.page-hero .lede {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
}

/* ── CTA elements ───────────────────────────────── */
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border-radius: 12px;
  padding: 12px 22px 12px 16px;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--ember-soft);
}
.store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.store-badge .sb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge .sb-small {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.store-badge .sb-big {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cta-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cta-note .microcopy {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ember);
}
.cta-note a {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  width: fit-content;
  padding-bottom: 1px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.cta-note a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ── device frame ───────────────────────────────── */
.frame {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid var(--frame-edge);
  background: #0a0b0c;
  box-shadow:
    inset 0 0 0 6px var(--bg),
    inset 0 0 0 7px var(--frame-ring),
    var(--frame-shadow);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease;
}
.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1385;
  object-fit: cover;
}

/* ── text-axle band ─────────────────────────────── */
.band--sms {
  text-align: center;
}
.sms-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.sms-inner .eyebrow {
  justify-content: center;
}
.sms-inner .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ember);
}
.sms-inner h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.sms-inner > p {
  color: var(--muted);
  max-width: 480px;
}
.sms-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 30px;
  margin-top: 6px;
  font-weight: 500;
  font-size: 16px;
  background: var(--bg-raise);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sms-cta:hover {
  border-color: var(--ember);
  background: var(--ember-soft);
  transform: translateY(-2px);
}
.sms-cta .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
}
.sms-fineprint {
  font-size: 12px;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.7;
}
.sms-fineprint a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sms-fineprint a:hover {
  color: var(--muted);
}

/* ── footer ─────────────────────────────────────── */
footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line-soft);
  padding: 56px clamp(20px, 5vw, 72px) 44px;
  background: var(--bg);
  transition: background 0.35s ease;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-brand .brand-mark {
  height: 20px;
}
.foot-brand span {
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: 600;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.foot-links a {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-legal p {
  font-size: 13px;
  color: var(--dim);
  max-width: 720px;
}
.foot-legal .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ── ledger (shared) ────────────────────────────── */
.ledger {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
}
.ledger-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ledger-row .idx {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dim);
  padding-top: 3px;
  letter-spacing: 0.08em;
}
.ledger-row p {
  font-size: 16.5px;
  color: var(--muted);
}
.ledger-row p strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── engine page: flow ──────────────────────────── */
.flow {
  max-width: 880px;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(34px, 4vw, 54px) 0;
}
.flow-step + .flow-step {
  border-top: 1px solid var(--line-soft);
}
.flow-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: 0.14em;
  padding-top: 7px;
}
.flow-step h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.flow-step p {
  color: var(--muted);
  max-width: 640px;
}
.flow-step p + p {
  margin-top: 14px;
}
.flow-step p strong {
  color: var(--ink);
  font-weight: 500;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.chip {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  color: var(--muted);
}
.pull {
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  border-radius: 4px;
  background: var(--bg-raise);
  max-width: 640px;
}
.pull p {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.pull .src {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 640px) {
  .flow-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ── features page: tour rows ───────────────────── */
.tour-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding: clamp(50px, 7vw, 100px) 0;
}
.tour-row + .tour-row {
  border-top: 1px solid var(--line-soft);
}
.tour-row:nth-child(even) {
  grid-template-columns: 1fr minmax(220px, 340px);
}
.tour-row:nth-child(even) .tour-media {
  order: 2;
}
.tour-media {
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
}
.tour-copy .k {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
}
.tour-copy h2 {
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.01em;
  margin: 12px 0 16px;
}
.tour-copy p {
  color: var(--muted);
  max-width: 560px;
}
.tour-copy p + p {
  margin-top: 14px;
}
.tour-copy p strong {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 760px) {
  .tour-row,
  .tour-row:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .tour-row:nth-child(even) .tour-media {
    order: 0;
  }
  .tour-media {
    max-width: 280px;
  }
}

/* ── reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── liquid glass: the house surface (mirrors the app's LiquidGlassSurface) ── */
:root {
  --glass-fill: rgba(236, 233, 226, 0.05);
  --glass-border: rgba(236, 233, 226, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
  --glass-fallback: #101215;
  --glass-blur: 18px;
  --glass-sat: 1.5;
}
[data-theme="light"] {
  /* Low fill + hard saturate: the glass must visibly bend the color field behind it. */
  --glass-fill: rgba(255, 255, 255, 0.3);
  --glass-border: rgba(23, 20, 15, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 24px 50px rgba(23, 20, 15, 0.13);
  --glass-fallback: #faf8f3;
  --glass-blur: 22px;
  --glass-sat: 2.1;
}
.glass {
  position: relative;
  border-radius: 20px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow);
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .glass {
    background: var(--glass-fallback);
  }
}
.glass .hairline {
  height: 1px;
  background: var(--line-soft);
  border: none;
}

/* nav on scroll = glass bar */
.nav.scrolled {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-bottom-color: var(--glass-border);
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .nav.scrolled {
    background: var(--nav-veil);
  }
}

/* ── aurora tints: gives the glass something to refract ── */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.band > :not(.aurora),
.page-hero > :not(.aurora) {
  position: relative;
  z-index: 1;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
}
[data-theme="light"] .aurora i {
  opacity: 0.85;
}
.aurora .a-ember {
  background: radial-gradient(circle, var(--scene-a), transparent 65%);
}
.aurora .a-blue {
  background: radial-gradient(circle, var(--scene-b), transparent 65%);
}
.aurora .a-green {
  background: radial-gradient(circle, rgba(74, 140, 96, 0.06), transparent 65%);
}
.aurora .a-violet {
  background: radial-gradient(
    circle,
    rgba(110, 84, 158, 0.06),
    transparent 65%
  );
}
[data-theme="light"] .aurora .a-green {
  background: radial-gradient(circle, rgba(58, 122, 80, 0.14), transparent 65%);
}
[data-theme="light"] .aurora .a-violet {
  background: radial-gradient(
    circle,
    rgba(104, 78, 152, 0.14),
    transparent 65%
  );
}
/* loud blobs: the color field BEHIND glass panels, strong enough to visibly refract */
.aurora .b-ember {
  background: radial-gradient(
    circle,
    rgba(255, 106, 60, 0.22),
    transparent 62%
  );
}
.aurora .b-blue {
  background: radial-gradient(
    circle,
    rgba(96, 140, 220, 0.18),
    transparent 62%
  );
}
.aurora .b-green {
  background: radial-gradient(
    circle,
    rgba(88, 170, 112, 0.16),
    transparent 62%
  );
}
.aurora .b-violet {
  background: radial-gradient(
    circle,
    rgba(140, 108, 200, 0.16),
    transparent 62%
  );
}
[data-theme="light"] .aurora .b-ember {
  background: radial-gradient(circle, rgba(214, 79, 34, 0.3), transparent 62%);
}
[data-theme="light"] .aurora .b-blue {
  background: radial-gradient(circle, rgba(58, 96, 168, 0.26), transparent 62%);
}
[data-theme="light"] .aurora .b-green {
  background: radial-gradient(circle, rgba(48, 118, 72, 0.24), transparent 62%);
}
[data-theme="light"] .aurora .b-violet {
  background: radial-gradient(
    circle,
    rgba(104, 78, 152, 0.24),
    transparent 62%
  );
}

/* ── glass application overrides ── */
/* surfaces rail cards */
.card.glass {
  padding: 12px 12px 20px;
  border-radius: 28px;
}
.card.glass .frame {
  border-radius: 22px;
}
.card.glass .card-meta {
  padding: 18px 10px 0;
}

/* quote bands: typography on refractive glass over a loud color field.
   (The old accent-rail quote card is retired.) */
.quote-band {
  position: relative;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.quote-band > :not(.aurora) {
  position: relative;
  z-index: 1;
}
.quote-band .aurora i {
  opacity: 1;
}
.quote-glass {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) clamp(24px, 6vw, 88px);
  border-radius: 30px;
  text-align: center;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow);
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .quote-glass {
    background: var(--glass-fallback);
  }
}
.quote-glass .q {
  font-size: clamp(26px, 3.6vw, 50px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.quote-glass .qs {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* engine flow: floating glass steps */
.flow {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.4vw, 34px);
  border: none;
}
.flow-step.glass {
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 46px);
}
.flow-step + .flow-step {
  border-top: none;
}

/* features tour: each row is a glass object */
.tour-row.glass {
  padding: clamp(28px, 4vw, 54px) clamp(22px, 4vw, 54px);
}
.tour-row + .tour-row {
  border-top: none;
  margin-top: clamp(26px, 4vw, 44px);
}
.tour-stack {
  display: flex;
  flex-direction: column;
}

/* trust ledger card */
.ledger-card.glass {
  padding: clamp(24px, 3vw, 40px);
  margin-top: 40px;
}
.ledger-card .ledger {
  margin-top: 0;
  border-top: none;
}
.ledger-card .ledger-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ledger-card .ledger-row:first-child {
  padding-top: 0;
}

/* text-axle card */
.sms-card.glass {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px);
  border-radius: 26px;
}

/* ── index: hero ────────────────────────────────── */
.hero {
  position: relative;
  height: 230vh;
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(90% 70% at 72% 30%, var(--scene-a), transparent 60%),
    radial-gradient(80% 60% at 20% 85%, var(--scene-b), transparent 65%),
    var(--bg);
  transition: background 0.35s ease;
}
#canvas-container {
  position: absolute;
  inset: 0;
  z-index: 2;
}
#canvas-container canvas {
  display: block;
}
.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 640px;
  will-change: opacity, transform;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 26px 0 24px;
}
.hero-copy h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--ember);
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 470px;
  line-height: 1.65;
}
.hero-caption {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16vh;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}
.hero-caption .word {
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  font-weight: 600;
}
.hero-caption .tag {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--ember);
  animation: cueDrop 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cueDrop {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}
@media (max-width: 860px) {
  .hero-copy {
    top: auto;
    bottom: 12vh;
    transform: none;
    right: clamp(20px, 5vw, 72px);
  }
  .hero-caption {
    bottom: 45vh;
  }
  .scroll-cue {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: 100vh;
  }
}

/* ── index: engine band ─────────────────────────── */
.engine-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.engine-lede h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.engine-lede p {
  margin-top: 22px;
  color: var(--muted);
  max-width: 400px;
}
.engine-lede {
  position: sticky;
  top: 120px;
}
.beats {
  display: flex;
  flex-direction: column;
}
.beat {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--line-soft);
}
.beat:first-child {
  border-top: none;
  padding-top: 0;
}
.beat-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  padding-top: 5px;
}
.beat h3 {
  font-size: clamp(19px, 1.9vw, 24px);
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.beat p {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}
.beat p strong {
  color: var(--ink);
  font-weight: 500;
}
.honest {
  margin-top: 26px;
  padding: 28px 30px;
}
.honest p {
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}
.honest .src {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 860px) {
  .engine-grid {
    grid-template-columns: 1fr;
  }
  .engine-lede {
    position: static;
  }
}

/* ── index: surfaces rail ───────────────────────── */
.band--surfaces {
  padding-right: 0;
  padding-left: 0;
}
.band--surfaces .band-head,
.band--surfaces .surfaces-lede {
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}
.surfaces-lede {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.surfaces-lede h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.surfaces-lede p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 540px;
}
.rail {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 10px clamp(20px, 5vw, 72px) 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.card {
  flex: 0 0 auto;
  width: clamp(250px, 25vw, 320px);
  scroll-snap-align: start;
}
.card:nth-child(even) {
  transform: translateY(28px);
}
.card-meta .k {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}
.card-meta h3 {
  font-size: 20px;
  margin: 8px 0 6px;
}
.card-meta p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}
.rail-hint {
  padding: 4px clamp(20px, 5vw, 72px) 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── index: trust ───────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.trust-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.trust-visual img {
  width: clamp(200px, 24vw, 330px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}
[data-theme="light"] .trust-visual img {
  filter: drop-shadow(0 30px 50px rgba(23, 20, 15, 0.28));
}
.trust-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    var(--ember-soft),
    transparent 70%
  );
  opacity: 0.6;
}
.trust-copy h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.trust-copy > p {
  color: var(--muted);
  max-width: 480px;
}
@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-visual {
    order: -1;
  }
}

/* ── close band (shared) ────────────────────────── */
.close-inner {
  max-width: 880px;
}
.close-inner h2 {
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.07;
  letter-spacing: -0.02em;
}
.close-inner .hero-ctas {
  margin-top: 44px;
}
.scale-honesty {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  max-width: 560px;
  color: var(--dim);
  font-size: 15px;
}

/* ── figures: hand-built inline SVG diagrams, house style ── */
.fig { margin-top: 30px; }
.fig-scroll { overflow-x: auto; scrollbar-width: none; }
.fig-scroll::-webkit-scrollbar { display: none; }
.fig svg { display: block; width: 100%; height: auto; min-width: 520px; }
.fig--free svg { min-width: 0; }
.fig .cap {
  margin-top: 14px;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
}
.fig text {
  font-family: var(--type);
  font-size: 15px;
  fill: var(--muted);
  letter-spacing: 0.04em;
}
.fig text.strong { fill: var(--ink); font-weight: 600; }
.fig text.accent { fill: var(--ember); font-weight: 600; }
.fig text.tiny { font-size: 12.5px; }
.fig .ln { stroke: var(--line); }
.fig .ln-soft { stroke: var(--line-soft); }
.fig .ink { stroke: var(--ink); }
.fig .mut { stroke: var(--muted); }
.fig .dim { stroke: var(--dim); }
.fig .emb { stroke: var(--ember); }
.fig .emb-f { fill: var(--ember); }
.fig .band-f { fill: var(--ember-soft); }
.fig .soft-f { fill: var(--line-soft); }
.fig .node {
  fill: var(--bg-raise);
  stroke: var(--line);
}
.fig .none { fill: none; }

/* ── travel band (index) ── */
.travel-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.travel-copy h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.travel-copy > p { margin-top: 20px; color: var(--muted); max-width: 460px; }
.travel-list { margin-top: 26px; display: flex; flex-direction: column; }
.travel-list .item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 14px; padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.travel-list .item .idx {
  font-size: 12.5px; font-weight: 500; color: var(--dim);
  letter-spacing: 0.08em; padding-top: 3px;
}
.travel-list .item p { color: var(--muted); font-size: 16px; }
.travel-list .item p strong { color: var(--ink); font-weight: 500; }
.travel-fig.glass { padding: clamp(22px, 3vw, 40px); }
@media (max-width: 860px) {
  .travel-grid { grid-template-columns: 1fr; }
}

/* wide tour row (no phone media, figure spans full width) */
.tour-row--wide,
.tour-row--wide:nth-child(even) {
  grid-template-columns: 1fr;
}
.tour-row--wide .tour-copy {
  max-width: 760px;
}
.tour-row--wide .tour-copy p {
  max-width: 640px;
}
