/* Tiferet Rooms landing — visual language of tiferet-landing:
   full-bleed impasto paintings under every slide, ink ground, parchment text,
   one gold phrase per headline, glass panels, grain. Icons are bare glyphs. */

:root {
  --ink: #0b1120;
  --ink-deep: #060b17;
  --navy: #0e1a33;
  --parchment: #f7f1e3;
  --parchment-dim: rgba(247, 241, 227, 0.76);
  --parchment-mute: rgba(247, 241, 227, 0.52);
  --gold: #ffc44d;
  --gold-soft: #ffd77a;
  --gold-deep: #e6aa42;
  --gold-light: #ffedb0;
  --gold-ink: #1a1408;
  --ivory: #fff6dd;
  --mint: #a8e6c1;
  --line: rgba(247, 241, 227, 0.14);
  --line-gold: rgba(255, 196, 77, 0.28);
  --glass: rgba(6, 11, 23, 0.56);
  --glass-soft: rgba(247, 241, 227, 0.06);
  --gold-gradient: linear-gradient(180deg, #ffedb0 0%, #ffd76a 52%, #e6aa42 100%);
  /* paintings: full colour under one even neutral veil, never darkened from a side, never tinted blue */
  --veil-rgb: 9, 9, 11;
  --veil: 0.6;
  --font: "Roboto Condensed", "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-text: 0 2px 28px rgba(6, 11, 23, 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--parchment);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; vertical-align: -0.15em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Snap root ---------- */

.snap-root {
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.snap-root::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--ink-deep);
  padding-block: calc(96px + env(safe-area-inset-top)) 56px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

/* ---------- Paintings under every slide ---------- */

.slide__paint { position: absolute; inset: -3%; z-index: -3; overflow: hidden; }
.slide__paint img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
  transform: translate3d(0, calc(var(--p, 0) * -4%), 0) scale(1.04);
  will-change: transform;
  transition: opacity 1.2s var(--ease);
}
.slide__paint--texture img { opacity: 0.38; }

.slide__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: rgba(var(--veil-rgb), var(--veil));
}

.noise {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 899px) {
  .noise { display: none; }
}

/* ---------- Type ---------- */

.kicker {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin-bottom: clamp(14px, 2vh, 24px);
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em;
  text-shadow: var(--shadow-text);
}
.kicker b { font-weight: 700; }
.kicker i { font-style: normal; color: var(--gold); }
.kicker span { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--parchment-mute); }

.display {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: var(--shadow-text);
}
.display em { font-style: normal; color: var(--gold); }
.display--hero { font-size: clamp(2.8rem, min(6.4vw, 11vh), 6.2rem); letter-spacing: -0.05em; line-height: 0.96; }
.display--h2 { font-size: clamp(2.3rem, min(5.1vw, 9vh), 4.75rem); max-width: 14ch; }
.display--h3 { font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; }

.lead {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--parchment-dim);
  max-width: 44ch;
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(6, 11, 23, 0.6);
}
.lead strong { color: var(--parchment); font-weight: 700; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 12px 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; line-height: 1.1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--parchment); }
.btn--glass { border-color: rgba(247, 241, 227, 0.22); color: rgba(247, 241, 227, 0.86); background: rgba(6, 11, 23, 0.32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { border-color: rgba(255, 196, 77, 0.5); color: var(--gold); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn--store { padding-inline: 22px 28px; text-align: start; }
.btn--store .btn__lines { display: flex; flex-direction: column; gap: 1px; }
.btn--store small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0.8; }
.btn--store span { font-size: 1.1rem; }
/* Not in the stores yet: on hover (a tap on a phone) the store's name gives way to "soon". */
.btn--store { position: relative; }
.btn--store > svg, .btn--store .btn__lines { transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.btn--store .btn__soon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.btn--store.is-soon > svg, .btn--store.is-soon .btn__lines { opacity: 0; transform: translateY(-6px); }
.btn--store.is-soon .btn__soon { opacity: 1; transform: none; }
@media (hover: hover) {
  .btn--store:hover > svg, .btn--store:hover .btn__lines,
  .btn--store:focus-visible > svg, .btn--store:focus-visible .btn__lines { opacity: 0; transform: translateY(-6px); }
  .btn--store:hover .btn__soon, .btn--store:focus-visible .btn__soon { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--store > svg, .btn--store .btn__lines, .btn--store .btn__soon { transition: none; transform: none; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.4vh, 34px); }
@media (max-width: 560px) { .btn-row { flex-direction: column; align-items: stretch; } .btn-row .btn { width: 100%; } }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 30;
  padding-block: 12px;
  background: linear-gradient(180deg, rgba(6, 11, 23, 0.72), rgba(6, 11, 23, 0));
  transition: background 400ms var(--ease);
}
.nav.is-solid { background: linear-gradient(180deg, rgba(6, 11, 23, 0.9), rgba(6, 11, 23, 0.4)); }
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 38px; height: 38px; }
.wordmark { justify-self: center; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; text-shadow: var(--shadow-text); }
.wordmark i { font-style: normal; color: var(--gold); }
.nav .btn { justify-self: end; min-height: 44px; padding: 8px 20px; font-size: 0.92rem; }
.nav .btn svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .wordmark { font-size: 1.15rem; } .nav .btn { padding-inline: 16px; } }

/* ---------- Dots ---------- */

.dots { position: fixed; inset-block: 0; inset-inline-end: 14px; z-index: 25; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dots button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 3px 4px; cursor: pointer; color: var(--parchment-mute); -webkit-tap-highlight-color: transparent; }
.dots span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 300ms var(--ease), opacity 300ms var(--ease); }
.dots i { flex: none; width: 6px; height: 6px; border-radius: 999px; background: rgba(247, 241, 227, 0.25); transition: transform 400ms var(--ease), background-color 400ms var(--ease), box-shadow 400ms var(--ease); }
.dots button:hover i { background: rgba(247, 241, 227, 0.6); }
.dots button.is-on i { background: var(--gold); transform: scale(1.6); box-shadow: 0 0 10px rgba(255, 196, 77, 0.7); }
.dots button:hover span, .dots button.is-on span { max-width: 160px; opacity: 1; }
.dots button.is-on span { color: var(--gold); }
@media (max-width: 899px) { .dots { inset-inline-end: 6px; gap: 3px; } .dots span { display: none; } .dots i { width: 5px; height: 5px; } }

/* ---------- Hero ---------- */

.hero { padding-block: calc(84px + env(safe-area-inset-top)) 72px; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__inner { display: grid; justify-items: center; text-align: center; margin-inline: auto; }
.hero__mark { position: relative; width: clamp(140px, 23vh, 240px); aspect-ratio: 1; margin-bottom: 10px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.hero__mark img { width: 100%; height: 100%; opacity: 0; transform: scale(0.94); transition: opacity 900ms var(--ease), transform 1200ms var(--ease); }
.hero__mark.is-lit img { opacity: 1; transform: scale(1); }
.hero .kicker { justify-content: center; }
.hero .display--h2, .hero .lead { margin-inline: auto; }
.hero .lead { max-width: 46ch; }
.hero .btn-row { justify-content: center; }
.hero__hint { margin-top: 18px; font-size: 1rem; color: var(--parchment-mute); text-shadow: var(--shadow-text); }
.hero__hint strong { color: var(--parchment-dim); font-weight: 700; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--gold); }
.scroll-cue svg { width: 22px; height: 22px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------- Chapters ---------- */

.chapter { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .chapter--flip .chapter__copy { order: 2; }
  .chapter--flip .chapter__art { order: 1; }
  .chapter--solo { grid-template-columns: minmax(0, 1fr); }
}
.chapter__copy { max-width: 640px; }
.chapter--solo .chapter__copy { max-width: 720px; }

.chapter__points { display: grid; gap: 12px; margin: clamp(18px, 3vh, 30px) 0 0; padding: 0; list-style: none; }
.chapter__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--parchment-dim); font-size: 1.05rem; font-weight: 500; line-height: 1.45; text-shadow: 0 1px 14px rgba(6, 11, 23, 0.7); }
.chapter__points svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 4px; }
.chapter__points strong { color: var(--parchment); font-weight: 700; }

/* Solo chapters: points become three editorial columns like the reference */
@media (min-width: 900px) {
  .chapter--solo .chapter__points { grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1180px; margin-top: clamp(26px, 5vh, 48px); }
  .chapter--solo .chapter__points li { display: block; font-size: 1.05rem; }
  .chapter--solo .chapter__points svg { display: none; }
  .chapter--solo .chapter__points strong { display: block; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 8px; }
  .chapter--solo .chapter__points li:nth-child(2) strong { color: var(--gold); }
}

/* ---------- Proof points & steps: editorial columns ---------- */

.proofs, .steps { display: grid; gap: clamp(22px, 3vw, 40px); margin-top: clamp(28px, 5vh, 56px); }
@media (min-width: 760px) { .proofs, .steps { grid-template-columns: repeat(3, 1fr); } }
.proof, .step { display: grid; gap: 8px; align-content: start; text-shadow: 0 1px 16px rgba(6, 11, 23, 0.7); }
.proof__icon, .step__glyph { color: var(--gold); line-height: 1; }
.proof__icon svg, .step__glyph svg { width: 28px; height: 28px; }
.proof h3, .step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.proof:nth-child(2) h3, .step:nth-child(2) h3 { color: var(--gold); }
.proof p, .step p { color: var(--parchment-dim); font-size: 1.02rem; font-weight: 500; line-height: 1.5; text-wrap: pretty; }

/* ---------- Glass panels ---------- */

.glass, .group__card, .player, .notice, .live-card, .friends, .bubble--in, .chat__input, .story, .burst__pill {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

/* ---------- Voice rim ---------- */

.voice { display: grid; place-items: center; min-height: 380px; }
.voice__stage { position: relative; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.voice__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.voice__avatar { position: relative; width: 44%; aspect-ratio: 1; border-radius: 999px; overflow: hidden; background: var(--navy); }
.voice__avatar img { width: 100%; height: 100%; object-fit: cover; }
.voice__name { position: absolute; bottom: 8%; inset-inline: 0; text-align: center; font-weight: 700; font-size: 1.2rem; text-shadow: var(--shadow-text); }
.voice__name .gold-text { color: var(--gold); }
.voice__role { display: block; font-size: 0.9rem; font-weight: 500; color: var(--parchment-mute); margin-top: 2px; }

/* ---------- Lock screen ---------- */

.lock { display: grid; justify-items: center; gap: 22px; padding-block: 10px; }
.lock__time { font-weight: 300; font-size: clamp(4.5rem, 10vw, 6.4rem); line-height: 1; letter-spacing: -0.03em; text-shadow: var(--shadow-text); }
.lock__date { margin-top: 4px; text-align: center; color: var(--parchment-dim); font-size: 1.05rem; }
.notice { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; width: min(100%, 440px); padding: 16px 18px; border-radius: 22px; }
.notice img { width: 48px; height: 48px; }
.notice__title { font-weight: 700; font-size: 1.02rem; }
.notice__body { color: var(--parchment-dim); font-size: 0.96rem; line-height: 1.35; margin-top: 2px; }
.notice__when { align-self: start; font-size: 0.8rem; color: var(--parchment-mute); }
.notice--ghost { opacity: 0.5; transform: scale(0.96); }
@media (prefers-reduced-motion: no-preference) { .chapter__art.is-born .notice--live { animation: notice-in 900ms var(--ease) both; animation-delay: 250ms; } }
@keyframes notice-in { from { opacity: 0; transform: translateY(-28px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Grouped list ---------- */

.group { width: min(100%, 460px); margin-inline: auto; }
.group + .group { margin-top: 22px; }
.group__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-mute); padding-inline: 18px; margin-bottom: 8px; text-shadow: var(--shadow-text); }
.group__card { border-radius: 22px; overflow: hidden; }
.row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px; min-height: 62px; padding: 10px 18px; }
.row + .row { border-top: 1px solid rgba(247, 241, 227, 0.08); }
.row__icon { color: var(--parchment-dim); justify-self: center; line-height: 1; }
.row__icon svg { width: 22px; height: 22px; }
.row__title { font-weight: 700; font-size: 1.02rem; }
.row__sub { color: var(--parchment-mute); font-size: 0.9rem; line-height: 1.3; }
.row.is-on .row__icon, .row.is-on .row__title { color: var(--gold); }
.row__check { width: 22px; height: 22px; color: var(--gold); opacity: 0; transition: opacity 240ms var(--ease); }
.row__check svg { width: 100%; height: 100%; }
.row.is-on .row__check { opacity: 1; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: rgba(247, 241, 227, 0.16); }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 999px; background: var(--parchment); transition: transform 240ms var(--ease); }
.switch.is-on { background: var(--gold); }
.switch.is-on::after { transform: translateX(22px); }
[dir="rtl"] .switch.is-on::after { transform: translateX(-22px); }
.queue { display: flex; align-items: center; gap: 10px; padding: 12px 18px 14px; border-top: 1px solid rgba(247, 241, 227, 0.08); }
.queue__faces { display: flex; }
.queue__faces .face { margin-inline-end: -10px; }
.queue p { flex: 1; font-size: 0.95rem; color: var(--parchment-dim); }
.queue .btn { min-height: 38px; padding: 6px 16px; font-size: 0.9rem; }

/* ---------- Faces ---------- */

.face { position: relative; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 1rem; color: var(--ivory); background: var(--navy); background-clip: padding-box; border: 2.4px solid transparent; overflow: hidden; flex: none; }
.face::before { content: ""; position: absolute; inset: -2.4px; border-radius: inherit; padding: 2.4px; background: var(--gold-gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face--lg { width: 72px; height: 72px; font-size: 1.5rem; }
.face--rimless { border-color: transparent; }
.face--rimless::before { display: none; }

/* ---------- Reactions ---------- */

.burst { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.burst__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.burst__sky { position: absolute; inset: 0; }
.burst__r { position: absolute; bottom: 14%; left: var(--x); width: 36px; height: 36px; color: var(--c, var(--gold)); opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 2px 10px rgba(6, 11, 23, 0.6)); }
.burst__r svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) { .is-active .burst__r { animation: rise var(--d, 5s) ease-out infinite; animation-delay: var(--t, 0s); } }
@keyframes rise {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.6); }
  8% { opacity: 1; transform: translate3d(0, -10px, 0) scale(1.05); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), -300px, 0) scale(0.9) rotate(var(--rot, 0deg)); }
}
.burst__pill { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 14px; border-radius: 999px; }
.burst__pill span { padding: 4px 6px; color: var(--parchment-dim); line-height: 1; }
.burst__pill span svg { width: 22px; height: 22px; }
.burst__pill span.is-on { color: var(--gold); }
.burst__pill span.is-on svg { transform: scale(1.2); }

/* ---------- Player ---------- */

.player { width: min(100%, 480px); margin-inline: auto; border-radius: 22px; overflow: hidden; }
.track { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; }
.track + .track { border-top: 1px solid rgba(247, 241, 227, 0.08); }
.track__play { color: var(--parchment-dim); justify-self: center; line-height: 1; }
.track__play svg { width: 30px; height: 30px; }
.track.is-on .track__play { color: var(--gold); }
.track__title { font-weight: 700; font-size: 1.02rem; }
.track__meta { color: var(--parchment-mute); font-size: 0.9rem; margin-top: 2px; }
.track__time { font-variant-numeric: tabular-nums; color: var(--parchment-mute); font-size: 0.95rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: 8px; }
.wave i { display: block; width: 3px; height: var(--h, 40%); border-radius: 2px; background: var(--parchment-mute); transform-origin: center; }
.track.is-on .wave i { background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .chapter__art.is-born .track.is-on .wave i { animation: wave 1.4s ease-in-out infinite; animation-delay: calc(var(--n) * -0.09s); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.25); } }

/* ---------- Chat ---------- */

.chat { display: grid; gap: 12px; width: min(100%, 440px); margin-inline: auto; }
.bubble { position: relative; max-width: 86%; padding: 12px 16px 14px; border-radius: 20px; font-size: 1rem; font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.bubble--in { justify-self: start; border-end-start-radius: 8px; }
.bubble--out { justify-self: end; border-end-end-radius: 8px; background: var(--gold); color: var(--gold-ink); }
.bubble__name { display: block; font-size: 0.82rem; font-weight: 700; color: #c9d5e3; margin-bottom: 3px; }
.bubble__name.is-mod { color: var(--gold); }
.bubble__foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.74rem; opacity: 0.7; }
.bubble__foot svg { width: 14px; height: 14px; }
.bubble--out .bubble__foot { justify-content: flex-end; }
.bubble__pill { position: absolute; bottom: -11px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--navy); border: 1px solid var(--line); font-size: 0.74rem; font-weight: 700; color: var(--parchment); }
.bubble__pill svg { width: 13px; height: 13px; color: var(--gold); }
.bubble--in .bubble__pill { inset-inline-start: 10px; }
.bubble--out .bubble__pill { inset-inline-end: 10px; }
.chat__input { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding-block: 12px; padding-inline: 20px 16px; border-radius: 999px; color: var(--parchment-mute); font-size: 0.98rem; }
.chat__input span { flex: 1; }
.chat__send { color: var(--gold); line-height: 1; }
.chat__send svg { width: 24px; height: 24px; }

/* ---------- Online ---------- */

.online { width: min(100%, 460px); margin-inline: auto; display: grid; gap: 16px; }
.online__title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; text-shadow: var(--shadow-text); }
.online__title svg { width: 20px; height: 20px; color: var(--gold); }
.live-card { display: grid; gap: 14px; padding: 18px 20px 20px; border-radius: 24px; }
.live-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; }
.live-badge i { width: 8px; height: 8px; border-radius: 999px; background: var(--gold-ink); }
@media (prefers-reduced-motion: no-preference) { .live-badge i { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-card__meta { color: var(--parchment-dim); font-size: 0.92rem; }
.live-card__meta svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--gold); }
.live-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.seats { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.seat { display: grid; justify-items: center; gap: 8px; }
.seat b { font-size: 0.88rem; font-weight: 700; }
.seat b.gold-text { color: var(--gold); }
.seat small { color: var(--parchment-mute); font-size: 0.78rem; }
.seat__stage { position: relative; width: 72px; height: 72px; display: grid; place-items: center; }
.seat__stage .rim { position: absolute; inset: -44px; width: calc(100% + 88px); height: calc(100% + 88px); pointer-events: none; }
.friends { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 22px; }
.friends__faces { display: flex; }
.friends__faces .face { margin-inline-end: -10px; }
.friends p { flex: 1; font-size: 0.98rem; color: var(--parchment-dim); }
.friends p strong { color: var(--parchment); font-weight: 700; }

/* ---------- Stories rail ---------- */

.stories { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: clamp(24px, 4vh, 44px); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 6px; }
.stories::-webkit-scrollbar { display: none; }
.story { position: relative; flex: 0 0 min(84%, 360px); scroll-snap-align: start; scroll-margin-inline-start: var(--gutter); display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; }
@media (min-width: 1040px) { .story { flex-basis: calc((100% - 36px) / 3); } }
.story__art { aspect-ratio: 16 / 9; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.story__art img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, calc(var(--p, 0) * -14px), 0) scale(1.06); }
.story__body { display: grid; gap: 8px; align-content: start; padding: 0 22px 20px; margin-top: -34px; }
.story__tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.story h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.story p { color: var(--parchment-dim); font-size: 0.96rem; line-height: 1.5; text-wrap: pretty; }
.story__fact { color: var(--parchment); font-weight: 700; font-size: 0.96rem; }
.stories-note { margin-top: 14px; color: var(--parchment-mute); font-size: 0.9rem; }
@media (max-height: 820px) and (min-width: 1040px) { .story__art { aspect-ratio: 16 / 7; } }

/* ---------- Drop ---------- */

.drop .wrap { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .drop .wrap { grid-template-columns: 1.1fr 1fr; } }
.story-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; line-height: 1.6; color: var(--parchment-dim); text-wrap: pretty; text-shadow: var(--shadow-text); }
.story-text em { color: var(--parchment); font-style: normal; font-weight: 700; }
.drop__quote { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.04em; color: var(--gold); text-wrap: balance; }

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

.closing { justify-content: flex-end; }
.closing .wrap { padding-top: clamp(120px, 20vh, 220px); text-align: center; }
.closing .kicker { justify-content: center; }
.closing .display--h2, .closing .lead { margin-inline: auto; }
.closing .btn-row { justify-content: center; }

.footer { padding-block: 26px 0; color: var(--parchment-mute); font-size: 0.92rem; }
.footer .wrap { display: grid; gap: 16px; }
@media (min-width: 760px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.footer__eco a { color: var(--parchment-dim); }
.footer__eco a:hover { color: var(--gold); }
.langs { display: inline-flex; gap: 6px; }
.langs a, .langs span { min-height: 38px; padding: 8px 14px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 700; letter-spacing: 0.08em; font-size: 0.82rem; }
.langs .is-on { background: var(--gold); color: var(--gold-ink); }
.langs span:not(.is-on) { opacity: 0.5; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(36px); filter: blur(8px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease), filter 900ms var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
  .rise.is-in { opacity: 1; transform: none; filter: blur(0); }
  .rise:not(.is-in) { transition-duration: 350ms; transition-delay: 0ms; }
  .chapter__art.rise, .story.rise { filter: none; transform: translateY(28px); }
  .chapter__art.rise.is-in, .story.rise.is-in { transform: none; }
  .slide__paint--texture.slide__paint img { opacity: 0.38 !important; }
}

/* ---------- Particle births ---------- */

.chapter__art { position: relative; }
.chapter__art > .pfx { position: absolute; inset: -100px; width: calc(100% + 200px); height: calc(100% + 200px); pointer-events: none; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .chapter__art > :not(.pfx) { opacity: 0; transform: scale(0.94); transition: opacity 520ms var(--ease), transform 820ms var(--ease); }
  .chapter__art.is-born > :not(.pfx) { opacity: 1; transform: none; }
}

/* ---------- Phone ---------- */

@media (max-width: 720px) {
  .slide { padding-block: calc(84px + env(safe-area-inset-top)) 48px; }
  .hero { padding-block: calc(72px + env(safe-area-inset-top)) 60px; }
  .hero__mark { width: clamp(110px, 18vh, 160px); margin-bottom: 6px; }
  .display--hero { font-size: min(2.8rem, 10vh); }
  .display--h2 { max-width: none; }
  .hero .lead { font-size: 1.05rem; margin-top: 12px; }
  .hero .btn-row { margin-top: 18px; gap: 10px; }
  .hero__hint { margin-top: 12px; font-size: 0.92rem; }
  .scroll-cue { bottom: 12px; }
  .kicker { font-size: 1.05rem; }
  .kicker span { font-size: 0.78rem; }
  .voice { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .scroll-cue svg { transition: none; animation: none; }
}

/* ---------- Living layer: fairy dust over the paintings, app scenes ---------- */

#ambient { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.snap-root { position: relative; z-index: 2; }
.nav, .dots { z-index: 30; }

.scene { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene--strip { aspect-ratio: auto; height: 168px; border-top: 1px solid rgba(247, 241, 227, 0.08); }
.burst .scene { aspect-ratio: 4 / 3; }
.burst { aspect-ratio: auto; }
@media (max-width: 899px) { .scene { aspect-ratio: 1 / 1; } }

/* what-slide: scene sits beside the copy, proofs below */
#what .chapter { margin-bottom: 0; }
#what .proofs { margin-top: clamp(22px, 4vh, 44px); }
@media (max-height: 820px) and (min-width: 900px) {
  #what .scene { aspect-ratio: 16 / 10; }
  #rav .scene { aspect-ratio: 16 / 10; }
}

/* chat typing */
.chat.is-live .bubble, .chat.is-live .chat__input { transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.chat.is-live .bubble.is-hidden { opacity: 0; transform: translateY(16px) scale(0.98); }
.chat.is-live .bubble.is-hidden .bubble__pill { opacity: 0; }
.bubble__pill { transition: opacity 300ms var(--ease), transform 500ms var(--ease); }
.bubble__pill.is-pop { transform: scale(1.25); }
.chat__typing { display: inline-flex; gap: 4px; align-items: center; height: 1em; }
.chat__typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--parchment-mute); animation: typing 1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* recordings: moving progress */
.track__bar { position: relative; height: 3px; margin-top: 10px; border-radius: 2px; background: rgba(247, 241, 227, 0.14); overflow: hidden; }
.track__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 30%); background: var(--gold); border-radius: 2px; }

/* free slide: two columns, drop scene on the right */
.drop .wrap { grid-template-columns: 1fr; }
@media (min-width: 900px) { .drop .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.drop .story-text { margin-top: 20px; max-width: 56ch; }
.drop .drop__quote { margin-top: 18px; }

/* friends ticker */
.friends p span { display: inline-block; transition: opacity 400ms var(--ease), transform 500ms var(--ease); }
.friends p span.is-swap { opacity: 0; transform: translateY(6px); }

/* ---------- Phone: slides may be taller than the screen, so the magnet is soft
   (proximity) and never blocks scrolling through a slide's content ---------- */
@media (max-width: 899px) {
  .snap-root { scroll-snap-type: y proximity; }
  .slide { scroll-snap-stop: normal; justify-content: flex-start; padding-block: calc(104px + env(safe-area-inset-top)) 64px; }
  .hero.slide, .closing.slide { justify-content: center; }
  .closing.slide { justify-content: flex-end; }
  .display--h2 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .lead { font-size: 1.04rem; margin-top: 14px; }
  .chapter { gap: 26px; }
  .chapter__points { margin-top: 16px; gap: 10px; }
  .chapter__points li { font-size: 0.98rem; }
  .proofs, .steps { gap: 18px; margin-top: 24px; }
  .proof h3, .step h3 { font-size: 1.4rem; }
  .proof p, .step p { font-size: 0.98rem; }
  .btn-row { margin-top: 18px; }
  .scene { aspect-ratio: 5 / 4; }
  .scene--strip { aspect-ratio: auto; height: 150px; }
  .lock__time { font-size: 4rem; }
  .dots { inset-inline-end: 4px; }
}


/* =====================================================================
   Polish pass: reveal per element, phone reading order, painting band
   ===================================================================== */

.burst { display: grid; justify-items: center; gap: 12px; aspect-ratio: auto; }
.burst .scene { width: 100%; }
.burst__pill { position: relative; left: auto; bottom: auto; transform: none; }

@media (max-width: 899px) {
  /* one column read top to bottom: what it is, why it matters, then see it live */
  .chapter { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .chapter > .chapter__copy { display: contents; }
  .chapter .kicker { order: 1; }
  .chapter .display { order: 2; }
  .chapter .lead { order: 3; }
  .chapter > .chapter__art { order: 4; margin-top: 28px; }
  .chapter .chapter__points { order: 5; margin-top: 26px; }
  .chapter .story-text { order: 5; }
  .chapter .drop__quote { order: 6; }
  .chapter .btn-row { order: 7; }
  .chapter .chapter__points + .btn-row, .chapter > .chapter__art + .btn-row { margin-top: 24px; }

  /* the painting is a band under the headline, melting into ink below */
  .slide__paint { inset: 0 0 auto 0; height: min(100%, 100svh); }
  .slide__shade, .slide__shade--flip {
    inset: 0 0 auto 0; height: min(100%, 100svh);
  }
  .hero .slide__shade { height: 100%; }
  .closing .slide__paint, .closing .slide__shade { height: 100%; }

  .scene { aspect-ratio: 1 / 1; }
  .scene[data-scene="world"], .scene[data-scene="chavruta"] { aspect-ratio: 5 / 4; }
  .scene[data-scene="drop"] { aspect-ratio: 4 / 3; }
  .scene--strip { aspect-ratio: auto; height: 150px; }
  .group + .group { margin-top: 18px; }
  .voice { min-height: 0; }
  .voice__stage { width: min(100%, 320px); }
  .drop .wrap { display: flex; }
}

/* Proofs and steps: the glyph sits left of the heading, text aligns under the heading */
.proof, .step { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: center; }
.proof__icon, .step__glyph { grid-column: 1; grid-row: 1; display: flex; align-items: center; }
.proof h3, .step h3 { grid-column: 2; grid-row: 1; }
.proof p, .step p { grid-column: 2; grid-row: 2; }
.proof__icon svg, .step__glyph svg { width: 26px; height: 26px; }
/* glyph sits on the heading's first line, even when the heading wraps */
.proof, .step { align-items: start; }
.proof__icon, .step__glyph { height: calc(1.1 * clamp(1.5rem, 2.2vw, 2rem)); }
@media (max-width: 899px) { .proof__icon, .step__glyph { height: calc(1.1 * 1.4rem); } }
/* steps beside the copy stack into one column */
.chapter__art .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 460px; }
/* reaction colours come from the app; the pill keeps them, selected one is just larger */
.burst__pill span, .burst__pill span.is-on { color: inherit; }
.bubble__pill svg { color: inherit; }
#rav .scene { aspect-ratio: 1 / 0.86; }
@media (max-width: 899px) { #rav .scene { aspect-ratio: 1 / 1; } }

/* Faces: the gold ring is the border itself, so a photo can never cover it */
.face {
  border: 2.4px solid transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--gold-gradient) border-box;
}
.face::before { display: none; }
.face img { inset: 0; border-radius: 999px; }

/* Online slide: no frame lines, air inside, faces side by side */
.friends, .live-card { border: 0; }
.friends { gap: 16px; padding: 16px 20px; }
.friends__faces, .queue__faces { display: flex; gap: 6px; }
.friends__faces .face, .queue__faces .face { margin-inline-end: 0; width: 40px; height: 40px; }
.live-card { padding: 20px 22px 22px; }

/* ---------- Why: a centred manifesto with the meeting scene ---------- */
.why__wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.why .kicker { justify-content: center; }
.why__title { max-width: 20ch; margin-inline: auto; font-size: clamp(2.2rem, min(4.6vw, 7.4vh), 4.3rem); }
.why__title em { display: block; }
.why__lead { max-width: 58ch; margin-inline: auto; }
.why__art { width: 100%; margin-top: clamp(14px, 2.4vh, 26px); }
.why__scene { aspect-ratio: auto; height: clamp(250px, 36vh, 360px); }
.why__release { margin-top: clamp(6px, 1.4vh, 14px); font-size: clamp(1.7rem, min(3.2vw, 5vh), 2.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; text-shadow: var(--shadow-text); }
.why__release i { font-style: normal; color: var(--gold); }
.why__sub { margin-top: 8px; color: var(--parchment-dim); font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 500; text-shadow: var(--shadow-text); }
.why__shade { background: rgba(var(--veil-rgb), var(--veil)); }
@media (max-width: 899px) {
  .why__wrap { align-items: stretch; text-align: start; }
  .why .kicker { justify-content: flex-start; }
  .why__title { margin-inline: 0; font-size: clamp(2rem, 8.4vw, 2.5rem); }
  .why__lead { margin-inline: 0; }
  .why__scene { height: auto; aspect-ratio: 1 / 1.12; }
  .why__release { font-size: 1.75rem; margin-top: 18px; }
}

/* All blurred glass surfaces: no frame lines, like the online cards */
.glass, .group__card, .player, .notice, .live-card, .friends, .bubble--in, .chat__input, .story, .burst__pill, .btn--glass { border-color: transparent; }
.group__card, .player { padding-block: 4px; }
.notice { padding: 16px 20px; }
.chat__input { padding-block: 14px; padding-inline: 22px 18px; }
.btn--glass { background: var(--glass); }
.btn--glass:hover { background: rgba(6, 11, 23, 0.72); }
.bubble__pill { border: 0; }
.why__title { max-width: 32ch; font-size: clamp(2.1rem, min(3.9vw, 6.4vh), 3.6rem); }
.why__scene { height: clamp(230px, 31vh, 320px); }
.why.slide { padding-top: calc(84px + env(safe-area-inset-top)); padding-bottom: 28px; }
@media (max-width: 899px) { .why__title { font-size: clamp(2rem, 8.4vw, 2.5rem); } .why__scene { height: auto; } }
@media (max-width: 560px) {
  .friends { flex-wrap: wrap; }
  .friends p { flex: 1 1 100%; }
}
.scene[data-scene="world"] { aspect-ratio: 1 / 1.05; }
@media (max-width: 899px) { .scene[data-scene="world"] { aspect-ratio: 1 / 1.05; } }
/* the dotted map needs a calmer painting behind it */
#world { --veil: 0.7; }

/* Graphics ease in without any frame of particles */
@media (prefers-reduced-motion: no-preference) {
  .chapter__art > * { opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
  .chapter__art.is-born > * { opacity: 1; transform: none; }
}
.scene--strip, .scene[data-scene="waiting"] { height: 112px; aspect-ratio: auto; }
@media (max-width: 899px) { .scene--strip, .scene[data-scene="waiting"] { height: 112px; aspect-ratio: auto; } }
.burst .scene { aspect-ratio: 5 / 4; }
@media (max-width: 899px) { .burst .scene { aspect-ratio: 1 / 1; } }

/* ---------- Stories: a grid of painted cards, one sentence each ---------- */
#stories .display--h2 { max-width: none; }
.stories { display: grid; grid-template-columns: 1fr; gap: 14px; overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
@media (min-width: 700px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .stories { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.story { position: relative; flex: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 176px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--ink-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 1040px) and (max-height: 860px) { .story { aspect-ratio: 16 / 8; } }
.story__art { position: absolute; inset: 0; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; }
.story__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.story:hover .story__art img { transform: scale(1.09); }
.story__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 11, 23, 0.05) 0%, rgba(6, 11, 23, 0.45) 40%, rgba(6, 11, 23, 0.94) 100%); }
.story__body { position: relative; gap: 4px; margin-top: 0; padding: 16px 20px 18px; }
.story h3 { font-size: 1.22rem; }
.story p { font-size: 0.95rem; line-height: 1.4; color: var(--parchment-dim); }
.stories-note { margin-top: 12px; font-size: 0.85rem; }

/* ---------- Chat: even rhythm, the typing dots float in the next bubble's place ---------- */
.chat { position: relative; gap: 16px; }
.bubble { margin-bottom: 0; padding: 13px 18px 12px; }
.bubble:has(.bubble__pill) { margin-bottom: 10px; }
.chat__input { margin-top: 10px; }
.chat .bubble--typing { position: absolute; inset-inline-start: 0; margin: 0; padding: 14px 18px; }
.chat .bubble--typing.is-hidden { opacity: 0; transform: none; }

/* ---------- Rav zoom: no hard canvas edge while the camera pulls back ---------- */
.scene[data-scene="rav"] canvas {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 9%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.chat__input .chat__send { flex: none; }

/* the rav scene fits its seats itself; no mask needed */
.scene[data-scene="rav"] canvas { -webkit-mask-image: none; mask-image: none; }

/* Voice-rim avatars: the gold ring is CSS and present from the first paint;
   the canvas only adds waves and grains around it, so nothing jumps */
.face--rimless { border: 2.4px solid transparent; background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--gold-gradient) border-box; }
.voice__avatar { border: 2.6px solid transparent; background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--gold-gradient) border-box; }
.voice__avatar img { border-radius: 999px; }

/* ---------- The way in: steps on a winding trail ---------- */
.steps--path { position: relative; gap: 40px; }
.steps--path > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.steps--path .step { position: relative; z-index: 1; }
.steps--path .step:nth-child(2) { margin-inline-start: 56px; }
.steps--path .step:nth-child(3) { margin-inline-start: 112px; }
.steps--path .step h3, .steps--path .step:nth-child(2) h3 { color: var(--parchment); transition: color 500ms var(--ease); }
.steps--path .step__glyph { color: rgba(247, 241, 227, 0.55); transition: color 500ms var(--ease), transform 600ms var(--ease); }
.steps--path .step.is-lit h3 { color: var(--gold); }
.steps--path .step.is-lit .step__glyph { color: var(--gold); transform: scale(1.12); }
@media (max-width: 560px) {
  .steps--path { gap: 34px; }
  .steps--path .step:nth-child(2) { margin-inline-start: 28px; }
  .steps--path .step:nth-child(3) { margin-inline-start: 56px; }
}
.steps--path { gap: 48px; }
@media (max-width: 560px) { .steps--path { gap: 40px; } }
.why__scene { height: clamp(300px, 46vh, 460px); }
.why__art { margin-top: clamp(10px, 2vh, 22px); }
@media (max-width: 899px) { .why__scene { height: auto; aspect-ratio: 1 / 1.2; } }

/* Concise chapters: the lead is one line of thought, points are bold short lines */
.lead { max-width: 34ch; font-size: clamp(1.18rem, 1.6vw, 1.42rem); }
.chapter__points { gap: 10px; }
.chapter__points li { font-size: clamp(1.05rem, 1.3vw, 1.18rem); align-items: center; }
.chapter__points svg { margin-top: 0; }
.proof p, .step p { font-size: 1rem; }

/* ---------- Live caption under a scene: says in plain words what is happening ---------- */
.scene__caption {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 1.6em; margin: 12px auto 0; max-width: 34ch;
  text-align: center; text-wrap: balance;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem); font-weight: 500; line-height: 1.3;
  color: var(--parchment-dim); text-shadow: var(--shadow-text);
  transition: opacity 240ms var(--ease), transform 320ms var(--ease);
}
.scene__caption::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .scene__caption::before { animation: pulse 1.6s ease-in-out infinite; } }
.scene__caption b { color: var(--gold); font-weight: 700; }
.scene__caption:empty { visibility: hidden; }
.scene__caption.is-swap { opacity: 0; transform: translateY(6px); }
.burst .scene__caption { margin-top: 4px; }

/* Hero: the promise is the headline */
.hero .display--hero { max-width: 15ch; margin-inline: auto; font-size: clamp(2.6rem, min(5.6vw, 9.4vh), 5.6rem); line-height: 0.98; }
.hero .display--hero em { display: block; }
.hero .lead { max-width: none; }
@media (max-width: 720px) { .hero .display--hero { font-size: min(2.6rem, 9vh); } }
/* caption: one line of text with a live dot, never split into columns */
.scene__caption { display: block; }
.scene__caption::before { display: inline-block; vertical-align: 0.12em; margin-inline-end: 10px; }
#stories .lead { max-width: 44ch; }
.hero .display--hero { max-width: 26ch; }
.scene__caption { max-width: 44ch; }

/* Kicker: the chapter name reads as written, same size as the wordmark, after a quiet dot */
.kicker { gap: 0; align-items: baseline; }
.kicker span { font-size: inherit; font-weight: 500; letter-spacing: -0.01em; text-transform: none; color: var(--parchment-dim); }
.kicker span::before { content: "·"; margin-inline: 10px; color: var(--parchment-mute); }
@media (max-width: 720px) { .kicker span { font-size: inherit; } }

/* caption changes by a plain crossfade, never slides */
.scene__caption.is-swap { transform: none; }
.scene__caption { transition: opacity 260ms var(--ease); }
/* compact scenes: title on top, status right under */
.scene[data-scene="chavruta"] { aspect-ratio: 16 / 7; }
.scene[data-scene="debate"] { aspect-ratio: 1 / 0.86; }
@media (max-width: 899px) {
  .scene[data-scene="chavruta"] { aspect-ratio: 16 / 9.4; }
  .scene[data-scene="debate"] { aspect-ratio: 1 / 1.08; }
}
.scene + .scene__caption { margin-top: 6px; }

/* ---------- Free: a centred manifesto with Rabbi Akiva's words ---------- */
.manifest__wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.manifest .kicker, .manifest .btn-row { justify-content: center; }
.manifest__title { max-width: 16ch; margin-inline: auto; }
.manifest__quote { margin: clamp(22px, 3.6vh, 36px) auto 0; max-width: 30ch; }
.manifest__quote p { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.02em; color: var(--parchment); text-wrap: balance; text-shadow: var(--shadow-text); }
.manifest__quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 1.05rem; color: var(--gold); }
.manifest__lead { margin-inline: auto; max-width: 40ch; }
.manifest__shade { background: rgba(var(--veil-rgb), var(--veil)); }

/* ---------- Closing: one painting, everything centred, footer at the bottom ---------- */
.closing.slide { justify-content: center; padding-bottom: 96px; }
.closing .wrap.closing__wrap { padding-top: 0; text-align: center; }
.closing__shade { background: rgba(var(--veil-rgb), var(--veil)); }
.closing .footer { position: absolute; inset-inline: 0; bottom: 0; padding-block: 18px; z-index: 2; }
@media (max-width: 899px) {
  .manifest__wrap { align-items: center; }
  .closing.slide { padding-bottom: 150px; }
  .closing .footer .wrap { text-align: center; justify-items: center; }
  .slide.closing .slide__paint, .slide.closing .slide__shade { height: 100%; }
}

/* ---------- Steps path: one straight column, the trail runs only between glyphs ---------- */
.steps--path .step:nth-child(2), .steps--path .step:nth-child(3) { margin-inline-start: 0; }
.steps--path { gap: 44px; }
.steps--path .step__glyph { justify-content: center; width: 30px; }
.manifest__quote { max-width: 34ch; }
.manifest__quote p { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.manifest__title { max-width: 22ch; }
.closing .lead { max-width: 40ch; }
@media (max-width: 899px) { .manifest.slide, .closing.slide { justify-content: center; } }
/* the trail is one quiet dotted line between glyphs; the hand glyph never carries a disc */
.steps--path .step.is-lit .step__glyph { transform: none; }

.manifest__quote { max-width: min(100%, 720px); }

/* World headline: the city has its own line and swaps in place */
.city-line { display: block; white-space: nowrap; }
.city { display: inline-block; transition: opacity 260ms var(--ease), filter 260ms var(--ease); }
.city.is-swap { opacity: 0; filter: blur(6px); }
#world .display--h2 { max-width: none; }
@media (prefers-reduced-motion: reduce) { .city { transition: none; } }

/* ---------- City slot: words roll top to bottom, the period is a gold grain ---------- */
.city-line { position: relative; }
.city {
  display: inline-block; position: relative; vertical-align: baseline;
  padding: 0.1em 0.04em 0.22em; margin: -0.1em -0.04em -0.22em;
  box-sizing: content-box; white-space: nowrap;
  transition: width 620ms cubic-bezier(0.65, 0, 0.35, 1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
}
.city.is-swap { opacity: 1; filter: none; }
.city-word { display: inline-block; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms var(--ease); }
.city-word.is-out-pos { position: absolute; left: 0.04em; top: 0.1em; }
.city-word.is-enter { transform: translateY(-0.95em); opacity: 0; transition: none; }
.city-word.is-leave { transform: translateY(0.95em); opacity: 0; transition: transform 520ms cubic-bezier(0.55, 0, 0.75, 0.2), opacity 380ms var(--ease); }
.city-dot { display: inline-block; width: 0.15em; height: 0.15em; margin-inline-start: 0.05em; border-radius: 999px; background: var(--gold); vertical-align: baseline; }
.city-dot.is-hop { animation: city-hop 620ms cubic-bezier(0.33, 0, 0.3, 1); }
@keyframes city-hop {
  0% { transform: translateY(0) scale(1, 1); }
  10% { transform: translateY(0.02em) scale(1.25, 0.75); }
  50% { transform: translateY(-0.5em) scale(0.9, 1.15); }
  86% { transform: translateY(0.02em) scale(1.3, 0.7); }
  100% { transform: translateY(0) scale(1, 1); }
}
.city-grain { position: absolute; border-radius: 999px; pointer-events: none; transform: translate(-50%, -50%); animation-name: city-grain; animation-timing-function: ease-out; animation-fill-mode: forwards; }
@keyframes city-grain { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0.9; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0); } }
@media (prefers-reduced-motion: reduce) { .city, .city-word { transition: none; } .city-dot.is-hop { animation: none; } }

/* ---------- Glass never pops ----------
   A backdrop blur is switched off while any ancestor is faded (opacity/filter),
   then snaps on when the fade ends. So ancestors of glass only move; the fade
   lives on the glass panels and other leaves themselves. */
@media (prefers-reduced-motion: no-preference) {
  .chapter__art.rise, .btn-row.rise { opacity: 1; filter: none; }
  .chapter__art > * { opacity: 1; }
  .btn-row.rise > * { opacity: 0; transition: opacity 800ms var(--ease) calc(var(--i, 0) * 120ms); }
  .btn-row.rise.is-in > * { opacity: 1; }
  .chapter__art :is(.notice, .lock > div, .group__label, .group__card, .player, .chat > *, .live-card, .friends, .online__title, .burst__pill, .scene, .voice__stage, .steps > .step) { opacity: 0; transition: opacity 700ms var(--ease); }
  .chapter__art.is-born :is(.notice, .lock > div, .group__label, .group__card, .player, .chat > *, .live-card, .friends, .online__title, .burst__pill, .scene, .voice__stage, .steps > .step) { opacity: 1; }
  .chapter__art.is-born .notice--ghost { opacity: 0.5; }
}
/* reactions: a bigger rav, a tighter room */
.burst .scene { aspect-ratio: 16 / 11; }
@media (max-width: 899px) { .burst .scene { aspect-ratio: 10 / 9; } }
.scene[data-scene="chavruta"] { aspect-ratio: 16 / 9.6; }
@media (max-width: 899px) { .scene[data-scene="chavruta"] { aspect-ratio: 10 / 8.6; } }

/* ---------- Launch slide: steps light up with the scene ---------- */
.steps--sync { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; margin-top: clamp(22px, 3.4vh, 34px); }
.steps--sync .step h3, .steps--sync .step:nth-child(2) h3 { color: rgba(247, 241, 227, 0.55); transition: color 400ms var(--ease); }
.steps--sync .step p { color: rgba(247, 241, 227, 0.45); transition: color 400ms var(--ease); }
.steps--sync .step__glyph { color: rgba(247, 241, 227, 0.45); transition: color 400ms var(--ease), transform 500ms var(--ease); }
.steps--sync .step.is-lit h3, .steps--sync .step.is-lit .step__glyph { color: var(--gold); }
.steps--sync .step.is-lit p { color: var(--parchment-dim); }
.steps--sync .step.is-lit .step__glyph { transform: scale(1.15); }
.scene[data-scene="launch"] { aspect-ratio: 1 / 0.92; }
@media (max-width: 899px) { .scene[data-scene="launch"] { aspect-ratio: 1 / 1.05; } }
@media (max-width: 899px) {
  .chapter .steps--sync { order: 5; margin-top: 24px; }
}

/* city slot: rush speeds and the boom */
.city.is-fast { transition-duration: 160ms; }
.city.is-fast .city-word { transition-duration: 160ms, 120ms; }
.city.is-fast .city-word.is-leave { transition-duration: 140ms, 110ms; }
.city.is-faster { transition-duration: 60ms; }
.city.is-faster .city-word { transition-duration: 60ms, 50ms; }
.city.is-faster .city-word.is-leave { transition-duration: 55ms, 45ms; }
.city.is-pop { animation: city-pop 700ms cubic-bezier(0.22, 1, 0.36, 1); transform-origin: left 70%; }
@keyframes city-pop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.city-prep { display: inline-block; white-space: pre; vertical-align: baseline; transition: width 520ms cubic-bezier(0.65, 0, 0.35, 1), opacity 360ms var(--ease); }
.is-everywhere .city-prep { opacity: 0; }

/* ---------- Status pill under a scene ---------- */
.scene__caption {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content; max-width: 100%; min-height: 50px; margin: 14px auto 0;
  padding-block: 7px; padding-inline: 7px 20px; border-radius: 999px;
  background: rgba(6, 11, 23, 0.74); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 600; line-height: 1.25; color: var(--parchment);
  text-align: start; text-shadow: none; text-wrap: balance;
  transition: opacity 220ms var(--ease);
}
.scene__caption::before { display: none; }
.scene__caption:empty { visibility: hidden; }
.scene__caption.is-swap { opacity: 0; }
.scene__caption.is-pop { animation: cap-pop 520ms cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes cap-pop { 0% { transform: scale(0.9); } 100% { transform: scale(1); } }
.scene__caption b { color: var(--gold); font-weight: 800; }
.cap__ava { width: 36px; height: 36px; flex: none; border-radius: 999px; object-fit: cover; border: 2.2px solid transparent; background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--gold-gradient) border-box; }
.cap__icon { display: inline-flex; flex: none; color: var(--gold); }
.cap__icon svg { width: 22px; height: 22px; }
.scene__caption:not(:has(.cap__ava)) { padding-inline-start: 16px; }
@media (prefers-reduced-motion: reduce) { .scene__caption.is-pop { animation: none; } }

/* city slot, performance pass: no mask layer, no width animation, the dot moves on transform */
.city { -webkit-mask-image: none; mask-image: none; transition: none; padding: 0; margin: 0; }
.city.is-fast, .city.is-faster { transition: none; }
.city-word.is-out-pos { left: 0; top: 0; }
.city-word.is-leave { transform: translateY(0.7em); }
.city-word.is-enter { transform: translateY(-0.7em); }
.city-dot { --fx: 0px; }
.city-dot.is-hop { animation: city-hop 620ms cubic-bezier(0.33, 0, 0.3, 1); }
@keyframes city-hop {
  0% { transform: translate(var(--fx), 0) scale(1, 1); }
  10% { transform: translate(calc(var(--fx) * 0.92), 0.02em) scale(1.25, 0.75); }
  50% { transform: translate(calc(var(--fx) * 0.45), -0.5em) scale(0.9, 1.15); }
  86% { transform: translate(0, 0.02em) scale(1.3, 0.7); }
  100% { transform: translate(0, 0) scale(1, 1); }
}
.city-fx { position: absolute; left: -90px; top: -70px; pointer-events: none; z-index: 2; }

/* ---------- Launch steps: the active one is big, lit and counts down with the scene ---------- */
.steps--sync { gap: 6px; margin-top: clamp(20px, 3vh, 30px); max-width: 460px; }
.steps--sync .step {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 0fr; column-gap: 16px; row-gap: 0;
  padding: 14px 18px; border-radius: 20px; overflow: hidden;
  transition: grid-template-rows 500ms var(--ease), background-color 400ms var(--ease), row-gap 500ms var(--ease);
}
.steps--sync .step > p { grid-column: 2; grid-row: 2; min-height: 0; overflow: hidden; opacity: 0; transition: opacity 400ms var(--ease); }
.steps--sync .step h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); transition: color 400ms var(--ease), transform 500ms var(--ease); transform-origin: left center; }
.steps--sync .step.is-lit { grid-template-rows: auto 1fr; row-gap: 6px; background: rgba(6, 11, 23, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.steps--sync .step.is-lit > p { opacity: 1; font-size: 1.05rem; }
.steps--sync .step.is-lit h3 { transform: scale(1.06); }
.steps--sync .step::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 3px; border-radius: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left center; opacity: 0;
}
.steps--sync .step.is-lit.is-run::after { opacity: 0.9; animation: step-run var(--dur, 3s) linear forwards; }
@keyframes step-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.steps--sync .step.is-lit .step__glyph { transform: scale(1.18); }
.scene[data-scene="launch"] { aspect-ratio: 1 / 0.86; }
@media (max-width: 899px) { .scene[data-scene="launch"] { aspect-ratio: 1 / 1.22; } }
@media (prefers-reduced-motion: reduce) { .steps--sync .step.is-lit.is-run::after { animation: none; transform: scaleX(1); } }

/* the release line appears only when the mark is formed */
.why__release { transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .why__release.rise.is-in:not(.is-shown) { opacity: 0; transform: translateY(10px) scale(0.98); filter: none; }
  .why__release.rise.is-in.is-shown { opacity: 1; transform: none; filter: none; }
}
.scene[data-scene="debate"] { aspect-ratio: 1 / 0.9; }
@media (max-width: 899px) { .scene[data-scene="debate"] { aspect-ratio: 1 / 1.18; } }
.scene[data-scene="launch"] { aspect-ratio: 1 / 0.9; }
@media (max-width: 899px) { .scene[data-scene="launch"] { aspect-ratio: 1 / 1.3; } }

/* Chat: the typing dots sit exactly where the next message starts and vanish the
   instant it appears; the message grows out of the dots (no overlap, no crossfade) */
.chat .bubble--typing { inset-inline-start: 0; width: auto; max-width: none; padding: 14px 18px; border-end-start-radius: 8px; }
.chat .bubble--typing.is-hidden { opacity: 0; transition: none; }
.chat .bubble--typing:not(.is-hidden) { opacity: 1; animation: typing-in 260ms var(--ease); }
@keyframes typing-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.chat.is-live .bubble--in { transform-origin: left top; }
.chat.is-live .bubble--out { transform-origin: right bottom; }
.chat.is-live .bubble--in.is-hidden { transform: scale(0.82); }
.chat.is-live .bubble--out.is-hidden { transform: translateY(12px) scale(0.92); }
.chat.is-live .bubble { transition: opacity 260ms var(--ease), transform 420ms cubic-bezier(0.22, 1.2, 0.36, 1); }

/* ---------- Audiences: one full-bleed slide that turns through the people it is for ---------- */
.aud.slide { justify-content: flex-end; padding-bottom: clamp(56px, 10vh, 110px); }
.aud__paints { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.aud__paint { position: absolute; inset: -3%; opacity: 0; transition: opacity 1200ms var(--ease); }
.aud__paint img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transform: scale(1.1); transition: transform 7000ms linear; }
.aud__paint.is-on { opacity: 1; }
.aud__paint.is-on img { transform: scale(1.02); }
.aud__nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-top: clamp(10px, 2vh, 18px); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.aud__nav::-webkit-scrollbar { display: none; }
.aud__tab {
  position: relative; flex: none; display: grid; gap: 10px; padding: 8px 0 0; background: none; border: 0; cursor: pointer;
  color: var(--parchment-mute); font-weight: 600; font-size: clamp(0.98rem, 1.15vw, 1.1rem); text-align: start; white-space: nowrap;
  transition: color 300ms var(--ease); scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
}
.aud__tab:hover { color: var(--parchment-dim); }
.aud__tab.is-on { color: var(--parchment); }
.aud__tab i { position: relative; display: block; height: 2px; border-radius: 2px; background: rgba(247, 241, 227, 0.2); overflow: hidden; }
.aud__tab i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left center; }
.aud__tab.is-on i::after { transform: scaleX(1); }
.aud__tab.is-on.is-run i::after { animation: aud-run var(--dur, 5600ms) linear forwards; }
@keyframes aud-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.aud__stage { display: grid; margin-top: clamp(22px, 4vh, 40px); }
.aud__item { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 520ms var(--ease), transform 700ms var(--ease); }
.aud__item.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 180ms; }
.aud__item .display--h2 { max-width: 15ch; font-size: clamp(2.6rem, min(5.6vw, 9.4vh), 5.4rem); }
.aud__item .lead { max-width: 40ch; }
@media (max-width: 899px) {
  .aud.slide { padding-bottom: 64px; }
  .aud__nav { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .aud__item .display--h2 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .slide.aud .aud__paints { height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .aud__paint img { transition: none; transform: none; } .aud__tab.is-on.is-run i::after { animation: none; } }

/* chat: hidden bubbles stay hidden until their moment (beats the art-entrance rule) */
.chapter__art .chat.is-live > .bubble.is-hidden { opacity: 0; }
.chapter__art .chat.is-live > .bubble--typing:not(.is-hidden) { opacity: 1; }

/* ---------- Opening ---------- */
.hero__wordmark { margin-bottom: clamp(14px, 2.2vh, 22px); font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; text-shadow: var(--shadow-text); }
.hero__wordmark i { font-style: normal; color: var(--gold); }
.hero__mark.is-instant img { transition: none; }
html.intro .hero .rise, html.intro .hero .scroll-cue { opacity: 0 !important; transform: translateY(26px) !important; filter: blur(8px) !important; }
html.intro .nav, html.intro .dots { opacity: 0; pointer-events: none; }
html.intro .hero .slide__paint img { opacity: 0.18; transition: opacity 1.6s var(--ease); }
html.intro .snap-root { overflow: hidden; }
.nav, .dots { transition: opacity 900ms var(--ease) 500ms; }
html.intro-done .hero .rise { transition-delay: calc(var(--i, 0) * 140ms + 80ms); }
.scroll-cue { transition: opacity 800ms var(--ease) 900ms, transform 800ms var(--ease) 900ms, filter 800ms var(--ease) 900ms; }

/* audiences: dust canvas between the paintings and the shade; the leaving painting stays on top while it is erased */
.aud__dust { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.aud__paint.is-leaving { opacity: 1; z-index: 1; transition: none; }
.aud__tab i { overflow: visible; }
.aud__tab i::after { border-radius: 2px; }
.aud__tab.is-on.is-run i::before {
  content: ""; position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 999px; z-index: 1;
  background: var(--gold-light); transform: translate(-50%, -50%);
  animation: aud-dot var(--dur, 5600ms) linear forwards;
}
@keyframes aud-dot { from { left: 0; } to { left: 100%; } }

/* sound: a bigger speaking avatar, left of the words */
#sound .voice__stage { width: min(100%, 560px); }
#sound .voice__avatar { width: 50%; }
#sound .voice__name { bottom: 4%; font-size: 1.35rem; }
#sound .voice__role { font-size: 1rem; }
@media (max-width: 899px) { #sound .voice__stage { width: min(100%, 380px); } }

/* audiences: the old line leaves first, the new one arrives after it */
.aud__item { transition: opacity 240ms var(--ease), transform 400ms var(--ease); }
.aud__item.is-on { transition: opacity 600ms var(--ease) 300ms, transform 800ms var(--ease) 300ms; }

/* ---------- Always: the moment rolls in the headline, the scene morphs, the lesson keeps playing ---------- */
.moment-line { display: inline-block; white-space: nowrap; }
#always .display--h2 { max-width: 13ch; }
#always .display--h2 em { display: block; }
.scene[data-scene="moments"] { aspect-ratio: 1 / 0.95; }
@media (max-width: 899px) { .scene[data-scene="moments"] { aspect-ratio: 1 / 1.15; } #always .display--h2 { max-width: none; } .moment-line { white-space: normal; } }

/* ---------- Launch steps v2: a gold trail, ticks for what is done, no box ---------- */
.steps--sync { position: relative; gap: 30px; }
.steps--sync .step, .steps--sync .step.is-lit { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; padding: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
.steps--sync .step::after, .steps--sync .step::before { display: none; }
.steps--sync .step > p, .steps--sync .step.is-lit > p { grid-column: 2; grid-row: 2; opacity: 1; font-size: 1.02rem; color: rgba(247, 241, 227, 0.38); transition: color 500ms var(--ease); }
.steps--sync .step.is-lit > p { color: var(--parchment-dim); }
.steps--sync .step h3 { display: flex; align-items: center; gap: 10px; color: rgba(247, 241, 227, 0.45); transform: none; transition: color 500ms var(--ease); }
.steps--sync .step.is-lit h3 { color: var(--gold); transform: none; }
.steps--sync .step.is-done h3 { color: var(--parchment); }
.steps--sync .step__glyph { justify-content: center; width: 34px; color: rgba(247, 241, 227, 0.4); transition: color 500ms var(--ease), transform 600ms cubic-bezier(0.22, 1.4, 0.36, 1); }
.steps--sync .step__glyph svg { width: 28px; height: 28px; }
.steps--sync .step.is-lit .step__glyph { color: var(--gold); transform: scale(1.25); }
.steps--sync .step.is-done .step__glyph { color: rgba(255, 196, 77, 0.7); transform: none; }
.step__check { display: inline-flex; color: var(--gold); opacity: 0; transform: scale(0.4); transition: opacity 300ms var(--ease), transform 500ms cubic-bezier(0.22, 1.6, 0.36, 1); }
.step__check svg { width: 0.85em; height: 0.85em; }
.steps--sync .step.is-done .step__check { opacity: 1; transform: none; }
.steps__seg { position: absolute; width: 2px; border-radius: 2px; background: rgba(247, 241, 227, 0.14); pointer-events: none; }
.steps__seg i { position: absolute; inset: 0; border-radius: 2px; background: var(--gold); transform: scaleY(0); transform-origin: top center; }
.scene[data-scene="anon"] { aspect-ratio: 1 / 0.98; }
@media (max-width: 899px) { .scene[data-scene="anon"] { aspect-ratio: 1 / 1.2; } }

/* ---------- Launch flow: three names over a gold baseline + one rolling line ---------- */
.flow { margin-top: clamp(24px, 3.6vh, 36px); max-width: 460px; }
.flow__nav { display: flex; gap: 16px; }
.flow__tab { flex: 1; display: grid; gap: 10px; color: var(--parchment-mute); font-size: 1rem; font-weight: 600; transition: color 400ms var(--ease); }
.flow__tab.is-on { color: var(--parchment); }
.flow__tab.is-done { color: rgba(255, 196, 77, 0.8); }
.flow__tab i { position: relative; display: block; height: 2px; border-radius: 2px; background: rgba(247, 241, 227, 0.2); --f: 0; }
.flow__tab i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--gold); transform: scaleX(var(--f)); transform-origin: left center; }
.flow__tab.is-on i::before { content: ""; position: absolute; top: 50%; left: calc(var(--f) * 100%); width: 7px; height: 7px; border-radius: 999px; background: var(--gold-light); transform: translate(-50%, -50%); z-index: 1; }
.flow__now { margin-top: clamp(16px, 2.4vh, 24px); font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--gold); text-shadow: var(--shadow-text); }
.flow__slot { display: inline-block; position: relative; white-space: nowrap; vertical-align: baseline; }
.scene[data-scene="anon"] { aspect-ratio: 1 / 0.9; }
@media (max-width: 899px) { .chapter .flow { order: 5; margin-top: 24px; } .scene[data-scene="anon"] { aspect-ratio: 1 / 1.12; } }

/* ---------- Paintings assemble from grains ---------- */
.slide__paint.is-veiled { visibility: hidden; }
.slide__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* ---------- Audiences v3: centred chapter + orbit ---------- */
.aud.slide { justify-content: center; padding-bottom: 44px; }
.aud__who { margin-bottom: 10px; font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; color: var(--gold); text-shadow: var(--shadow-text); }
.aud__stage { margin-top: 0; }
.aud__item .display--h2 { max-width: 13ch; font-size: clamp(2.4rem, min(4.6vw, 8vh), 4.4rem); }
.scene[data-scene="audiences"] { aspect-ratio: 1 / 0.92; }
@media (max-width: 899px) {
  .aud.slide { justify-content: flex-start; }
  .scene[data-scene="audiences"] { aspect-ratio: 1 / 1; }
  .aud__item .display--h2 { font-size: clamp(2rem, 8.6vw, 2.5rem); }
}

@font-face { font-family: "TaameyFrank"; src: url("../fonts/TaameyFrankCLM-Medium.ttf") format("truetype"); font-display: swap; }

/* chat: readable over the painting */
#chat { --veil: 0.66; }
#chat .bubble--in, #chat .chat__input { background: rgba(6, 11, 23, 0.86); }
#chat .bubble { font-size: 1.05rem; color: var(--parchment); }
#chat .bubble--out { color: var(--gold-ink); }
#chat .bubble__foot { opacity: 0.8; }

/* audiences fixes */
.aud__item { align-self: start; }
@media (max-width: 899px) {
  .aud .chapter .kicker { order: 1; }
  .aud .aud__who { order: 2; }
  .aud .aud__stage { order: 3; }
  .aud .chapter > .chapter__art { order: 4; }
}

/* love */
.love__terms { list-style: none; margin: clamp(22px, 3.4vh, 32px) 0 0; padding: 0; display: grid; gap: 12px; }
.love__terms li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; text-shadow: var(--shadow-text); }
.love__terms b { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; color: var(--gold); }
.love__terms span { font-size: 1.05rem; font-weight: 500; color: var(--parchment-dim); }
.scene[data-scene="love"] { aspect-ratio: 1 / 0.9; }
@media (max-width: 899px) { .scene[data-scene="love"] { aspect-ratio: 1 / 1; } .chapter .love__terms { order: 5; margin-top: 24px; } }

.aud__item .display--h2 { max-width: 15ch; }

/* love v3: one sentence, the active term lights with the scene */
.love__line { margin-top: clamp(18px, 2.8vh, 28px); max-width: 26ch; font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--parchment-dim); text-wrap: balance; text-shadow: var(--shadow-text); }
.love__term { color: var(--parchment); transition: color 500ms var(--ease); }
.love__term.is-on { color: var(--gold); }
@media (max-width: 899px) { .chapter .love__line { order: 3; } }
.scene[data-scene="moments"] { aspect-ratio: 1 / 0.82; }
@media (max-width: 899px) { .scene[data-scene="moments"] { aspect-ratio: 1 / 0.98; } }

/* ---------- Always: full width — headline on top, the row of moments, the player ---------- */
.always.slide { justify-content: center; padding-bottom: 16px; }
.always__wrap { text-align: center; }
.always .kicker { justify-content: center; }
#always .display--h2 { max-width: none; margin-inline: auto; font-size: clamp(2.2rem, min(4.4vw, 7.2vh), 4.3rem); }
#always .display--h2 em { display: block; }
.always__stage { width: 100%; margin-top: clamp(6px, 1.6vh, 18px); position: relative; z-index: 2; }
.always__stage .scene { aspect-ratio: auto; height: clamp(340px, 54vh, 540px); }
.always__shade { background: rgba(var(--veil-rgb), var(--veil)); }
#always { --veil: 0.66; }
@media (max-width: 899px) {
  #always .display--h2 { font-size: clamp(1.75rem, 7.2vw, 2.4rem); }
  .always__stage .scene { height: 470px; }
  .always.slide { justify-content: flex-start; }
}
/* audiences: text changes without a blank gap */
.aud__item.is-on { transition: opacity 500ms var(--ease) 140ms, transform 700ms var(--ease) 140ms; }

.love__term { white-space: nowrap; }

/* ---------- No header: only the flying logo ---------- */
.nav, .nav.is-solid { position: fixed; inset: 0 auto auto 0; width: 0; height: 0; padding: 0; background: none; pointer-events: none; z-index: 30; }
.nav .brand, #fly-logo {
  position: fixed; left: 0; top: 0; width: 100px; height: 100px; display: block;
  transform-origin: 0 0; will-change: transform; pointer-events: none; visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
#fly-logo img { width: 100%; height: 100%; display: block; }
#fly-logo.is-on { visibility: visible; pointer-events: auto; cursor: pointer; }
html.intro #fly-logo { visibility: hidden; }
.section.slide { padding-top: calc(72px + env(safe-area-inset-top)); }
@media (max-width: 720px) { .section.slide { padding-top: calc(64px + env(safe-area-inset-top)); } }

/* ---------- Flying lockup (replaces the corner logo) ---------- */
#fly { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 31; -webkit-tap-highlight-color: transparent; }
#fly-logo, #fly-word { position: fixed; left: 0; top: 0; transform-origin: 0 0; will-change: transform; visibility: hidden; pointer-events: none; }
#fly-logo { width: 100px; height: 100px; display: block; }
#fly-word { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; color: var(--parchment); text-shadow: var(--shadow-text); }
#fly-word i { font-style: normal; color: var(--gold); }
#fly.is-on #fly-logo, #fly.is-on #fly-word { visibility: visible; pointer-events: auto; cursor: pointer; }
html.intro #fly-logo, html.intro #fly-word { visibility: hidden !important; }
/* always: compact stage, no empty space */
.always__stage .scene { height: 330px; }
@media (max-width: 899px) { .always__stage .scene { height: 400px; } }
.always.slide { justify-content: center; }
.always__stage .scene { height: 370px; }
@media (max-width: 899px) { .always__stage .scene { height: 410px; } }

/* launch flow: compact, the current step is gold too */
.flow { max-width: 380px; margin-top: clamp(18px, 2.6vh, 26px); }
.flow__nav { gap: 12px; }
.flow__tab { gap: 8px; font-size: 0.95rem; }
.flow__tab.is-on { color: var(--gold); }
.flow__tab.is-done { color: rgba(255, 196, 77, 0.72); }
.flow__now { margin-top: 12px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }

/* ---------- Kicker: the chapter name alone, uppercase, on a gold highlight ---------- */
.kicker { display: flex; gap: 0; }
.kicker > b { display: none; }
.kicker span, .kicker span::before { all: unset; }
.kicker span {
  display: inline-block; padding: 5px 10px 4px; border-radius: 3px;
  background: var(--gold); color: var(--gold-ink);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem); font-weight: 800; letter-spacing: 0.12em; line-height: 1.2; text-transform: uppercase;
  text-shadow: none; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.kicker span::before { content: none; }
.kicker span { padding: 7px 14px 6px; font-size: clamp(0.98rem, 1.2vw, 1.15rem); letter-spacing: 0.11em; border-radius: 4px; }
@media (max-width: 720px) { .kicker span { font-size: 0.92rem; padding: 6px 12px 5px; } }

/* ---------- Headlines a notch smaller everywhere ---------- */
.display--h2 { font-size: clamp(2rem, min(4.3vw, 7.6vh), 4rem); }
.hero .display--hero { font-size: clamp(2.3rem, min(4.8vw, 8vh), 4.8rem); }
.why__title { font-size: clamp(1.9rem, min(3.4vw, 5.6vh), 3.1rem); }
#always .display--h2 { font-size: clamp(1.9rem, min(3.8vw, 6.2vh), 3.7rem); }
.aud__item .display--h2 { font-size: clamp(2.1rem, min(3.9vw, 6.8vh), 3.8rem); }
@media (max-width: 899px) {
  .display--h2 { font-size: clamp(1.8rem, 7.6vw, 2.3rem); }
  .why__title { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }
  #always .display--h2 { font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
  .aud__item .display--h2 { font-size: clamp(1.8rem, 7.6vw, 2.2rem); }
}
@media (max-width: 720px) { .hero .display--hero { font-size: min(2.4rem, 8.6vh); } }
.always__stage .scene { height: 400px; }
@media (max-width: 899px) { .always__stage .scene { height: 470px; } }
.always__stage .scene { height: 420px; }
@media (max-width: 899px) { .always__stage .scene { height: 560px; } }
.scene[data-scene="room"] { aspect-ratio: 4 / 3.25; }
@media (max-width: 899px) { .scene[data-scene="room"] { aspect-ratio: 1 / 1.14; } }
/* world: map with listeners on it, no list below */
.scene[data-scene="world"], #world .scene { aspect-ratio: 1 / 0.47; }
@media (max-width: 899px) { .scene[data-scene="world"], #world .scene { aspect-ratio: 1 / 0.5; } }
@media (max-width: 899px) { #world.slide { justify-content: center; } }
.scene[data-scene="world"], #world .scene { aspect-ratio: 1 / 0.5; }
.scene[data-scene="lock"] { aspect-ratio: 1 / 0.98; }
@media (max-width: 899px) { .scene[data-scene="lock"] { aspect-ratio: 1 / 1.22; } }

/* love: one sentence, the active term lights gold */
.love__title { max-width: 18ch; font-size: clamp(1.9rem, min(3.3vw, 5.6vh), 3.1rem); line-height: 1.12; }
.love__title .love__term { color: rgba(247, 241, 227, 0.62); white-space: nowrap; transition: color 600ms var(--ease); }
.love__title .love__term.is-on { color: var(--gold); }
.scene[data-scene="love"] { aspect-ratio: 1 / 0.9; }
@media (max-width: 899px) { .love__title { font-size: clamp(1.6rem, 6.8vw, 2.1rem); max-width: none; } .scene[data-scene="love"] { aspect-ratio: 1 / 1.05; } }

/* why: the headline follows the story */
.why__l1, .why__l2 { transition: opacity 600ms var(--ease); }
.why[data-why="0"] .why__l2 { opacity: 0.28; }
.why[data-why="1"] .why__l1 { opacity: 0.28; }
.why__l2 { display: block; }

/* live card meta: gold globe, the kind, a hairline, a running timer */
.room-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--parchment); }
.room-meta__kind { display: inline-flex; align-items: center; gap: 6px; }
.room-meta__kind svg { width: 17px; height: 17px; color: var(--gold); vertical-align: 0; }
.room-meta > i { width: 1px; height: 14px; background: rgba(247, 241, 227, 0.25); }
.room-meta__time { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; letter-spacing: 0.02em; }
.live-badge { white-space: nowrap; flex: none; }
.live-card__top { flex-wrap: nowrap; }
@media (max-width: 420px) { .room-meta { gap: 7px; font-size: 0.86rem; } .room-meta__kind svg { width: 15px; height: 15px; } .live-badge { padding: 5px 9px; letter-spacing: 0.06em; } }
/* meta row: everything on one optical centre line */
.live-card__top { align-items: center; }
.room-meta, .room-meta__kind, .room-meta__time { line-height: 1; }
.room-meta__kind svg { display: block; flex: none; margin-top: -1px; }
.room-meta > i { align-self: center; }
.live-badge { display: inline-flex; align-items: center; line-height: 1; padding-top: 6px; padding-bottom: 6px; }
.live-badge i { flex: none; }
/* seats in the live card: a little air under the avatar, the status tucked under the name */
.seat { gap: 0; }
.seat b { margin-top: 12px; line-height: 1.15; }
.seat small { margin-top: 2px; line-height: 1.15; }

/* ---------- Love: the words across the width, the scene fills the slide beneath them ---------- */
.love.slide { justify-content: flex-start; padding-top: calc(110px + env(safe-area-inset-top)); }
.love__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.love__stage .scene { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.love__wrap { position: relative; z-index: 2; text-align: center; max-width: 1240px; }
.love .kicker { justify-content: center; }
.love__title { max-width: none; margin: 0 auto; font-size: clamp(2rem, min(3.9vw, 6.6vh), 3.9rem); line-height: 1.12; text-wrap: balance; }
.love__shade { background: rgba(var(--veil-rgb), var(--veil)); }
.love__title .love__term {
  position: relative; display: inline-block; white-space: nowrap;
  color: rgba(247, 241, 227, 0.42); transition: color 700ms var(--ease), transform 700ms var(--ease);
}
.love__title .love__term.is-past { color: var(--parchment); }
.love__title .love__term.is-on {
  color: transparent;
  background: linear-gradient(100deg, #d9962f 0%, #ffc44d 30%, #fff3c4 45%, #ffc44d 60%, #d9962f 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  animation: love-sheen 2.6s linear infinite;
  text-shadow: none;
}
.love__title .love__term::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #e6aa42, #ffd76a, #e6aa42); transform: scaleX(0); transform-origin: left center;
  transition: transform 900ms var(--ease);
}
.love__title .love__term.is-on::after { transform: scaleX(1); }
@keyframes love-sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (max-width: 899px) { .love.slide { padding-top: calc(80px + env(safe-area-inset-top)); } .love__title { font-size: clamp(1.6rem, 6.6vw, 2.1rem); } }
@media (prefers-reduced-motion: reduce) { .love__title .love__term.is-on { animation: none; } }

/* support: the rose of tiferet-landing's support page, with a beating heart */
.btn--love { background: #b82f59; color: #fff7ee; min-height: 58px; padding-inline: 26px 30px; font-size: 1.08rem; }
.btn--love:hover { background: #d43b68; }
.btn__heart { display: inline-flex; color: #fff7ee; }
.btn__heart svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) { .btn__heart { animation: love-beat 3.1s ease-in-out infinite; } }
@keyframes love-beat { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.18); } 60% { transform: scale(1.04); } 72% { transform: scale(1.14); } }
.manifest .btn-row { margin-top: clamp(26px, 4vh, 40px); }

/* ---------- Love v5 ---------- */
.love.slide { justify-content: center; padding-top: calc(86px + env(safe-area-inset-top)); padding-bottom: 24px; }
.love__wrap { text-align: center; }
.love__title { font-size: clamp(2.3rem, min(4.4vw, 7.4vh), 4.2rem); line-height: 1.05; }
.love__title em { font-style: normal; color: var(--gold); }
.love__line { margin: clamp(12px, 2vh, 18px) auto 0; max-width: 34em; font-size: clamp(1.25rem, 2vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: rgba(247, 241, 227, 0.5); text-wrap: balance; text-shadow: var(--shadow-text); }
.love__line .nw { white-space: nowrap; }
.love__line .love__term { position: relative; display: inline-block; color: rgba(247, 241, 227, 0.5); transition: color 700ms var(--ease); }
.love__line .love__term.is-past { color: var(--parchment); }
.love__line .love__term.is-on {
  color: transparent; text-shadow: none;
  background: linear-gradient(100deg, #d9962f 0%, #ffc44d 30%, #fff3c4 45%, #ffc44d 60%, #d9962f 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: love-sheen 2.6s linear infinite;
}
.love__line .love__term::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #e6aa42, #ffd76a, #e6aa42); transform: scaleX(0); transform-origin: left center; transition: transform 900ms var(--ease); }
.love__line .love__term.is-on::after { transform: scaleX(1); }
.love__stage { position: relative; inset: auto; z-index: 2; width: 100%; height: clamp(300px, 50vh, 500px); margin-top: clamp(4px, 1vh, 12px); pointer-events: none; }
.love__stage .scene { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.love__shade { background: rgba(var(--veil-rgb), var(--veil)); }
@media (max-width: 899px) { .love__title { font-size: clamp(2rem, 8.6vw, 2.6rem); } .love__line { font-size: 1.15rem; } .love__stage { height: 380px; } .love.slide { justify-content: flex-start; } }
.manifest__lead { max-width: 36ch; margin-top: clamp(18px, 3vh, 28px); color: var(--parchment); font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.manifest__lead b.gold { color: var(--gold); font-weight: 700; white-space: nowrap; }
.love__line { font-size: clamp(1.35rem, 2.2vw, 2rem); }

.manifest .manifest__lead { max-width: 46ch; }

/* ---------- Phones: one slide = one screen, a firm magnet ---------- */
@media (max-width: 899px) {
  .snap-root { scroll-snap-type: y mandatory; }
  .slide, .section.slide, .hero.slide, .closing.slide { height: 100svh; min-height: 0; max-height: none; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; justify-content: center; }
  .slide.is-tall { height: auto; min-height: 100svh; scroll-snap-stop: normal; justify-content: flex-start; }
}
/* phones: room for the flying lockup above every slide */
@media (max-width: 899px) {
  .section.slide, .slide.love, .slide.aud, .slide.always, .slide.manifest { padding-top: calc(70px + env(safe-area-inset-top)); padding-bottom: 18px; }
}
/* privacy rows: one line each, a solid gold check */
.row { min-height: 56px; }
.row__check { width: 18px; height: 18px; }
.row__title { font-size: 1.05rem; }

/* the dots never carry words: the active one is just a longer gold dash */
.dots span { display: none !important; }
.dots button.is-on i { transform: none; width: 6px; height: 18px; box-shadow: none; }
.dots i { transition: height 400ms var(--ease), background-color 400ms var(--ease); }
@media (max-width: 899px) { .dots button.is-on i { width: 5px; height: 14px; } }

/* love v6: the term rolls in the headline, one grain figure below */
.love__title { font-size: clamp(2.3rem, min(4.4vw, 7.2vh), 4.3rem); line-height: 1.08; }
.love__roll { display: block; font-style: normal; color: var(--gold); white-space: nowrap; }
.love__line { display: none; }
.love__stage { height: clamp(320px, 56vh, 560px); margin-top: clamp(0px, 1vh, 10px); }
@media (max-width: 899px) { .love__title { font-size: clamp(1.9rem, 8vw, 2.5rem); } .love__stage { height: 420px; } }
/* love: the centred term line glides to the new word's width instead of jumping */
.love__roll .city { transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .love__roll .city { transition: none; } }

/* ---------- Languages: English and Hebrew are set in Heebo, like tiferet-landing ---------- */
html[lang="en"], html[lang="he"] { --font: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
html[lang="en"] .display { letter-spacing: -0.035em; }
html[lang="en"] .display--hero { letter-spacing: -0.04em; }
/* Hebrew letters never get negative tracking; lines get a little more air */
html[lang="he"] :is(.display, .display--hero, .kicker, .kicker span, .lead, .why__release, .btn, .flow__tab, .flow__now, .aud__who, .row__title, .track__title, .live-card h3, .scene__caption, .manifest__quote) { letter-spacing: 0; }
html[lang="he"] .display { line-height: 1.1; }
html[lang="he"] .display--hero { line-height: 1.04; }
/* brand words stay Latin and left to right inside Hebrew lines */
/* (a brand inside a Hebrew sentence is wrapped whole in <bdi> by the dictionary; never isolate half of it) */
#fly-word, .hero__wordmark { unicode-bidi: isolate; direction: ltr; }

/* ---------- RTL: everything that reads from a side mirrors ---------- */
[dir="rtl"] .city-word.is-out-pos { left: auto; right: 0; }
[dir="rtl"] .city.is-pop { transform-origin: right 70%; }
[dir="rtl"] .flow__tab i::after, [dir="rtl"] .aud__tab i::after { transform-origin: right center; }
[dir="rtl"] .flow__tab.is-on i::before { left: auto; right: calc(var(--f) * 100%); transform: translate(50%, -50%); }
[dir="rtl"] .aud__tab.is-on.is-run i::before { left: auto; right: 0; transform: translate(50%, -50%); animation-name: aud-dot-rtl; }
@keyframes aud-dot-rtl { from { right: 0; } to { right: 100%; } }
[dir="rtl"] .chat.is-live .bubble--in { transform-origin: right top; }
[dir="rtl"] .chat.is-live .bubble--out { transform-origin: left bottom; }
[dir="rtl"] .chat__send svg { transform: scaleX(-1); }
[dir="rtl"] .track__bar i { inset: 0 0 0 auto; }
/* Heebo is wider than Roboto Condensed: headlines get a few more characters per line */
@media (min-width: 900px) {
  html[lang="en"] .display--h2 { max-width: 17ch; }
  html[lang="he"] .display--h2 { max-width: 16ch; }
  html[lang="en"] .closing .display--h2, html[lang="he"] .closing .display--h2 { max-width: 20ch; }
}
@media (max-width: 720px) { html[lang="en"] .hero .display--hero { font-size: min(2.35rem, 8.4vh); } }
@media (min-width: 900px) { html:not([lang="ru"]) .why__title { max-width: 28ch; } }
/* the brightest paintings get a slightly deeper (still even) veil so small text reads */
#sound, #love, #why, #stories, #privacy { --veil: 0.66; }

/* ---------- Language switch: compact, hangs at the top on the end side ---------- */
.langbar {
  position: fixed; top: calc(13px + env(safe-area-inset-top)); inset-inline-end: 18px; z-index: 32;
  display: flex; gap: 2px; padding: 3px; border-radius: 19px;
  background: rgba(var(--veil-rgb), 0.5); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  transition: opacity 900ms var(--ease) 500ms;
}
.langbar a {
  min-width: 36px; height: 32px; padding-inline: 8px; display: grid; place-items: center; border-radius: 16px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1; color: rgba(247, 241, 227, 0.6);
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color 300ms var(--ease);
}
.langbar a:hover, .langbar a:focus-visible { color: var(--parchment); }
.langbar a.is-on { color: var(--gold); }
html.intro .langbar { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .langbar { top: calc(6px + env(safe-area-inset-top)); inset-inline-end: 10px; flex-direction: column; }
  .langbar a { min-width: 50px; }
  .langbar a:not(.is-on) { display: none; }
  .langbar.is-open a { display: grid; }
  .langbar a.is-on { order: -1; }
}
/* the language switch reads at a glance: a gold capsule, the current language in full ink */
.langbar { background: var(--gold); -webkit-backdrop-filter: none; backdrop-filter: none; }
.langbar a { color: rgba(26, 20, 8, 0.5); font-weight: 800; }
.langbar a:hover, .langbar a:focus-visible { color: var(--gold-ink); }
.langbar a.is-on { color: var(--gold-ink); background: rgba(255, 246, 221, 0.55); }

/* ---------- Hero: iPhones ----------
   The main iPhone stands where the logo was: its screen is the app's launch screen (the room
   blue of roomBlue.ts) and the grain logo forms on it. Behind it four more slide out to the
   sides at a tilt, like a fanned hand of cards. Every screen is a live canvas scene of the app
   (scenes.js: phoneStage/Chat/Alerts/Lobby/Space). All CSS: desert-titanium band, black bezel,
   Dynamic Island, side keys, no shadows. The fan opens with transforms only. The big
   headline comes up a little over the bottom of the phones (solid, never see-through). */
.hero.slide { padding-block: calc(64px + env(safe-area-inset-top)) 64px; }
.hero .hero__inner { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero .hero__inner > :not(.devices) { position: relative; z-index: 1; }
.hero .display--hero { font-size: clamp(2.1rem, min(4.4vw, 6.6vh), 4.4rem); }
.hero__canvas { z-index: 3; pointer-events: none; }

.devices {
  --overlap: clamp(36px, 6.5vh, 70px);
  /* full screen width: the outer phones may reach past the text column */
  position: relative; z-index: 0; flex: 1 1 0; width: 100vw; margin-inline: calc(50% - 50vw); min-height: 300px; max-height: 720px;
  container-type: size; display: grid; place-items: end center;
  margin-bottom: calc(var(--overlap) * -1);
  --spread: 1;
}
.iphone {
  --ph: min(100cqh, 115cqw, 58vh, 620px);
  --w: calc(var(--ph) * 0.478);
  grid-area: 1 / 1; position: relative; width: var(--w); height: var(--ph);
  border: calc(var(--w) * 0.014) solid transparent;
  border-radius: calc(var(--w) * 0.168);
  padding: calc(var(--w) * 0.027);
  background:
    linear-gradient(#050608, #050608) padding-box,
    linear-gradient(135deg, #dccbb0 0%, #8d7d67 14%, #4a4136 30%, #a8977f 45%, #f2e3c9 52%, #7d6e5a 62%, #3f382f 80%, #b8a68c 100%) border-box;
}
/* keys: action + volume on the left, side button on the right */
.iphone::before, .iphone::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: calc(var(--w) * 0.014); pointer-events: none;
}
.iphone::before {
  left: calc(var(--w) * -0.026);
  background: linear-gradient(180deg, transparent 18.5%, #9a8a73 18.5% 22.5%, transparent 22.5% 27%, #9a8a73 27% 33.5%, transparent 33.5% 36.5%, #9a8a73 36.5% 43%, transparent 43%);
}
.iphone::after {
  right: calc(var(--w) * -0.026);
  background: linear-gradient(180deg, transparent 29%, #9a8a73 29% 40%, transparent 40%);
}
.iphone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.127);
  background: linear-gradient(180deg, rgb(13, 74, 122) 0%, rgb(8, 50, 88) 45%, rgb(3, 27, 52) 100%);
}
.iphone .scene--phone { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
/* the glass: one soft diagonal sheen */
.iphone__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 34%, rgba(255, 255, 255, 0) 46%);
}
.iphone__island {
  position: absolute; z-index: 3; top: calc(var(--w) * 0.052); left: 50%;
  width: calc(var(--w) * 0.285); height: calc(var(--w) * 0.084);
  transform: translateX(-50%); border-radius: 999px; background: #000;
}

/* launch screen: the grain logo and the wordmark; once the app opens (the logo bursts into
   grains, rooms.js) they leave and the live room underneath takes the screen */
.iphone__screen--splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--w) * 0.05); padding-bottom: calc(var(--w) * 0.1); }
.iphone .hero__mark { width: calc(var(--w) * 0.62); margin: 0; flex: none; position: relative; z-index: 1; }
.iphone .hero__wordmark { margin: 0; font-size: calc(var(--w) * 0.098); line-height: 1.1; position: relative; z-index: 1; }
.iphone--main .scene--phone { opacity: 0; }
.iphone--main.is-open .scene--phone { opacity: 1; transition: opacity 700ms var(--ease) 120ms; }
.iphone--main.is-open .hero__mark { pointer-events: none; }
.iphone--main.is-open .hero__mark img { opacity: 0; transform: scale(1.08); transition: opacity 260ms var(--ease), transform 600ms var(--ease); }
.iphone--main.is-open .hero__wordmark.rise { opacity: 0; transform: translateY(-10px); filter: none; transition: opacity 420ms var(--ease), transform 600ms var(--ease); transition-delay: 0ms; }

/* the fan: tucked behind the main iPhone, then out to the sides, the far ones lower and more tilted */
.iphone--main { z-index: 2; }
.iphone--side { transform-origin: 50% 100%; transform: translate3d(0, 2%, 0) scale(0.9); transition: transform 520ms var(--ease); will-change: transform; }
.iphone--side .iphone__screen::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgb(3, 12, 24); opacity: calc(var(--k) * 0.14); }
.devices.is-out .iphone--side {
  transform: translate3d(calc(var(--s) * var(--k) * var(--spread) * 56%), calc(var(--k) * 1.5%), 0) rotate(calc(var(--s) * var(--k) * 7.5deg)) scale(calc(1 - var(--k) * 0.08));
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--k) * 130ms);
}
/* opening: the main iPhone appears while the logo flies onto its screen; the fan waits for the text */
html.intro .devices .iphone { opacity: 0; }
html.intro.intro-land .devices .iphone--main { opacity: 1; transition: opacity 1100ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .iphone--side, .devices.is-out .iphone--side { transition: none; } }

@media (max-width: 720px) {
  .hero.slide { padding-block: calc(60px + env(safe-area-inset-top)) 54px; }
  .devices { --overlap: clamp(30px, 5vh, 50px); min-height: 260px; --spread: 0.78; }
}

/* ---------- Footer documents: quiet links under the store buttons ---------- */
.closing .footer .wrap { grid-template-columns: none; justify-items: center; text-align: center; gap: 6px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer__copy { margin: 0; font-size: 0.85rem; }
.footer__legal a { text-decoration: none; transition: color .2s ease; }
.footer__legal a:focus-visible { color: var(--gold); outline: 1px solid currentColor; outline-offset: 3px; border-radius: 2px; }
