/* ============================================================
   NOVAMILLI — "The Atlas" homepage
   A night universe of official pages · editorial serif · mono data voice
   Loads after styles.css, which keeps the shared nav, footer and tokens.
   ============================================================ */

/* ---------- The third voice: a monospace for data, gates and readouts ---------- */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --night: #100B0F;
  --night-2: #17111A;
  --plum: #241A25;
  --plum-2: #33222F;
  --cream: #F3E7DA;
  --cream-2: #D9C8B8;
  --mute-n: #9C8A80;
  --line-n: rgba(243, 231, 218, 0.14);
  --line-n-2: rgba(243, 231, 218, 0.26);
  --rose-soft: #F08DAA;
  --ember: #E0896A;
  --lamp: #E8B15C;
  --sage: #9DB08A;
  --sage-deep: #6F8A5F;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out-5: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --wrap-wide: 1360px;
}

html { scroll-behavior: auto; }
html:focus-within { scroll-behavior: smooth; }
body.atlas {
  background: var(--night);
  color: var(--cream);
  overflow-x: clip;
}
body.atlas ::selection { background: var(--rose); color: #fff; }
.atlas .wrap { max-width: var(--wrap-wide); padding: 0 var(--gutter); }
.atlas .wrap-narrow { padding: 0 var(--gutter); }

/* Keyboard focus is visible everywhere; the mouse never sees a ring. */
.atlas :focus-visible { outline: 2px solid var(--rose-soft); outline-offset: 3px; border-radius: 6px; }

/* ---------- The universe ---------- */
#universe {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, #1B1319 0%, #120D11 55%, #0D090C 100%);
}
#universe-glow {
  position: fixed; left: 0; top: 0; width: 1px; height: 1px;
  z-index: 0; pointer-events: none;
  transform: translate(var(--gx, 50vw), var(--gy, 50vh));
}
#universe-glow::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: var(--gr, 80vmin); height: var(--gr, 80vmin);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 92, 130, 0.22) 0%, rgba(232, 177, 92, 0.08) 38%, rgba(16, 11, 15, 0) 68%);
  opacity: var(--go, 1);
  transition: opacity 0.6s var(--ease-soft);
}
.atlas .grain { opacity: 0.05; mix-blend-mode: soft-light; }
body.atlas.no-gl #universe { background: radial-gradient(120% 90% at 65% 35%, #2C1E2A 0%, #160F15 50%, #0D090C 100%); }

/* ---------- Sections ---------- */
.sec { position: relative; z-index: 1; }
.sec-night { color: var(--cream); }
.sec-paper {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 -1px 0 rgba(243, 231, 218, 0.08);
}
.sec-paper ::selection { background: var(--rose); color: #fff; }

/* ---------- Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute-n);
}
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); flex: none; }
.sec-paper .kicker { color: var(--ink-mute); }
.sec-paper .kicker::before { box-shadow: none; }

.h-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(50px, 9.2vw, 150px);
  line-height: 0.92; letter-spacing: -0.028em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.h-display em, .h-section em, .statement em { font-style: italic; font-weight: 400; color: var(--rose-soft); }
.sec-paper .h-section em, .sec-paper .statement em { color: var(--rose); }
.h-section {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.0; letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6;
  color: var(--cream-2); max-width: 58ch; text-wrap: pretty;
}
.sec-paper .lead { color: var(--ink-soft); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; line-height: 1;
  transition: transform 0.45s var(--ease-out-5), background 0.3s, border-color 0.3s, box-shadow 0.45s var(--ease-out-5), color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.1s; }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 10px 30px -12px rgba(222, 92, 130, 0.7); }
.btn-rose:hover { background: #E8699A; box-shadow: 0 18px 40px -14px rgba(222, 92, 130, 0.8); }
.btn-ghost { border-color: var(--line-n-2); color: var(--cream); background: rgba(243, 231, 218, 0.04); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(243, 231, 218, 0.1); border-color: rgba(243, 231, 218, 0.5); }
.sec-paper .btn-ghost { border-color: rgba(57, 46, 40, 0.25); color: var(--ink); background: transparent; }
.sec-paper .btn-ghost:hover { background: rgba(57, 46, 40, 0.06); border-color: rgba(57, 46, 40, 0.45); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Nav (night variant over the shared nav) ---------- */
.atlas .nav { background: transparent; border-bottom-color: transparent; }
.atlas .nav.scrolled { background: rgba(16, 11, 15, 0.62); backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line-n); }
.atlas .nav.on-paper { background: rgba(247, 240, 230, 0.74); backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid rgba(57, 46, 40, 0.1); }
.atlas .nav-wordmark, .atlas .nav-link, .atlas .lang-toggle { color: var(--cream); }
.atlas .nav.on-paper .nav-wordmark, .atlas .nav.on-paper .nav-link, .atlas .nav.on-paper .lang-toggle { color: var(--ink); }
.atlas .nav-link { opacity: 0.78; transition: opacity 0.25s; }
.atlas .nav-link:hover { opacity: 1; }
.atlas .nav-cta { background: var(--rose); color: #fff; border-color: transparent; }
.atlas .nav-cta:hover { background: #E8699A; }
.atlas .lang-toggle { border-color: var(--line-n-2); background: transparent; }
.atlas .nav.on-paper .lang-toggle { border-color: rgba(57, 46, 40, 0.2); }
.atlas .nav-logo { border-radius: 8px; }
.atlas .nav-links { display: flex; gap: 26px; margin-right: 10px; }
@media (max-width: 820px) { .atlas .nav-links { display: none; } }
@media (max-width: 600px) {
  .atlas .nav-inner { padding-left: 16px; padding-right: 16px; }
  .atlas .nav-cta { padding: 10px 14px; font-size: 13px; }
  .atlas .nav-right { gap: 10px; }
}

/* ---------- Reveals ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out-5), transform 1.1s var(--ease-out-5); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-lines > * { display: block; opacity: 0; transform: translateY(0.45em); transition: opacity 0.8s var(--ease-out-5), transform 1s var(--ease-out-5); }
.rv-lines.in > * { opacity: 1; transform: none; }
.rv-lines.in > :nth-child(2) { transition-delay: 0.12s; }
.rv-lines.in > :nth-child(3) { transition-delay: 0.24s; }
.rv-lines.in > :nth-child(4) { transition-delay: 0.36s; }

/* ============================================================
   HERO · the universe
   ============================================================ */
.hero-a {
  position: relative; min-height: 100svh;
  display: grid; align-content: end;
  padding: calc(var(--nav-h) + 8vh) 0 clamp(84px, 11vh, 120px);
}
.hero-a .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero-copy { max-width: 820px; }
.hero-a .kicker { margin-bottom: 26px; }
.hero-a .h-display { margin: 0 0 28px; }
.hero-a .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-store { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-store .store-badge img { height: 52px; width: auto; display: block; transition: transform 0.45s var(--ease-out-5); }
.hero-store .store-badge:hover img { transform: translateY(-2px); }
.hero-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--cream-2); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line-n-2); padding-bottom: 3px; transition: color 0.3s, border-color 0.3s; }
.hero-more:hover { color: var(--cream); border-color: var(--rose-soft); }
.hero-more svg { width: 15px; height: 15px; }
.hero-phone { position: relative; justify-self: center; width: min(308px, 30vw, 36svh); margin-top: 0; container-type: inline-size; }
.hero-phone .phone { --phone-w: 100cqw; margin: 0; transform: rotate(-4deg); box-shadow: 0 0 0 1px rgba(243, 231, 218, 0.2), 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 160px -30px rgba(222, 92, 130, 0.45); }
.hero-phone .phone.in { animation: hover-phone 8s var(--ease-in-out) infinite; --rz: -4deg; }
.hero-scrollcue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute-n);
}
.hero-scrollcue i { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--rose-soft), transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* First-paint choreography (load, not scroll) */
.rl { opacity: 0; transform: translateY(18px); animation: rl 1.3s var(--ease-out-5) forwards; animation-delay: var(--d, 0s); }
@keyframes rl { to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .hero-a { align-content: start; padding-top: calc(var(--nav-h) + 6vh); }
  .hero-a .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-phone { width: min(260px, 62vw); margin-top: 8px; }
}
@media (max-width: 600px) {
  .hero-a { padding-top: calc(var(--nav-h) + 4vh); }
  .hero-store .store-badge img { height: 46px; }
  .hero-scrollcue { display: none; }
}

/* ============================================================
   INSIDE · the app itself
   ============================================================ */
.inside { padding: clamp(96px, 14vh, 180px) 0 clamp(80px, 12vh, 150px); }
.inside-head { max-width: 760px; }
.inside-head .h-section { margin: 20px 0 18px; }
.inside-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid rgba(57, 46, 40, 0.18); border-radius: 999px; padding: 7px 12px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(56px, 8vh, 110px); align-items: start; }
.shot { margin: 0; display: grid; gap: 22px; justify-items: center; text-align: center; container-type: inline-size; }
.shot .phone { --phone-w: min(280px, 100cqw); margin: 0; background: #1A1316; box-shadow: 0 0 0 1px rgba(57, 46, 40, 0.12), 0 40px 80px -40px rgba(57, 46, 40, 0.55); }
.shot:nth-child(2) { transform: translateY(-28px); }
.shot h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.7vw, 25px); letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 8px; }
.shot p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 32ch; text-wrap: pretty; }
@media (max-width: 900px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 16px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 min(72vw, 300px); scroll-snap-align: center; transform: none !important; }
  .shot .phone { --phone-w: min(240px, 100cqw); }
}

/* ============================================================
   THE CLAIM · what we did, in numbers
   ============================================================ */
.claim { padding: clamp(96px, 14vh, 180px) 0 clamp(80px, 10vh, 140px); }
.claim-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.9vw, 58px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance;
  margin: 24px 0 0;
}
.claim-body { margin-top: 10px; display: grid; gap: 18px; align-self: end; }
.claim-body p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.claim-body .btn { justify-self: start; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(64px, 9vh, 120px); border-top: 1px solid rgba(57, 46, 40, 0.16); }
.stat { padding: 30px 28px 32px 0; border-bottom: 1px solid rgba(57, 46, 40, 0.16); position: relative; }
.stat::after { content: ''; position: absolute; right: 0; top: 24px; bottom: 24px; width: 1px; background: rgba(57, 46, 40, 0.12); }
.stat:nth-child(3n)::after { display: none; }
.stat:nth-child(n+4) { padding-left: 0; }
.stat-n {
  font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat-n small { font-size: 0.5em; letter-spacing: 0; vertical-align: 0.18em; margin-left: 2px; color: var(--rose); font-style: italic; }
.stat-l { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.5; }
.stats-note { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.02em; }
@media (max-width: 900px) {
  .claim-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3n)::after { display: block; }
  .stat:nth-child(2n)::after { display: none; }
  .stat:nth-child(2n) { padding-left: 24px; }
  .stat:nth-child(n+4) { padding-left: 0; }
  .stat:nth-child(2n):nth-child(n+4) { padding-left: 24px; }
}

/* ============================================================
   ASK · the traversal (pinned)
   ============================================================ */
.ask { position: relative; }
.ask-track { height: 640vh; }
.ask-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ask-stage .wrap { position: relative; height: 100%; }

/* head: kicker + title, present at the start, dissolves as the question arrives */
.ask-head { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 6vh); max-width: 760px; transition: opacity 0.6s, transform 0.9s var(--ease-out-5); }
.ask-head .h-section { margin: 20px 0 18px; }
.ask-stage[data-beat]:not([data-beat="0"]) .ask-head { opacity: 0; transform: translateY(-16px); pointer-events: none; }

/* the gate stepper, top-left */
.ask-gates {
  position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 4vh);
  display: grid; gap: 10px; opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s, transform 0.8s var(--ease-out-5);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.ask-stage[data-beat]:not([data-beat="0"]) .ask-gates { opacity: 1; transform: none; }
.ask-gate { display: flex; align-items: center; gap: 12px; color: var(--mute-n); transition: color 0.4s; }
.ask-gate i { width: 22px; height: 1px; background: currentColor; opacity: 0.5; transition: width 0.5s var(--ease-out-5); }
.ask-gate.done { color: var(--sage); }
.ask-gate.now { color: var(--cream); }
.ask-gate.now i { width: 44px; background: var(--rose); opacity: 1; box-shadow: 0 0 10px var(--rose); }
.ask-note {
  position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 4vh + 190px); max-width: 360px;
  font-size: 15.5px; line-height: 1.55; color: var(--cream-2); text-wrap: pretty;
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.7s var(--ease-out-5);
}
.ask-note.show { opacity: 1; transform: none; }
.ask-stage[data-beat="5"] .ask-note { opacity: 0; }

/* the composer: the app's own pill */
.ask-composer {
  position: absolute; left: 50%; bottom: 9vh; transform: translate(-50%, 30px);
  width: min(640px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px 16px 24px; border-radius: 999px;
  background: rgba(252, 248, 241, 0.96); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(243, 231, 218, 0.1), 0 0 60px -10px rgba(222, 92, 130, 0.35);
  opacity: 0; transition: opacity 0.6s, transform 0.9s var(--ease-out-5);
}
.ask-stage[data-beat="0"] .ask-composer, .ask-stage[data-beat="1"] .ask-composer { opacity: 1; transform: translate(-50%, 0); }
.ask-stage[data-beat="2"] .ask-composer { opacity: 0; transform: translate(-50%, -40px) scale(0.96); }
.ask-q { flex: 1; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; min-height: 1.35em; }
.ask-q.empty::before { content: attr(data-placeholder); color: var(--ink-mute); }
.ask-q::after { content: ''; display: inline-block; width: 2px; height: 1.05em; background: var(--rose); margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(2) infinite; }
.ask-stage[data-beat="1"] .ask-q::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.ask-mic { width: 46px; height: 46px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px -8px rgba(222, 92, 130, 0.8); transition: background 0.3s; }
.ask-stage[data-beat="1"] .ask-mic { background: var(--ink); }
.ask-mic svg { width: 18px; height: 18px; }

/* the packet: the question as a point of light, travelling into the universe */
.ask-packet {
  position: absolute; left: var(--px, 50%); top: var(--py, 50%);
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 18px 6px rgba(240, 141, 170, 0.9), 0 0 60px 20px rgba(222, 92, 130, 0.45);
  opacity: 0; transition: opacity 0.4s;
}
.ask-stage[data-beat="1"] .ask-packet, .ask-stage[data-beat="2"] .ask-packet { opacity: 1; }

/* retrieval cards, stacked at the right */
.ask-cards { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(400px, 40vw); display: grid; gap: 10px; perspective: 1200px; }
.ask-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(36, 26, 37, 0.72); border: 1px solid var(--line-n);
  backdrop-filter: blur(14px);
  opacity: 0; transform: translate3d(-40vw, 10vh, -300px) rotateY(-30deg) scale(0.7);
  transition: opacity 0.6s var(--ease-out-5), transform 1.1s var(--ease-out-5), border-color 0.4s, box-shadow 0.4s;
  transition-delay: calc(var(--i) * 90ms);
}
.ask-card.in { opacity: 1; transform: none; }
.ask-card.lead { border-color: rgba(240, 141, 170, 0.55); box-shadow: 0 0 0 1px rgba(240, 141, 170, 0.25), 0 20px 50px -30px rgba(222, 92, 130, 0.6); }
.ask-card .flag { font-size: 22px; line-height: 1; filter: saturate(0.85); }
.ask-card .t { font-size: 14px; line-height: 1.3; color: var(--cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ask-card .p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--mute-n); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-card .s { font-family: var(--mono); font-size: 11px; color: var(--sage); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; transition: opacity 0.4s 0.5s; }
.ask-card.in .s { opacity: 1; }
.ask-stage[data-beat="5"] .ask-cards { opacity: 0.35; transition: opacity 0.6s; }
.ask-stage[data-beat="6"] .ask-cards, .ask-stage[data-beat="0"] .ask-cards { opacity: 0; transition: opacity 0.4s; }

/* the sentences and their checks */
.ask-sentences {
  position: absolute; left: var(--gutter); bottom: 9vh;
  width: min(560px, 50vw); display: grid; gap: 14px;
  opacity: 0; transition: opacity 0.5s;
}
.ask-stage[data-beat="4"] .ask-sentences, .ask-stage[data-beat="5"] .ask-sentences { opacity: 1; }
.ask-s {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 40%); gap: 16px; align-items: start;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(36, 26, 37, 0.6); border: 1px solid var(--line-n); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out-5), transform 0.8s var(--ease-out-5), border-color 0.5s, background 0.5s;
}
.ask-s.in { opacity: 1; transform: none; }
.ask-s .txt { font-family: var(--serif); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.4; color: var(--cream); text-wrap: pretty; }
.ask-s .chk { display: grid; gap: 6px; justify-items: end; }
.ask-s .chk span { font-family: var(--mono); font-size: 10.5px; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-n); display: inline-flex; align-items: start; gap: 7px; text-align: right; opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.5s var(--ease-out-5), color 0.4s; }
.ask-s .chk span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; margin-top: 4px; }
.ask-s.in .chk span { opacity: 1; transform: none; }
.ask-s.in .chk span:nth-child(1) { transition-delay: 0.35s; }
.ask-s.in .chk span:nth-child(2) { transition-delay: 0.6s; }
.ask-s.in .chk span:nth-child(3) { transition-delay: 0.85s; }
.ask-s.ok .chk span { color: var(--sage); }
.ask-s.ok { border-color: rgba(157, 176, 138, 0.45); }
.ask-s.bad { border-color: rgba(224, 137, 106, 0.5); background: rgba(50, 26, 26, 0.5); }
.ask-s.bad .txt { text-decoration: line-through; text-decoration-color: var(--ember); text-decoration-thickness: 1.5px; color: var(--mute-n); }
.ask-s.bad .chk span { color: var(--ember); }
.ask-s.gone { opacity: 0; transform: translateY(10px) scale(0.97); }
.ask-s .why { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ember); opacity: 0; transition: opacity 0.4s 0.9s; }
.ask-s.bad .why { opacity: 1; }

/* the answer card: the app's own look */
.ask-answer {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 40px)) scale(0.98);
  width: min(600px, calc(100% - 2 * var(--gutter)));
  padding: 28px 28px 22px; border-radius: 28px;
  background: linear-gradient(180deg, #FBEEF1 0%, #F7E8EC 100%); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 80px -20px rgba(222, 92, 130, 0.5);
  opacity: 0; transition: opacity 0.7s var(--ease-out-5), transform 1s var(--ease-out-5);
}
.ask-stage[data-beat="6"] .ask-answer { opacity: 1; transform: translate(-50%, -50%); }
.ask-answer .bubble { justify-self: end; margin-left: auto; width: fit-content; max-width: 90%; background: #fff; border-radius: 22px; padding: 12px 18px; font-size: 16px; line-height: 1.35; box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.12); }
.ask-answer .intro { margin: 18px 0 10px; font-size: 16.5px; line-height: 1.45; color: var(--ink-soft); }
.ask-answer .a { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.ask-answer .a + .a { margin-top: 10px; }
.ask-answer .src {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 16px;
  background: #fff; box-shadow: 0 6px 20px -14px rgba(0, 0, 0, 0.25); text-decoration: none; color: inherit;
}
.ask-answer .src .ic { width: 36px; height: 36px; border-radius: 10px; background: #FBE3EA; color: var(--rose); display: grid; place-items: center; flex: none; }
.ask-answer .src .ic svg { width: 18px; height: 18px; }
.ask-answer .src b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.ask-answer .src small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 3px; }
.ask-answer .src .chev { margin-left: auto; color: var(--ink-mute); }
.ask-answer .meta { display: flex; gap: 14px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--ink-mute); }
.ask-answer .meta svg { width: 16px; height: 16px; opacity: 0.7; }
.ask-answer .ans-world { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(57, 46, 40, 0.1); }
.ask-answer .ans-world .wl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.dist { display: grid; gap: 6px; }
.dist-row { display: grid; grid-template-columns: 96px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.dist-row .dl { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dist-row .db { height: 8px; border-radius: 4px; background: rgba(57, 46, 40, 0.08); overflow: hidden; }
.dist-row .db i { display: block; height: 100%; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--rose), var(--ember)); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out-5); transition-delay: calc(var(--i) * 80ms + 0.3s); }
.in .dist-row .db i, .ask-stage[data-beat="6"] .dist-row .db i { transform: none; }
.dist-row.me .dl { color: var(--rose); font-weight: 700; }
.dist-row .dn { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-align: right; font-variant-numeric: tabular-nums; }

/* the moment after: a release line under the pinned stage */
.ask-after { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-n); opacity: 0; transition: opacity 0.6s 0.4s; }
.ask-stage[data-beat="6"] .ask-after { opacity: 1; }

@media (max-width: 900px) {
  .ask-track { height: 560vh; }
  .ask-stage[data-beat="5"] .ask-cards { opacity: 0; }
  .ask-s .txt { font-size: 15.5px; }
  .ask-s .chk span { font-size: 9.5px; text-align: left; }
  .ask-gates { top: calc(var(--nav-h) + 2vh); gap: 6px; font-size: 11px; }
  .ask-note { top: calc(var(--nav-h) + 2vh + 150px); max-width: 300px; font-size: 14px; }
  .ask-cards { right: var(--gutter); left: var(--gutter); width: auto; top: auto; bottom: 8vh; transform: none; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ask-card { padding: 10px 12px; grid-template-columns: auto 1fr; }
  .ask-card .s { display: none; }
  .ask-card:nth-child(n+5) { display: none; }
  .ask-sentences { width: auto; left: var(--gutter); right: var(--gutter); bottom: 7vh; gap: 10px; }
  .ask-s { padding: 12px 14px; grid-template-columns: minmax(0, 1fr); }
  .ask-s .chk { justify-items: start; grid-auto-flow: column; gap: 12px; min-width: 0; }
  .ask-answer { padding: 20px 18px 16px; border-radius: 22px; }
  .ask-answer .a { font-size: 15.5px; }
  .dist-row { grid-template-columns: 84px 1fr 30px; font-size: 12px; }
}

/* ============================================================
   GATES · how an answer is made
   ============================================================ */
.gates { padding: clamp(96px, 14vh, 180px) 0 clamp(80px, 12vh, 160px); }
.gates-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); }
.gates-intro { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.gates-intro .h-section { margin: 20px 0 20px; }
.gates-list { position: relative; list-style: none; padding: 0; margin: 0; }
.gates-list::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: rgba(57, 46, 40, 0.14); }
.gates-rail { position: absolute; left: 0; top: 10px; width: 1px; height: calc(var(--p, 0) * (100% - 20px)); background: linear-gradient(to bottom, var(--rose), var(--ember)); box-shadow: 0 0 10px rgba(222, 92, 130, 0.5); transition: height 0.25s linear; }
.gate { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 30px 0 30px 28px; border-bottom: 1px solid rgba(57, 46, 40, 0.1); position: relative; }
.gate::before { content: ''; position: absolute; left: -3.5px; top: 42px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 1px solid rgba(57, 46, 40, 0.3); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.gate.lit::before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 4px rgba(222, 92, 130, 0.18); }
.gate-n { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--ink-mute); padding-top: 6px; }
.gate h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 10px; }
.gate p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; text-wrap: pretty; margin: 0; }
.gate .tag { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-deep); border: 1px solid rgba(111, 138, 95, 0.4); border-radius: 999px; padding: 5px 10px; }
.gates-foot { margin-top: 28px; padding-left: 0; font-size: 14px; line-height: 1.6; color: var(--ink-mute); max-width: 56ch; }
@media (max-width: 900px) {
  .gates-grid { grid-template-columns: 1fr; }
  .gates-intro { position: static; }
  .gate { grid-template-columns: 1fr; gap: 4px; padding: 22px 0 22px 22px; }
}

/* ============================================================
   WORLD · the country picker
   ============================================================ */
.world { min-height: 100svh; display: grid; align-items: center; padding: clamp(96px, 12vh, 160px) 0; }
.world-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.world-copy { min-width: 0; }
.world-copy .h-section { margin: 20px 0 18px; }
.world-panel { display: grid; gap: 22px; max-width: 520px; }
.world-panel > * { min-width: 0; } /* a long source name or country name must clip or wrap, never widen the page */
.picker { position: relative; min-width: 0; }
.picker label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute-n); margin-bottom: 10px; }
.picker-field { position: relative; }
/* The native select stays at a normal text size, because macOS sizes its popup menu from the
   select's own font, and sits invisibly over the face that shows the choice in display type. */
.picker select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1;
  appearance: none; -webkit-appearance: none; opacity: 0; cursor: pointer;
  font: 400 17px/1.3 var(--sans); color: var(--ink);
}
.picker select option { color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; }
.picker-face {
  font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2;
  color: var(--cream); background: rgba(243, 231, 218, 0.04);
  border: 1px solid var(--line-n-2); border-radius: 18px; padding: 16px 56px 16px 20px;
  overflow-wrap: anywhere;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.picker select:hover + .picker-face { border-color: rgba(243, 231, 218, 0.5); background: rgba(243, 231, 218, 0.07); }
.picker select:focus-visible + .picker-face { border-color: var(--rose-soft); box-shadow: 0 0 0 3px rgba(240, 141, 170, 0.28); }
.picker svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--rose-soft); pointer-events: none; }
.world-read { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wr { padding: 18px 20px; border-radius: 18px; background: rgba(36, 26, 37, 0.55); border: 1px solid var(--line-n); backdrop-filter: blur(12px); }
.wr-n { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wr-l { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-n); line-height: 1.5; }
.world-answer { padding: 20px 22px 18px; border-radius: 22px; background: rgba(36, 26, 37, 0.55); border: 1px solid var(--line-n); backdrop-filter: blur(12px); }
.world-answer .wl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-n); }
.world-answer .wa { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; margin: 8px 0 4px; letter-spacing: -0.01em; min-height: 1.2em; }
.world-answer .wa.none { font-size: clamp(16px, 1.3vw, 18px); font-family: var(--sans); color: var(--cream-2); line-height: 1.5; }
.world-answer .wsrc { font-family: var(--mono); font-size: 11.5px; color: var(--mute-n); margin-bottom: 14px; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-answer .dist-row .dl { color: var(--cream-2); }
.world-answer .dist-row .db { background: rgba(243, 231, 218, 0.1); }
.world-answer .dist-row .dn { color: var(--mute-n); }
.world-answer .dist-row.me .dl { color: var(--rose-soft); }
.world-caption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--mute-n); display: inline-flex; align-items: center; gap: 10px; }
.world-caption i { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); }
@media (max-width: 900px) {
  .world { min-height: 0; padding-top: 46vh; }
  .world-grid { grid-template-columns: 1fr; }
  .world-panel { max-width: none; }
  .world-globe-space { height: 52vw; }
}

/* ============================================================
   ARCHIVE · what's inside
   ============================================================ */
.archive { position: relative; overflow: hidden; padding: clamp(120px, 18vh, 220px) 0 0; }
.archive-film { position: absolute; inset: 0; z-index: 0; }
.archive-film img, .archive-film video { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.0; transition: opacity 1.4s var(--ease-soft); transform: scale(var(--ks, 1.06)); will-change: transform; }
.archive.in .archive-film img, .archive.in .archive-film video { opacity: 1; }
.archive-film video { position: absolute; inset: 0; }
.archive-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 11, 15, 0.92) 0%, rgba(16, 11, 15, 0.78) 40%, rgba(16, 11, 15, 0.35) 75%, rgba(16, 11, 15, 0.55) 100%), linear-gradient(180deg, var(--night) 0%, rgba(16, 11, 15, 0) 22%, rgba(16, 11, 15, 0) 70%, var(--night) 100%); }
.archive .wrap { position: relative; z-index: 1; }
.archive-copy { max-width: 640px; }
.archive-copy .h-section { margin: 20px 0 18px; }
.archive-copy .lead { margin-bottom: 20px; }
.archive-fact { display: flex; flex-wrap: wrap; gap: 28px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--mute-n); }
.archive-fact b { color: var(--cream); font-weight: 500; }
.marquees { position: relative; z-index: 1; margin-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(80px, 10vh, 140px); display: grid; gap: 14px; }
.marquee-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-n); padding: 0 var(--gutter); margin-bottom: 4px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee var(--dur, 90s) linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(36, 26, 37, 0.6); border: 1px solid var(--line-n); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--cream-2);
}
.mq .f { font-size: 17px; line-height: 1; }
.mq .c { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--mute-n); }

/* ============================================================
   LOUANE · 3 a.m.
   ============================================================ */
.louane { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: center; padding: clamp(110px, 16vh, 200px) 0; }
.louane-film { position: absolute; inset: 0; z-index: 0; }
.louane-film img, .louane-film video { width: 100%; height: 100%; object-fit: cover; object-position: 46% 38%; transform: scale(var(--ks, 1.04)); will-change: transform; }
.louane-film video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.louane-film video.ready { opacity: 1; }
.louane-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 11, 15, 0.94) 0%, rgba(16, 11, 15, 0.8) 26%, rgba(16, 11, 15, 0.22) 50%, rgba(16, 11, 15, 0.06) 70%, rgba(16, 11, 15, 0.3) 100%), linear-gradient(180deg, var(--night) 0%, rgba(16, 11, 15, 0) 22%, rgba(16, 11, 15, 0) 72%, var(--night) 100%); }
.louane .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.louane-copy .h-section { margin: 20px 0 18px; }
.louane-copy .lead { margin-bottom: 26px; }
.louane-title { display: flex; align-items: center; gap: 18px; }
.butterfly { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; position: relative; }
.butterfly video { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.louane-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; max-width: 540px; }
.louane-points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--cream-2); }
.louane-points svg { width: 20px; height: 20px; color: var(--rose-soft); margin-top: 3px; }
.louane-price { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; letter-spacing: 0.02em; color: var(--mute-n); max-width: 52ch; border-left: 1px solid var(--line-n-2); padding-left: 16px; }
.louane-price b { color: var(--cream); font-weight: 500; }
/* The phone frame draws itself around the screenshot (an iPhone 18 Pro Max capture, 760x1651): the image keeps its own
   aspect ratio and is never cropped, the bezel is the Pro Max's own proportion (2.8% of the body width) and the screen
   corners its own radius (62pt of 440pt). --phone-w is the frame's width, always a real length (px, vw or the wrapper's cqw, never %,
   which a border radius or inset would read against the height); every override sets it instead of width. */
.phone { position: relative; --phone-w: min(292px, 80vw); --bezel: calc(var(--phone-w) * 0.028); --screen-r: calc((var(--phone-w) - 2 * var(--bezel)) * 0.141); width: var(--phone-w); margin: 0 0 0 auto; border-radius: calc(var(--screen-r) + var(--bezel)); padding: var(--bezel); background: #0E0A0D; box-shadow: 0 0 0 1px rgba(243, 231, 218, 0.18), 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 120px -30px rgba(222, 92, 130, 0.35); transform: rotate(var(--rz, 0deg)) translateY(var(--ty, 0px)); will-change: transform; }
.phone img { width: 100%; height: auto; aspect-ratio: 760 / 1651; object-fit: cover; border-radius: var(--screen-r); display: block; }
.phone::after { content: ''; position: absolute; inset: var(--bezel); border-radius: var(--screen-r); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.louane-disclaimer { grid-column: 1 / -1; font-size: 13px; color: var(--mute-n); margin-top: 8px; }
@media (max-width: 900px) {
  .louane .wrap { grid-template-columns: 1fr; }
  .louane-film img, .louane-film video { object-position: 40% 28%; }
  .louane-film::after { background: linear-gradient(180deg, rgba(16, 11, 15, 0.55) 0%, rgba(16, 11, 15, 0.08) 22%, rgba(16, 11, 15, 0.2) 40%, rgba(16, 11, 15, 0.88) 58%, var(--night) 100%); }
  .louane { padding-top: 58vh; }
  .phone { --phone-w: min(280px, 70vw); }
}

/* ============================================================
   APP · still free
   ============================================================ */
.app { padding: clamp(96px, 14vh, 180px) 0; }
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.app-copy .h-section { margin: 20px 0 18px; }
.app-copy .lead { margin-bottom: 26px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-row .store-badge img { height: 48px; width: auto; }
.vows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vow-card { padding: 26px 26px 28px; border-radius: 22px; background: var(--paper-card); box-shadow: 0 1px 0 rgba(57, 46, 40, 0.06), 0 20px 50px -40px rgba(57, 46, 40, 0.3); }
.vow-card .ic { width: 40px; height: 40px; border-radius: 12px; background: #FBE3EA; color: var(--rose); display: grid; place-items: center; margin-bottom: 18px; }
.vow-card .ic svg { width: 20px; height: 20px; }
.vow-card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 8px; }
.vow-card p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vows-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FINALE
   ============================================================ */
.finale-a { min-height: 88svh; display: grid; place-items: center; text-align: center; padding: clamp(96px, 14vh, 180px) 0; }
.finale-a .h-display { font-size: clamp(44px, 7.4vw, 120px); margin: 0 0 22px; }
.finale-a .lead { margin: 0 auto 34px; }
.finale-a .store-row { justify-content: center; }

/* ---------- Footer, night variant ---------- */
.atlas .footer { background: transparent; color: var(--cream-2); border-top: 1px solid var(--line-n); position: relative; z-index: 1; }
.atlas .footer a { color: var(--cream-2); }
.atlas .footer-wordmark { color: var(--cream); }
.atlas .footer-copy, .atlas .footer-affiliate { color: var(--mute-n); }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-lines > *, .rl { opacity: 1; transform: none; animation: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-scrollcue i { animation: none; }
  .ask-q::after { animation: none; }
  .ask-card, .ask-s, .ask-answer, .ask-composer, .ask-head, .ask-gates, .ask-note { transition-duration: 0.01s; }
  .dist-row .db i { transition: none; }
}

/* ---------- Gate glyphs (paper): a small instrument per gate, alive once the rail reaches it ---------- */
.gate > div { position: relative; padding-right: 76px; }
.glyph { position: absolute; right: 0; top: 2px; width: 52px; height: 52px; fill: none; stroke: var(--ink-mute); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s; }
.glyph .g-hot { fill: var(--ink-mute); stroke: none; transition: fill 0.5s; }
.gate.lit .glyph { stroke: var(--ink-soft); }
.gate.lit .glyph .g-hot { fill: var(--rose); }
.glyph .g-ring { stroke: var(--rose); opacity: 0; transform-origin: 18px 24px; transform: scale(0.4); transition: opacity 0.6s, transform 0.9s var(--ease-out-5); }
.gate.lit .glyph .g-ring { opacity: 0.7; transform: scale(1); }
.glyph .g-ray { stroke-dasharray: 10; stroke-dashoffset: 10; transition: stroke-dashoffset 0.8s var(--ease-out-5) 0.1s; }
.glyph .g-ray-2 { transition-delay: 0.3s; }
.gate.lit .glyph .g-ray { stroke-dashoffset: 0; }
.glyph .g-doc-mid, .glyph .g-arrow { transition: transform 0.8s var(--ease-out-5), stroke 0.5s; }
.gate.lit .glyph .g-doc-mid { transform: translateX(6px); stroke: var(--rose); }
.gate.lit .glyph .g-arrow { stroke: var(--rose); transform: translateX(2px); }
.glyph .g-line { stroke-dasharray: 32; stroke-dashoffset: 32; transition: stroke-dashoffset 1s var(--ease-out-5) 0.2s, stroke 0.4s; }
.gate.lit .glyph .g-line { stroke-dashoffset: 0; stroke: var(--rose); }
.glyph .g-tick { stroke-dasharray: 14; stroke-dashoffset: 14; stroke: var(--sage-deep); transition: stroke-dashoffset 0.6s var(--ease-out-5); }
.gate.lit .glyph .g-tick { stroke-dashoffset: 0; }
.gate.lit .glyph .g-tick:nth-of-type(3) { transition-delay: 0.25s; }
.glyph .g-strike { stroke: var(--ember); stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.6s var(--ease-out-5) 0.6s; }
.gate.lit .glyph .g-strike { stroke-dashoffset: 0; }
.glyph .g-eye { transition: transform 0.9s var(--ease-out-5), stroke 0.5s; }
.gate.lit .glyph .g-eye { stroke: var(--rose); transform: translateX(-3px); }
.gate.lit .glyph .g-eye-2 { transform: translateX(3px); }
.glyph .g-layer { transition: transform 0.9s var(--ease-out-5), stroke 0.5s; }
.gate.lit .glyph .g-layer-1 { transform: translate(-3px, -3px); }
.gate.lit .glyph .g-layer-3 { transform: translate(3px, 3px); stroke: var(--rose); }
@media (max-width: 900px) { .gate > div { padding-right: 60px; } .glyph { width: 42px; height: 42px; } }

/* ---------- The check sweep: a scan of light over a sentence as it is read ---------- */
.ask-s { position: relative; overflow: hidden; }
.ask-s::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(243, 231, 218, 0.14), transparent); transform: translateX(-100%); pointer-events: none; }
.ask-s.in::after { animation: sweep 1.2s var(--ease-in-out) 0.15s 1 forwards; }
@keyframes sweep { to { transform: translateX(350%); } }

/* ---------- The phone breathes ---------- */
@keyframes hover-phone { 0%, 100% { transform: rotate(var(--rz, 0deg)) translateY(var(--ty, 0px)); } 50% { transform: rotate(var(--rz, 0deg)) translateY(calc(var(--ty, 0px) - 8px)); } }
.phone.in { animation: hover-phone 7s var(--ease-in-out) infinite; }

/* ---------- The instrument ring around the sphere ---------- */
#universe-ring { position: fixed; left: 0; top: 0; width: 1px; height: 1px; z-index: 0; pointer-events: none; transform: translate(var(--gx, 50vw), var(--gy, 50vh)); opacity: var(--ro, 0); transition: opacity 0.8s; }
#universe-ring svg { position: absolute; left: 50%; top: 50%; width: calc(var(--sr, 300px) * 2.6); height: calc(var(--sr, 300px) * 2.6); transform: translate(-50%, -50%) rotate(-16deg); overflow: visible; }
#universe-ring ellipse { fill: none; stroke: rgba(243, 231, 218, 0.22); stroke-width: 0.6; stroke-dasharray: 2 5; }
#universe-ring .ring-dot { fill: var(--rose-soft); filter: drop-shadow(0 0 6px var(--rose)); transform-origin: 200px 200px; animation: orbit 26s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 900px) { #universe-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { #universe-ring .ring-dot { animation: none; } .phone.in { animation: none; } .ask-s.in::after { animation: none; } }

/* ---------- Hover life on paper cards ---------- */
.vow-card { transition: transform 0.6s var(--ease-out-5), box-shadow 0.6s var(--ease-out-5); }
.vow-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(57, 46, 40, 0.06), 0 30px 60px -36px rgba(57, 46, 40, 0.45); }

/* ---------- Scripts that need room, and right-to-left mirroring ---------- */
[dir="rtl"] .kicker, [dir="rtl"] .h-display, [dir="rtl"] .h-section, [dir="rtl"] .statement, [dir="rtl"] .stat-n { letter-spacing: normal; }
html:lang(hi) .h-display, html:lang(hi) .h-section, html:lang(hi) .statement, html:lang(hi) .gate h3, html:lang(hi) .vow-card h3 { line-height: 1.22; letter-spacing: normal; }
html:lang(ja) .h-display, html:lang(ja) .h-section, html:lang(ja) .statement { line-height: 1.12; letter-spacing: 0; }
[dir="rtl"] .ask-head, [dir="rtl"] .ask-gates, [dir="rtl"] .ask-note, [dir="rtl"] .ask-sentences { left: auto; right: var(--gutter); }
[dir="rtl"] .ask-cards { right: auto; left: var(--gutter); }
[dir="rtl"] .ask-gate i { order: 2; }
[dir="rtl"] .ask-answer .bubble { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ask-answer .src .chev { margin-left: 0; margin-right: auto; transform: scaleX(-1); }
[dir="rtl"] .hero-side { text-align: left; justify-self: start; }
[dir="rtl"] .picker svg { right: auto; left: 20px; }
[dir="rtl"] .picker-face { padding: 16px 20px 16px 56px; }
[dir="rtl"] .louane-price { border-left: 0; border-right: 1px solid var(--line-n-2); padding-left: 0; padding-right: 16px; }
[dir="rtl"] .gates-list::before, [dir="rtl"] .gates-rail { left: auto; right: 0; }
[dir="rtl"] .gate { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .gate::before { left: auto; right: -3.5px; }
[dir="rtl"] .gate > div { padding-right: 0; padding-left: 76px; }
[dir="rtl"] .glyph { right: auto; left: 0; }
[dir="rtl"] .stat { padding-right: 0; padding-left: 28px; }
[dir="rtl"] .stat::after { right: auto; left: 0; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
[dir="rtl"] .marquee.rev .marquee-track { animation-direction: normal; }
