/* ==========================================================================
   sparkoflight.com — SOL platform site
   Warm editorial × SV polish. Fraunces headlines (one gold-italic word),
   Caveat annotations, Poppins body/labels, deep-night ground, film grain.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --night: #0E0C0A;
  --espresso: #241B12;
  --gold: #EDB64A;
  --gold-soft: #E9BA64;
  --amber: #C8912F;
  --cream: #F5EBD8;
  --ivory: #F7F2EA;
  --taupe: #A89A86;

  --text-body: rgba(245, 235, 216, 0.72);
  --text-dim: rgba(245, 235, 216, 0.6);
  --hairline: rgba(233, 186, 100, 0.16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --display-axes: "opsz" 144, "SOFT" 0, "WONK" 0;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  color-scheme: dark;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto so width/height attributes (CLS hints) never pin a rendered
   height; class-level rules (.phone-screen img, .band-bg, …) override it. */
img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
p a, .trust-cols a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(233, 186, 100, 0.4);
  text-underline-offset: 3px;
}
p a:hover { text-decoration-color: var(--gold-soft); }

::selection { background: var(--gold); color: var(--night); }

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

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* luxe scrollbar */
html { scrollbar-color: rgba(200, 145, 47, 0.55) #14100C; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #14100C; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(237, 182, 74, 0.5), rgba(200, 145, 47, 0.5));
  border-radius: 8px;
  border: 2px solid #14100C;
}

#sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

/* -------------------------------------------------------------- typography */
h1, h2 {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 490;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw + 0.6rem, 5.7rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3.7vw + 0.3rem, 3.6rem);
  line-height: 1.1;
  margin-top: 18px;
  max-width: 21ch;
}

em.g {
  font-style: italic;
  font-weight: 520;
  color: var(--gold-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--taupe);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(233, 186, 100, 0.45);
}
.eyebrow .idx {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-soft);
  margin-right: 2px;
}

.microlabel {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
}

.note {
  font-family: var(--hand);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1.3;
}

.body {
  margin: 20px 0 0;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-body);
  max-width: 52ch;
}
.body-lead { max-width: 58ch; }

.lead {
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.75;
  color: var(--text-body);
  max-width: 46ch;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease), background-color 0.35s var(--ease),
              letter-spacing 0.35s var(--ease);
}

.btn-gold {
  background: linear-gradient(180deg, #F0C167, #E2A93C);
  color: #201404;
  box-shadow: 0 10px 30px -12px rgba(237, 182, 74, 0.55);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px -12px rgba(237, 182, 74, 0.7);
}

.btn-ghost {
  border: 1px solid rgba(233, 186, 100, 0.35);
  color: var(--ivory);
}
.btn-ghost:hover {
  border-color: rgba(233, 186, 100, 0.7);
  background: rgba(233, 186, 100, 0.06);
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.cta-row .note { transform: rotate(-2deg); margin-left: 4px; }

/* ------------------------------------------------------------------ glass */
/* Warm espresso glass. Rules: never nest glass inside glass, never animate
   the blur radius; chips animate transform only. */
.glass {
  background: rgba(36, 27, 18, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(233, 186, 100, 0.18);
  box-shadow: inset 0 1px 0 rgba(247, 242, 234, 0.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(24, 18, 12, 0.9); }
}

.chip {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
}
.chip-hand {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--gold-soft);
  top: 11%;
  right: -34px;
}
.chip-low {
  top: auto;
  right: auto;
  bottom: 17%;
  left: -46px;
}
.chip-caps {
  top: 9%;
  right: -30px;
  padding: 8px 15px;
  color: var(--cream);
}
@media (max-width: 760px) {
  .chip { display: none; }
}

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 12, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: rgba(233, 186, 100, 0.12);
}

.nav-inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.nav-links a {
  color: rgba(245, 235, 216, 0.66);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links .nav-story { color: var(--gold-soft); }
.nav-links .nav-story span { font-size: 0.7em; }

.nav-cta { position: relative; padding: 11px 22px; font-size: 0.68rem; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 16% 70%, rgba(14, 12, 10, 0.8) 0%, rgba(14, 12, 10, 0.28) 52%, transparent 100%),
    linear-gradient(to bottom, rgba(14, 12, 10, 0.5), rgba(14, 12, 10, 0.06) 32%, rgba(14, 12, 10, 0.52) 76%, var(--night) 100%);
}
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(110px, 17vh, 190px);
}
.hero-content h1 { max-width: 15ch; }

.hero-foot {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-foot-line { flex: 1; height: 1px; background: rgba(233, 186, 100, 0.18); }

/* ------------------------------------------------------------------ bands */
.band { position: relative; overflow: hidden; }

.band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.band-inner { position: relative; z-index: 2; }

/* manifesto — golden dot-wave canvas over a static gold glow (the glow is
   also the no-JS fallback; reduced motion swaps in the aurora still) */
.band-manifesto {
  text-align: center;
  padding-block: clamp(130px, 19vh, 210px);
  background:
    radial-gradient(58% 82% at 50% 62%, rgba(237, 182, 74, 0.13), transparent 72%)
    var(--night);
}
.dotwave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.band-manifesto::before {
  background:
    radial-gradient(52% 46% at 50% 52%, rgba(14, 12, 10, 0.55), rgba(14, 12, 10, 0.15) 62%, transparent 100%),
    linear-gradient(to bottom, var(--night), transparent 22%, transparent 78%, var(--night));
}
@media (prefers-reduced-motion: reduce) {
  .dotwave { display: none; }
  .band-manifesto {
    background-image: url("assets/img/gen/aurora-1440.webp");
    background-size: cover;
    background-position: center;
  }
}
.manifesto {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 440;
  font-size: clamp(1.75rem, 3.2vw + 0.4rem, 3rem);
  line-height: 1.32;
  color: var(--cream);
  max-width: 23ch;
  margin: 0 auto;
  text-wrap: balance;
}
.manifesto-mark {
  height: 64px;
  width: auto;
  opacity: 0.92;
  margin-top: 52px;
}
.manifesto .wd { display: inline-block; }

/* ------------------------------------------------------------ custom cursor */
/* Enabled by JS (fine pointers, motion allowed): html.cur-on hides the
   native cursor; the gold ring lerps behind the dot. Tab restores native. */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(233, 186, 100, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), background-color 0.3s var(--ease),
              opacity 0.3s var(--ease);
}
.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(237, 182, 74, 0.8);
}
html.cur-on .cursor,
html.cur-on .cursor-dot { opacity: 1; }
html.cur-on,
html.cur-on body,
html.cur-on a,
html.cur-on button { cursor: none; }
html.cur-on .cursor.grow {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  background: rgba(237, 182, 74, 0.08);
}

/* spotlight hover: a soft gold pool follows the pointer inside cards */
.mentor,
.pillar,
.trust-panel,
.beta-content { position: relative; }
.mentor::after,
.pillar::after,
.trust-panel::after,
.beta-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(237, 182, 74, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.mentor:hover::after,
.pillar:hover::after,
.trust-panel:hover::after,
.beta-content:hover::after { opacity: 1; }

/* ------------------------------------------------------------ intro overlay */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro img { height: 46px; width: auto; }
.intro.off { display: none; }
html.intro-lock { overflow: hidden; }

/* --------------------------------------------------------------- marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(233, 186, 100, 0.12);
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-style: italic;
  font-weight: 430;
  font-size: 1.4rem;
  color: rgba(245, 235, 216, 0.64);
  white-space: nowrap;
  padding-right: 56px;
}
.marquee-track i {
  font-style: normal;
  color: rgba(233, 186, 100, 0.55);
  padding: 0 18px;
}

/* memory */
.band-memory { padding-block: clamp(110px, 15vw, 190px); }
.band-memory::before {
  background:
    linear-gradient(100deg, rgba(14, 12, 10, 0.93) 28%, rgba(16, 13, 9, 0.55) 58%, rgba(14, 12, 10, 0.3) 100%),
    linear-gradient(to bottom, var(--night), transparent 20%, transparent 80%, var(--night));
}

/* final cta */
.band-beta { padding-block: clamp(130px, 18vw, 230px); }
.band-beta::before {
  background:
    linear-gradient(to right, rgba(14, 12, 10, 0.42), rgba(14, 12, 10, 0.15) 38%, rgba(24, 17, 9, 0.45) 72%, rgba(14, 12, 10, 0.6) 100%),
    linear-gradient(to bottom, var(--night), transparent 24%, transparent 76%, var(--night));
}
.beta-content {
  margin-left: auto;
  max-width: 560px;
  padding: clamp(32px, 4vw, 48px);
  border-radius: 26px;
}
.beta-tagline { margin-top: 44px; color: rgba(245, 235, 216, 0.55); }

/* --------------------------------------------------------------- sections */
.section {
  position: relative;
  padding-block: clamp(88px, 10vw, 144px);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

/* hairline feature rows */
.rows {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
}
.rows li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.rows li:last-child { border-bottom: 1px solid var(--hairline); }
.rows h3 {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.rows p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ phone mockup */
.phone-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 340px;
  width: 100%;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  inset: -52px;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 48%, rgba(237, 182, 74, 0.11), transparent 70%);
  pointer-events: none;
}
.phone {
  aspect-ratio: 390 / 844;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(160deg, #1E1712, #110D09);
  border: 1px solid rgba(237, 182, 74, 0.22);
  box-shadow:
    0 42px 90px -32px rgba(0, 0, 0, 0.82),
    0 0 150px -55px rgba(237, 182, 74, 0.4),
    inset 0 1px 0 rgba(247, 242, 234, 0.07);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--ivory);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone-wrap .note,
.phone-wrap figcaption {
  display: block;
  text-align: center;
  margin-top: 20px;
  transform: rotate(-2deg);
}

/* ----------------------------------------------------------------- day rail */
.section-day .eyebrow,
.section-day h2 { text-align: left; }

.rail-outer { margin-top: 64px; }

.rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.rail-slide { text-align: center; }
.rail-slide .phone {
  border-radius: 42px;
  padding: 8px;
  max-width: 280px;
  margin: 18px auto 0;
}
.rail-slide:nth-child(odd) .phone { rotate: -1.2deg; }
.rail-slide:nth-child(even) .phone { rotate: 1.2deg; }
.rail-slide:hover .phone { rotate: 0deg; }
.rail-slide .phone-screen { border-radius: 34px; }

.slide-time {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-style: italic;
  font-weight: 460;
  font-size: 1.5rem;
  color: var(--gold-soft);
}
.rail-slide .note { display: block; margin-top: 20px; }
.slide-text {
  margin: 10px auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 30ch;
}

.rail-dots { display: none; }

/* ---------------------------------------------------------------- pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: 60px;
}
.pillar {
  position: relative;
  background: linear-gradient(180deg, var(--espresso), #19120C);
  border: 1px solid rgba(233, 186, 100, 0.1);
  border-radius: 22px;
  padding: 16px 16px 30px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.pillar-idx {
  position: absolute;
  top: 32px;
  right: 34px;
  z-index: 1;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(14, 12, 10, 0.9);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 186, 100, 0.3);
}
.pillar img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: filter 0.7s var(--ease);
}
.pillar:hover img { filter: brightness(1.09) saturate(1.06); }
.pillar h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 24px 8px 10px;
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 520;
  font-size: 1.4rem;
  color: var(--ivory);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.dot-mind { background: #6B8F71; box-shadow: 0 0 14px rgba(107, 143, 113, 0.8); }
.dot-body { background: #C48B7C; box-shadow: 0 0 14px rgba(196, 139, 124, 0.8); }
.dot-soul { background: #7BA694; box-shadow: 0 0 14px rgba(123, 166, 148, 0.8); }
.pillar p {
  margin: 0 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------- mentors */
.section-mentors { overflow: hidden; }
.section-mentors .band-bg { z-index: 0; }
.section-mentors::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, var(--night), rgba(14, 12, 10, 0.55) 30%, rgba(14, 12, 10, 0.55) 70%, var(--night)),
    rgba(14, 12, 10, 0.35);
}
.section-mentors .container { position: relative; z-index: 2; }

.mentor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: 60px;
}
.mentor {
  border-radius: 18px;
  padding: 32px 30px 36px;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.mentor:hover {
  border-color: rgba(233, 186, 100, 0.42);
  transform: translateY(-4px);
}
.mentor .microlabel { color: var(--gold-soft); }
.mentor h3 {
  margin: 16px 0 10px;
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--ivory);
}
.mentor p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.mentor .mentor-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(233, 186, 100, 0.14);
  color: var(--taupe);
}
.roster-note {
  display: block;
  margin: 44px auto 0;
  text-align: center;
  transform: rotate(-2deg);
}

/* ------------------------------------------------------------------ trust */
.trust-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  mix-blend-mode: screen;
  pointer-events: none;
}
.section-trust { overflow: hidden; }
.section-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30% 42% at 22% 30%, rgba(237, 182, 74, 0.08), transparent 70%),
    radial-gradient(34% 46% at 82% 74%, rgba(200, 145, 47, 0.07), transparent 70%);
  pointer-events: none;
}
.trust-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.65fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border-radius: 26px;
  padding: clamp(24px, 4vw, 48px);
}
.trust-photo { margin: 0; }
.trust-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.trust-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.trust-cols h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.trust-cols p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ------------------------------------------------------------- hero motes */
.hero-motes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-motes span {
  position: absolute;
  left: var(--x, 50%);
  bottom: -8px;
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 222, 158, 0.95), rgba(237, 182, 74, 0.5) 55%, transparent 72%);
  opacity: 0;
}

/* ------------------------------------------------------------ spark scene */
/* Static by default (no JS / reduced motion); main.js adds .spark-active to
   enable the pinned scroll-scrub. --sp is the awakening progress (0.15-1.15). */
.spark-scene {
  position: relative;
  --sp: 0.7;
}
/* The stage is a full-bleed backdrop; the copy floats IN FRONT of it on a
   glass panel so the moving light can never wash out the words. */
.spark-pin {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(110px, 14vw, 180px);
  min-height: 560px;
  overflow: hidden;
}
.spark-stage {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(460px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 0;
}
/* no solid ball: a diffuse wash of light that spreads as --sp grows */
.spark-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(247, 222, 158, 0.42) 0%,
    rgba(237, 182, 74, 0.2) 26%,
    rgba(237, 182, 74, 0.07) 52%,
    transparent 72%);
  transform: scale(calc(var(--sp) * 1.5));
  opacity: calc(var(--sp) * 0.95);
}
/* faint god-rays fanning out; they ride the slow stage rotation */
.spark-rays {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg,
    transparent 0deg 11deg,
    rgba(237, 182, 74, 0.09) 15deg 19deg,
    transparent 23deg 34deg);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0.5) 40%, transparent 66%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0.5) 40%, transparent 66%);
  transform: scale(calc(0.5 + var(--sp) * 0.9));
  opacity: calc((var(--sp) - 0.25) * 1.2);
}
.spark-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 182, 74, 0.2), transparent 64%);
  transform: scale(calc(var(--sp) * 1.4));
  opacity: calc(var(--sp) - 0.2);
}
.spark-halo.h2x {
  background: radial-gradient(circle, rgba(237, 182, 74, 0.11), transparent 68%);
  transform: scale(calc(var(--sp) * 2));
  opacity: calc(var(--sp) - 0.3);
}
.spark-ring {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(233, 186, 100, 0.32);
  transform: scale(var(--sp));
  opacity: calc(0.2 + var(--sp) * 0.5);
}
.spark-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 222, 158, 0.9), transparent 70%);
  transform: rotate(var(--a, 0deg)) translateX(calc(var(--sp) * var(--r, 150px)));
  opacity: calc((var(--sp) - 0.72) * 3);
}
.spark-orbit.o1 { --a: 18deg;  --r: 138px; }
.spark-orbit.o2 { --a: 94deg;  --r: 172px; }
.spark-orbit.o3 { --a: 158deg; --r: 150px; }
.spark-orbit.o4 { --a: 232deg; --r: 186px; }
.spark-orbit.o5 { --a: 305deg; --r: 160px; }

.spark-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: clamp(26px, 3.4vw, 40px) clamp(28px, 4vw, 52px);
  border-radius: 24px;
  max-width: min(640px, 88vw);
}
.spark-copy .eyebrow { justify-content: center; }
.spark-lines {
  position: relative;
  width: min(520px, 78vw);
  min-height: 3.4em;
}
.spark-line {
  position: absolute;
  inset-inline: 0;
  top: 0;
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 470;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.25;
  color: var(--ivory);
  opacity: 0;
}
.spark-line.note {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--gold-soft);
}
.spark-line.on { opacity: 1; }
.spark-line.sl1 { opacity: 1; } /* static default shows the first line */
.spark-active .spark-line.sl1:not(.on) { opacity: 0; }

.spark-active { height: 250vh; }
.spark-active .spark-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-block: 0;
  align-content: center;
  overflow: hidden;
}
@media (max-width: 760px) {
  .spark-active { height: 160vh; }
  .spark-stage { width: min(300px, 74vw); }
}

/* ----------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid rgba(233, 186, 100, 0.1);
  padding: 72px 0 40px;
}
.footer-lockup {
  margin: 0 0 64px;
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 460;
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ivory);
  text-align: center;
  border-bottom: 1px solid rgba(233, 186, 100, 0.1);
  padding-bottom: 64px;
  text-wrap: balance;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand img { height: 42px; width: auto; }
.footer-brand p {
  margin: 20px 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--taupe);
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
  color: rgba(245, 235, 216, 0.62);
}
.footer-links a { transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--ivory); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(233, 186, 100, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* section headlines rise out of a mask; scoped to h2 so the generic
     .reveal transform on other elements is untouched */
  h2.reveal {
    clip-path: inset(-2% -6% 102% -6%);
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease),
                clip-path 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  h2.reveal.in { clip-path: inset(-2% -6% -8% -6%); }

  .btn-gold:hover { letter-spacing: 0.175em; }

  .rail-slide .phone { transition: rotate 0.5s var(--ease); }

  .nav-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 26px rgba(237, 182, 74, 0.5);
    opacity: 0;
    pointer-events: none;
    animation: ctaPulse 8s ease-in-out infinite;
  }
  @keyframes ctaPulse {
    0%, 86%, 100% { opacity: 0; }
    93% { opacity: 0.55; }
  }

  /* hero motes: drift up-left with a twinkle envelope; two variants desync */
  .hero-motes span {
    animation: moteA var(--d, 30s) linear infinite;
    animation-delay: var(--dl, 0s);
  }
  .hero-motes span:nth-child(even) { animation-name: moteB; }
  @keyframes moteA {
    0%   { transform: translate3d(0, 4vh, 0); opacity: 0; }
    18%  { opacity: var(--o, 0.3); }
    52%  { opacity: calc(var(--o, 0.3) * 0.45); }
    74%  { opacity: var(--o, 0.3); }
    100% { transform: translate3d(-5vw, -36vh, 0); opacity: 0; }
  }
  @keyframes moteB {
    0%   { transform: translate3d(0, 4vh, 0); opacity: 0; }
    26%  { opacity: calc(var(--o, 0.3) * 0.6); }
    48%  { opacity: var(--o, 0.3); }
    82%  { opacity: calc(var(--o, 0.3) * 0.35); }
    100% { transform: translate3d(-7vw, -32vh, 0); opacity: 0; }
  }

  /* glass chips float */
  .chip { animation: chipFloat 9s ease-in-out infinite alternate; }
  .chip-low { animation-duration: 11s; animation-delay: -3s; }
  .chip-caps { animation-duration: 7s; animation-delay: -1.5s; }
  @keyframes chipFloat {
    from { transform: translateY(-5px); }
    to   { transform: translateY(4px); }
  }

  /* spark scene line cross-fades (progress-driven via JS) */
  .spark-line { transition: opacity 0.45s var(--ease); }

  /* orbit sparkles circle slowly on top of the scroll-driven growth */
  .spark-active .spark-stage { animation: stageSpin 90s linear infinite; }
  @keyframes stageSpin { to { transform: rotate(360deg); } }

  /* the manifesto wordmark breathes with a soft halo (after its reveal) */
  .manifesto-mark.in {
    animation: markBreathe 6s ease-in-out infinite 0.9s backwards;
  }
  @keyframes markBreathe {
    0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 6px rgba(237, 182, 74, 0.1)); }
    50% { opacity: 1; filter: drop-shadow(0 0 22px rgba(237, 182, 74, 0.4)); }
  }

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

  /* 3D tilt targets (values set by JS on fine pointers) */
  .grid-2 .phone-wrap { perspective: 900px; }
  .grid-2 .phone {
    transition: transform 0.45s var(--ease);
    transform-style: preserve-3d;
  }

  /* page scroll progress under the nav (Chrome scroll-driven) */
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: pageProgress linear both;
      animation-timeline: scroll();
    }
    @keyframes pageProgress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }

  /* band parallax: Chrome scroll-driven animations, static elsewhere */
  @supports (animation-timeline: view()) {
    @keyframes bandParallax {
      from { transform: translateY(-6%) scale(1.12); }
      to   { transform: translateY(6%) scale(1.12); }
    }
    .band-memory .band-bg,
    .band-beta .band-bg,
    .section-mentors .band-bg {
      animation: bandParallax linear both;
      animation-timeline: view();
    }
  }

  /* manifesto: the line reveals word by word instead of as a block */
  .manifesto.reveal { opacity: 1; transform: none; transition: none; }
  .manifesto .wd {
    opacity: 0;
    transform: translateY(0.45em);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 95ms);
  }
  .manifesto.in .wd { opacity: 1; transform: none; }

  .intro img { animation: introMark 1.5s var(--ease) both; }
  .intro.done { animation: introOut 0.7s var(--ease) forwards; }

  .marquee-track { animation: marquee 44s linear infinite; }

  .hero-bg img {
    animation: kenburns 16s var(--ease) forwards;
  }
  @keyframes kenburns {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
  }

  em.g {
    background: linear-gradient(105deg, #E9BA64 30%, #F7D794 50%, #E9BA64 70%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glint 8s ease-in-out infinite;
  }
  @keyframes glint {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
  }

  @keyframes introMark {
    0% { opacity: 0; transform: scale(0.94); filter: blur(6px); }
    45% { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: scale(1); }
  }
  @keyframes introOut {
    to { opacity: 0; visibility: hidden; }
  }
  @keyframes marquee {
    to { transform: translateX(-50%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .phone-wrap { max-width: 300px; }

  .pillars,
  .mentor-cards { grid-template-columns: 1fr; }
  .pillar img { aspect-ratio: 16 / 10; }

  .trust-panel { grid-template-columns: 1fr; }
  .trust-photo img { height: 220px; }
  .trust-cols { grid-template-columns: 1fr; gap: 26px; }

  .beta-content { margin-left: 0; }

  /* day rail becomes a scroll-snap carousel */
  .rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    gap: 20px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-slide {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }
  .rail-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
  }
  /* 24px hit target, 7px visual dot (background-clip keeps the padding clear) */
  .rail-dots button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0;
    padding: 8.5px;
    background: rgba(233, 186, 100, 0.25);
    background-clip: content-box;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
    cursor: pointer;
  }
  .rail-dots button.active {
    background: var(--gold);
    background-clip: content-box;
    transform: scale(1.2);
  }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { height: 62px; }
  .nav-brand img { height: 30px; }

  .hero-content { padding-bottom: 96px; }
  .hero-content h1 { max-width: 13ch; }
  .hero-foot { display: none; }

  .rows li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }

  .cta-row { gap: 14px; }
  .btn { padding: 14px 26px; }

  .band-memory::before {
    background:
      linear-gradient(to bottom, rgba(14, 12, 10, 0.88), rgba(14, 12, 10, 0.62)),
      linear-gradient(to bottom, var(--night), transparent 25%, transparent 75%, var(--night));
  }
  .band-beta::before {
    background:
      rgba(14, 12, 10, 0.55),
      linear-gradient(to bottom, var(--night), transparent 25%, transparent 75%, var(--night));
  }

  .footer { padding-top: 56px; }
}

/* ============================ mobile touch layer ============================ */

/* mobile nav menu (hamburger + full-screen panel), all out of flow => CLS 0 */
.nav-toggle { display: none; }
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 0 clamp(28px, 8vw, 48px);
  background: rgba(14, 12, 10, 0.92);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav--open .nav-panel { opacity: 1; visibility: visible; }
.nav-panel a {
  font-family: var(--serif);
  font-variation-settings: var(--display-axes);
  font-weight: 480;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  color: var(--ivory);
  text-decoration: none;
}
.nav-panel .nav-story { color: var(--gold-soft); }
.nav-panel .nav-story span { font-size: 0.7em; }
.nav-panel .nav-panel-cta {
  margin-top: 14px;
  align-self: flex-start;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.76rem;
}
html.nav-lock { overflow: hidden; }

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 46;
  }
  .nav-toggle span {
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: var(--cream);
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .nav-toggle span:first-child { transform: translateY(-4px); }
  .nav-toggle span:last-child { transform: translateY(4px); }
  .nav--open .nav-toggle span:first-child { transform: rotate(45deg); }
  .nav--open .nav-toggle span:last-child { transform: rotate(-45deg); }
  .nav-cta { display: none; }   /* the CTA lives inside the panel on mobile */
}

/* touch feedback: press states + reuse the spotlight pool as a tap-spark */
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-gold:active { filter: brightness(1.07); }
.pillar:active, .mentor:active { border-color: rgba(233, 186, 100, 0.5); }
.mentor.tapped::after, .pillar.tapped::after,
.trust-panel.tapped::after, .beta-content.tapped::after { opacity: 1; }

/* touch: 44px tap targets + kill the continuous gold-glint text repaints */
@media (hover: none), (pointer: coarse) {
  em.g { animation: none; }
  .footer-links a { display: inline-block; padding: 8px 0; }
}
@media (hover: none) and (max-width: 760px) {
  .nav-cta { min-height: 44px; }
}
@media (max-width: 400px) {
  .hero h1 br { display: none; }
}
