/* ═══════════════════════════════════════════════════════════════════
   Sacred Realms — landing styles
   Tokens per knowledge/design-systems/*; motion identity per PLAN.md §2:
   radial · ascending · breathing.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* colour — tinted near-black ground, hover accent used nowhere else */
  --ground:        #0E0A18;
  --ground-raised: #1A1430;
  --surface:       rgb(255 255 255 / .06);
  --line:          rgb(227 179 76 / .22);
  --text:          #F2E9D8;
  --text-strong:   #FFFFFF;
  --text-dim:      rgb(242 233 216 / .72);
  --accent:        #E3B34C;
  --accent-bright: #FFD35C;      /* CTA fill only — the brightest element on the page */
  --accent-deep:   #9C6F2E;
  --interaction:   #E0492F;      /* hover/focus only — appears nowhere else */

  /* realm accents */
  --realm-shore:  #E8A0BF;
  --realm-temple: #E3B34C;
  --realm-court:  #7B5BC7;

  /* type */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body:    'Mulish', 'Helvetica Neue', Arial, sans-serif;
  --text-2xs: .625rem; --text-xs: .75rem; --text-sm: .875rem;
  --text-base: 1rem;   --text-lg: 1.125rem; --text-xl: 1.5rem;
  --text-2xl: 2.25rem; --text-3xl: 3rem;

  /* motion — measured tokens + this theme's additions */
  --dur-instant: 120ms; --dur-fast: 200ms; --dur-base: 300ms;
  --dur-slow: 500ms;    --dur-slower: 700ms; --dur-entrance: 900ms;
  --dur-iris: 900ms;    --dur-gild: 1100ms;  --dur-breath: 4s;
  --rot-ambient: 120s;
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --ease-in-out:   cubic-bezier(.65, 0, .35, 1);
  --ease-quart:    cubic-bezier(.76, 0, .24, 1);

  /* space / radius / elevation */
  --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-6: 1.5rem;
  --sp-8: 2rem;  --sp-12: 3rem;  --sp-16: 4rem; --sp-24: 6rem;
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 9999px;
  --shadow-md: 0 10px 30px -10px rgb(0 0 0 / .55);
  --shadow-lg: 0 25px 70px rgb(0 0 0 / .8);
  --glow: 0 0 20px transparent;

  /* z-scale */
  --z-content: 1; --z-atmosphere: 5; --z-nav: 60;
  --z-branding: 300; --z-frame: 490; --z-modal: 1000;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: .01ms; --dur-fast: .01ms; --dur-base: .01ms;
    --dur-slow: .01ms; --dur-slower: .01ms; --dur-entrance: .01ms;
    --dur-iris: .01ms; --dur-gild: .01ms;
  }
}

/* ── base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100%; left: 50%; translate: -50% 0;
  z-index: calc(var(--z-modal) + 10);
  padding: .6rem 1.2rem; background: var(--accent); color: #1a1205;
  border-radius: 0 0 var(--r-sm) var(--r-sm); text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible { top: 0; }

.blend-screen { mix-blend-mode: screen; }

.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-size: clamp(2rem, 5vw, var(--text-3xl));
  letter-spacing: .02em;
  text-wrap: balance;
}

/* gilding — liquid-gold sweep through letterforms (this theme's text reveal) */
.gild {
  background: linear-gradient(100deg,
      #8a6428 0%, var(--accent) 32%, #f8e3ae 50%, var(--accent) 68%, #8a6428 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);                    /* fallback if clip unsupported */
}
.js .gild[data-gild] { background-position: 100% 0; }
.js .gild[data-gild].gild--on {
  transition: background-position var(--dur-gild) var(--ease-out);
  background-position: 0% 0;
}

/* CTA — pill, fill inversion + vermillion aura bloom on hover */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block;
  padding: .85rem 2.2rem;
  border: 1px solid var(--accent-bright);
  border-radius: var(--r-pill);
  background: var(--accent-bright);
  color: #2A1B04;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: background-color var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
/* polished-metal sheen; a separate layer so the hover fill inversion can still
   animate background-color smoothly (a gradient background would snap) */
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* z-index -1 inside the isolated context: above the fill, below the label —
     an absolutely-positioned pseudo would otherwise paint over a bare text node */
  z-index: -1;
  background: linear-gradient(177deg, rgb(255 255 255 / .38) 0%, rgb(255 255 255 / 0) 55%);
  transition: opacity var(--dur-base) var(--ease-standard);
}
.cta:hover, .cta:focus-visible {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--interaction);
  box-shadow: 0 0 24px rgb(224 73 47 / .45);
}
.cta:hover::before, .cta:focus-visible::before { opacity: 0; }
.cta--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.cta--outline::before { content: none; }
.cta--outline:hover, .cta--outline:focus-visible { color: var(--text-strong); }
@media (hover: none) {
  .cta:active { background: transparent; color: var(--text-strong); border-color: var(--interaction); }
}

/* breathing halo — the site's ambient pulse (4s inhale/exhale) */
@keyframes breath {
  0%, 100% { box-shadow: 0 0 18px rgb(255 211 92 / .30); }
  50%      { box-shadow: 0 0 38px rgb(255 211 92 / .62); }
}
.js .hero__cta { animation: breath var(--dur-breath) var(--ease-in-out) infinite; }

/* ── preloader — mandala iris ─────────────────────────────────────── */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: calc(var(--z-modal) + 100);
  display: grid; place-items: center;
  background: var(--ground);
  --iris: 0px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 2px));
          mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 2px));
}
.js .preloader[hidden] { display: none; }
.preloader__inner { display: grid; place-items: center; gap: var(--sp-6); }
.preloader__mandala {
  width: min(52vmin, 420px); height: auto;
  opacity: .9;
}
@keyframes slow-spin { to { rotate: 360deg; } }
.js .preloader__mandala { animation: slow-spin 60s linear infinite; }
.preloader__word {
  font-family: var(--font-display);
  letter-spacing: .5em; text-indent: .5em;
  font-size: var(--text-sm); color: var(--accent);
  opacity: .85;
}

/* ── site frame — hairline, pointer-events none ───────────────────── */
.site-frame {
  position: fixed; inset: 18px; z-index: var(--z-frame);
  pointer-events: none;
  border: 1px solid rgb(227 179 76 / .16);
  border-radius: 3px;
}
@media (max-width: 767px) { .site-frame { inset: 10px; } }

/* ── header cluster ───────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-branding);
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-4) var(--sp-6);
  pointer-events: none;               /* children restore it */
}
.site-header > * { pointer-events: auto; }
.site-header__brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.site-header__brand img { width: 44px; height: 44px; }
.site-header__brandname {
  font-family: var(--font-display);
  font-size: var(--text-base); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text);
}
.icon-cluster { display: flex; gap: 10px; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .14);
  color: var(--text);
  box-shadow: var(--glow);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.icon-btn:hover, .icon-btn:focus-visible {
  transform: scale(1.12);
  border-color: var(--interaction);
  box-shadow: 0 0 18px rgb(224 73 47 / .4);
}
@media (hover: none) { .icon-btn:active { transform: scale(1.12); } }
.icon-btn--menu { background: var(--accent); color: #201505; border-color: var(--accent); }
.burger { display: grid; gap: 4px; }
.burger i {
  width: 18px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform var(--dur-base) var(--ease-in-out), opacity var(--dur-base);
}
[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── fullscreen nav overlay ───────────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0; z-index: calc(var(--z-branding) - 5);
  display: grid; place-content: center; gap: var(--sp-8);
  background: var(--ground-raised);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path var(--dur-slow) var(--ease-quart),
              visibility 0s linear var(--dur-slow);
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-overlay[data-open="true"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition-delay: 0s, 0s;
}
.nav-overlay ul { display: grid; gap: var(--sp-4); text-align: center; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--text);
  opacity: 0; transform: translateY(30px);
  display: inline-block;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out),
              color var(--dur-base) var(--ease-standard);
}
.nav-overlay[data-open="true"] a {
  opacity: 1; transform: none;
  transition-delay: calc(200ms + var(--i) * 60ms), calc(200ms + var(--i) * 60ms), 0s;
}
.nav-overlay a:hover, .nav-overlay a:focus-visible { color: var(--interaction); }
.nav-overlay__foot {
  text-align: center; font-size: var(--text-xs);
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim);
}

/* ── hero — Radiant Awakening ─────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: clip;
  background: var(--ground);
}
.hero__bg, .hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  z-index: 0;
}
.hero__bg img { filter: saturate(1.14) contrast(1.07); }
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 62% 50% at 50% 44%,
              rgb(227 179 76 / .36) 0%, rgb(227 179 76 / .11) 45%, transparent 72%);
  opacity: 0;
}
.js .hero__glow { opacity: 0; }
.no-js .hero__glow, html:not(.js) .hero__glow { opacity: 1; }
.hero__fx {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen; pointer-events: none;
  opacity: .7;
}
.hero__garland {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  width: 100%; pointer-events: none;
  opacity: .9;
}
.hero__mandala {
  position: absolute; z-index: 3; pointer-events: none;
  width: min(78vmin, 720px); height: auto;
  left: 50%; top: 46%;
  translate: -50% -50%;
  opacity: .14;
}
.js .hero__mandala { animation: slow-spin var(--rot-ambient) linear infinite; }
/* three stops, not two — a two-stop scrim shows a visible band edge */
.hero__scrim {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(to top, rgb(14 10 24 / .72) 0%, rgb(14 10 24 / .24) 24%, transparent 46%),
    linear-gradient(to bottom, rgb(14 10 24 / .38) 0%, transparent 15%);
}
.hero__lockup {
  /* must sit above the scrim (z4) and the atmosphere layers, or they paint over
     the CTA and dim it. Safe to make a stacking context: the wordmark carries a
     real alpha channel and no longer relies on mix-blend-mode. */
  position: relative; z-index: 6;
  display: grid; justify-items: center; gap: var(--sp-6);
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  margin-top: 12svh;
}
/* local scrim: legibility is a property of the lockup, not of the photograph */
.hero__lockup::before {
  content: ''; position: absolute; inset: -16% -20%;
  pointer-events: none;
  background: radial-gradient(ellipse 56% 50% at 50% 42%,
      rgb(14 10 24 / .42) 0%, rgb(14 10 24 / .2) 55%, transparent 78%);
}
.hero__lockup > * { position: relative; }
.hero__mark { line-height: 0; }
.hero__mark img {
  width: min(88vw, 860px); height: auto;
  filter: drop-shadow(0 3px 22px rgb(6 4 12 / .85)) drop-shadow(0 1px 4px rgb(6 4 12 / .9));
}
.hero__context {
  font-size: clamp(.8rem, 1.4vw, 1rem);
  text-transform: uppercase; letter-spacing: .3em; text-indent: .3em;
  color: var(--text);
}
.hero__lotus {
  position: absolute; bottom: -3%; z-index: 5; pointer-events: none;
  width: min(38vw, 520px);
}
.hero__lotus--left { left: -4%; }
/* purpose-composed right-corner cluster — not a mirror of the left one */
.hero__lotus--right { right: -4%; width: min(40vw, 560px); }
.hero__cue {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 6;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%;
}
.hero__cue span {
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  rotate: 45deg;
}
@keyframes cue-breath {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(7px); opacity: 1; }
}
.js .hero__cue span { animation: cue-breath var(--dur-breath) var(--ease-in-out) infinite; }

/* ── ascension — sticky rise ──────────────────────────────────────── */
.ascension { position: relative; }
.ascension__track {
  position: absolute; inset: 0 auto 0 0; left: clamp(14px, 3vw, 40px);
  width: 2px; z-index: 12; pointer-events: none;
  background: rgb(227 179 76 / .12);
}
.ascension__track i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to top, var(--accent), rgb(227 179 76 / .3));
  transform-origin: bottom;
  transform: scaleY(var(--ascent, 0));
}
@media (max-width: 767px) { .ascension__track { display: none; } }

.beat {
  position: sticky; top: 0;
  min-height: 100svh;
  display: grid; align-items: center;
  overflow: clip;
  isolation: isolate;
  background: var(--ground);
}
.beat--shore  { z-index: 1; }
.beat--temple { z-index: 2; }
.beat--court  { z-index: 3; }
.beat--light  { z-index: 4; }
.beat__bg, .beat__bg img, .beat__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.beat__cloud {
  position: absolute; top: -8%; left: -5%; width: 110%; max-width: none;
  z-index: 5; pointer-events: none; mix-blend-mode: screen;
}
@media (max-width: 767px) { .beat__cloud { display: none; } }
.beat__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
      rgb(14 10 24 / .86) 0%, rgb(14 10 24 / .4) 34%, rgb(14 10 24 / .06) 62%, transparent 80%);
}
.beat__scrim--light {
  background: linear-gradient(to top, rgb(14 10 24 / .82) 0%, rgb(14 10 24 / .3) 45%, transparent 75%);
}
.beat__content {
  position: relative; z-index: 6;
  max-width: 34rem;
  padding: var(--sp-16) clamp(var(--sp-6), 8vw, var(--sp-24));
  padding-bottom: clamp(var(--sp-12), 14svh, var(--sp-24));
  align-self: end;
}
.beat__content--center {
  max-width: 40rem; margin-inline: auto; text-align: center;
  align-self: center; padding-bottom: var(--sp-16);
  display: grid; justify-items: center; gap: var(--sp-6);
}
.beat__eyebrow {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: .3em; color: var(--accent);
  margin-bottom: var(--sp-3);
}
.beat__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: var(--sp-4);
}
.beat__copy { color: var(--text); max-width: 44ch; }
/* guardians sit at beat level, not inside .beat__content, whose stacking
   context would clip them. They carry real alpha now, so no mask or blend
   mode is needed — they composite directly against the plate. */
.beat__guardian {
  position: absolute; z-index: 2;
  right: clamp(2rem, 12vw, 12rem); bottom: 0;
  width: clamp(260px, 30vw, 470px);
  filter: drop-shadow(0 18px 50px rgb(14 10 24 / .55));
}
@media (max-width: 900px) {
  .beat { align-content: end; align-items: initial; }
  .beat--light { align-content: center; }
  .beat__guardian {
    position: static; order: -1;
    width: min(58vw, 320px);
    margin: 0 auto calc(-1 * var(--sp-12));
  }
}

/* beat entrance — radial iris on the guardian, gild on the title */
.js .beat__content > * { transition: opacity var(--dur-entrance) var(--ease-out), transform var(--dur-entrance) var(--ease-out); }
.js .beat:not(.in-view) .beat__eyebrow,
.js .beat:not(.in-view) .beat__copy,
.js .beat:not(.in-view) .cta { opacity: 0; transform: translateY(28px); }
.js .beat__guardian {
  transition: clip-path var(--dur-iris) var(--ease-out), opacity var(--dur-iris) var(--ease-out);
  clip-path: circle(75% at 50% 50%);
}
.js .beat:not(.in-view) .beat__guardian { clip-path: circle(0% at 50% 50%); opacity: 0; }

/* ── collection — four costumes, sized to fit one viewport ─────────── */
.collection {
  position: relative; isolation: isolate; overflow: clip;
  min-block-size: 100svh;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--sp-6);
  display: grid; align-content: center; justify-items: center;
  gap: clamp(1.25rem, 3.5vh, 2.5rem);
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgb(227 179 76 / .07), transparent 70%),
    var(--ground);
}
.collection__mandala {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  z-index: -1; pointer-events: none;
  inline-size: min(70vmin, 640px); block-size: auto;
  opacity: .07;
}
.js .collection__mandala { animation: slow-spin var(--rot-ambient) linear infinite; }
.collection__head { text-align: center; max-inline-size: 42rem; }
.collection__sub { color: var(--text-dim); font-size: var(--text-sm); margin-top: var(--sp-3); }

/* The row is capped by BOTH axes: by the container width, and by a width derived
   from the tallest card the viewport height allows (0.693 = the render's native
   aspect). Whichever is smaller wins, so the grid never overflows either way. */
.costume-grid {
  --gap: clamp(.5rem, 1.2vw, 1.25rem);
  --card-h: min(48svh, 460px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  inline-size: min(100%, 1240px, calc(var(--card-h) * 0.693 * 4 + var(--gap) * 3));
}
.costume-card { min-inline-size: 0; }
.costume-card__btn {
  position: relative; display: block; inline-size: 100%;
  padding: 0; border-radius: var(--r-md);
  overflow: clip; isolation: isolate;
  border: 1px solid var(--line);
  background: var(--ground-raised);
  box-shadow: var(--shadow-md), var(--glow);
  transition: transform var(--dur-slow) var(--ease-standard),
              box-shadow var(--dur-slow) var(--ease-standard),
              border-color var(--dur-slow) var(--ease-standard);
}
.costume-card__btn img {
  inline-size: 100%; block-size: auto;
  aspect-ratio: 1664 / 2400;
  object-fit: cover; object-position: center top;
}
.costume-card__btn::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(14 10 24 / .88) 0%, rgb(14 10 24 / .34) 24%, transparent 48%);
}
.costume-card__label {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: grid; gap: 3px; padding: var(--sp-4) var(--sp-2);
  text-align: center;
}
.costume-card__label strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-strong);
}
.costume-card__label em {
  font-style: normal; font-size: var(--text-2xs);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--realm-accent, var(--accent));
}
.costume-card__btn:hover, .costume-card__btn:focus-visible {
  transform: translateY(-14px) scale(1.03);
  border-color: var(--interaction);
  box-shadow: var(--shadow-lg), 0 0 26px rgb(224 73 47 / .35);
}
@media (hover: none) { .costume-card__btn:active { transform: scale(.985); } }

/* two-up on phones — four cards in a row would be unreadably narrow */
@media (max-width: 700px) {
  .costume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inline-size: min(100%, 440px);
  }
}

/* ── alignment — countdown ────────────────────────────────────────── */
.alignment {
  position: relative; isolation: isolate; overflow: clip;
  padding: var(--sp-24) var(--sp-6);
  display: grid; justify-items: center; gap: var(--sp-3);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgb(43 34 96 / .5), transparent 75%),
    var(--ground);
}
.alignment__rings { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.alignment__rings i, .alignment__rings b {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  border-radius: 50%;
}
.alignment__rings i:nth-child(1) {
  width: min(72vmin, 560px); aspect-ratio: 1;
  border: 1px dashed rgb(227 179 76 / .28);
}
.alignment__rings i:nth-child(2) {
  width: min(94vmin, 760px); aspect-ratio: 1;
  border: 1px solid rgb(227 179 76 / .12);
}
.js .alignment__rings i:nth-child(1) { animation: slow-spin 90s linear infinite; }
.js .alignment__rings i:nth-child(2) { animation: slow-spin 140s linear infinite reverse; }
.alignment__rings b {
  width: 8px; aspect-ratio: 1; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  translate: -50% calc(-50% - min(36vmin, 280px));
}
.js .alignment__rings b {
  transform-origin: 50% calc(50% + min(36vmin, 280px));
  animation: slow-spin 90s linear infinite;
}
.alignment > * { position: relative; z-index: 1; }
.alignment__date { color: var(--text-dim); letter-spacing: .08em; margin-bottom: var(--sp-6); }
.countdown__row { display: flex; align-items: center; gap: .5rem; }
.unit { display: grid; justify-items: center; gap: .4rem; }
.unit__n {
  min-inline-size: 3.2ch;
  padding: .55rem .7rem;
  background: rgb(14 10 24 / .78);
  border: 1px solid rgb(227 179 76 / .35);
  border-radius: var(--r-sm);
  color: var(--accent);
  font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.unit__c { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .2em; color: var(--text-dim); }
.sep { color: var(--accent); font-weight: 700; }

/* ── offering ─────────────────────────────────────────────────────── */
.offering {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 88svh;
  display: grid; place-items: center;
}
.offering__bg, .offering__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.offering__fx {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
}
.offering__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 70% 65% at 50% 55%,
      rgb(14 10 24 / .82) 0%, rgb(14 10 24 / .55) 55%, rgb(14 10 24 / .3) 100%);
}
.offering__content {
  position: relative; z-index: 3;
  display: grid; justify-items: center; gap: var(--sp-6);
  text-align: center; max-width: 38rem;
  padding: var(--sp-24) var(--sp-6);
}
.offering__copy { color: var(--text); }

/* ── footer ───────────────────────────────────────────────────────── */
.site-footer {
  display: grid; justify-items: center; gap: var(--sp-6);
  padding: var(--sp-16) var(--sp-6) calc(var(--sp-16) + 10px);
  text-align: center;
  border-top: 1px solid rgb(227 179 76 / .14);
}
.site-footer__emblem { width: 52px; height: 52px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: center; }
.site-footer nav a {
  display: inline-block;
  padding: .85rem .25rem;
  font-size: var(--text-xs); letter-spacing: .25em; text-transform: uppercase;
  text-decoration: none; color: var(--text-dim);
  transition: color var(--dur-base) var(--ease-standard);
}
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--interaction); }
.site-footer__credit { color: var(--text-dim); font-size: var(--text-sm); }
.site-footer__legal { color: rgb(242 233 216 / .64); font-size: var(--text-xs); }

/* ── sanctum dialog ───────────────────────────────────────────────── */
.sanctum {
  border: 0; padding: 0; margin: auto;
  background: transparent;
  max-width: min(94vw, 1060px);
  width: 100%;
  max-height: 92svh;
  overflow: visible;
}
.sanctum::backdrop {
  background: rgb(8 6 14 / .9);
}
.js .sanctum[open]::backdrop { animation: s-fade var(--dur-base) var(--ease-out) both; }
@keyframes s-fade { from { opacity: 0; } }
.sanctum__panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: 0;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: clip;
  box-shadow: var(--shadow-lg);
  max-height: 92svh;
}
.js .sanctum[open] .sanctum__panel { animation: s-iris var(--dur-slow) var(--ease-out) both; }
@keyframes s-iris {
  from { clip-path: circle(4% at 50% 50%); opacity: .4; }
  to   { clip-path: circle(75%  at 50% 50%); opacity: 1; }
}
.sanctum__media { margin: 0; min-height: 0; }
.sanctum__media img { width: 100%; height: 100%; object-fit: cover; }
.sanctum__body {
  padding: clamp(var(--sp-6), 4vw, var(--sp-12));
  display: grid; gap: var(--sp-4); align-content: center;
  overflow-y: auto;
}
.sanctum__name { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: .08em; }
.sanctum__desc { color: var(--text); }
.sanctum__incl { display: grid; gap: .4rem; color: var(--text-dim); font-size: var(--text-sm); }
.sanctum__incl li::before { content: '◆ '; color: var(--accent); font-size: .6em; vertical-align: 2px; }
.sanctum__price { font-size: var(--text-xs); letter-spacing: .06em; color: var(--text-dim); }
.sanctum__close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.sanctum__nav { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-2); }
.sanctum__nav span { font-variant-numeric: tabular-nums; letter-spacing: .2em; color: var(--text-dim); }
@media (max-width: 820px) {
  .sanctum__panel { grid-template-columns: 1fr; overflow-y: auto; }
  .sanctum__media img { max-height: 46svh; }
}

/* ── responsive trims ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero__fx, .offering__fx { display: none; }   /* motion budget: no blend video on mobile */
  .hero__garland { opacity: .75; }
  .hero__mandala { width: 92vmin; }
  .hero__lotus { width: 62vw; bottom: -2%; }
  .hero__lotus--right { display: none; }
  .site-header { padding: var(--sp-3) var(--sp-4); }
  .site-header__brandname { display: none; }
  .beat__content { padding-inline: var(--sp-6); }
}

/* ── reduced motion: kill every loop; sticky stays (it is layout) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .preloader__mandala,
  .js .hero__mandala,
  .js .hero__cta,
  .js .hero__cue span,
  .js .alignment__rings i,
  .js .alignment__rings b { animation: none; }
  .hero__fx, .offering__fx, .beat__video { display: none; }
  .js .gild[data-gild] { background-position: 0% 0; transition: none; }
  .js .sanctum[open] .sanctum__panel,
  .js .sanctum[open]::backdrop { animation-duration: .01ms; }
}
