/* ── Lucida — base ─────────────────────────────────────────── */
:root {
  --navy: #0D1124;
  --navy-deep: #0A0E1E;
  --navy-mid: #10152A;
  --gold: #D6A94F;
  --gold-warm: #E3B96B;
  --gold-hover: #E0B65F;
  --cream: #E9E2D0;
  --cream-bright: #EFE9D8;
  --parchment: #F2EBDD;
  --sage: #5E7A6A;
  --sage-light: #8FAE9C;
  --sage-deep: #516B5D;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: 'Newsreader', serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }
::selection { background: rgba(214, 169, 79, .35); color: var(--cream-bright); }

@keyframes mdSettle { from { opacity: 0; transform: scale(.15); } to { opacity: 1; transform: scale(1); } }
@keyframes mdTwinkle { from { opacity: 1; } to { opacity: .3; } }
@keyframes mdDraw { to { stroke-dashoffset: 0; } }
@keyframes mdFade { to { opacity: 1; } }
@keyframes mdBreathe { 0%, 100% { transform: scale(1); opacity: .4; } 50% { transform: scale(1.08); opacity: .85; } }
@keyframes mdRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27240%27 height=%27240%27 filter=%27url(%23n)%27 opacity=%270.55%27/%3E%3C/svg%3E');
  background-size: 240px 240px;
}

/* JS-off: everything visible */
.no-js [data-reveal],
.no-js [data-fade] { opacity: 1 !important; transform: none !important; }
.no-js [data-draw] { stroke-dashoffset: 0 !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Shared primitives */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 44px); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 226, 208, .14), transparent);
}

.eyebrow {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--cream-bright);
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(239, 233, 216, .68);
  text-wrap: pretty;
}

[data-reveal] { opacity: 0; transform: translateY(30px); }

.stars { position: absolute; inset: 0; }
.stars span { position: absolute; border-radius: 50%; display: block; }

/* Reusable gold pill CTA */
.pill {
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(214, 169, 79, .24);
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 17.5px;
  color: var(--navy);
  transition: background .25s ease, box-shadow .25s ease;
}
.pill:hover { background: var(--gold-hover); box-shadow: 0 0 38px rgba(214, 169, 79, .4); color: var(--navy); }

.pill--ghost {
  background: transparent;
  border: 1px solid rgba(233, 226, 208, .28);
  box-shadow: none;
  color: var(--cream);
  font-size: 17px;
  padding: 0 26px;
}
.pill--ghost:hover { background: transparent; border-color: rgba(214, 169, 79, .6); color: var(--cream); box-shadow: none; }

/* Crescent moon mark (logo + reused dots) */
.crescent {
  border-radius: 50%;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  flex: none;
}
.crescent::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--bite, -65%);
  border-radius: 50%;
  background: var(--bite-bg, var(--navy));
  width: 100%;
  height: 100%;
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(9, 12, 25, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 226, 208, .09);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; gap: 11px; }
.crescent {
  display: inline-block;
  width: var(--size, 17px);
  height: var(--size, 17px);
}
.crescent--glow { box-shadow: 0 0 10px rgba(233, 226, 208, .4); border-radius: 50%; }
.nav__word {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .32em;
  color: var(--cream-bright);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  flex-wrap: wrap;
  justify-content: center;
}
.nav__links a {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(233, 226, 208, .72);
}
.nav__links a:hover { color: var(--cream); }
.nav__cta {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--gold);
  display: flex;
  align-items: center;
  flex: none;
  box-shadow: 0 0 22px rgba(214, 169, 79, .22);
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  transition: background .25s ease;
}
.nav__cta:hover { background: var(--gold-hover); color: var(--navy); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 17vh, 200px) 0 clamp(64px, 7vw, 104px);
  background: linear-gradient(180deg, #0A0E1E 0%, #0D1124 58%, #10152A 100%);
}
.hero__media { position: absolute; inset: 0; }
.hero__media video,
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__media.is-live video,
.hero__media img { opacity: .35; }
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 30, .55), rgba(13, 17, 36, .82));
}
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(70% 46% at 64% 12%, rgba(233, 226, 208, .06), transparent 70%);
}
.hero__constellation {
  position: absolute;
  top: 4%; right: -4%;
  width: min(52%, 680px);
  pointer-events: none;
  opacity: .55;
}
.hero__grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; max-width: 640px; }
.hero__eyebrow {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
}
.hero h1 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(52px, 6.2vw, 92px);
  line-height: 1.03;
  letter-spacing: -.015em;
  color: var(--cream-bright);
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero__sub {
  margin: 0;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 21.5px);
  line-height: 1.55;
  color: rgba(239, 233, 216, .72);
  max-width: 520px;
  text-wrap: pretty;
}
.hero__ctas {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__micro {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(233, 226, 208, .5);
}

/* Entrance stagger */
.rise { opacity: 0; animation: mdRise 1s ease forwards; }
.rise-1 { animation-delay: .1s; }
.rise-2 { animation-delay: .22s; }
.rise-3 { animation-delay: .34s; }
.rise-4 { animation-delay: .46s; }
.rise-5 { animation-delay: .58s; }
.hero__phone.rise { animation-duration: 1.2s; animation-delay: .4s; }

/* Waitlist form */
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.waitlist-form__input {
  height: 54px;
  padding: 0 22px;
  min-width: 240px;
  border-radius: 999px;
  border: 1px solid rgba(233, 226, 208, .45);
  background: rgba(13, 17, 36, .4);
  color: var(--cream);
  font-family: 'Newsreader', serif;
  font-size: 16.5px;
  transition: border-color .25s ease;
}
.waitlist-form__input::placeholder { color: rgba(233, 226, 208, .55); font-style: italic; }
.waitlist-form__input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.waitlist-form__input:focus { border-color: rgba(214, 169, 79, .6); }
.waitlist-form__status {
  flex-basis: 100%;
  margin: 0;
  min-height: 1.2em;
  font-style: italic;
  font-size: 14.5px;
  color: var(--gold-warm);
}

/* Hero phone column */
.hero__phone { position: relative; display: flex; justify-content: center; }
.hero__phone-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 560px; height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(214, 169, 79, .14) 0%, rgba(214, 169, 79, .04) 45%, transparent 70%);
  pointer-events: none;
}
.hero__float {
  width: 314px; height: 682px;
  position: relative;
  animation: mdFloat 9s ease-in-out infinite;
}
.phone-scale--hero {
  transform: scale(.8);
  transform-origin: top left;
  width: 393px; height: 852px;
}

/* ── iPhone frame (ported from ios-frame.jsx, static) ──────── */
.iphone {
  width: 393px; height: 852px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .12);
  font-family: -apple-system, system-ui, sans-serif;
}
.iphone__island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 126px; height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.iphone__status {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 21px 24px 19px;
  color: #fff;
}
.iphone--light .iphone__status { color: #000; }
.iphone__status-half {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iphone__time { font-weight: 590; font-size: 17px; line-height: 22px; padding-top: 1.5px; }
.iphone__glyphs { gap: 7px; padding-top: 1px; }
.iphone__screen { height: 100%; position: relative; overflow: hidden; }
.iphone__home {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}
.iphone__home::after {
  content: '';
  width: 139px; height: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .7);
}
.iphone--light .iphone__home::after { background: rgba(0, 0, 0, .25); }

/* ── Hero phone screen: "Your sky." ────────────────────────── */
.screen-sky {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0A0E1E 0%, #0D1124 46%, #131A33 80%, #1A2140 100%);
}
.screen-sky__glow {
  position: absolute; inset: 0;
  background: radial-gradient(80% 42% at 68% 20%, rgba(233, 226, 208, .055), transparent 70%);
}
.screen-sky__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.screen-sky__ui {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
}
.screen-sky__top { height: 64px; }
.screen-sky__spacer { flex: 1; }
.screen-sky__date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 0;
}
.screen-sky__date {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(233, 226, 208, .62);
}
.screen-sky__moon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #F0E9D6 0%, #C9BE9F 48%, #7C7259 78%, #57503E 100%);
  box-shadow: inset -7px -5px 10px rgba(10, 13, 28, .55), 0 0 0 1px rgba(233, 226, 208, .28), 0 0 14px rgba(233, 226, 208, .18);
}
.screen-sky__title-block {
  padding: 10px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.screen-sky__title {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  color: var(--cream-bright);
}
.screen-sky__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 12.5px;
  color: rgba(233, 226, 208, .66);
  font-variant-numeric: tabular-nums;
}
.screen-sky__stats .crescent { box-shadow: 0 0 8px rgba(233, 226, 208, .35); border-radius: 50%; }
.screen-sky__card {
  margin: 0 16px 14px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(22, 28, 51, .72);
  border: 1px solid rgba(233, 226, 208, .13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.screen-sky__card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.screen-sky__tonight {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--gold);
}
.screen-sky__moonrise {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 10.5px;
  color: rgba(233, 226, 208, .5);
  font-variant-numeric: tabular-nums;
}
.screen-sky__q {
  margin: 9px 0 0;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 20.5px;
  line-height: 1.38;
  color: var(--cream-bright);
}
.screen-sky__cta {
  margin-top: 14px;
  height: 48px;
  border-radius: 999px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 26px rgba(214, 169, 79, .22);
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--navy);
  cursor: pointer;
}
.screen-sky__cta:hover { background: var(--gold-hover); }
.screen-sky__tabs {
  height: 80px;
  border-top: 1px solid rgba(233, 226, 208, .1);
  background: rgba(11, 14, 28, .78);
  display: flex;
  align-items: flex-start;
  padding: 10px 30px 0;
  justify-content: space-between;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 64px;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 13px;
  color: rgba(233, 226, 208, .5);
}
.tab-item--active { color: var(--gold); }

/* ── The Ritual ────────────────────────────────────────────── */
.ritual { position: relative; padding: clamp(90px, 10vw, 140px) 0; scroll-margin-top: 80px; }
.ritual__inner { padding-top: clamp(70px, 8vw, 110px); }
.ritual__head { max-width: 780px; }
.ritual__grid {
  margin-top: clamp(56px, 6vw, 84px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(48px, 5vw, 72px);
  justify-items: center;
}
.ritual__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 430px;
}
.ritual__label { display: flex; align-items: baseline; gap: 12px; }
.ritual__numeral {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}
.ritual__mode {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .28em;
  color: rgba(233, 226, 208, .6);
}
.ritual__phone { width: 283px; height: 614px; position: relative; }
.ritual__wash {
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; height: 115%;
  transform: translate(-50%, -50%);
  background-size: cover;
  background-position: center;
  opacity: .2;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  pointer-events: none;
}
.phone-scale--ritual {
  transform: scale(.72);
  transform-origin: top left;
  width: 393px; height: 852px;
}
.ritual__col h3 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 31px);
  color: var(--cream-bright);
}
.ritual__col > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(239, 233, 216, .66);
  max-width: 380px;
  text-wrap: pretty;
}

/* Dawn capture screen */
.screen-capture {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0F20 0%, #10162B 60%, #1B2138 86%, #232742 100%);
}
.screen-capture__glow {
  position: absolute; inset: 0;
  background: radial-gradient(70% 30% at 50% 102%, rgba(214, 169, 79, .14), transparent 70%);
}
.screen-capture__stars { position: absolute; inset: 0; opacity: .5; }
.screen-capture__ui {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.screen-capture__top { height: 84px; }
.screen-capture__date {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .26em;
  color: rgba(233, 226, 208, .6);
  font-variant-numeric: tabular-nums;
}
.screen-capture__spacer { flex: 1; }
.screen-capture__orb {
  position: relative;
  width: 300px; height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-capture__halo {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 169, 79, .16) 0%, rgba(214, 169, 79, .05) 45%, transparent 70%);
  animation: mdBreathe 4.6s ease-in-out infinite;
}
.screen-capture__ring-outer {
  position: absolute;
  width: 258px; height: 258px;
  border-radius: 50%;
  border: 1px solid rgba(233, 226, 208, .08);
}
.screen-capture__ring-inner {
  position: absolute;
  width: 216px; height: 216px;
  border-radius: 50%;
  border: 1px solid rgba(233, 226, 208, .13);
}
.screen-capture__disc {
  position: relative;
  width: 168px; height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #262E52 0%, #161C33 68%, #12172B 100%);
  border: 1px solid rgba(233, 226, 208, .22);
  box-shadow: 0 0 46px 2px rgba(233, 226, 208, .1), inset 0 0 26px rgba(233, 226, 208, .05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-capture__hint {
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 17px;
  color: rgba(233, 226, 208, .62);
}
.screen-capture__bottom { height: 64px; }

/* Dusk check-in screen */
.screen-dusk {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F6F1E6 0%, #F2EBDD 55%, #EDE4D1 100%);
}
.screen-dusk__glow {
  position: absolute;
  top: -80px; left: -40px; right: -40px;
  height: 340px;
  background: radial-gradient(60% 70% at 30% 20%, rgba(214, 169, 79, .16), transparent 70%);
}
.screen-dusk__ui {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 0 26px;
}
.screen-dusk__top { height: 64px; }
.screen-dusk__date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-dusk__date {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .24em;
  color: rgba(26, 30, 51, .55);
  font-variant-numeric: tabular-nums;
}
.screen-dusk__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(13, 17, 36, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-dusk__title {
  margin-top: 22px;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.2;
  color: var(--navy);
  text-align: left;
}
.screen-dusk__chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(13, 17, 36, .28);
  display: flex;
  align-items: center;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 15.5px;
  color: rgba(26, 30, 51, .65);
}
.chip--active {
  border: 1.5px solid var(--sage);
  background: rgba(94, 122, 106, .12);
  color: #41604F;
}
.screen-dusk__qa {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}
.screen-dusk__q { display: flex; flex-direction: column; gap: 8px; }
.screen-dusk__q-label {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--sage);
}
.screen-dusk__answer {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(26, 30, 51, .9);
  border-bottom: 1px solid rgba(13, 17, 36, .22);
  padding-bottom: 9px;
}
.screen-dusk__answer--empty {
  font-style: italic;
  color: rgba(26, 30, 51, .4);
}
.screen-dusk__spacer { flex: 1; }
.screen-dusk__seal {
  height: 50px;
  border-radius: 999px;
  background: #14182B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--parchment);
}
.screen-dusk__micro {
  margin: 10px 0 0;
  text-align: center;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 11.5px;
  color: rgba(26, 30, 51, .5);
}
.screen-dusk__bottom { height: 34px; }

/* ── Threads ───────────────────────────────────────────────── */
.threads {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 10vw, 140px) 0 clamp(100px, 11vw, 150px);
  scroll-margin-top: 80px;
}
.threads__inner { position: relative; }
.threads__head { margin-top: clamp(70px, 8vw, 110px); max-width: 800px; }
.threads__row {
  margin-top: clamp(56px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.entry-card {
  width: min(354px, 100%);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.entry-card--dream {
  background: linear-gradient(162deg, #161C33 0%, #10152A 100%);
  border: 1px solid rgba(233, 226, 208, .14);
  box-shadow: 0 18px 40px rgba(3, 5, 12, .4);
}
.entry-card--day {
  background: var(--parchment);
  border: 1px solid rgba(13, 17, 36, .14);
  box-shadow: 0 18px 40px rgba(3, 5, 12, .35);
}
.entry-card__meta {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .26em;
  font-variant-numeric: tabular-nums;
}
.entry-card--dream .entry-card__meta { color: rgba(233, 226, 208, .55); }
.entry-card--day .entry-card__meta { color: var(--sage-deep); }
.entry-card__text { margin: 0; font-size: 16.5px; line-height: 1.55; }
.entry-card--dream .entry-card__text { font-style: italic; color: rgba(239, 233, 216, .9); }
.entry-card--day .entry-card__text { color: #1A1E33; }
.entry-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.echip {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 12.5px;
}
.echip--gold { border: 1px solid rgba(214, 169, 79, .45); color: var(--gold); }
.echip--dream { border: 1px solid rgba(233, 226, 208, .24); color: rgba(233, 226, 208, .75); }
.echip--day { border: 1px solid rgba(13, 17, 36, .28); color: #3D4258; }
.echip--sage { border: 1px solid rgba(94, 122, 106, .55); color: var(--sage-deep); }
.threads__link {
  flex: 1 1 0;
  min-width: 0;
  max-width: 320px;
  height: 110px;
}
.threads__quote {
  margin: clamp(56px, 6vw, 80px) auto 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.threads__quote p {
  margin: 0;
  font-style: italic;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.45;
  color: rgba(239, 233, 216, .94);
  text-wrap: balance;
}
.threads__quote-tag {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .28em;
  color: rgba(233, 226, 208, .5);
}

/* ── The Sky ───────────────────────────────────────────────── */
.sky { position: relative; padding: clamp(90px, 10vw, 140px) 0 0; scroll-margin-top: 80px; }
.sky__head { margin-top: clamp(70px, 8vw, 110px); max-width: 760px; }
.sky-panel {
  margin-top: clamp(52px, 5vw, 72px);
  position: relative;
  height: clamp(380px, 44vw, 540px);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #0A0E1E 0%, #0E132A 55%, #161D3A 100%);
  border: 1px solid rgba(233, 226, 208, .13);
  box-shadow: 0 30px 70px rgba(3, 5, 12, .5);
}
.sky-panel__media { position: absolute; inset: 0; }
.sky-panel__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.sky-panel__glow {
  position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 8%, rgba(233, 226, 208, .05), transparent 70%);
}
.sky-panel__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.sky-panel__pill {
  position: absolute;
  left: 22px; bottom: 20px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(11, 14, 28, .65);
  border: 1px solid rgba(233, 226, 208, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(233, 226, 208, .7);
  font-variant-numeric: tabular-nums;
}
.sky__moons {
  margin: clamp(36px, 4vw, 52px) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.moon-row { display: flex; align-items: center; gap: 13px; }
.moon-ring {
  width: var(--size, 17px);
  height: var(--size, 17px);
  border-radius: 50%;
  border: 1px solid rgba(233, 226, 208, .4);
  flex: none;
}
.moon-full {
  width: var(--size, 17px);
  height: var(--size, 17px);
  border-radius: 50%;
  background: var(--cream-bright);
  box-shadow: 0 0 12px rgba(233, 226, 208, .55);
  flex: none;
}
.sky__moons-note {
  font-style: italic;
  font-size: 15.5px;
  color: rgba(233, 226, 208, .55);
  text-align: center;
}

/* ── The Codex ─────────────────────────────────────────────── */
.codex { position: relative; padding: clamp(100px, 11vw, 150px) 0; scroll-margin-top: 80px; }
.codex__grid {
  margin-top: clamp(70px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.codex__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  order: 0;
}
.codex-tilt { padding: 12px; cursor: pointer; position: relative; }
.codex-card {
  width: 276px; height: 424px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
  background: linear-gradient(162deg, #20284D 0%, #151B36 50%, #0F1428 100%);
  border: 1px solid rgba(214, 169, 79, .85);
  box-shadow: 0 30px 60px rgba(3, 5, 12, .6), 0 0 60px rgba(214, 169, 79, .16);
  transform: perspective(950px);
  transition: transform .18s ease-out;
  will-change: transform;
}
.codex-card--behind {
  position: absolute;
  top: 20px; left: -8px;
  z-index: 0;
  transform: rotate(-6deg) scale(.98);
  filter: brightness(.55);
  transition: none;
}
.codex-card__border-outer { position: absolute; inset: 4px; border: 1px solid rgba(214, 169, 79, .45); border-radius: 12px; }
.codex-card__border-inner { position: absolute; inset: 11px; border: 1px solid rgba(233, 226, 208, .18); border-radius: 8px; }
.diamond {
  position: absolute;
  width: 7px; height: 7px;
  background: rgba(214, 169, 79, .95);
  transform: rotate(45deg);
}
.diamond--tl { top: 4px; left: 4px; }
.diamond--tr { top: 4px; right: 4px; }
.diamond--bl { bottom: 4px; left: 4px; }
.diamond--br { bottom: 4px; right: 4px; }
.diamond--el, .diamond--er { width: 5px; height: 5px; background: rgba(214, 169, 79, .7); top: 50%; }
.diamond--el { left: 1px; }
.diamond--er { right: 1px; }
.codex-card__foil {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  mix-blend-mode: screen;
  background: radial-gradient(120% 90% at 55% 30%, rgba(255, 240, 205, .22), rgba(214, 169, 79, .1) 32%, rgba(214, 169, 79, 0) 58%);
  pointer-events: none;
}
.codex-card__face {
  position: absolute;
  inset: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 17px 13px;
}
.codex-card__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 10.5px;
}
.codex-card__no { letter-spacing: .18em; color: rgba(214, 169, 79, .9); }
.codex-card__count { letter-spacing: .1em; color: rgba(233, 226, 208, .5); font-variant-numeric: tabular-nums; }
.codex-card__art {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.codex-card__name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 23px; color: var(--cream-bright); }
.codex-card__rarity {
  margin-top: 6px;
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--gold-warm);
}
.codex-card__divider {
  width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 169, 79, .55), transparent);
  margin: 12px 0 10px;
}
.codex-card__stats {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(233, 226, 208, .62);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.codex__hint { font-style: italic; font-size: 14px; color: rgba(233, 226, 208, .55); }
@media not (any-pointer: fine) { .codex__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .codex__hint { display: none; } }
.codex-card--behind .codex-card__border-inner,
.codex-card--behind .diamond--el,
.codex-card--behind .diamond--er { display: none; }
.codex__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
  justify-self: center;
}
.codex__copy h2 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--cream-bright);
}
.codex__copy > p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.62;
  color: rgba(239, 233, 216, .7);
  text-wrap: pretty;
}
.rarity-table { display: flex; flex-direction: column; }
.rarity-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(233, 226, 208, .12);
}
.rarity-row:last-child { border-bottom: 1px solid rgba(233, 226, 208, .12); }
.rarity-row__label {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .24em;
  width: 110px;
  flex: none;
}
.rarity-row__label--common { color: rgba(233, 226, 208, .55); }
.rarity-row__label--uncommon { color: rgba(214, 169, 79, .8); }
.rarity-row__label--rare { color: var(--gold-warm); }
.rarity-row__desc { font-size: 16px; color: rgba(239, 233, 216, .75); }

/* ── Sky Report ────────────────────────────────────────────── */
.report { position: relative; background: var(--parchment); padding: clamp(90px, 10vw, 140px) 0; }
.report__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.report__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
  justify-self: center;
}
.report__eyebrow {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--sage-deep);
}
.report__copy h2 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--navy);
}
.report__copy > p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.62;
  color: rgba(26, 30, 51, .75);
  text-wrap: pretty;
}
.report__note {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .24em;
  color: rgba(26, 30, 51, .65);
}
.report__card-wrap { display: flex; justify-content: center; }
.report-card {
  width: 304px; height: 540px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0A0E1E 0%, #0D1124 55%, #161C33 100%);
  border: 1px solid rgba(233, 226, 208, .14);
  box-shadow: 0 34px 70px rgba(13, 17, 36, .35);
  transform: rotate(-2.5deg);
}
.report-card__svg { position: absolute; top: 44px; left: 0; width: 100%; pointer-events: none; }
.report-card__ui {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
}
.report-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Alegreya Sans', sans-serif;
}
.report-card__title { font-weight: 700; font-size: 10px; letter-spacing: .26em; color: rgba(233, 226, 208, .62); }
.report-card__dates { font-size: 10px; color: rgba(233, 226, 208, .5); font-variant-numeric: tabular-nums; }
.report-card__spacer { flex: 1; }
.report-card__block { display: flex; flex-direction: column; gap: 14px; }
.report-card__stat { display: flex; flex-direction: column; gap: 3px; }
.report-card__label {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: .24em;
}
.report-card__label--gold { color: var(--gold); }
.report-card__label--sage { color: var(--sage-light); }
.report-card__value-lg { font-family: 'Newsreader', serif; font-weight: 500; font-size: 19px; color: var(--cream-bright); }
.report-card__value { font-family: 'Newsreader', serif; font-size: 15.5px; color: rgba(239, 233, 216, .88); }
.report-card__div { height: 1px; background: rgba(233, 226, 208, .14); }
.report-card__line {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(239, 233, 216, .92);
}
.report-card__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: .3em;
  color: rgba(233, 226, 208, .5);
}

/* ── Dreamer band ──────────────────────────────────────────── */
.band {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 45vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--navy) 0%, #0E132A 50%, var(--navy) 100%);
}
.band__media { position: absolute; inset: 0; }
.band__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.band.is-inview .band__media img { transform: scale(1); transition: transform 14s ease-out; }
.band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(13, 17, 36, .25) 30%, rgba(13, 17, 36, .25) 70%, var(--navy) 100%);
}
.band__quote {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: clamp(80px, 10vw, 140px) clamp(22px, 4vw, 44px);
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream-bright);
  text-align: center;
  text-shadow: 0 2px 30px rgba(10, 14, 30, .8);
}

/* ── Privacy ───────────────────────────────────────────────── */
.privacy { position: relative; padding: clamp(100px, 11vw, 150px) 0; }
.privacy__wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 44px); }
.privacy__grid {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.privacy__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(233, 226, 208, .16);
  padding-top: 20px;
}
.privacy__item h3 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 21px;
  color: var(--cream-bright);
}
.privacy__item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(239, 233, 216, .6);
}
.privacy__disclaimer {
  margin: clamp(44px, 5vw, 60px) auto 0;
  max-width: 560px;
  text-align: center;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(233, 226, 208, .5);
}

/* ── Lucida Plus ───────────────────────────────────────────── */
.plus { position: relative; padding: 0 0 clamp(110px, 12vw, 170px); scroll-margin-top: 80px; }
.plus__head { margin-top: clamp(70px, 8vw, 110px); max-width: 720px; }
.plus__grid {
  margin: clamp(48px, 5vw, 68px) auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 26px;
  align-items: stretch;
}
.plan-card {
  border-radius: 22px;
  border: 1px solid rgba(233, 226, 208, .15);
  background: rgba(17, 22, 40, .45);
  padding: 34px 34px 38px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.plan-card--plus {
  position: relative;
  border: 1.5px solid rgba(214, 169, 79, .75);
  background: linear-gradient(170deg, rgba(32, 40, 77, .55), rgba(17, 22, 40, .65));
  box-shadow: 0 0 60px rgba(214, 169, 79, .12);
}
.plan-card__badge {
  position: absolute;
  top: -12px; right: 26px;
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 11px;
}
.plan-card__top { display: flex; flex-direction: column; gap: 6px; }
.plan-card__name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 25px; color: var(--cream-bright); }
.plan-card__sub {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(233, 226, 208, .55);
}
.plan-card__price-row { display: flex; align-items: baseline; gap: 10px; }
.plan-card__price {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 42px;
  color: var(--cream-bright);
  font-variant-numeric: tabular-nums;
}
.plan-card__per { font-family: 'Alegreya Sans', sans-serif; font-size: 14px; color: rgba(233, 226, 208, .6); }
.plan-card__fine {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 12.5px;
  color: rgba(233, 226, 208, .6);
  font-variant-numeric: tabular-nums;
}
.plan-card__div { height: 1px; background: rgba(233, 226, 208, .12); }
.plan-card--plus .plan-card__div { background: rgba(214, 169, 79, .3); }
.plan-card__features { display: flex; flex-direction: column; gap: 15px; }
.feature { display: flex; align-items: baseline; gap: 12px; }
.feature svg { flex: none; }
.feature span { font-family: 'Newsreader', serif; font-size: 17px; color: rgba(239, 233, 216, .85); }
.plan-card--plus .feature span { color: rgba(239, 233, 216, .92); }
.plan-card__cta-block { margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.plan-card__cta-block .pill { height: 52px; width: 100%; }
.plan-card__cancel {
  text-align: center;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(233, 226, 208, .5);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0D1124 0%, #080B18 100%);
  padding: clamp(90px, 10vw, 130px) 0 44px;
}
.footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.footer__word {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(74px, 13vw, 190px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--cream-bright);
  text-align: center;
}
.footer__tag {
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(233, 226, 208, .55);
  margin-top: -8px;
}
.footer .waitlist-form { justify-content: center; margin-top: 10px; }
.footer .waitlist-form__status { text-align: center; }
.footer__moons { margin-top: 26px; }
.footer__links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(233, 226, 208, .6);
}
.footer__links a:hover { color: var(--cream); }
.footer__copyright {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(233, 226, 208, .55);
  text-align: center;
}
.footer__moons .moon-ring { border-color: rgba(233, 226, 208, .35); }
.footer__moons .moon-full { box-shadow: 0 0 10px rgba(233, 226, 208, .5); }
.sky__moons .crescent--glow { box-shadow: 0 0 8px rgba(233, 226, 208, .4); }

/* Mobile nav: keep the bar to logo + CTA */
@media (max-width: 719px) {
  .nav__links { display: none; }
}

/* ── Generated media treatment ─────────────────────────────── */
.codex-card__art picture { width: 100%; height: 100%; display: flex; }
.codex-card__art img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 6px;
  mix-blend-mode: screen;
}
.ritual__wash--dawn {
  background-image: url('assets/ritual-dawn.jpg');
  background-image: image-set(url('assets/ritual-dawn.webp') type('image/webp'), url('assets/ritual-dawn.jpg') type('image/jpeg'));
}
.ritual__wash--dusk {
  background-image: url('assets/ritual-dusk.jpg');
  background-image: image-set(url('assets/ritual-dusk.webp') type('image/webp'), url('assets/ritual-dusk.jpg') type('image/jpeg'));
}
.band__media picture { position: absolute; inset: 0; display: block; }
.sky-panel__media picture { position: absolute; inset: 0; display: block; }

/* ═══ CINEMA LAYER — active only under html.cinema ═══════════ */

/* Which variant renders */
.title-scene, .journey { display: none; }
.cinema .title-scene, .cinema .journey { display: block; }
.cinema .fallback-hero, .cinema .fallback-ritual { display: none; }

/* Magnetic pills */
.pill, .nav__cta { translate: 0 0; transition: background .25s ease, box-shadow .25s ease, translate .35s cubic-bezier(.22,.61,.21,1); }

/* ── Act I: title scene ────────────────────────────────────── */
.title-scene { position: relative; height: 230vh; background: var(--navy-deep); }
.title-scene__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.title-scene__media, .title-scene__media img, .title-scene__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.title-scene__media img, .title-scene__media video {
  object-fit: cover;
  transform: scale(calc(1.09 - var(--p, 0) * .09));
}
.title-scene__media video { opacity: 0; transition: opacity 1.6s ease; }
.title-scene__media.is-live video { opacity: 1; }
.title-scene__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 38%, rgba(6, 8, 18, .78) 100%),
    linear-gradient(180deg, rgba(10, 14, 30, .45) 0%, rgba(13, 17, 36, .18) 40%, rgba(13, 17, 36, .3) 75%, #0D1124 99%);
}
.title-scene__stars { opacity: calc(1 - var(--p, 0) * 1.6); }
.title-scene__intro {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  opacity: calc(1 - var(--p, 0) * 2.6);
  transform: scale(calc(1 + var(--p, 0) * .16));
  pointer-events: none;
}
.title-scene__word {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(80px, 12vw, 190px);
  line-height: 1;
  letter-spacing: .42em;
  padding-left: .42em; /* recenters tracked type */
  color: var(--cream-bright);
  text-shadow: 0 4px 60px rgba(6, 8, 18, .8);
}
.title-scene__sub {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .34em;
  color: rgba(233, 226, 208, .85);
  text-shadow: 0 2px 20px rgba(6, 8, 18, .9);
}
.title-scene__cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(233, 226, 208, .6);
  opacity: calc(1 - var(--p, 0) * 4);
}
.title-scene__cue::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(180deg, rgba(233, 226, 208, .7), transparent);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.title-scene__copy {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 44px);
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 1s cubic-bezier(.22,.61,.21,1), transform 1s cubic-bezier(.22,.61,.21,1);
  pointer-events: none;
}
.title-scene--told .title-scene__copy { opacity: 1; transform: translateY(0); pointer-events: auto; }
.title-scene__copy h1 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--cream-bright);
  max-width: 900px;
}
.title-scene__copy h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.title-scene__copy h1 .w > span { display: inline-block; transform: translateY(112%); transition: transform .9s cubic-bezier(.22,.61,.21,1); transition-delay: calc(var(--wi, 0) * 65ms + 150ms); }
.title-scene--told h1 .w > span { transform: translateY(0); }
.title-scene__copy .hero__sub { max-width: 560px; }

/* ── Act II: the phone journey ─────────────────────────────── */
.journey { position: relative; height: 430vh; scroll-margin-top: 0; }
.journey__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.journey__bg { position: absolute; inset: 0; opacity: 0; }
.journey__bg--night { background: linear-gradient(180deg, #0A0E1E 0%, #10152A 100%); opacity: 1; }
.journey__bg--dawn { background: linear-gradient(180deg, #0B0F20 0%, #1B2138 52%, #232742 100%); }
.journey__bg--dawn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(75% 45% at 50% 104%, rgba(214, 169, 79, .32), transparent 72%);
}
.journey__bg--dusk { background: linear-gradient(180deg, #F6F1E6 0%, #F2EBDD 55%, #EDE4D1 100%); }
.journey__grid {
  position: relative;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.journey__phone { grid-column: 2; grid-row: 1; position: relative; width: 306px; height: 664px; }
.phone-scale--journey { transform: scale(.78); transform-origin: top left; width: 393px; height: 852px; }
.journey .iphone { transition: background .5s ease; }
.j-screen { position: absolute; inset: 0; opacity: 0; }
.j-screen--sky { opacity: 1; }
.journey__caption {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  max-width: 400px;
}
.journey__caption--a { grid-column: 1; justify-self: end; text-align: right; align-items: flex-end; opacity: 1; }
.journey__caption--b { grid-column: 1; justify-self: end; text-align: right; align-items: flex-end; }
.journey__caption--c { grid-column: 3; justify-self: start; text-align: left; align-items: flex-start; }
.journey__caption h2 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--cream-bright);
  text-wrap: balance;
}
.journey__caption h3 {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.12;
  color: var(--cream-bright);
}
.journey__caption p {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(239, 233, 216, .68);
  text-wrap: pretty;
}
.journey__caption--c h3 { color: var(--navy); }
.journey__caption--c p { color: rgba(26, 30, 51, .72); }
.journey__caption--c .ritual__mode { color: rgba(26, 30, 51, .55); }
.journey--lit .iphone { box-shadow: 0 40px 80px rgba(13, 17, 36, .25), 0 0 0 1px rgba(13, 17, 36, .1); }

/* ── Dreamgate (Threads intro) ─────────────────────────────── */
.dreamgate { position: relative; overflow: clip; }
.cinema .dreamgate { height: 175vh; }
.dreamgate__stage { position: relative; height: 64vh; overflow: hidden; }
.cinema .dreamgate__stage { position: sticky; top: 0; height: 100vh; }
.dreamgate__media, .dreamgate__media img, .dreamgate__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.dreamgate__media img, .dreamgate__media video { object-fit: cover; }
.dreamgate__media video { opacity: 0; transition: opacity 1.4s ease; }
.dreamgate__media.is-live video { opacity: 1; }
.dreamgate__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(13, 17, 36, .12) 26%, rgba(13, 17, 36, .12) 68%, var(--navy) 100%);
}
.dreamgate__quote {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 0 clamp(22px, 4vw, 44px);
}
.cinema .dreamgate__quote { transform: scale(calc(.94 + var(--p, 0) * .1)); }
.dreamgate__quote p {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 58px);
  color: var(--cream-bright);
  text-shadow: 0 2px 40px rgba(6, 8, 18, .85);
  text-wrap: balance;
}
.dreamgate__quote span {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(233, 226, 208, .75);
  text-shadow: 0 2px 20px rgba(6, 8, 18, .9);
}

/* ── Codex fan ─────────────────────────────────────────────── */
.codex-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
  margin-top: clamp(40px, 5vw, 64px);
}
.codex-fan__slot { position: absolute; }
.cinema .codex-fan__slot {
  transform:
    translateX(calc(var(--i) * clamp(120px, 13vw, 185px) * var(--p, 0)))
    translateY(calc(var(--i) * var(--i) * 16px * var(--p, 0)))
    rotate(calc(var(--i) * 6.5deg * var(--p, 0)));
  transition: transform .1s linear;
}
.codex-fan__slot--0 { z-index: 5; }
.codex-fan__slot--1 { z-index: 4; }
.codex-fan__slot--2 { z-index: 3; }
/* Rarity chrome variants */
.codex-card--common { border-color: rgba(233, 226, 208, .3); box-shadow: 0 24px 50px rgba(3, 5, 12, .55); }
.codex-card--common .codex-card__border-outer,
.codex-card--common .codex-card__border-inner,
.codex-card--common .diamond { display: none; }
.codex-card--common .codex-card__rarity { color: rgba(233, 226, 208, .55); }
.codex-card--uncommon { border-color: rgba(214, 169, 79, .5); box-shadow: 0 24px 50px rgba(3, 5, 12, .55); }
.codex-card--uncommon .codex-card__border-inner,
.codex-card--uncommon .diamond--el,
.codex-card--uncommon .diamond--er { display: none; }
.codex-card--uncommon .codex-card__rarity { color: rgba(214, 169, 79, .8); }
/* Non-cinema: horizontal snap row */
html:not(.cinema) .codex-fan {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
  gap: 22px;
  padding: 12px 22px 28px;
  min-height: 0;
}
html:not(.cinema) .codex-fan__slot { position: static; scroll-snap-align: center; flex: none; }

/* ── Band video ────────────────────────────────────────────── */
.band__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.band__media.is-live video { opacity: 1; }

/* ── Footer word scale ─────────────────────────────────────── */
.cinema .footer__word {
  transform: scale(calc(.86 + var(--p, 0) * .14));
  transform-origin: center 70%;
}

/* Cinema glue */
#ritual { scroll-margin-top: 80px; }
.codex__head { max-width: 760px; margin-top: clamp(70px, 8vw, 110px); }
.codex__below {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(36px, 4vw, 56px);
}
.rarity-table--center { width: min(560px, 100%); }

/* Fan hover: lift the card you're reading */
.cinema .codex-fan__slot { transition: transform .35s cubic-bezier(.22,.61,.21,1), z-index 0s; }
.cinema .codex-fan__slot:hover { z-index: 9; }
.cinema .codex-fan__slot:not(.codex-fan__slot--0):hover {
  transform:
    translateX(calc(var(--i) * clamp(120px, 13vw, 185px) * var(--p, 0)))
    translateY(calc(var(--i) * var(--i) * 16px * var(--p, 0) - 18px))
    rotate(calc(var(--i) * 6.5deg * var(--p, 0)));
}
