/* ============================================================
   Kept — "Cinematic Atelier" edition (Fable build)
   The umbrella VistaCriativa system carried to Kept: ink aubergine
   night, cream story-sheets, gold gradient serif. Kept's own warmth:
   the app screenshots are the hero, stories become paper.
   Serif: Cormorant Garamond · Body: Figtree · Accent: Fragment Mono.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Figtree:wght@400;500;600;700&family=Fragment+Mono&display=swap');

:root {
  --ink:        #0e0813;
  --ink-2:      #150c1d;
  --ink-3:      #1d1226;
  --aub:        #34233a;
  --aub-deep:   #241829;

  --gold:       #b08828;
  --gold-warm:  #d4ad4e;
  --gold-pale:  #ead9a8;
  --gold-grad:  linear-gradient(115deg, #a97f22 0%, #d4ad4e 45%, #f0dfae 62%, #c89a37 100%);
  --gold-line:  rgba(212, 173, 78, 0.22);
  --gold-line-soft: rgba(212, 173, 78, 0.12);

  --cream:      #faf6ee;
  --cream-2:    #f4ecda;
  --cream-card: #fffdf8;

  --paper:       #f5f1ea;
  --paper-dim:   rgba(245, 241, 234, 0.62);
  --paper-faint: rgba(245, 241, 234, 0.38);
  --text-ink:    #241829;
  --text-ink-dim:#5c4f63;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Figtree", system-ui, -apple-system, sans-serif;
  --mono:  "Fragment Mono", ui-monospace, "SF Mono", monospace;

  --fs-display: clamp(2.6rem, 6.2vw, 5rem);
  --fs-h2:      clamp(2.1rem, 4.6vw, 3.9rem);
  --fs-lead:    clamp(1.02rem, 1.4vw, 1.2rem);

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --container:  1200px;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(212, 173, 78, 0.32); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Global film grain — soft-light blend keeps the texture on the dark world
   but lets bright surfaces (the phone screens, cream sheets) stay clean;
   plain alpha grain read as a haze over the screenshots. */
.grain-veil {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.2%, 0.8%); }
  50% { transform: translate(0.9%, -1.1%); }
  75% { transform: translate(-0.7%, -0.6%); }
  100% { transform: translate(0, 0); }
}

/* ============ Typography primitives ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-warm);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold-warm), transparent);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(270deg, var(--gold-warm), transparent);
  flex: none;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--paper);
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  color: var(--paper);
  max-width: 21ch;
}
.h2--center { margin-inline: auto; text-align: center; }
.gold-i {
  font-style: italic;
  font-weight: 500;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--paper-dim);
  max-width: 54ch;
  margin: 0;
}

/* ============ Section shells ============ */
.sec { position: relative; padding: clamp(88px, 12vw, 168px) 0; }
.sec--cream {
  background: var(--cream);
  color: var(--text-ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(52,35,58,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  margin-top: calc(-1 * clamp(20px, 3vw, 36px));
  position: relative;
  z-index: 3;
}
.sec--cream + .sec:not(.sec--cream),
.sec--cream + .chapters {
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  margin-top: calc(-1 * clamp(20px, 3vw, 36px));
  position: relative;
  z-index: 3;
  background-color: var(--ink);
}
.sec--cream .h2, .sec--cream .display { color: var(--aub-deep); }
.sec--cream .lead { color: var(--text-ink-dim); }
.sec--cream .eyebrow { color: var(--gold); }

/* mono index marker at each section top */
.sec-index {
  position: absolute;
  top: clamp(26px, 3.4vw, 44px);
  left: 0; right: 0;
  pointer-events: none;
}
.sec-index .container {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--paper-faint);
}
.sec--cream .sec-index .container { color: rgba(52,35,58,0.55); }
.sec-index .container::after {
  content: ""; flex: 1; height: 1px;
  background: currentColor; opacity: 0.28;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-grad);
  color: #241829;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 12px 32px -10px rgba(176, 136, 40, 0.55);
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(212,173,78,0.55); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(245,241,234,0.28);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(245,241,234,0.06); border-color: rgba(245,241,234,0.5); box-shadow: none; }
.btn--ghost::after { display: none; }
.btn--small { padding: 10px 20px; font-size: 0.86rem; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 8, 19, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--gold-line-soft);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 32px; width: auto; }
.nav__brand {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.nav__right { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.lang-toggle button {
  background: none; border: 0;
  color: var(--paper-faint);
  padding: 6px 6px;
  font: inherit;
  letter-spacing: inherit;
  transition: color 0.25s;
  cursor: pointer;
}
.lang-toggle button.active { color: var(--gold-warm); }
.lang-toggle button:hover { color: var(--paper); }
.lang-toggle__sep { color: rgba(245,241,234,0.2); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 14vh, 180px) 0 clamp(60px, 8vh, 120px);
  overflow: hidden;
}
.hero__aurora {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--ink));
  z-index: 1;
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  width: 100%;
}
.hero .display { max-width: 15ch; margin: 6px 0 26px; }
.hero__sub { margin-bottom: 34px; }
.hero__note {
  margin-top: 30px;
  font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-faint);
}

/* store badges (soon) */
.store-badges { position: relative; display: inline-block; margin-top: 26px; }
.store-badges__row { display: flex; gap: 12px; opacity: 0.55; filter: saturate(0.4); }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(245,241,234,0.24);
  border-radius: 12px;
  padding: 8px 16px;
  color: var(--paper);
}
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge__sup { font-size: 0.6rem; opacity: 0.75; }
.store-badge__name { font-weight: 700; font-size: 0.95rem; }
.store-badges__ribbon {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--gold-grad); color: #241829; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
  white-space: nowrap;
}

/* ---- App-screenshot stage: 3D carousel fan ----
   Three real screens in true perspective; click a side phone (or a chip) and
   the fan rotates it to the front. Crispness rules: NO scale() anywhere (depth
   comes from translateZ under perspective), no permanent will-change, no idle
   transform loop — cards re-rasterize sharp once each swap transition ends. */
.appstage {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 18px;
  perspective: 1300px;
}
.appstage__halo {
  position: absolute; top: 50%; left: 50%;
  width: 560px; height: 560px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(212,173,78,0.16) 0%, rgba(176,136,40,0.05) 42%, transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}
.appfan {
  position: relative;
  width: min(620px, 92vw);
  height: 530px;
  transform-style: preserve-3d;
  /* the fan itself must not catch clicks: side cards live at negative
     translateZ, BEHIND this element's plane, and would be unreachable */
  pointer-events: none;
}
.appcard { pointer-events: auto; }
.appcard {
  /* even integer box + integer centering offsets: translate(-50%,-50%) on an
     odd size lands on half-pixels and softens the raster */
  position: absolute; top: 50%; left: 50%;
  width: 264px;
  height: 564px;
  margin-left: -132px;
  margin-top: -282px;
  padding: 0; border: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #1a0f22;
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(212, 173, 78, 0.26),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  backface-visibility: hidden;
  cursor: pointer;
  transition: transform 0.85s var(--ease), filter 0.85s var(--ease), opacity 0.85s var(--ease);
}
.appcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.appcard.pos-front {
  /* stays FLAT at z=0 — any positive translateZ magnifies the rasterized
     layer under perspective and pixelates the screenshot */
  transform: none;
  z-index: 3; filter: none; cursor: default;
}
.appcard.pos-left {
  transform: translateX(-224px) translateZ(-150px) rotateY(32deg);
  z-index: 2; filter: brightness(0.58) saturate(0.85);
}
.appcard.pos-right {
  transform: translateX(224px) translateZ(-150px) rotateY(-32deg);
  z-index: 2; filter: brightness(0.58) saturate(0.85);
}
.appcard.pos-left:hover, .appcard.pos-right:hover { filter: brightness(0.8) saturate(1); }
/* entrance: gathered + dark, then the fan opens */
.appfan:not(.is-in) .appcard {
  transform: translateY(34px) translateZ(-60px);
  opacity: 0;
}
.appchips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 4; }
.appchips button {
  background: rgba(245,241,234,0.05);
  border: 1px solid rgba(245,241,234,0.14);
  color: var(--paper-dim);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.appchips button:hover { border-color: var(--gold-line); color: var(--paper); }
.appchips button.is-active {
  background: rgba(212,173,78,0.12);
  border-color: var(--gold-warm);
  color: var(--gold-pale);
}

/* ============ Marquee ============ */
.marquee-wrap { overflow: hidden; padding: 34px 0 26px; }
.marquee-band {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--gold-line-soft);
  border-bottom: 1px solid var(--gold-line-soft);
  overflow: hidden;
  background: var(--ink-2);
  transform: rotate(-1.15deg) scale(1.02);
}
.marquee { display: flex; overflow: hidden; user-select: none; gap: 0; }
.marquee--rev { border-top: 0; margin-top: -1px; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 58s; }
.marquee--rev .marquee__item { font-style: normal; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-faint); }
.marquee__track {
  display: flex; flex: none;
  align-items: center;
  min-width: 100%;
  animation: marquee-scroll 46s linear infinite;
}
.marquee-band:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 0 26px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--paper-dim);
  white-space: nowrap;
}
.marquee__item::after { content: "◆"; font-size: 0.5rem; color: var(--gold); font-style: normal; }

/* ============ Problem (cream editorial) ============ */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.pain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pain {
  display: flex; gap: 20px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(52,35,58,0.12);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-ink);
}
.pain:first-child { border-top: 1px solid rgba(52,35,58,0.12); }
.pain__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  flex: none;
  letter-spacing: 0.1em;
}
.pain-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--aub-deep);
  margin-top: 34px;
  max-width: 24ch;
}

/* ============ How — 5 steps, gold numerals ============ */
.steps5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(40px, 5vw, 64px);
}
.step { position: relative; padding-top: 86px; }
.step::before {
  content: "";
  position: absolute;
  top: 32px; left: 82px; right: -18px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line), transparent);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; top: 0; left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}
.step h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin: 0 0 8px; color: var(--paper); }
.step p { font-size: 0.9rem; color: var(--paper-dim); margin: 0; line-height: 1.6; }

/* ============ Capture (cream surfaces) ============ */
.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}
.surface {
  background: var(--cream-card);
  border: 1px solid rgba(52,35,58,0.1);
  border-radius: 16px;
  padding: 26px 24px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.surface:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: 0 20px 44px -20px rgba(36,24,41,0.25);
}
.surface__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(176,136,40,0.1);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.surface h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin: 0 0 6px; color: var(--aub-deep); }
.surface p { font-size: 0.88rem; color: var(--text-ink-dim); margin: 0; line-height: 1.6; }

/* ============ Share — story card + circle ============ */
.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
.share-col { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.share-cap {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-faint);
  text-align: center;
}
/* story card — a lit sheet of paper in the dark */
.storycard {
  width: 100%; max-width: 380px;
  background: var(--cream-card);
  color: var(--text-ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,173,78,0.2);
  transform: rotate(-1.4deg);
  transition: transform 0.6s var(--ease);
}
.storycard:hover { transform: rotate(0deg) translateY(-4px); }
.storycard__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.storycard__photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.25) contrast(0.96); }
.storycard__body { padding: 20px 22px 18px; }
.storycard__badge {
  display: inline-block;
  font-family: var(--mono); font-size: 0.56rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(176,136,40,0.4);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.storycard__quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--aub-deep);
  margin: 0 0 12px;
}
.storycard__meta {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-ink-dim);
  margin-bottom: 12px;
}
.storycard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.storycard__tags span {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-ink-dim);
  background: var(--cream-2);
  border-radius: 999px; padding: 3px 10px;
}
.storycard__share {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid rgba(52,35,58,0.1);
  padding-top: 14px;
  font-size: 0.78rem; color: var(--text-ink-dim);
}
.storycard__share span.lbl { font-weight: 600; }
.storycard__share .chip {
  border: 1px solid rgba(52,35,58,0.16);
  border-radius: 999px; padding: 3px 12px;
  font-weight: 600; font-size: 0.74rem;
}
/* circle — glass chat card */
.circlecard {
  width: 100%; max-width: 380px;
  background: linear-gradient(165deg, rgba(245,241,234,0.055), rgba(245,241,234,0.02));
  border: 1px solid rgba(245,241,234,0.12);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.circlecard__head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(245,241,234,0.08);
}
.circlecard__name { font-family: var(--serif); font-size: 1.2rem; color: var(--paper); font-weight: 600; }
.circlecard__members { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-faint); margin-left: auto; }
.circlecard__body { padding: 18px 20px 20px; }
.circlecard__item { font-weight: 600; font-size: 0.92rem; color: var(--gold-pale); margin: 0 0 8px; }
.circlecard__snippet { font-size: 0.88rem; color: var(--paper-dim); line-height: 1.6; margin: 0 0 16px; }
.circlecard__comment {
  display: flex; gap: 10px; align-items: baseline;
  background: rgba(245,241,234,0.05);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}
.circlecard__comment strong { color: var(--paper); font-size: 0.82rem; }
.circlecard__comment span { color: var(--paper-dim); }
.circlecard__reacts { display: flex; gap: 8px; }
.circlecard__reacts span {
  font-size: 0.76rem;
  background: rgba(245,241,234,0.06);
  border: 1px solid rgba(245,241,234,0.1);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--paper-dim);
}

/* ============ Outcome — living space (cream) ============ */
.outcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}
.outcome-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.outcome-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(52,35,58,0.12);
}
.outcome-item:first-child { border-top: 1px solid rgba(52,35,58,0.12); }
.outcome-item h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--aub-deep); margin: 0 0 4px; }
.outcome-item p { font-size: 0.9rem; color: var(--text-ink-dim); margin: 0; line-height: 1.6; }
.webframe {
  perspective: 1200px;
}
.webframe__inner {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(52,35,58,0.15);
  box-shadow: 0 40px 80px -30px rgba(36,24,41,0.4);
  transform: rotateY(-7deg) rotateX(2deg);
  transition: transform 0.7s var(--ease);
  background: #fff;
}
.webframe:hover .webframe__inner { transform: rotateY(0) rotateX(0); }
.webframe img { width: 100%; height: auto; }
.webframe__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.webframe__dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(52,35,58,0.2);
  transition: background 0.3s, transform 0.3s;
}
.webframe__dot.is-active { background: var(--gold); transform: scale(1.25); }
.webframe__cap {
  text-align: center;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-ink-dim);
  margin-top: 10px;
}

/* ============ Outputs bento (dark) ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}
.bento__cell {
  background: linear-gradient(165deg, rgba(245,241,234,0.04), rgba(245,241,234,0.012));
  border: 1px solid rgba(245,241,234,0.09);
  border-radius: 20px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
}
.bento__cell:hover { border-color: var(--gold-line); }
.bento__cell::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(212,173,78,0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.bento__cell:hover::before { opacity: 1; }
.bento__icon { color: var(--gold-warm); margin-bottom: 16px; }
.bento__cell h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 8px; color: var(--paper); }
.bento__cell p { font-size: 0.9rem; color: var(--paper-dim); margin: 0; line-height: 1.6; }

/* ============ Chapters — pinned "a day becomes a book" ============ */
.chapters { position: relative; background: var(--ink); }
.chapters__pin {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding-top: 72px;
}
.chapters__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
  width: 100%;
}
.chapters__copy .h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 14px; }
.chapters__copy .lead { font-size: 0.98rem; line-height: 1.6; max-width: 44ch; }
.chapters__rail {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 28px;
}
.chapters__rail button {
  background: rgba(245,241,234,0.05);
  border: 1px solid rgba(245,241,234,0.14);
  color: var(--paper-dim);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.chapters__rail button:hover { border-color: var(--gold-line); color: var(--paper); }
.chapters__rail button.is-active {
  background: rgba(212,173,78,0.12);
  border-color: var(--gold-warm);
  color: var(--gold-pale);
}
.chapters__stage {
  position: relative;
  min-height: 470px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.chapters__halo {
  position: absolute; top: 50%; left: 50%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,173,78,0.13) 0%, rgba(176,136,40,0.04) 42%, transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}
.period {
  display: none;
  width: 100%; max-width: 460px;
  position: relative; z-index: 1;
}
.period.is-active { display: block; }
/* summary/chapter sheet */
.sheet {
  background: var(--cream-card);
  color: var(--text-ink);
  border-radius: 16px;
  padding: 28px 30px 24px;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,173,78,0.18);
}
.sheet__kicker {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.sheet__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--aub-deep); margin: 0 0 14px; }
.sheet p { font-size: 0.88rem; line-height: 1.7; color: var(--text-ink-dim); margin: 0 0 12px; }
.sheet__share {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid rgba(52,35,58,0.1);
  padding-top: 14px; margin-top: 6px;
  font-size: 0.76rem; color: var(--text-ink-dim);
}
.sheet__share .chip {
  border: 1px solid rgba(52,35,58,0.16);
  border-radius: 999px; padding: 3px 12px;
  font-weight: 600; font-size: 0.72rem;
}
.sheet__toc { list-style: none; margin: 0 0 14px; padding: 0; }
.sheet__toc li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(52,35,58,0.08);
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--aub-deep);
}
.sheet__toc li span.num {
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--gold); flex: none;
}
.sheet__note { font-size: 0.8rem; font-style: italic; color: var(--text-ink-dim); }
/* the book */
.book {
  width: 300px; margin: 0 auto;
  aspect-ratio: 3 / 4.2;
  background: linear-gradient(150deg, #2c1d33, #1c1024 70%);
  border-radius: 6px 14px 14px 6px;
  box-shadow:
    0 60px 100px -30px rgba(0,0,0,0.8),
    inset 12px 0 24px -14px rgba(0,0,0,0.7),
    0 0 0 1px rgba(212,173,78,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 34px 30px;
  position: relative;
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}
.book:hover { transform: rotate(0deg) translateY(-4px); }
.book::before { /* gold frame rule */
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(212,173,78,0.35);
  border-radius: 4px 10px 10px 4px;
  pointer-events: none;
}
.book__eyebrow {
  font-family: var(--mono); font-size: 0.52rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-warm);
  margin-bottom: 18px;
}
.book__title {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 600;
  line-height: 1.2;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 12px;
}
.book__subtitle { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--paper-dim); margin: 0 0 22px; }
.book__meta { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-faint); }
.book__foot { margin-top: 10px; font-size: 0.72rem; color: var(--paper-faint); }

/* ============ Mission (cream, diaspora bridge) ============ */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.mission__body { font-size: 1.04rem; line-height: 1.75; color: var(--text-ink-dim); }
.mission__sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: 16px; color: var(--aub-deep); }
.mission__foot { font-size: 0.78rem; margin-top: 28px; font-style: italic; opacity: 0.8; color: var(--text-ink-dim); }
.mission__photo { position: relative; }
.mission__photo img {
  border-radius: 16px;
  box-shadow: 0 30px 70px -25px rgba(36,24,41,0.45);
  width: 100%;
}
.mission__caption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-ink-dim);
  margin-top: 14px;
}

/* ============ Why (cream cols) ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(36px, 5vw, 60px);
}
.why-col { border-top: 2px solid var(--gold); padding-top: 22px; }
.why-col h4 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 10px; color: var(--aub-deep); }
.why-col p { font-size: 0.94rem; color: var(--text-ink-dim); margin: 0; }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; }
.faq-item { border-bottom: 1px solid rgba(245,241,234,0.1); }
.faq-item:first-child { border-top: 1px solid rgba(245,241,234,0.1); }
.faq-q {
  width: 100%;
  background: none; border: 0;
  display: flex; align-items: center; gap: 18px;
  text-align: left;
  padding: 24px 4px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  transition: color 0.3s;
}
.faq-q__num {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  flex: none;
  transform: translateY(-0.35em);
}
.faq-q > span:nth-child(2) { flex: 1 1 auto; }
.faq-q:hover { color: var(--gold-pale); }
.faq-q__icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,234,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-warm);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.faq-item.is-open .faq-q__icon { transform: rotate(45deg); background: rgba(212,173,78,0.1); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.faq-a p { margin: 0; padding: 0 44px 24px 40px; color: var(--paper-dim); font-size: 0.96rem; }

/* ============ Final CTA ============ */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(110px, 15vw, 200px) 0 0;
}
.final__aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.75; }
.final::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--ink), transparent);
  z-index: 1; pointer-events: none;
}
.final .container { position: relative; z-index: 2; }
.final .display { max-width: 18ch; margin: 0 auto 24px; }
.final .lead { margin: 0 auto 40px; }
.final .btn-row { justify-content: center; }
.final__note {
  margin-top: 30px;
  font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-faint);
}

/* footer */
.footer {
  border-top: 1px solid var(--gold-line-soft);
  padding: 36px 0 46px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--paper-faint);
}
.footer__sites {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px;
  margin-bottom: 14px;
}
.footer__sites a { color: var(--paper-dim); transition: color 0.25s; }
.footer__sites a:hover { color: var(--gold-warm); }
.footer__sites .is-here { color: var(--gold-warm); }

/* ============ Scroll cue ============ */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--paper-faint);
  pointer-events: none;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold-warm), transparent);
  animation: cue-drop 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}
@media (max-width: 880px) { .scroll-cue { display: none; } }

/* ============ Focus visibility ============ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Reveal primitives ============ */
.rv { opacity: 0; transform: translateY(34px); }
.rv--l { transform: translateX(-34px); }
.rv--r { transform: translateX(34px); }
.rv--none { transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .steps5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero .display { max-width: 17ch; }
  .appstage { margin-top: 16px; }
  .appfan { height: 590px; }
  /* small screens: front phone only; swaps still work (position classes
     move, opacity carries the fade) */
  .appcard.pos-left, .appcard.pos-right { opacity: 0; pointer-events: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; }
  .chapters__grid { grid-template-columns: 1fr; gap: 30px; }
  .chapters__stage { min-height: 0; }
  .mission-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps5 { grid-template-columns: 1fr; gap: 34px; }
  .step { padding-top: 78px; }
  .surface-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .faq-q { font-size: 1.1rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain-veil { animation: none; }
  .marquee__track { animation: none; }
  .rv, .rv--l, .rv--r { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
  .chapters__pin { min-height: 0; padding: clamp(88px, 12vw, 168px) 0; }
  .period { display: block; margin-bottom: 48px; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
