/* ============================================================
   Ki Solar Energy — Sunrise Arc
   Tokens · phase theming · layout · components · quiz
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* logo anchors — locked */
  --cobalt: #285cb8;
  --orange: #ff904c;
  --sun: #ffe058;
  --ink: #0b0d12;

  /* sunrise ramps */
  --night-900: #050a18;
  --night-700: #0e1b3a;
  --night-500: #16274e;
  --dawn-violet: #4a4a7a;
  --dawn-ember: #c4632f;
  --gold-300: #ffb65e;
  --gold-100: #ffd9a8;
  --cream: #fff6e3;
  --paper: #fffbf2;
  --warm-gray: #6b6258;
  --text-on-dark: #efeae0;

  /* type */
  --font-display: "Bricolage Grotesque", "Fraunces", georgia, serif;
  --font-text: "Inter", -apple-system, system-ui, sans-serif;

  /* spacing / layout */
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 12px;

  /* sky (driven by js/sky.js) */
  --sky-top: #0e1b3a;
  --sky-mid: #071026;
  --sky-bot: #050a18;
  --horizon-glow: 0;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-on-dark);
  background: var(--night-900);
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  /* dual ring: cobalt core + sun halo stays visible on night skies,
     golden skies, and paper cards alike */
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 224, 88, 0.65);
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--sun);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- The sky ---------- */
#sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    var(--sky-top) 0%,
    var(--sky-mid) 55%,
    var(--sky-bot) 100%
  );
}
#sky::before {
  /* film grain: keeps big gradient fields from banding and reading flat */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
#sky::after {
  /* horizon glow band, fades in near dawn */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40vh;
  background: linear-gradient(to top, rgba(255, 144, 76, 0.55), transparent);
  opacity: var(--horizon-glow);
  pointer-events: none;
}
#stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#stars canvas {
  display: block;
}
#sun {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, 150vh);
  width: clamp(90px, 12vmin, 150px);
  height: clamp(90px, 12vmin, 150px);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff6c9, var(--sun) 55%, #ffca45 100%);
  box-shadow:
    0 0 40px 12px rgba(255, 224, 88, 0.55),
    0 0 140px 60px rgba(255, 144, 76, 0.35);
  will-change: transform;
}

/* ---------- Section text theming per band ---------- */
section,
footer {
  position: relative;
}
[data-band="night"],
[data-band="dawn"],
[data-band="dusk"] {
  color: var(--text-on-dark);
}
[data-band="golden"],
[data-band="day"] {
  color: var(--ink);
}
[data-band="golden"] .muted,
[data-band="day"] .muted {
  color: var(--warm-gray);
}
/* secondary text sitting DIRECTLY on the golden sky (not on paper cards)
   needs a darker ink for contrast */
[data-band="golden"] .stat span,
[data-band="golden"] .row-label,
[data-band="golden"] .partner-track span,
[data-band="golden"] .muted {
  color: #4a4238;
}
[data-band="night"] .muted,
[data-band="dawn"] .muted,
[data-band="dusk"] .muted {
  color: rgba(239, 234, 224, 0.72);
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: clamp(4.5rem, 10vh, 8rem);
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
}
[data-band="night"] .eyebrow,
[data-band="dawn"] .eyebrow {
  color: var(--gold-300);
}
[data-band="golden"] .eyebrow {
  color: var(--night-500);
}
[data-band="day"] .eyebrow {
  color: var(--cobalt);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 {
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 22ch;
}
h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  max-width: 58ch;
  margin-top: 1.4rem;
}
.line {
  /* masked line-rise unit (js wraps headline lines) */
  display: block;
  overflow: hidden;
}
.line > span {
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    filter 0.2s,
    transform 0.1s ease-out,
    background-color 0.2s,
    color 0.2s;
  cursor: pointer;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid currentColor;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
[data-band="golden"] .btn-ghost:hover,
[data-band="day"] .btn-ghost:hover {
  background: rgba(11, 13, 18, 0.06);
}

/* ---------- Nav ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background-color 0.35s,
    box-shadow 0.35s,
    color 0.35s;
  color: var(--text-on-dark);
}
#nav .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.8rem;
}
#nav.scrolled {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(5, 10, 24, 0.55);
  box-shadow: 0 1px 0 rgba(239, 234, 224, 0.08);
}
html[data-phase="golden"] #nav.scrolled,
html[data-phase="day"] #nav.scrolled {
  background: rgba(255, 251, 242, 0.7);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.07);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
}
.nav-phone {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}
.nav-phone:hover {
  opacity: 1;
  text-decoration: underline;
}
#nav .btn {
  min-height: 42px;
  padding: 0.55rem 1.2rem;
}

/* ---------- S1 Hero ---------- */
#hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  max-width: 14ch;
  letter-spacing: -0.02em; /* display sizes want tighter tracking */
}
.hero-copy .lede {
  color: rgba(239, 234, 224, 0.85);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
  align-items: center;
}
.hero-note {
  font-size: 0.85rem;
  color: rgba(239, 234, 224, 0.6);
  margin-top: 1rem;
}
.offer-pill {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  margin-top: 1.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid rgba(255, 224, 88, 0.45);
  border-radius: 22px;
  background: rgba(255, 224, 88, 0.09);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffe9a8;
  box-shadow: 0 0 26px rgba(255, 224, 88, 0.12);
}
.offer-pill .spark {
  color: var(--sun);
}
.offer-pill + .hero-ctas {
  margin-top: 1.4rem;
}

/* eclipse — three celestial bodies, not three flat circles:
   deep-space night disk, atmospheric corona, molten sun */
.eclipse {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.eclipse .disk {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.disk-blue {
  width: 78%;
  height: 78%;
  left: 4%;
  top: 12%;
  background:
    radial-gradient(circle at 68% 30%, rgba(255, 200, 120, 0.16), transparent 42%),
    radial-gradient(circle at 30% 28%, #3d74d0 0%, var(--cobalt) 34%, #143065 70%, #0a1c40 100%);
  box-shadow:
    inset -22px -30px 70px rgba(2, 6, 18, 0.75),
    inset 4px 6px 30px rgba(120, 170, 255, 0.18);
}
.disk-orange {
  width: 70%;
  height: 70%;
  left: 20%;
  top: 14%;
  background: radial-gradient(
    circle,
    rgba(255, 171, 114, 0.9) 0%,
    rgba(255, 144, 76, 0.55) 45%,
    rgba(255, 144, 76, 0) 72%
  );
  filter: blur(10px);
}
.disk-yellow {
  width: 52%;
  height: 52%;
  left: 42%;
  top: 20%;
  background: radial-gradient(
    circle at 40% 36%,
    #fff7cf 0%,
    #ffec8a 26%,
    var(--sun) 52%,
    #ffc93a 80%,
    #f0ae2c 100%
  );
  box-shadow:
    0 0 34px 8px rgba(255, 224, 88, 0.55),
    0 0 110px 36px rgba(255, 144, 76, 0.34),
    0 0 240px 90px rgba(255, 144, 76, 0.12),
    inset -6px -10px 26px rgba(224, 140, 40, 0.35);
  animation: sun-breathe 7s ease-in-out infinite;
}
@keyframes sun-breathe {
  50% {
    transform: scale(1.014);
  }
}
/* idle drift — `translate` composes with the intro's gsap transform, so these
   never fight the load timeline; staggered periods keep the motion organic */
.disk-blue {
  animation: drift-blue 11s ease-in-out infinite;
}
.disk-orange {
  animation: glow-pulse 9s ease-in-out infinite;
}
.disk-yellow {
  animation:
    sun-breathe 7s ease-in-out infinite,
    sun-drift 13s ease-in-out infinite;
}
@keyframes drift-blue {
  50% {
    translate: 0 -7px;
  }
}
@keyframes glow-pulse {
  50% {
    translate: 0 5px;
    opacity: 0.82;
  }
}
@keyframes sun-drift {
  50% {
    translate: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .disk-blue,
  .disk-orange,
  .disk-yellow {
    animation: none;
  }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, 0.55);
}
.scroll-cue svg {
  animation: cue-drift 2.4s ease-in-out infinite;
}
@keyframes cue-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* ---------- S2 Problem ---------- */
.stat-chips {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid rgba(239, 234, 224, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  min-width: 200px;
  flex: 1;
  background: rgba(14, 27, 58, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
}
.chip span {
  font-size: 0.9rem;
  color: rgba(239, 234, 224, 0.75);
}
.media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}
.media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.media.wide img {
  aspect-ratio: 21 / 9;
  object-position: center 62%;
}
.media.inset {
  max-width: 46rem;
  margin-inline: auto;
}
.media-duo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
  align-items: stretch;
}
.media-duo.flip {
  grid-template-columns: 1fr 2fr;
}
.media-duo .media {
  margin-top: 0;
  height: 100%;
}
.media-duo .media.wide {
  aspect-ratio: 16 / 9;
}
.media-duo .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}
@media (max-width: 640px) {
  .media.wide img {
    aspect-ratio: 4 / 4.5;
  }
  .media-duo,
  .media-duo.flip {
    grid-template-columns: 1fr;
  }
  .media-duo .media.wide {
    aspect-ratio: auto;
  }
  .media-duo .media img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- S3 Broker difference ---------- */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.vs-col {
  border-radius: var(--radius);
  padding: 1.8rem;
}
.vs-them {
  border: 1px solid rgba(239, 234, 224, 0.15);
  background: rgba(5, 10, 24, 0.35);
}
.vs-us {
  border: 1px solid rgba(255, 182, 94, 0.4);
  background: linear-gradient(160deg, rgba(255, 144, 76, 0.14), rgba(255, 224, 88, 0.07));
}
.vs-col h3 {
  margin-bottom: 1.2rem;
}
.vs-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.vs-col li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.vs-col li svg {
  flex: none;
  margin-top: 0.2rem;
}
.vs-toggle {
  display: none;
}

/* venn — three luminous bodies converging on Ki (entrance driven by js) */
.venn {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.venn svg {
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 0 26px rgba(255, 224, 88, 0.14));
}
/* idle drift on the outer groups — the inner groups belong to the gsap
   convergence, so the two motions never touch the same transform */
.venn-drift-a {
  animation: venn-drift-a 11s ease-in-out infinite;
}
.venn-drift-b {
  animation: venn-drift-b 9s ease-in-out infinite;
}
.venn-drift-c {
  animation: venn-drift-c 13s ease-in-out infinite;
}
@keyframes venn-drift-a {
  50% {
    transform: translate(-1.5px, -2.5px);
  }
}
@keyframes venn-drift-b {
  50% {
    transform: translate(1.5px, -2px);
  }
}
@keyframes venn-drift-c {
  50% {
    transform: translateY(2.5px);
  }
}
.venn-legend {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.venn-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.55rem;
  box-shadow: 0 0 10px rgba(255, 233, 168, 0.35);
}
.venn-punch {
  margin-top: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (prefers-reduced-motion: reduce) {
  .venn-drift-a,
  .venn-drift-b,
  .venn-drift-c {
    animation: none;
  }
}

/* ---------- S4 How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  counter-reset: step;
}
.step {
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid rgba(239, 234, 224, 0.16);
  background: rgba(14, 27, 58, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.step .num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-300);
  letter-spacing: 0.1em;
}
.step h3 {
  margin: 0.7rem 0 0.6rem;
}
.step p {
  font-size: 0.98rem;
  color: rgba(239, 234, 224, 0.78);
}
.section-cta {
  margin-top: 3rem;
}

/* ---------- S5 Horizon moment ---------- */
#horizon {
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
}
.horizon-stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  align-items: center;
}
.horizon-chart {
  width: min(92%, 60rem);
  margin-inline: auto;
  padding-bottom: 24vh;
}
.horizon-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
  /* keeps the cream utility line + labels legible once the sky turns gold */
  filter: drop-shadow(0 1px 3px rgba(11, 13, 18, 0.45));
}
.horizon-chart .axis-label {
  font-family: var(--font-text);
  font-size: 12px;
  fill: rgba(239, 234, 224, 0.6);
  letter-spacing: 0.08em;
}
.horizon-chart .chart-tag {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
}
.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24vh;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  padding-inline: var(--pad);
}
.roofline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.roofline path {
  fill: #04070f;
}

/* ---------- S6 Offer (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.bento-card {
  background: var(--paper);
  border: 1px solid rgba(11, 13, 18, 0.08);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 2px 14px rgba(120, 70, 20, 0.06);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
}
.bento-card:hover,
.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(120, 70, 20, 0.12);
}
.quote-card {
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
}
.bento-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.bento-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
}
.candor {
  margin-top: 2.6rem;
  max-width: 62ch;
  font-size: 1.05rem;
  border-left: 3px solid var(--orange);
  padding-left: 1.2rem;
}

/* ---------- S7 Proof ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-block: 2.4rem;
  border-top: 1px solid rgba(11, 13, 18, 0.14);
  border-bottom: 1px solid rgba(11, 13, 18, 0.14);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat span {
  font-size: 0.95rem;
  color: var(--warm-gray);
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.quote-card {
  margin: 0; /* figure's UA default (17px 40px) shrank every card inside its track */
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(11, 13, 18, 0.08);
  padding: 1.8rem;
  box-shadow: 0 2px 14px rgba(120, 70, 20, 0.06);
}
.quote-card blockquote {
  margin: 0;
  font-family: "Fraunces", georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
}
.quote-card figcaption {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--warm-gray);
  font-weight: 500;
}
.quotes-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 1rem 1.5rem;
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.quotes-row .quote-card {
  scroll-snap-align: start;
}
.quotes-row .quote-card blockquote {
  font-size: 0.98rem;
}
.partners {
  margin-top: 4rem;
}
.partner-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid rgba(11, 13, 18, 0.1);
}
.partner-row .row-label {
  flex: none;
  width: 7.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
}
/* the clip owns the overflow so moving chips never slide under the row label */
.marquee-clip {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
}
.partner-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}
@media (max-width: 640px) {
  .partner-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .partner-row .row-label {
    width: auto;
  }
  .marquee-clip {
    width: 100%;
  }
}
.logo-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid rgba(11, 13, 18, 0.08);
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  box-shadow: 0 1px 8px rgba(120, 70, 20, 0.05);
}
.logo-chip img {
  height: 30px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    filter 0.2s,
    opacity 0.2s;
}
.logo-chip:hover img {
  filter: none;
  opacity: 1;
}
/* visual-weight normalization: equal presence, not equal height */
.logo-chip img.lg-sq {
  height: 40px;
}
.logo-chip img.lg-med {
  height: 30px;
}
.logo-chip img.lg-wide {
  height: 24px;
}
.logo-chip.text-chip span {
  font-family: var(--font-text);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(107, 98, 88, 0.9);
  line-height: 30px;
}
.logo-chip.text-chip:hover span {
  color: var(--ink);
}

/* ---------- S8 Quiz ---------- */
#qualify .quiz-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.quiz-shell {
  max-width: 34rem;
  margin: 3rem auto 0;
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid rgba(11, 13, 18, 0.08);
  box-shadow: 0 18px 50px rgba(120, 70, 20, 0.14);
  overflow: hidden;
}
.quiz-progress {
  height: 5px;
  background: rgba(11, 13, 18, 0.07);
}
.quiz-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cobalt), var(--orange), var(--sun));
  transition: width 0.35s var(--ease-out);
}
.quiz-arc {
  display: flex;
  justify-content: center;
  padding-top: 1.2rem;
}
.quiz-body {
  padding: 1.4rem 1.8rem 2rem;
  min-height: 26rem;
  display: flex;
  flex-direction: column;
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--warm-gray);
  min-height: 1.6rem;
}
.quiz-back {
  background: none;
  border: 0;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 6px;
}
.quiz-back[hidden] {
  visibility: hidden;
  display: block;
}
.quiz-step h3 {
  font-size: 1.45rem;
  margin-top: 0.8rem;
}
.quiz-step .hint {
  font-size: 0.92rem;
  color: var(--warm-gray);
  margin-top: 0.5rem;
}
.choices {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11, 13, 18, 0.34);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.12s;
}
.choice:hover {
  border-color: var(--cobalt);
}
.choice:active {
  transform: scale(0.98);
}
.choice[aria-pressed="true"] {
  border-color: var(--orange);
  background: rgba(255, 144, 76, 0.1);
}
.choice .arrow {
  color: var(--cobalt);
  opacity: 0;
  transition: opacity 0.15s;
}
.choice:hover .arrow,
.choice[aria-pressed="true"] .arrow {
  opacity: 1;
}
.quiz-field {
  margin-top: 1.4rem;
}
.quiz-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.quiz-field input {
  width: 100%;
  min-height: 50px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11, 13, 18, 0.2);
  padding: 0.7rem 1rem;
  font-size: 16px; /* blocks iOS auto-zoom */
  font-family: var(--font-text);
  background: #fff;
  color: var(--ink);
}
.quiz-field input:focus {
  outline: 3px solid var(--sun);
  outline-offset: 1px;
  border-color: var(--orange);
}
.quiz-field .err {
  display: none;
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.quiz-field.invalid .err {
  display: block;
}
.quiz-field.invalid input {
  border-color: #b3261e;
}
.field-hint-btn {
  background: none;
  border: 0;
  color: var(--cobalt);
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
}
.quiz-next {
  margin-top: 1.6rem;
  width: 100%;
}
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.4rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--warm-gray);
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--orange);
}
.consent a {
  color: var(--cobalt);
}
.quiz-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--warm-gray);
  text-align: center;
}
.quiz-end {
  text-align: left;
}
.quiz-end h3 {
  font-size: 1.5rem;
}
.quiz-end .next-steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.quiz-end .next-steps li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.97rem;
}
.quiz-end .next-steps b {
  color: var(--cobalt);
  flex: none;
}
.quiz-end .btn {
  margin-top: 1.6rem;
}
.restart {
  background: none;
  border: 0;
  color: var(--warm-gray);
  font-size: 0.85rem;
  text-decoration: underline;
  margin-top: 1.4rem;
  padding: 0;
}
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
}

/* ---------- S9 Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.service {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid rgba(11, 13, 18, 0.08);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.service svg {
  flex: none;
  color: var(--cobalt);
  margin-top: 0.15rem;
}
.service b {
  display: block;
  font-weight: 600;
}
.service span {
  font-size: 0.88rem;
  color: var(--warm-gray);
}

/* ---------- S10 FAQ ---------- */
.faq-list {
  margin-top: 2.5rem;
  max-width: 46rem;
}
.faq-list details {
  border-bottom: 1px solid rgba(11, 13, 18, 0.12);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.2rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary svg {
  flex: none;
  transition: transform 0.25s var(--ease-out);
  color: var(--cobalt);
}
.faq-list details[open] summary svg {
  transform: rotate(45deg);
}
.faq-list .answer {
  padding: 0 0.2rem 1.3rem;
  max-width: 60ch;
  color: var(--warm-gray);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 4rem;
  background: linear-gradient(to bottom, rgba(255, 144, 76, 0.12), transparent 30%),
    var(--night-500);
  color: var(--text-on-dark);
  border-radius: 28px 28px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 4rem 2.5rem;
}
.footer-grid h3 {
  font-size: 0.85rem;
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-300);
  margin-bottom: 1rem;
}
.footer-grid a {
  display: block;
  text-decoration: none;
  padding-block: 0.25rem;
  color: rgba(239, 234, 224, 0.85);
}
.footer-grid a:hover {
  color: var(--sun);
}
.footer-areas {
  max-width: 72ch;
  margin-top: 2.4rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(239, 234, 224, 0.55);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.4rem;
  padding-block: 1.4rem 2rem;
  border-top: 1px solid rgba(239, 234, 224, 0.12);
  font-size: 0.82rem;
  color: rgba(239, 234, 224, 0.6);
}
.footer-bottom a {
  color: inherit;
}

/* ---------- Mobile sticky CTA ---------- */
#cta-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 60;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: 16px;
  background: rgba(5, 10, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(130%);
  transition: transform 0.35s var(--ease-out);
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}
#cta-bar.show {
  transform: translateY(0);
}
#cta-bar .btn-primary {
  flex: 1;
}
#cta-bar .call {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(239, 234, 224, 0.4);
  color: var(--text-on-dark);
}

/* ---------- Reveal defaults (js sets initial states) ---------- */
.reveal,
.reveal-img {
  will-change: transform, opacity;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .eclipse {
    width: min(78vmin, 360px);
    order: -1;
    margin-top: 0.5rem;
  }
  /* recompose the mark symmetric in the stream: the desktop layout weights it
     right; centered here so the eclipse sits dead-center over the copy */
  .eclipse .disk-blue {
    left: 11%;
    top: 12%;
  }
  .eclipse .disk-orange {
    left: 17%;
    top: 13%;
  }
  .eclipse .disk-yellow {
    left: 30%;
    top: 19%;
  }
  /* the cue joins the flow — absolute bottom-pinning overlapped the CTAs on
     short viewports */
  .scroll-cue {
    position: static;
    transform: none;
    margin: 3rem auto 0;
  }
  #hero {
    padding-bottom: 1.5rem;
  }
  .steps,
  .bento,
  .quotes,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-band {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .steps,
  .bento,
  .quotes,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .quotes {
    display: none;
  }
  /* featured quotes fold into the scroll row on phones; the row bleeds to the
     screen edge with a peek of the next card, snapping center */
  .quotes-row {
    grid-auto-columns: min(84vw, 340px);
    gap: 0.9rem;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    scroll-padding-inline: var(--pad);
  }
  .quotes-row .quote-card {
    scroll-snap-align: center;
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .quotes-row .quote-card blockquote {
    font-size: 1.04rem;
    line-height: 1.5;
  }
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-toggle {
    display: inline-flex;
    margin-top: 2rem;
    border: 1.5px solid rgba(239, 234, 224, 0.3);
    border-radius: 999px;
    overflow: hidden;
  }
  .vs-toggle button {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
  }
  .vs-toggle button {
    position: relative;
  }
  .vs-toggle button[aria-pressed="true"] {
    background: var(--orange);
    color: var(--ink);
  }
  /* auto-compare progress: a thin bar fills across the active side so the
     upcoming flip (and the tappability) reads at a glance */
  .vs-toggle button[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    left: 12%;
    bottom: 4px;
    width: 76%;
    height: 2px;
    border-radius: 2px;
    background: rgba(11, 13, 18, 0.35);
    transform: scaleX(0);
    transform-origin: left center;
  }
  .vs-toggle.auto button[aria-pressed="true"]::after {
    animation: vs-cycle var(--vs-cycle, 4000ms) linear forwards;
  }
  @keyframes vs-cycle {
    to {
      transform: scaleX(1);
    }
  }
  /* the Ki venn emblem sits centered in the stream on phones */
  .venn {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-align: left;
  }
  .vs-grid .vs-col[data-hidden="true"] {
    display: none;
  }
  #cta-bar {
    display: flex;
  }
  .nav-phone {
    display: none;
  }
  /* keep footer links reachable above the sticky CTA bar */
  .footer-bottom {
    padding-bottom: 6.5rem;
  }
  .quiz-body {
    padding: 1.2rem 1.2rem 1.6rem;
  }
  .partner-row {
    gap: 1rem;
  }
  .partner-row .row-label {
    width: 5.6rem;
  }
}
@media (min-width: 641px) {
  .quotes-row {
    display: none;
  }
  .vs-grid .vs-col[data-hidden="true"] {
    display: block;
  }
}

/* ============================================================
   Accessibility preference fallbacks (translucency / contrast)
   ============================================================ */
@media (prefers-reduced-transparency: reduce) {
  #nav.scrolled,
  #cta-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 10, 24, 0.97);
  }
  html[data-phase="golden"] #nav.scrolled,
  html[data-phase="day"] #nav.scrolled {
    background: #fffbf2;
  }
  .chip,
  .step {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 10, 24, 0.88);
  }
}
@media (prefers-contrast: more) {
  .choice,
  .quiz-field input {
    border-color: var(--ink);
  }
  .bento-card,
  .quote-card,
  .service {
    border-color: rgba(11, 13, 18, 0.45);
  }
  .chip,
  .step {
    border-color: rgba(239, 234, 224, 0.55);
  }
}

/* ============================================================
   No-motion mode (reduced motion or GSAP unavailable):
   sections get static phase backgrounds, sky layer hides.
   js adds .no-motion to <html>.
   ============================================================ */
html.no-motion #sky {
  display: none;
}
html.no-motion body {
  background: var(--night-900);
}
html.no-motion [data-band="night"] {
  background: linear-gradient(to bottom, #0e1b3a, #050a18);
}
html.no-motion [data-band="dawn"] {
  background: linear-gradient(to bottom, #16274e, #4a4a7a 60%, #c4632f);
}
html.no-motion [data-band="golden"] {
  background: linear-gradient(to bottom, #ff904c, #ffd9a8);
}
html.no-motion [data-band="day"],
html.no-motion div[data-band="day"] {
  background: linear-gradient(to bottom, #dce6ee, #fff6e3 40%, #fffbf2);
}
html.no-motion #tag-utility,
html.no-motion #tag-ki {
  opacity: 1 !important;
}
html.no-motion #chart-gap {
  opacity: 0.3 !important;
}
html.no-motion .horizon-line {
  opacity: 1;
}
html.no-motion #horizon {
  min-height: auto;
  padding-block: 4rem;
}

/* ============================================================
   Reduced motion — static, fully readable
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-cue svg {
    animation: none;
  }
  .line > span {
    transform: none !important;
  }
  #sun {
    display: none;
  }
  .horizon-line {
    opacity: 1;
  }
  .partner-track {
    flex-wrap: wrap;
    white-space: normal;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}
