/* Layout: one descending route. Portal, manifesto, then seven stations strung on a line of stars,
   with a five-star meter that lights up sense by sense as you go down; then words, care, questions, invitation.
   Слои: фоны (0) → звёздное поле canvas (1) → объекты (2) → текст (3) → шапка (10). */
:root {
  /* Палитра. main.js переписывает её из palette манифеста. */
  --space: #03051A;
  --midnight: #0A1446;
  --royal: #1F3FD1;
  --cobalt: #3D6BFF;
  --ice: #9CC3FF;
  --star: #EEF4FF;
  --violet: #8B6CFF; /* только чай в зале вкуса */

  --text: var(--star);
  --text-soft: color-mix(in srgb, var(--star) 76%, var(--space));
  --text-faint: color-mix(in srgb, var(--star) 58%, var(--space));
  --line: color-mix(in srgb, var(--ice) 20%, transparent);
  --glow: color-mix(in srgb, var(--cobalt) 55%, transparent);

  --font-display: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.25rem + 1.3vw, 2.35rem);
  --step-3: clamp(2rem, 1.4rem + 2.8vw, 3.6rem);
  --step-hero: clamp(3.6rem, 1rem + 8vw, 8.5rem);
  --step-manifesto: clamp(1.4rem, 1.05rem + 1.5vw, 2.35rem);

  --wrap: 74rem;
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);
  --header-h: 4rem;
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 340;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* полоса под системной панелью телефона */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 11; background: var(--space);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; text-wrap: balance; }
p { margin: 0; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.5em; height: 1.5em; flex: none; fill: currentColor; }
.icon .ln { fill: none; stroke: currentColor; stroke-width: .8; opacity: .5; }

.skip {
  position: fixed; z-index: 20; top: calc(env(safe-area-inset-top, 0px) + .5rem); left: max(16px, env(safe-area-inset-left, 0px));
  padding: .5rem 1rem; background: var(--royal); color: var(--star); border-radius: 999px;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

.wrap {
  position: relative; z-index: 3;
  width: 100%; max-width: calc(var(--wrap) + 2 * 16px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    max-width: calc(var(--wrap) + 2 * 40px);
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Звёздное поле ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Шапка ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: linear-gradient(to bottom, var(--space) 0%, var(--space) 45%, color-mix(in srgb, var(--space) 80%, transparent) 70%, transparent 100%);
}
@media (min-width: 720px) {
  .top { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}
.wordmark {
  font-family: var(--font-display); font-weight: 400; font-size: .74rem;
  letter-spacing: .34em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.sound {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem .45rem .7rem; min-height: 2.5rem;
  font: inherit; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft); background: color-mix(in srgb, var(--space) 55%, transparent);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .4s, border-color .4s, box-shadow .6s;
}
.sound .icon { width: 1.35rem; height: 1.35rem; }
.sound:hover { color: var(--star); border-color: color-mix(in srgb, var(--ice) 45%, transparent); }
.sound-state {
  width: .5rem; height: .5rem; border-radius: 50%;
  border: 1px solid var(--text-faint); transition: background .4s, border-color .4s, box-shadow .4s;
}
.sound[aria-pressed="true"] { color: var(--star); border-color: color-mix(in srgb, var(--cobalt) 70%, transparent); box-shadow: 0 0 24px -6px var(--glow); }
.sound[aria-pressed="true"] .sound-state { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 10px var(--cobalt); }
.sound[aria-pressed="true"] .icon { animation: hum 2.8s ease-in-out infinite; }
@keyframes hum { 50% { opacity: .55; } }

/* ---------- Кнопка ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .95rem 1.6rem; min-height: 3rem;
  font-family: var(--font-text); font-size: var(--step--1); font-weight: 450;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--star); background: var(--royal);
  border: 1px solid color-mix(in srgb, var(--ice) 40%, transparent); border-radius: 999px;
  box-shadow: 0 0 0 0 var(--glow);
  transition: box-shadow .6s var(--ease), background .4s, transform .4s var(--ease);
}
.btn::before {
  content: ""; width: .4rem; height: .4rem; border-radius: 50%;
  background: var(--star); box-shadow: 0 0 8px 2px var(--ice);
}
.btn:hover { background: color-mix(in srgb, var(--royal) 80%, var(--cobalt)); box-shadow: 0 0 44px -6px var(--glow); }
.btn:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; align-items: center;
  min-height: 92vh; min-height: 92svh;
  padding-block: calc(var(--header-h) + 3rem) 6rem;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--space) 78%, transparent) 0%, color-mix(in srgb, var(--space) 35%, transparent) 38%, transparent 62%),
    linear-gradient(to bottom, transparent 55%, var(--space) 100%);
}
.hero-inner { display: grid; justify-items: start; gap: 1.1rem; }
.eyebrow, .kicker {
  font-size: var(--step--1); letter-spacing: .26em; text-transform: uppercase; color: var(--ice);
}
.hero-title {
  font-family: var(--font-display); font-size: var(--step-hero); font-weight: 250;
  line-height: .92; letter-spacing: -.015em; margin-left: -.05em;
  text-shadow: 0 0 60px color-mix(in srgb, var(--cobalt) 45%, transparent);
}
.hero-title span { display: block; } /* две строки: заголовок держится в левой трети кадра */
.hero-sub { font-size: var(--step-2); font-weight: 300; line-height: 1.25; }
.hero-when { font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .9rem; }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 1.6rem; translate: -50% 0;
  display: grid; justify-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--text-faint);
}
.scroll-dots { display: grid; gap: 6px; justify-items: center; }
.scroll-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--ice); opacity: .3; animation: fall 2.4s infinite; }
.scroll-dots i:nth-child(2) { animation-delay: .3s; }
.scroll-dots i:nth-child(3) { animation-delay: .6s; }
@keyframes fall { 30% { opacity: 1; } 60%, 100% { opacity: .2; } }

@media (orientation: portrait) {
  /* 9:16 — спокойная зона под текст сверху */
  .hero { align-items: start; }
  .hero-video { object-position: 50% 60%; }
  .hero-scrim {
    background:
      linear-gradient(to bottom, color-mix(in srgb, var(--space) 80%, transparent) 0%, color-mix(in srgb, var(--space) 30%, transparent) 42%, transparent 60%),
      linear-gradient(to bottom, transparent 70%, var(--space) 100%);
  }
}

/* ---------- Общие для разделов ---------- */
main > section { position: relative; padding-block: var(--section-y); }
.bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }

.bg:not(.stub)::after { /* страховка контраста: фон из пака чуть притушен под текстом */
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--space) 35%, transparent);
}

.section-head { display: grid; gap: .9rem; max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 250; line-height: 1.05; letter-spacing: -.01em; }
.section-head p { font-size: var(--step-1); font-weight: 300; color: var(--text-soft); line-height: 1.45; }

/* ---------- Объекты для параллакса ---------- */
.obj {
  position: absolute; z-index: 2; pointer-events: none;
  width: clamp(110px, 13vw, 210px); aspect-ratio: 1; max-width: 100%;
  will-change: transform;
}
.obj img { width: 100%; height: 100%; object-fit: contain; }
.manifesto [data-asset="obj-sphere"] { right: 7%; top: 14%; }
.manifesto [data-asset="obj-feather"] { left: 5%; bottom: 10%; width: clamp(80px, 9vw, 150px); }
.words [data-asset="obj-cloche"] { right: 8%; top: 5%; }
.words [data-asset="obj-spoon"] { left: 2%; bottom: 1rem; width: clamp(90px, 9vw, 140px); }
.how [data-asset="obj-bowl"] { right: 6%; top: 10%; }
@media (max-width: 719px) { .obj { display: none; } }

/* ---------- Манифест ---------- */
.manifesto { padding-block: calc(var(--section-y) * 1.2); }
.manifesto-lines {
  display: grid; gap: .35em; max-width: 68rem;
  font-family: var(--font-display); font-size: var(--step-manifesto); font-weight: 250; line-height: 1.3;
}
.manifesto-lines span { transition: opacity 1.4s var(--ease), color 1.4s var(--ease), text-shadow 1.4s; }
.js:not(.reduced) .manifesto-lines span { opacity: .4; }
.js:not(.reduced) .manifesto.is-lit .manifesto-lines span { opacity: 1; }
.manifesto.is-lit .manifesto-lines span:nth-child(2) { transition-delay: .5s; }
.manifesto.is-lit .manifesto-lines span:nth-child(3) { transition-delay: 1s; }
.manifesto.is-lit .manifesto-lines span:nth-child(4) { transition-delay: 1.5s; color: var(--ice); text-shadow: 0 0 30px var(--glow); }
.reduced .manifesto-lines span:nth-child(4), .manifesto-lines span:nth-child(4) { color: var(--ice); }

/* ---------- Полоса Млечного Пути ---------- */
.band {
  position: relative; z-index: 0; height: clamp(90px, 12.5vw, 230px);
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

/* ---------- Путь ---------- */
.meter {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + .25rem); z-index: 4;
  display: flex; justify-content: center; gap: clamp(.9rem, 3vw, 2.4rem);
  width: fit-content; max-width: 100%; margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: .6rem 1.2rem;
  background: color-mix(in srgb, var(--space) 70%, transparent);
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.meter-item {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint); opacity: .45;
  transition: color .8s var(--ease), opacity .8s var(--ease), filter .8s;
}
.meter-item .icon { width: 1.5rem; height: 1.5rem; }
.meter-item.on { color: var(--ice); opacity: 1; filter: drop-shadow(0 0 6px var(--cobalt)); }
.meter.all .meter-item { color: var(--star); }
@media (max-width: 559px) { .meter-item > span { display: none; } }

.route {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; gap: clamp(4.5rem, 10vw, 8.5rem);
}
.route::before { /* линия маршрута из точек */
  content: ""; position: absolute; top: 0; bottom: 0; left: 1rem; width: 6px; translate: -50% 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--ice) 65%, transparent) 0 1px, transparent 1.6px) center top / 6px 16px repeat-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
}
.station {
  position: relative; display: grid; gap: 1.6rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  grid-template-areas: "node media" ". text";
}
.station-node {
  grid-area: node; justify-self: center; align-self: start; margin-top: 1.2rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--space); border: 1px solid var(--ice);
  transition: background .8s, box-shadow .8s;
}
.station.is-lit .station-node { background: var(--ice); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cobalt) 25%, transparent), 0 0 18px 4px var(--glow); }
.station-media {
  grid-area: media; position: relative; overflow: hidden;
  width: 100%; max-width: 27rem; aspect-ratio: 4 / 5;
  border-radius: 3px; outline: 1px solid var(--line); outline-offset: -1px;
  box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--royal) 70%, transparent);
  transition: filter 1.2s var(--ease);
}
.js:not(.reduced) .station:not(.is-lit) .station-media { filter: saturate(.55) brightness(.7); }
.station-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.station-text { grid-area: text; display: grid; gap: .8rem; align-content: center; max-width: 31rem; min-width: 0; }
.station-meta { display: flex; align-items: center; gap: .7rem; font-size: var(--step--1); letter-spacing: .22em; text-transform: uppercase; color: var(--ice); }
.station-no { font-family: var(--font-display); font-weight: 300; letter-spacing: .08em; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.station-text h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 250; line-height: 1.1; }
.station-text p:not(.station-meta) { color: var(--text-soft); }
.station-finale .station-meta { color: var(--star); }

@media (min-width: 900px) {
  .route::before { left: 50%; }
  .station {
    grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr);
    grid-template-areas: "media node text";
    align-items: center; gap: 0;
  }
  .station-node { align-self: center; margin-top: 0; }
  .station-media { justify-self: end; }
  .station:nth-child(even) { grid-template-areas: "text node media"; }
  .station:nth-child(even) .station-media { justify-self: start; }
  .station:nth-child(even) .station-text { justify-self: end; }
}

/* ---------- Аромат и вкус ---------- */
.words-grid { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
@media (min-width: 900px) {
  .words-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .menu { padding-left: clamp(2rem, 4vw, 4rem); border-left: 1px dotted var(--line); }
}
.words article { display: grid; gap: 1.2rem; min-width: 0; }
.kicker { display: flex; align-items: center; gap: .6rem; }
.words h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 250; line-height: 1.15; }
.note { font-style: italic; font-weight: 300; color: var(--text-soft); max-width: 34rem; }

.pyramid { margin: .6rem 0 .4rem; display: grid; justify-items: center; gap: 1.3rem; text-align: center; }
.tier { display: grid; gap: .35rem; justify-items: center; padding-top: 1.1rem; position: relative; }
.tier::before { /* ряд точек: 3, 5, 7 — пирамида из звёзд */
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; height: 6px;
  background: radial-gradient(circle, var(--ice) 0 1.5px, transparent 2.2px) center / 18px 6px repeat-x;
  filter: drop-shadow(0 0 4px var(--cobalt));
}
.tier-top::before { width: 54px; }
.tier-heart::before { width: 90px; }
.tier-base::before { width: 126px; }
.tier dt { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ice); }
.tier dd { margin: 0; font-size: var(--step-1); font-style: italic; font-weight: 300; }
.tier-top dd { font-size: var(--step-0); }
.tier-base dd { font-size: calc(var(--step-1) * 1.08); }

.courses { list-style: none; margin: 0; padding: 0; display: grid; }
.courses li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding-block: 1rem; border-top: 1px dotted var(--line);
}
.courses li:last-child { border-bottom: 1px dotted var(--line); }
.course-no { font-family: var(--font-display); font-weight: 300; font-size: var(--step--1); color: var(--text-faint); letter-spacing: .08em; }
.courses h4 { display: flex; align-items: center; gap: .7rem; font-size: var(--step-1); font-weight: 400; line-height: 1.3; }
.courses p { color: var(--text-soft); }
.tea { /* синий чай, который становится фиолетовым */
  width: .8rem; height: .8rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--star), transparent 40%), var(--cobalt);
  box-shadow: 0 0 12px var(--cobalt);
  animation: tea 7s ease-in-out infinite alternate;
}
@keyframes tea { 0%, 35% { background-color: var(--cobalt); box-shadow: 0 0 12px var(--cobalt); } 65%, 100% { background-color: var(--violet); box-shadow: 0 0 14px var(--violet); } }

/* ---------- Как это устроено ---------- */
.facts { margin: 0; display: grid; }
.facts > div {
  display: grid; gap: .4rem; padding-block: 1.4rem;
  border-top: 1px dotted var(--line);
}
.facts > div:last-child { border-bottom: 1px dotted var(--line); }
.facts dt { font-family: var(--font-display); font-weight: 300; font-size: var(--step-1); line-height: 1.25; }
.facts dd { margin: 0; color: var(--text-soft); max-width: 40rem; }
@media (min-width: 900px) {
  .facts { max-width: 62rem; }
  .facts > div { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem; align-items: baseline; }
}

/* ---------- Забота ---------- */
.care-feature {
  display: grid; gap: 1.8rem; align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem); max-width: 56rem;
}
.care-feature h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 250; line-height: 1.15; margin-bottom: .8rem; }
.care-feature p { color: var(--text-soft); max-width: 36rem; }
.token { position: relative; width: clamp(120px, 22vw, 180px); aspect-ratio: 1; max-width: 100%; }
.token img { width: 100%; height: 100%; object-fit: contain; }
.token-key { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.1rem; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.key { width: .8rem; height: .8rem; border-radius: 50%; margin-right: -.4rem; }
.key-blue { background: var(--royal); box-shadow: 0 0 10px var(--cobalt); }
.key-clear { background: color-mix(in srgb, var(--star) 15%, transparent); border: 1px solid var(--ice); }
@media (min-width: 720px) { .care-feature { grid-template-columns: auto minmax(0, 1fr); gap: 3rem; } }

.care-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem 3rem; }
.care-list li { display: grid; gap: .5rem; align-content: start; padding-top: 1.2rem; border-top: 1px dotted var(--line); min-width: 0; }
.care-list h3 { display: flex; align-items: center; gap: .6rem; font-size: var(--step-0); font-weight: 450; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.care-list h3::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--cobalt); }
.care-list p { color: var(--text-soft); }
@media (min-width: 640px) { .care-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .care-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Вопросы ---------- */
.faq-list { max-width: 50rem; border-bottom: 1px dotted var(--line); }
.faq details { border-top: 1px dotted var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 3rem 1.25rem 0; font-size: var(--step-1); font-weight: 350; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { /* плюс из света, в открытом виде — крест */
  content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px; translate: 0 -50%;
  background:
    linear-gradient(var(--ice), var(--ice)) center / 14px 1px no-repeat,
    linear-gradient(var(--ice), var(--ice)) center / 1px 14px no-repeat;
  transition: rotate .4s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--ice); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--text-soft); max-width: 42rem; }

/* ---------- Приглашение ---------- */
.invite { overflow: hidden; }
.invite-inner { display: grid; gap: 3rem; align-items: center; }
.invite-text { display: grid; gap: 1.2rem; justify-items: start; max-width: 34rem; }
.invite h2 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 250; line-height: 1.05; }
.invite p { font-size: var(--step-1); font-weight: 300; color: var(--text-soft); margin-bottom: .8rem; }
.rings { width: min(100%, 26rem); justify-self: center; overflow: visible; }
.ring { fill: none; stroke-linecap: round; stroke-dasharray: 0 1; transform-box: fill-box; transform-origin: center; }
.ring-1 { stroke: var(--royal); stroke-width: 3; animation: spin 220s linear infinite; }
.ring-2 { stroke: var(--cobalt); stroke-width: 2.8; animation: spin 160s linear infinite reverse; }
.ring-3 { stroke: var(--ice); stroke-width: 2.4; animation: spin 120s linear infinite; }
.ring-4 { stroke: var(--star); stroke-width: 2; animation: spin 90s linear infinite reverse; }
.ring-core { fill: var(--star); filter: drop-shadow(0 0 6px var(--cobalt)); }
@keyframes spin { to { rotate: 360deg; } }
@media (min-width: 900px) { .invite-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Подвал ---------- */
.foot { position: relative; padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); border-top: 1px dotted var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; font-size: var(--step--1); color: var(--text-faint); }
.foot-name { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; color: var(--text-soft); }
.foot .wordmark { color: var(--star); }

/* ---------- Заглушки: градиенты палитры, те же id и стороны, что у пака ediot ---------- */
.stub { background-color: var(--midnight); }
.is-stub .stub::after {
  content: attr(data-stub-label); position: absolute; right: 10px; bottom: 8px; z-index: 1;
  font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ice) 70%, transparent); pointer-events: none;
}
.is-stub .bg.stub::after { bottom: 1.2rem; right: max(16px, env(safe-area-inset-right, 0px)); }
.is-stub .band.stub::after { bottom: auto; top: 8px; }
.is-stub .hero-media.stub::after { bottom: 5rem; }

.stub[data-asset="hero"] {
  background:
    radial-gradient(circle at 68% 47%, transparent 0 7.5%, color-mix(in srgb, var(--ice) 75%, transparent) 8%, color-mix(in srgb, var(--cobalt) 40%, transparent) 9.5%, transparent 14%),
    radial-gradient(circle at 68% 47%, var(--space) 0 7.6%, transparent 8%),
    radial-gradient(circle, color-mix(in srgb, var(--ice) 55%, transparent) 0 1px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(ellipse 55% 75% at 68% 47%, color-mix(in srgb, var(--cobalt) 55%, transparent), color-mix(in srgb, var(--midnight) 80%, transparent) 50%, var(--space) 85%),
    var(--space);
}
@media (orientation: portrait) {
  .stub[data-asset="hero"] {
    background:
      radial-gradient(circle at 50% 76%, transparent 0 9%, color-mix(in srgb, var(--ice) 75%, transparent) 9.6%, color-mix(in srgb, var(--cobalt) 40%, transparent) 11.5%, transparent 17%),
      radial-gradient(circle at 50% 76%, var(--space) 0 9.2%, transparent 9.6%),
      radial-gradient(circle, color-mix(in srgb, var(--ice) 55%, transparent) 0 1px, transparent 1.6px) 0 0 / 20px 20px,
      radial-gradient(ellipse 90% 55% at 50% 76%, color-mix(in srgb, var(--cobalt) 55%, transparent), color-mix(in srgb, var(--midnight) 80%, transparent) 50%, var(--space) 85%),
      var(--space);
  }
}
.stub[data-asset="portal"] {
  background:
    radial-gradient(circle at 50% 42%, transparent 0 16%, color-mix(in srgb, var(--ice) 80%, transparent) 17%, color-mix(in srgb, var(--cobalt) 45%, transparent) 20%, transparent 27%),
    linear-gradient(90deg, var(--space) 0 12%, transparent 30% 70%, var(--space) 88%),
    radial-gradient(ellipse 70% 60% at 50% 42%, color-mix(in srgb, var(--royal) 60%, transparent), var(--space) 75%),
    var(--space);
}
.stub[data-asset="sight"] {
  background:
    radial-gradient(ellipse 70% 60% at 50% 52%, transparent 20%, var(--space) 85%),
    radial-gradient(circle, color-mix(in srgb, var(--ice) 85%, transparent) 0 1.2px, transparent 2px) center / 15px 15px,
    radial-gradient(circle, color-mix(in srgb, var(--cobalt) 80%, transparent) 0 .9px, transparent 1.5px) 7px 7px / 15px 15px,
    linear-gradient(var(--midnight), var(--space));
}
.stub[data-asset="hearing"] {
  background:
    repeating-radial-gradient(circle at 50% 105%, color-mix(in srgb, var(--ice) 22%, transparent) 0 1px, transparent 2px 24px),
    radial-gradient(ellipse 100% 60% at 50% 0%, color-mix(in srgb, var(--cobalt) 45%, transparent), transparent 70%),
    linear-gradient(var(--midnight), var(--space) 80%);
}
.stub[data-asset="touch"] {
  background:
    radial-gradient(ellipse 2.5% 7% at 55% 30%, var(--star), transparent),
    repeating-radial-gradient(ellipse 100% 34% at 50% 74%, color-mix(in srgb, var(--ice) 30%, transparent) 0 1px, transparent 2px 16px),
    linear-gradient(transparent 55%, color-mix(in srgb, var(--royal) 25%, transparent) 75%, var(--space)),
    linear-gradient(var(--space), var(--midnight) 60%, var(--space));
}
.stub[data-asset="smell"] {
  background:
    radial-gradient(ellipse 11% 15% at 24% 58%, color-mix(in srgb, var(--cobalt) 60%, transparent), transparent 70%),
    radial-gradient(ellipse 13% 18% at 50% 53%, color-mix(in srgb, var(--ice) 55%, transparent), transparent 70%),
    radial-gradient(ellipse 11% 15% at 76% 58%, color-mix(in srgb, var(--cobalt) 60%, transparent), transparent 70%),
    linear-gradient(transparent 71.5%, color-mix(in srgb, var(--ice) 35%, transparent) 72%, transparent 72.6%),
    linear-gradient(var(--space), var(--midnight) 70%, var(--space));
}
.stub[data-asset="taste"] {
  background:
    radial-gradient(ellipse 16% 9% at 60% 62%, color-mix(in srgb, var(--violet) 70%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 12% at 42% 63%, color-mix(in srgb, var(--cobalt) 55%, transparent), transparent 70%),
    linear-gradient(transparent 58%, color-mix(in srgb, var(--royal) 35%, transparent) 58.5%, color-mix(in srgb, var(--midnight) 90%, transparent)),
    radial-gradient(circle, color-mix(in srgb, var(--ice) 60%, transparent) 0 1px, transparent 1.6px) 0 0 / 19px 23px,
    var(--space);
}
.stub[data-asset="finale"] {
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--cobalt) 45%, transparent), transparent 55%),
    radial-gradient(circle, var(--star) 0 1.6px, transparent 2.4px) 0 0 / 46px 40px,
    radial-gradient(circle, color-mix(in srgb, var(--ice) 60%, transparent) 0 1px, transparent 1.6px) 11px 7px / 23px 29px,
    var(--space);
}
.stub[data-asset^="bg-"] {
  background:
    radial-gradient(ellipse 60% 45% at 25% 40%, color-mix(in srgb, var(--midnight) 85%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 78% 65%, color-mix(in srgb, var(--royal) 18%, transparent), transparent 70%),
    var(--space);
}
.stub[data-asset="bg-2"] { background-position: 30% 0; }
.stub[data-asset="band"] {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--star) 70%, transparent) 0 1px, transparent 1.5px) 0 0 / 13px 9px,
    radial-gradient(ellipse 60% 22% at 50% 50%, color-mix(in srgb, var(--ice) 45%, transparent), transparent 70%),
    radial-gradient(ellipse 85% 45% at 50% 50%, color-mix(in srgb, var(--cobalt) 40%, transparent), transparent 70%),
    var(--space);
}
.stub[data-asset^="obj-"] {
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--star) 60%, transparent), color-mix(in srgb, var(--cobalt) 40%, transparent) 30%, transparent 64%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ice) 18%, transparent);
}
.stub[data-asset="obj-token"] {
  border-radius: 0;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: radial-gradient(circle at 42% 38%, var(--star), var(--cobalt) 30%, var(--royal) 60%, var(--midnight));
}
.stub[data-asset^="obj-"]::after { display: none; }

/* ---------- Уменьшенное движение: только постеры, поле звёзд стоит ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.reduced *, .reduced *::before, .reduced *::after { animation: none !important; }
