/* ==========================================================================
   SMART COACH — POMEGRANATE MULTI-PAGE DESIGN SYSTEM
   Deep Garnet · Ruby Aril · Pith Cream · Roboto & Arial · Rounded Squared Borders
   ========================================================================== */

:root {
  /* Pomegranate Colorimetry */
  --bg-canvas: #fbf7f5;
  --bg-surface: #f4ece9;
  --bg-surface-elevated: #ffffff;
  --bg-navy: #2c0a14;
  --bg-navy-mid: #40101e;
  --bg-thunder: #531628;

  --ink-primary: #220810;
  --ink-secondary: #5c3d46;
  --ink-muted: #84646d;
  --ink-inverse: #fdf8f7;
  --ink-inverse-muted: #dfc8ce;

  --accent: #a61c3c;
  --accent-sky: #fb7185;
  --accent-ice: #fecdd3;
  --accent-soft: rgba(166, 28, 60, 0.09);
  --accent-dark-soft: rgba(251, 113, 133, 0.16);

  --border-hairline: rgba(34, 8, 16, 0.13);
  --border-strong: rgba(34, 8, 16, 0.28);
  --border-inverse: rgba(253, 240, 242, 0.18);

  /* Authoritative & Elegant Typography */
  --font-serif: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-sans: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion & Easing Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-editorial: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-in-out-silky: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Geometry — Rounded Corners + Squared Borders */
  --container-max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --shadow-subtle: 0 4px 20px -6px rgba(34, 8, 16, 0.07);
  --shadow-elevated: 0 22px 54px -18px rgba(34, 8, 16, 0.16);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.62;
  overflow-x: hidden;
  position: relative;
}

body.is-locked {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 9999;
  background: var(--bg-navy);
  color: var(--ink-inverse);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 16px;
}

.grain-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   1. EDITORIAL PRELOADER / PAGE TRANSITION CURTAIN
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(155deg, var(--bg-navy) 0%, var(--bg-navy-mid) 100%);
  color: var(--ink-inverse);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px);
  transition: transform 900ms var(--ease-in-out-editorial), visibility 900ms;
  will-change: transform;
}

.preloader.is-done {
  transform: translateY(-102%);
  visibility: hidden;
  pointer-events: none;
}

.preloader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
}

.preloader-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preloader-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  overflow: hidden;
}

.preloader-wordmark span {
  display: inline-block;
  transform: translateY(100%);
  animation: slideUpMask 700ms var(--ease-out-expo) 100ms forwards;
}

.preloader-line-wrap {
  width: 100%;
  height: 1px;
  background: rgba(253, 240, 242, 0.16);
  overflow: hidden;
}

.preloader-line {
  width: 100%;
  height: 100%;
  background: var(--accent-sky);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 260ms var(--ease-out-expo);
}

.preloader-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.preloader-note {
  font-size: 13px;
  color: var(--ink-inverse-muted);
  max-width: 280px;
}

.preloader-percent {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. CONTEXTUAL MAGNETIC CURSOR
   ========================================================================== */

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  pointer-events: none;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(251, 113, 133, 0.55);
  background: transparent;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    width 320ms var(--ease-out-expo),
    height 320ms var(--ease-out-expo),
    background-color 280ms ease,
    border-color 280ms ease,
    opacity 240ms ease;
  will-change: transform, width, height;
}

.cursor-follower.is-visible {
  opacity: 1;
}

.cursor-follower.is-hidden-input {
  opacity: 0;
}

.cursor-follower.is-active {
  width: 74px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-navy);
  border-color: var(--accent-sky);
}

.cursor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-inverse);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 200ms ease, transform 240ms var(--ease-out-expo);
  white-space: nowrap;
}

.cursor-follower.is-active .cursor-label {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (pointer: coarse) {
  .cursor-follower {
    display: none;
  }
}

/* ==========================================================================
   3. SCROLL PROGRESS & FLOATING ARCHITECTURAL NAVIGATION
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-sky);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1200;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-inline: var(--gutter);
  transition: transform 480ms var(--ease-in-out-silky);
}

.site-header.is-hidden {
  transform: translateY(-130%);
}

.nav-shell {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(253, 248, 247, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-subtle);
  transition: background-color 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
}

.site-header.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px -12px rgba(34, 8, 16, 0.14);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
  color: var(--ink-primary);
  transition: letter-spacing 360ms var(--ease-out-expo), color 260ms ease;
}

.brand-mark:hover {
  letter-spacing: -0.005em;
}

.brand-emblem {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--bg-navy) 0%, var(--bg-thunder) 100%);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: var(--accent-ice);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 520ms var(--ease-spring),
    background 360ms ease,
    border-color 360ms ease,
    box-shadow 420ms ease;
}

.brand-emblem svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.emblem-orbit {
  transform-origin: 12px 12px;
  animation: orbitSpin 14s linear infinite;
  transition: stroke 300ms ease;
}

.emblem-spark {
  transform-origin: 12px 12px;
  animation: sparkBreathe 3.4s var(--ease-in-out-silky) infinite;
  transition: transform 520ms var(--ease-spring);
}

.emblem-core {
  fill: var(--accent-sky);
  transform-origin: 12px 12px;
  transition: transform 420ms var(--ease-spring), fill 300ms ease;
}

.brand-mark:hover .brand-emblem {
  transform: scale(1.08);
  background: linear-gradient(145deg, var(--accent) 0%, var(--bg-navy) 100%);
  border-color: var(--accent-sky);
  box-shadow: 0 6px 18px -4px rgba(166, 28, 60, 0.45);
}

.brand-mark:hover .emblem-orbit {
  animation-duration: 3.5s;
}

.brand-mark:hover .emblem-spark {
  transform: rotate(45deg) scale(1.12);
}

.brand-mark:hover .emblem-core {
  transform: scale(1.35);
  fill: #ffffff;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sparkBreathe {
  0%, 100% { transform: scale(0.95); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  position: relative;
  padding-block: 4px;
  transition: color 240ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 380ms var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--ink-primary);
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

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

.nav-login {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.nav-login:hover {
  color: var(--ink-primary);
  border-color: var(--border-hairline);
  background: rgba(34, 8, 16, 0.04);
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hairline);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--bg-navy);
  color: var(--ink-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px var(--gutter);
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 420ms var(--ease-out-expo), transform 420ms var(--ease-out-expo);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer a,
.mobile-drawer button.mobile-cta {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 7.5vw, 3rem);
  text-align: left;
  padding-block: 10px;
  border-bottom: 1px solid var(--border-inverse);
}

@media (max-width: 900px) {
  .nav-links,
  .nav-login {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   4. MAGNETIC & LIQUID INK BUTTONS (ROUNDED CORNERS + SQUARED BORDERS)
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 420ms var(--ease-out-expo),
    color 340ms ease,
    border-color 340ms ease,
    box-shadow 340ms ease;
  will-change: transform;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-primary {
  background: var(--bg-navy);
  border-color: var(--bg-navy);
  color: var(--ink-inverse);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 460ms var(--ease-in-out-editorial);
  z-index: -1;
}

.btn-primary:hover {
  border-color: var(--accent);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-navy);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 460ms var(--ease-in-out-editorial);
  z-index: -1;
}

.btn-secondary:hover {
  color: var(--ink-inverse);
  border-color: var(--bg-navy);
}

.btn-secondary:hover::before {
  transform: translateY(0);
}

.btn-inverse {
  background: var(--ink-inverse);
  border-color: var(--ink-inverse);
  color: var(--bg-navy);
}

.btn-inverse::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-sky);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 460ms var(--ease-in-out-editorial);
  z-index: -1;
}

.btn-inverse:hover {
  color: var(--bg-navy);
  border-color: var(--accent-sky);
}

.btn-inverse:hover::before {
  transform: translateY(0);
}

.btn-outline-inverse {
  background: transparent;
  color: var(--ink-inverse);
  border: 1px solid var(--border-inverse);
}

.btn-outline-inverse::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 248, 247, 0.12);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 460ms var(--ease-in-out-editorial);
  z-index: -1;
}

.btn-outline-inverse:hover {
  border-color: var(--accent-sky);
}

.btn-outline-inverse:hover::before {
  transform: translateY(0);
}

.btn-arrow {
  display: inline-flex;
  transition: transform 380ms var(--ease-spring);
}

.btn:hover .btn-arrow {
  transform: translate(3px, -2px);
}

/* ==========================================================================
   5. MASKED REVEALS & PAGE VIEW SWITCH TRANSITIONS
   ========================================================================== */

.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.mask-line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 900ms var(--ease-out-expo);
  will-change: transform;
}

.is-revealed .mask-line > span,
.mask-line.is-revealed > span {
  transform: translateY(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out-expo), transform 820ms var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideUpMask {
  to {
    transform: translateY(0);
  }
}

/* SPA View Container Transition (used in standalone preview) */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease-out-expo), transform 520ms var(--ease-out-expo);
}

.page-view.is-active-page {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   6. DARK BLUE & THUNDER HERO / SUBPAGE HEADERS
   ========================================================================== */

.hero-thunder {
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(251, 113, 133, 0.14) 0%, transparent 65%),
    radial-gradient(760px 460px at 12% 90%, rgba(166, 28, 60, 0.18) 0%, transparent 65%),
    linear-gradient(165deg, var(--bg-navy) 0%, var(--bg-navy-mid) 58%, #531628 100%);
  color: var(--ink-inverse);
  padding-top: clamp(144px, 19vh, 196px);
  padding-bottom: clamp(56px, 8vh, 88px);
  border-bottom: 1px solid var(--border-inverse);
}

.subpage-hero {
  background:
    radial-gradient(780px 420px at 86% 12%, rgba(251, 113, 133, 0.14) 0%, transparent 65%),
    linear-gradient(165deg, var(--bg-navy) 0%, var(--bg-navy-mid) 100%);
  color: var(--ink-inverse);
  padding-top: clamp(136px, 16vh, 176px);
  padding-bottom: clamp(52px, 7vh, 78px);
  border-bottom: 1px solid var(--border-inverse);
}

.hero-stage {
  max-width: 900px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
  margin-bottom: 26px;
}

.hero-eyebrow-rule {
  width: 36px;
  height: 1px;
  background: var(--accent-sky);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.9vw, 6.1rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-ice);
}

.hero-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--ink-inverse-muted);
  max-width: 50ch;
  line-height: 1.68;
  margin-bottom: 38px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(56px, 9vh, 96px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-md);
  background: rgba(34, 8, 16, 0.45);
  overflow: hidden;
}

.hero-metric-cell {
  padding: clamp(20px, 2.8vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-metric-cell + .hero-metric-cell {
  border-left: 1px solid var(--border-inverse);
}

.hero-metric-val {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink-inverse);
}

.hero-metric-label {
  font-size: 13px;
  color: var(--ink-inverse-muted);
  line-height: 1.4;
}

@media (max-width: 680px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .hero-metric-cell + .hero-metric-cell {
    border-left: none;
    border-top: 1px solid var(--border-inverse);
  }
}

/* ==========================================================================
   7. MARQUEE BAND
   ========================================================================== */

.marquee-band {
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  overflow: hidden;
  padding-block: 18px;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 36s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink-primary);
}

.marquee-sep {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   8. SECTIONS, TRAJECTORY & TWO-PATH GATEWAY CARDS
   ========================================================================== */

.section {
  padding-block: clamp(68px, 9vw, 118px);
}

.section-alt {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-hairline);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.section-sub {
  color: var(--ink-secondary);
  max-width: 44ch;
  font-size: 15.5px;
}

/* Two-Track Gateway Cards (Home Page) */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gateway-card {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface-elevated);
  transition: transform 480ms var(--ease-out-expo), box-shadow 480ms var(--ease-out-expo), border-color 320ms ease;
}

.gateway-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
}

.gateway-card.is-navy {
  background: linear-gradient(155deg, var(--bg-navy) 0%, var(--bg-thunder) 100%);
  border-color: var(--bg-navy);
  color: var(--ink-inverse);
}

.gateway-card.is-navy .gateway-meta,
.gateway-card.is-navy .gateway-desc,
.gateway-card.is-navy .gateway-list li {
  color: var(--ink-inverse-muted);
}

.gateway-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.gateway-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-block: 10px 14px;
}

.gateway-desc {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.gateway-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
  font-size: 14px;
}

.gateway-card.is-navy .gateway-list {
  border-top-color: var(--border-inverse);
}

.gateway-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-secondary);
}

@media (max-width: 820px) {
  .gateway-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive Trajectory */
.trajectory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.trajectory-card {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-elevated);
  transition: transform 500ms var(--ease-out-expo), box-shadow 500ms ease;
  transform-style: preserve-3d;
}

.trajectory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.trajectory-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.track-mini-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  position: relative;
}

.track-mini-btn {
  position: relative;
  z-index: 2;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: var(--radius-xs);
  transition: color 280ms ease;
}

.track-mini-btn.is-active {
  color: var(--ink-inverse);
}

.track-mini-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: var(--radius-xs);
  background: var(--bg-navy);
  transition: transform 420ms var(--ease-spring);
  z-index: 1;
}

.track-mini-switch[data-mode="uplevel"] .track-mini-pill {
  transform: translateX(100%);
}

.trajectory-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.trajectory-revenue {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 3.8vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.trajectory-milestone {
  text-align: right;
}

.trajectory-milestone strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.trajectory-milestone span {
  font-size: 12px;
  color: var(--ink-secondary);
}

.trajectory-svg-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  margin-bottom: 14px;
}

.trajectory-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.traj-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: d 620ms var(--ease-out-expo);
}

.traj-area {
  transition: d 620ms var(--ease-out-expo);
}

.traj-guide {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.traj-dot-pulse {
  fill: var(--accent);
  opacity: 0.2;
  transform-origin: center;
  animation: pulseDot 2.2s var(--ease-in-out-silky) infinite;
}

@keyframes pulseDot {
  0%, 100% { r: 12; opacity: 0.22; }
  50% { r: 18; opacity: 0.06; }
}

.trajectory-scrub-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}

@media (max-width: 960px) {
  .trajectory-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. PROGRAM DETAIL PAGES (SPARK & UPLEVEL)
   ========================================================================== */

.program-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.program-overview-card {
  background: linear-gradient(155deg, var(--bg-navy) 0%, var(--bg-thunder) 100%);
  color: var(--ink-inverse);
  border: 1px solid var(--bg-navy);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.program-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-inverse-muted);
}

.program-name {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-block: 10px 14px;
}

.program-desc {
  color: var(--ink-inverse-muted);
  font-size: 15px;
  line-height: 1.65;
}

.program-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-block: 20px;
  border-block: 1px solid var(--border-inverse);
}

.pillar-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.pillar-item span {
  font-size: 12.5px;
  color: var(--ink-inverse-muted);
}

.guarantee-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-inverse-muted);
  line-height: 1.5;
}

.guarantee-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--accent-sky);
  color: var(--accent-sky);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  transition: transform 450ms var(--ease-out-expo), border-color 320ms ease, box-shadow 450ms var(--ease-out-expo);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(166, 28, 60, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.module-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-subtle);
}

.module-card:hover::before {
  opacity: 1;
}

.module-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.module-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 6px;
}

.module-copy {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.checklist-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 24px;
}

.checklist-card h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.checklist-card p {
  font-size: 14px;
  color: var(--ink-secondary);
}

@media (max-width: 960px) {
  .program-stage { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .modules-grid, .program-pillars, .checklist-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   10. METHOD TIMELINE & STORY (ABOUT PAGE)
   ========================================================================== */

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.method-sticky {
  position: sticky;
  top: 112px;
}

.method-image-frame {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 16 / 10;
}

.method-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out-expo);
}

.method-image-frame:hover img {
  transform: scale(1.04);
}

.method-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 34px;
}

.method-rail {
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border-hairline);
  overflow: hidden;
}

.method-rail-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(0.15);
  transition: transform 550ms var(--ease-out-expo);
}

.method-step {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 30px);
  transition: transform 480ms var(--ease-out-expo), border-color 360ms ease, box-shadow 480ms var(--ease-out-expo);
}

.method-step::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-canvas);
  border: 2px solid var(--border-strong);
  transition: border-color 340ms ease, background-color 340ms ease, transform 420ms var(--ease-spring);
}

.method-step.is-active {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-subtle);
  transform: translateX(6px);
}

.method-step.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.18);
}

.method-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.method-step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
}

.method-step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.method-step h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.method-step p {
  font-size: 14.5px;
  color: var(--ink-secondary);
}

@media (max-width: 900px) {
  .method-layout { grid-template-columns: 1fr; }
  .method-sticky { position: static; }
}

/* ==========================================================================
   11. CLIENT RESULTS GRID
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  background: transparent;
  transition: background-color 320ms var(--ease-out-expo), color 320ms ease, border-color 320ms ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.filter-btn.is-active {
  background: var(--bg-navy);
  border-color: var(--bg-navy);
  color: var(--ink-inverse);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.result-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: transform 520ms var(--ease-out-expo), opacity 360ms ease, box-shadow 480ms var(--ease-out-expo), border-color 320ms ease;
}

.result-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
}

.result-card.is-hidden {
  display: none;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-track-tag {
  color: var(--accent);
}

.result-stat {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.1vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-block: 8px 10px;
}

.result-quote {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.result-author {
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-author strong {
  display: block;
  font-size: 14px;
}

.result-author span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.results-disclaimer {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

@media (max-width: 980px) {
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. FOUNDERS & CORE VALUES ACCORDION
   ========================================================================== */

.about-section {
  background: linear-gradient(165deg, var(--bg-navy) 0%, var(--bg-navy-mid) 100%);
  color: var(--ink-inverse);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.founders-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-inverse);
  aspect-ratio: 4 / 3;
}

.founders-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 950ms var(--ease-out-expo);
}

.founders-photo-wrap:hover img {
  transform: scale(1.035);
}

.founders-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(34, 8, 16, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-inverse);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.founders-caption span {
  color: var(--ink-inverse-muted);
}

.about-story {
  color: var(--ink-inverse-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin-block: 18px 30px;
}

.values-accordion {
  border-top: 1px solid var(--border-inverse);
}

.value-row {
  border-bottom: 1px solid var(--border-inverse);
}

.value-trigger {
  width: 100%;
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--ink-inverse);
}

.value-trigger-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.value-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-sky);
}

.value-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.value-plus {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  transition: transform 460ms var(--ease-spring);
}

.value-plus::before,
.value-plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink-inverse);
  transition: transform 420ms var(--ease-out-expo), opacity 300ms ease;
}

.value-plus::before { width: 14px; height: 1.5px; }
.value-plus::after { width: 1.5px; height: 14px; }

.value-row.is-open .value-plus::after {
  transform: rotate(90deg);
  opacity: 0;
}

.value-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms var(--ease-in-out-silky);
}

.value-row.is-open .value-panel {
  grid-template-rows: 1fr;
}

.value-panel-inner {
  overflow: hidden;
}

.value-panel-inner p {
  padding-bottom: 20px;
  padding-left: 34px;
  font-size: 14.5px;
  color: var(--ink-inverse-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. CLOSING CTA & ARCHITECTURAL FOOTER
   ========================================================================== */

.closing-cta {
  text-align: center;
  padding-block: clamp(72px, 11vw, 130px);
}

.closing-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: 20px;
}

.closing-sub {
  color: var(--ink-secondary);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 34px;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding-top: 52px;
  padding-bottom: 112px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 72px);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.footer-col a:hover {
  color: var(--ink-primary);
}

.footer-brand-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 16px 34px;
  margin-bottom: 12px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 44px;
}

.footer-emblem-hero {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--bg-navy) 0%, var(--bg-thunder) 100%);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: var(--accent-ice);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px -14px rgba(44, 10, 20, 0.38);
  transition:
    transform 560ms var(--ease-spring),
    background 360ms ease,
    border-color 360ms ease,
    box-shadow 420ms ease;
  cursor: pointer;
}

.footer-emblem-hero svg {
  width: 42px;
  height: 42px;
  overflow: visible;
}

.footer-emblem-hero:hover {
  transform: translateY(-4px) scale(1.08);
  background: linear-gradient(145deg, var(--accent) 0%, var(--bg-navy) 100%);
  border-color: var(--accent-sky);
  box-shadow: 0 24px 48px -12px rgba(166, 28, 60, 0.48);
}

.footer-emblem-hero:hover .emblem-orbit {
  animation-duration: 3s;
}

.footer-emblem-hero:hover .emblem-spark {
  transform: rotate(45deg) scale(1.12);
}

.footer-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.8rem, 11.4vw, 9.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--bg-navy);
  user-select: none;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  cursor: default;
  padding-block: 6px;
}

.footer-char {
  display: inline-block;
  transition:
    transform 460ms var(--ease-spring),
    color 320ms ease,
    opacity 620ms var(--ease-out-expo);
  will-change: transform, color;
}

.footer-char-space {
  width: 0.24em;
}

.footer-motto {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-motto-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: sparkBreathe 2.6s var(--ease-in-out-silky) infinite;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==========================================================================
   14. MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(34, 8, 16, 0.62);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms var(--ease-out-expo);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-elevated);
  transform: translateY(24px) scale(0.97);
  transition: transform 480ms var(--ease-out-expo);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  display: grid;
  place-items: center;
  transition: background-color 220ms ease, border-color 220ms ease, transform 320ms var(--ease-spring);
}

.modal-close:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  transform: rotate(90deg);
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 10px;
}

.modal-sub {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.range-input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-chip {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface-elevated);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: border-color 220ms ease, background-color 220ms ease, transform 240ms var(--ease-spring);
}

.choice-chip:hover {
  border-color: var(--border-strong);
}

.choice-chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface-elevated);
  font-size: 14px;
  transition: border-color 220ms ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
}

.fit-banner {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fit-banner strong {
  color: var(--accent);
}

.success-state {
  text-align: center;
  padding-block: 16px;
}

.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.success-check svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 650ms var(--ease-out-expo) 120ms forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   15. FLOATING "ASK ANYTHING" DOUBLE-RING GLASS PILL
   ========================================================================== */

.ask-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(460px, calc(100vw - 28px));
  pointer-events: none;
}

.ask-drawer {
  width: 100%;
  background: rgba(253, 248, 247, 0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 18px;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom center;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out-expo), transform 420ms var(--ease-out-expo);
}

.ask-dock.is-open .ask-drawer {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ask-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ask-close-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
  transition: background-color 200ms ease, color 200ms ease;
}

.ask-close-btn:hover {
  background: rgba(34, 8, 16, 0.08);
  color: var(--ink-primary);
}

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ask-chip {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface-elevated);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: border-color 220ms ease, color 220ms ease, transform 240ms var(--ease-spring);
}

.ask-chip:hover {
  border-color: var(--accent);
  color: var(--ink-primary);
  transform: translateY(-1px);
}

.ask-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-primary);
}

.ask-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ask-action-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-navy);
  color: var(--ink-inverse);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 220ms ease;
}

.ask-action-btn:hover {
  background: var(--accent);
}

.ask-action-btn.is-ghost {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}

.ask-action-btn.is-ghost:hover {
  background: var(--bg-surface);
}

.ask-pill-outer {
  pointer-events: auto;
  width: min(320px, calc(100vw - 36px));
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(34, 8, 16, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 14px 36px -10px rgba(34, 8, 16, 0.24),
    0 2px 8px rgba(34, 8, 16, 0.08);
  transition:
    width 480ms var(--ease-out-expo),
    box-shadow 360ms ease,
    transform 360ms var(--ease-out-expo);
}

.ask-pill-outer:hover {
  box-shadow:
    0 18px 42px -10px rgba(34, 8, 16, 0.3),
    0 4px 12px rgba(34, 8, 16, 0.1);
  transform: translateY(-1px);
}

.ask-dock.is-open .ask-pill-outer,
.ask-pill-outer:focus-within {
  width: min(440px, calc(100vw - 28px));
  transform: translateY(0);
}

.ask-pill-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(34, 8, 16, 0.08);
  border-radius: 999px;
  padding: 7px 10px 7px 18px;
}

.ask-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-primary);
  outline: none;
}

.ask-input::placeholder {
  color: #7a5962;
  font-weight: 400;
}

.ask-mic-btn,
.ask-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #5c3d46;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 300ms var(--ease-spring),
    opacity 220ms ease;
}

.ask-mic-btn:hover {
  background: rgba(34, 8, 16, 0.06);
  color: var(--ink-primary);
}

.ask-mic-btn.is-listening {
  background: var(--accent-soft);
  color: var(--accent);
  animation: pulseMic 1.2s ease-in-out infinite;
}

@keyframes pulseMic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 28, 60, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(166, 28, 60, 0); }
}

.ask-send-btn {
  background: var(--bg-navy);
  color: var(--ink-inverse);
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.ask-send-btn.is-ready {
  width: 30px;
  opacity: 1;
  pointer-events: auto;
}

.ask-send-btn.is-ready:hover {
  background: var(--accent);
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
