/* CMX AI, The Lineage
   Fresco ground, emissive cyan light. All colour lives in two families:
   the plaster ramp (umber to ochre to bone) and the cyan light ramp. */

:root {
  /* Fresco family */
  --ink-0: oklch(13.5% 0.014 75);        /* near-black umber, the ground */
  --ink-1: oklch(17% 0.018 72);
  --plaster-deep: oklch(23% 0.028 70);
  --plaster-mid: oklch(32% 0.042 74);    /* warm dark ochre */
  --plaster-warm: oklch(44% 0.058 78);
  --umber-line: oklch(32% 0.03 70);
  --parchment: oklch(76% 0.045 84);
  --bone: oklch(89% 0.026 88);

  /* Cyan light family. Emissive only, never flat. */
  --cyan-core: oklch(93% 0.06 202);
  --cyan-bright: oklch(82% 0.132 210);
  --cyan-mid: oklch(69% 0.118 215);
  --cyan-deep: oklch(46% 0.088 220);
  --cyan-glow-1: oklch(69% 0.118 215 / 0.38);
  --cyan-glow-2: oklch(69% 0.118 215 / 0.16);
  --cyan-glow-3: oklch(69% 0.118 215 / 0.07);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 1.1rem + 5.4vw, 4.9rem);
  --fs-h2: clamp(1.9rem, 1rem + 3vw, 3.3rem);
  --fs-h3: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem);
  --fs-lead: clamp(1.12rem, 1rem + 0.45vw, 1.32rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.11rem);
  --fs-small: 0.9rem;
  --fs-label: 0.8125rem;

  --space-section: clamp(6rem, 4rem + 9vw, 11.5rem);
  --space-half: clamp(3rem, 2rem + 4.5vw, 5.75rem);
  --wrap: 72rem;
  --prose: 66ch;

  /* Plaster grain, a faint monochrome turbulence tile */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* The plaster ground: a slow warm ramp with grain sitting above it */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 22% 8%, oklch(26% 0.035 74 / 0.55), transparent 60%),
    radial-gradient(110% 80% at 85% 90%, oklch(21% 0.026 70 / 0.5), transparent 55%),
    linear-gradient(178deg, var(--ink-1) 0%, var(--ink-0) 45%, oklch(15.5% 0.02 73) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--bone);
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.012em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.006em; font-weight: 600; }

p { margin: 0 0 1em; max-width: var(--prose); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: oklch(69% 0.118 215 / 0.45);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--cyan-core);
  text-decoration-color: var(--cyan-bright);
  text-shadow: 0 0 14px var(--cyan-glow-1);
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.wrap {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  background: var(--ink-0);
  color: var(--bone);
  padding: 0.7rem 1.2rem;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  border: 1px solid var(--cyan-deep);
  border-radius: 3px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 1rem; }

/* Kickers: small painted inscriptions above headings */
.kicker {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-mid);
  text-shadow: 0 0 18px var(--cyan-glow-2);
  margin: 0 0 1.4rem;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--parchment);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 3px;
  transition: box-shadow 0.35s ease, background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn-primary {
  color: var(--ink-0);
  background:
    radial-gradient(120% 160% at 50% 0%, var(--cyan-core), var(--cyan-bright) 55%, var(--cyan-mid));
  border: 1px solid var(--cyan-core);
  box-shadow:
    0 0 0 1px oklch(93% 0.06 202 / 0.25) inset,
    0 0 18px var(--cyan-glow-1),
    0 0 60px var(--cyan-glow-2),
    0 4px 26px var(--cyan-glow-2);
  text-shadow: none;
}

.btn-primary:hover {
  color: var(--ink-0);
  box-shadow:
    0 0 0 1px oklch(93% 0.06 202 / 0.4) inset,
    0 0 26px var(--cyan-glow-1),
    0 0 90px var(--cyan-glow-2),
    0 6px 34px var(--cyan-glow-1);
  text-shadow: none;
}

.btn-ghost {
  color: var(--bone);
  background: oklch(17% 0.02 72 / 0.62);
  border: 1px solid oklch(76% 0.045 84 / 0.32);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--cyan-core);
  border-color: var(--cyan-mid);
  box-shadow: 0 0 22px var(--cyan-glow-2);
  text-shadow: none;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: oklch(13.5% 0.014 75 / 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid oklch(32% 0.03 70 / 0.5);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-decoration: none;
  margin-right: auto;
}

.wordmark em {
  font-style: normal;
  color: var(--cyan-bright);
  text-shadow: 0 0 16px var(--cyan-glow-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--parchment);
  text-decoration: none;
}

.nav-links a:hover { color: var(--cyan-core); }

.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  color: var(--ink-0);
}

.nav-cta { white-space: nowrap; padding: 0.65rem 1.3rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid oklch(76% 0.045 84 / 0.3);
  border-radius: 3px;
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: oklch(13.5% 0.014 75 / 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid oklch(32% 0.03 70 / 0.5);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
  }
  .nav-links .nav-cta {
    margin: 0.75rem 1.5rem 0;
    text-align: center;
  }
}

/* ---------- The filament ---------- */
/* One signature interaction: a thread of light tracing scroll progress. */

.filament {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
}

.filament span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(
    to bottom,
    oklch(93% 0.06 202 / 0.9),
    var(--cyan-bright) 30%,
    var(--cyan-mid) 100%
  );
  box-shadow:
    0 0 8px var(--cyan-glow-1),
    0 0 26px var(--cyan-glow-2),
    0 0 60px var(--cyan-glow-3);
  will-change: transform;
}

/* ---------- Hero: the scroll-scrubbed Lineage ---------- */

.hero {
  position: relative;
  height: 400vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink-0);
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video { opacity: 0; transition: opacity 0.9s ease; }
.video-ready .hero-video { opacity: 1; }

/* A slow vignette holding the composition inside the frame */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 110% at 50% 45%, transparent 55%, oklch(13.5% 0.014 75 / 0.55) 100%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
  opacity: 0;
}

.hero-copy .copy-well {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 44rem;
}

/* Soft radial scrim so type reads over the painting, never a bar */
.hero-copy .copy-well::before {
  content: "";
  position: absolute;
  inset: -22% -30%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, oklch(13.5% 0.014 75 / 0.72), oklch(13.5% 0.014 75 / 0.35) 55%, transparent 78%);
}

.stage-reach { align-items: start; justify-items: start; }
.stage-reach .copy-well { margin: max(14vh, 6.5rem) 0 0 clamp(1rem, 6vw, 6rem); }

.stage-reach .kicker { margin-bottom: 1.1rem; }

.stage-touch { align-items: end; justify-items: center; }
.stage-touch .copy-well { margin-bottom: 9vh; text-align: center; }

/* The burst is bright: this stage needs a deeper pool of shadow */
.stage-touch .copy-well::before {
  background: radial-gradient(58% 62% at 50% 50%, oklch(13.5% 0.014 75 / 0.88), oklch(13.5% 0.014 75 / 0.5) 55%, transparent 80%);
  inset: -35% -45%;
}

.stage-touch .touch-line {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1rem + 3vw, 3rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow:
    0 1px 4px oklch(13.5% 0.014 75 / 0.95),
    0 0 18px oklch(13.5% 0.014 75 / 0.95),
    0 0 44px oklch(13.5% 0.014 75 / 0.85);
  margin: 0;
}

.stage-awake { align-items: center; justify-items: center; }
.stage-awake .copy-well { text-align: center; margin-top: 42vh; }

.stage-awake .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.reassure {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--parchment);
  text-shadow:
    0 1px 3px oklch(13.5% 0.014 75 / 0.95),
    0 0 14px oklch(13.5% 0.014 75 / 0.9);
  margin: 0;
}

.hero-copy.visible { pointer-events: auto; }

.hero h1 {
  margin-bottom: 0;
  max-width: 13ch;
}

/* Scroll hint, fades as scrub begins */
.scroll-hint {
  position: absolute;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: oklch(76% 0.045 84 / 0.7);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Mobile hero */
@media (max-width: 768px) {
  .hero { height: 300vh; }
  .stage-reach .copy-well { margin: max(12vh, 5.5rem) 1rem 0; }
  .stage-awake .copy-well { margin-top: 34vh; }
  .stage-touch .copy-well { margin-bottom: 10vh; }
  .stage-touch .copy-well::before {
    background: radial-gradient(62% 66% at 50% 50%, oklch(13.5% 0.014 75 / 0.95), oklch(13.5% 0.014 75 / 0.6) 55%, transparent 82%);
  }
}

/* ---------- Static hero: the triptych ---------- */
/* Reduced motion or save-data. Three stills, the same story, composed not degraded. */

.static-hero .hero { height: auto; }
.static-hero .hero-stage {
  position: static;
  height: auto;
  overflow: visible;
  background: none;
}
.static-hero .hero-video,
.static-hero .hero-vignette,
.static-hero .scroll-hint { display: none; }

.static-hero .hero-poster { display: none; }

.static-hero .hero-copy {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  display: grid;
  align-items: end;
  justify-items: start;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
}

.static-hero .stage-reach { background-image: url("../assets/poster-reach.webp"); }
.static-hero .stage-touch { background-image: url("../assets/poster-contact.webp"); }
.static-hero .stage-awake { background-image: url("../assets/poster-awakened.webp"); }

.static-hero .hero-copy .copy-well {
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 6vw, 6rem);
  text-align: left;
}

.static-hero .stage-touch .copy-well,
.static-hero .stage-awake .copy-well { text-align: left; }

.static-hero .stage-awake .cta-row { justify-content: flex-start; }

@media (max-width: 768px) {
  .static-hero .stage-reach { background-image: url("../assets/poster-reach-mobile.webp"); }
  .static-hero .hero-copy { min-height: 70vh; }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section-tight { padding-block: var(--space-half); }

/* Hairline crack dividers, never rules */
.crack {
  border: 0;
  margin: 0 auto;
  width: min(64rem, 88%);
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 22' preserveAspectRatio='none'><path d='M0 11 L74 10 L128 13 L210 9 L262 12 L318 8 L402 12 L433 15 L461 11 L540 10 L601 13 L611 6 L642 12 L718 10 L779 13 L841 9 L906 12 L951 8 L1013 12 L1074 10 L1122 13 L1200 11' fill='none' stroke='oklch(38%25 0.035 72 / 0.7)' stroke-width='1'/><path d='M433 15 L440 20 M611 6 L606 1' fill='none' stroke='oklch(38%25 0.035 72 / 0.5)' stroke-width='0.8'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.85;
}

/* ---------- Orient: the inscription ---------- */

.orient .wrap {
  max-width: 50rem;
  text-align: center;
}

.orient .lead { margin-inline: auto; }

.orient h2 { margin-bottom: 0.7em; }

/* ---------- The imperative: asymmetric fresco panels ---------- */

.imperative-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.panel {
  background:
    linear-gradient(160deg, oklch(23% 0.028 70 / 0.75), oklch(17% 0.018 72 / 0.85)),
    var(--grain);
  background-size: auto, 220px 220px;
  background-blend-mode: normal, overlay;
  border: 1px solid oklch(32% 0.03 70 / 0.6);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  position: relative;
  overflow: hidden;
}

/* A faint fall of light entering each panel from above */
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(to bottom, oklch(76% 0.045 84 / 0.045), transparent);
  pointer-events: none;
}

.panel h3 { margin-bottom: 0.5em; }
.panel p { color: var(--parchment); font-size: var(--fs-body); }

.imperative-grid .panel:nth-child(1) { grid-column: 1 / span 7; }
.imperative-grid .panel:nth-child(2) { grid-column: 8 / span 5; }
.imperative-grid .panel:nth-child(3) { grid-column: 1 / span 5; }
.imperative-grid .panel:nth-child(4) { grid-column: 6 / span 7; }

/* The second and third panels carry a trace of the light */
.imperative-grid .panel:nth-child(2)::after,
.imperative-grid .panel:nth-child(4)::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--cyan-glow-3), transparent 70%);
  pointer-events: none;
}

@media (max-width: 820px) {
  .imperative-grid .panel { grid-column: 1 / -1 !important; }
}

/* ---------- The offer ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.offer-item {
  border-top: 1px solid oklch(32% 0.03 70 / 0.7);
  padding-top: 1.5rem;
  position: relative;
}

.offer-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 1px;
  background: var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-glow-1);
}

.offer-item h3 { font-size: 1.25rem; }
.offer-item p { font-size: var(--fs-small); line-height: 1.7; }

/* ---------- Audiences ---------- */

.audience-list {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
}

.audience-list li {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2.2fr auto;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  padding: 1.9rem 0;
  border-top: 1px solid oklch(32% 0.03 70 / 0.55);
}

.audience-list li:last-child { border-bottom: 1px solid oklch(32% 0.03 70 / 0.55); }

.audience-list h3 { margin: 0; font-size: 1.3rem; }
.audience-list p { margin: 0; font-size: var(--fs-small); line-height: 1.7; }

.audience-link {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cyan-mid);
  text-decoration-color: transparent;
}

.audience-link:hover { color: var(--cyan-core); }

@media (max-width: 820px) {
  .audience-list li { grid-template-columns: 1fr; gap: 0.6rem; }
  .audience-link { display: inline-block; padding: 0.5rem 0 0.25rem; }
}

/* ---------- CMX AI Lite: the lamp ---------- */

.lite {
  position: relative;
  overflow: clip;
}

/* The screen's light falls onto the plaster around it */
.lite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46rem 34rem at 72% 52%, var(--cyan-glow-3), transparent 65%);
  pointer-events: none;
}

.lite .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.lite-features {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.lite-features h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.lite-features p { font-size: var(--fs-small); margin: 0; }

.lite-price-note {
  margin-top: 2.2rem;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--parchment);
}

.lite-price-note strong { color: var(--cyan-core); font-weight: 500; }

/* The phone, painted bronze frame, emissive screen */
.phone {
  width: min(18.5rem, 78vw);
  aspect-ratio: 9 / 16.2;
  margin-inline: auto;
  border-radius: 2.6rem;
  padding: 0.55rem;
  background: linear-gradient(155deg, var(--plaster-warm), var(--plaster-deep) 60%);
  border: 1px solid oklch(44% 0.058 78 / 0.8);
  box-shadow:
    0 30px 80px oklch(13.5% 0.014 75 / 0.8),
    0 0 60px var(--cyan-glow-3),
    0 0 140px var(--cyan-glow-3);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 2.1rem;
  overflow: hidden;
  background:
    radial-gradient(130% 90% at 50% 0%, oklch(30% 0.06 218 / 0.9), oklch(17% 0.035 222) 60%),
    var(--ink-0);
  border: 1px solid oklch(46% 0.088 220 / 0.5);
  box-shadow: 0 0 34px var(--cyan-glow-2) inset;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.2rem;
  font-family: var(--font-ui);
}

.phone-status {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: oklch(93% 0.06 202 / 0.75);
  text-align: center;
  margin-bottom: 1.4rem;
}

.phone-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-mid);
  margin: 0 0 0.3rem;
}

.phone-lesson {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cyan-core);
  text-shadow: 0 0 22px var(--cyan-glow-1);
  margin: 0 0 1.2rem;
}

.phone-card {
  background: oklch(23% 0.045 220 / 0.55);
  border: 1px solid oklch(46% 0.088 220 / 0.55);
  border-radius: 0.9rem;
  padding: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--bone);
  box-shadow: 0 0 18px var(--cyan-glow-3);
}

.phone-card em {
  display: block;
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-mid);
  margin-bottom: 0.5rem;
}

/* A next card waiting beneath, half in shadow */
.phone-card-next {
  margin-top: 0.8rem;
  background: oklch(20% 0.035 220 / 0.4);
  border: 1px solid oklch(46% 0.088 220 / 0.3);
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.72rem;
  color: oklch(76% 0.045 84 / 0.5);
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

.phone-swipe {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(69% 0.118 215 / 0.65);
}

.phone-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.9rem;
}

.phone-dots span {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: oklch(46% 0.088 220 / 0.6);
}

.phone-dots span.lit {
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-glow-1);
}

@media (max-width: 820px) {
  .lite .wrap { grid-template-columns: 1fr; }
  .lite .phone { margin-top: 1rem; }
}

/* ---------- Plans ---------- */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, oklch(23% 0.028 70 / 0.7), oklch(17% 0.018 72 / 0.9)),
    var(--grain);
  background-size: auto, 220px 220px;
  background-blend-mode: normal, overlay;
  border: 1px solid oklch(32% 0.03 70 / 0.6);
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.5rem);
}

.plan-featured {
  border-color: oklch(46% 0.088 220 / 0.8);
  background:
    radial-gradient(120% 60% at 50% 0%, oklch(30% 0.06 218 / 0.35), transparent 60%),
    linear-gradient(165deg, oklch(23% 0.028 70 / 0.7), oklch(17% 0.018 72 / 0.9)),
    var(--grain);
  background-size: auto, auto, 220px 220px;
  background-blend-mode: normal, normal, overlay;
  box-shadow:
    0 0 34px var(--cyan-glow-3),
    0 0 90px var(--cyan-glow-3);
  position: relative;
}

@media (min-width: 901px) {
  .plan-featured { translate: 0 -0.6rem; }
}

.plan-flag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-core);
  text-shadow: 0 0 14px var(--cyan-glow-1);
  margin: 0 0 1rem;
}

.plan h3 { font-size: 1.45rem; margin-bottom: 1rem; }

.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--bone);
  line-height: 1;
  margin: 0;
}

.plan-price small {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--parchment);
}

.plan-alt {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: oklch(76% 0.045 84 / 0.8);
  margin: 0.6rem 0 0;
}

.plan ul {
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--parchment);
  flex-grow: 1;
}

.plan ul li {
  padding: 0.32rem 0 0.32rem 1.4rem;
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.94em;
  width: 0.55rem;
  height: 1px;
  background: var(--cyan-mid);
  box-shadow: 0 0 6px var(--cyan-glow-2);
}

.plan .btn { text-align: center; }

@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .plan-featured { order: -1; }
}

/* ---------- The difference: painted numerals ---------- */

.difference-list {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 4rem);
}

.difference-list li { position: relative; padding-left: clamp(3.4rem, 5vw, 4.6rem); }

.difference-list .numeral {
  position: absolute;
  left: 0;
  top: -0.55rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  color: oklch(76% 0.045 84 / 0.22);
  text-shadow: 0 0 30px var(--cyan-glow-3);
  user-select: none;
}

.difference-list h3 { font-size: 1.3rem; }
.difference-list p { font-size: var(--fs-small); line-height: 1.7; }

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

/* ---------- FAQ ---------- */

.faq .wrap { max-width: 52rem; }

.faq-list { margin-top: clamp(2.5rem, 5vw, 4rem); }

.faq details {
  border-top: 1px solid oklch(32% 0.03 70 / 0.55);
}

.faq details:last-child { border-bottom: 1px solid oklch(32% 0.03 70 / 0.55); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--bone);
  transition: color 0.3s ease;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cyan-mid);
  flex-shrink: 0;
  transition: rotate 0.35s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.faq details[open] summary { color: var(--cyan-core); }

.faq details[open] summary::after {
  rotate: 45deg;
  color: var(--cyan-bright);
  text-shadow: 0 0 12px var(--cyan-glow-1);
}

.faq summary:hover { color: var(--cyan-core); }

.faq .faq-answer {
  padding: 0 0.25rem 1.6rem;
  font-size: var(--fs-body);
  color: var(--parchment);
}

/* ---------- Closing call ---------- */

.closing {
  text-align: center;
  position: relative;
  overflow: clip;
}

/* The spark, remembered: a faint source of light behind the call */
.closing::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  translate: -50% 0;
  width: min(48rem, 90vw);
  aspect-ratio: 2;
  background: radial-gradient(closest-side, var(--cyan-glow-2), transparent 70%);
  pointer-events: none;
}

.closing .wrap { max-width: 46rem; position: relative; }

.closing .lead { margin-inline: auto; }

.closing .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  margin-bottom: 1.2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid oklch(32% 0.03 70 / 0.6);
  padding-block: var(--space-half) 3rem;
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-brand .wordmark { font-size: 1.4rem; }

.footer-brand p {
  margin-top: 1.1rem;
  line-height: 1.7;
  color: oklch(76% 0.045 84 / 0.85);
}

.site-footer h3 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(76% 0.045 84 / 0.6);
  margin-bottom: 1.1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  text-decoration-color: transparent;
  color: var(--parchment);
}

.site-footer a:hover { color: var(--cyan-core); }

.footer-bottom {
  margin-top: var(--space-half);
  padding-top: 1.8rem;
  border-top: 1px solid oklch(32% 0.03 70 / 0.45);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: oklch(76% 0.045 84 / 0.65);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveals: light falling across plaster ---------- */

.js .reveal {
  opacity: 0;
  clip-path: inset(0 0 16% 0);
  filter: brightness(0.65);
}

@supports (animation-timeline: view()) {
  .js .reveal {
    animation: unveil 1s linear both;
    animation-timeline: view();
    animation-range: entry 8% entry 52%;
  }
  /* Cards near the page end must finish revealing before scroll runs out */
  .js .plan.reveal,
  .js .closing .reveal {
    animation-range: entry 5% entry 30%;
  }
}

@supports not (animation-timeline: view()) {
  .js .reveal {
    transition: opacity 1.1s ease, clip-path 1.1s ease, filter 1.1s ease;
  }
  .js .reveal.in-view {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: none;
  }
}

@keyframes unveil {
  from {
    opacity: 0;
    clip-path: inset(0 0 16% 0);
    filter: brightness(0.65);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: none;
  }
}

/* ---------- Reduced motion: everything settles ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    clip-path: none !important;
    filter: none !important;
  }
  .filament { display: none; }
  .faq summary::after { transition: none; }
  .hero-video { transition: none; }
  .btn, a { transition: none; }
}
