/* Lumara Tarot — home page. */

/* ── Hero: the cosmic altar ─────────────────────────────────────────────── */

.hero {
  --hero-p: 0;
  position: relative;
  display: grid;
  align-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(46% 44% at 64% 78%, rgba(201, 168, 76, 0.24), transparent 72%),
    url('../img/hero/stage.webp') 66% 100% / auto 122% no-repeat,
    var(--ink);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 7, 0.94) 0%, rgba(6, 7, 7, 0.6) 36%, rgba(6, 7, 7, 0) 62%),
    linear-gradient(180deg, rgba(6, 7, 7, 0.7) 0%, rgba(6, 7, 7, 0) 22%, rgba(6, 7, 7, 0) 72%, var(--ink) 100%);
}

.hero__canvas,
.hero__sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__canvas {
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
}
html[data-hero='webgl'] .hero__canvas {
  opacity: 1;
}
html[data-hero='webgl'] .hero__sparkles {
  display: none;
}

/* Keeps the headline readable over cards passing behind it; fades with the text. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 7, 7, 0.86) 0%, rgba(6, 7, 7, 0.62) 30%, rgba(6, 7, 7, 0) 58%);
}
html:not([data-hero='webgl']) .hero__scrim {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  grid-row: 1;
  grid-column: 1;
  padding-top: var(--header-h);
}
.hero__content > * {
  animation: hero-rise 1.1s var(--ease-out) both;
}
.hero__content > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero__content > :nth-child(3) {
  animation-delay: 0.18s;
}
.hero__content > :nth-child(4) {
  animation-delay: 0.28s;
}
.hero__title {
  max-width: 11.5ch;
  margin-bottom: 0.32em;
}
:lang(zh-Hans) .hero__title {
  max-width: 7.2em;
}
.hero__lead {
  max-width: 33rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* CSS-composed spread: the lite hero, and the picture before WebGL arrives (or if it never does).
   It crossfades out only once the WebGL scene is running. */
.hero__cards {
  position: absolute;
  top: 50%;
  right: clamp(16px, 6vw, 110px);
  z-index: 0;
  width: min(46vw, 640px);
  aspect-ratio: 1.25;
  transform: translateY(-42%);
  perspective: 1600px;
  transition: opacity 0.9s var(--ease-out);
}
html[data-hero='webgl'] .hero__cards {
  opacity: 0;
}

.hero-card {
  --x: 0%;
  --y: 0%;
  --r: 0deg;
  --start: 0.2;
  --f: clamp(0, (var(--hero-p) - var(--start)) / 0.28, 1);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 31%;
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
}
.hero-card--0 {
  --x: -80%;
  --y: 7%;
  --r: -9deg;
  --start: 0.08;
}
.hero-card--1 {
  --y: -3%;
  --start: 0.24;
  z-index: 2;
  width: 34%;
}
.hero-card--2 {
  --x: 80%;
  --y: 7%;
  --r: 9deg;
  --start: 0.4;
}

.hero-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(calc((1 - var(--f)) * 180deg));
  animation: hero-float 7s ease-in-out infinite;
  animation-delay: calc(var(--start) * -12s);
}
@keyframes hero-float {
  50% {
    translate: 0 -12px;
  }
}

.hero-card__side {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 5% / 3.4%;
  background: #071122;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow:
    0 40px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(241, 202, 139, 0.28),
    0 0 46px -12px rgba(241, 202, 139, 0.5);
}
.hero-card__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card__side--back {
  transform: rotateY(180deg);
}
.hero-card__side--face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 238, 211, 0.6) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: calc(170% - var(--f) * 240%) 0;
  mix-blend-mode: screen;
  opacity: sin(var(--f) * 180deg);
  pointer-events: none;
}

.hero-card__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  margin: 0;
  font: 400 0.72rem/1 var(--font-label);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  opacity: var(--f);
  transform: translateX(-50%);
}

html[data-hero='reduced'] .hero {
  --hero-p: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero {
    --hero-p: 1;
  }
}

/* Slot names under the WebGL spread. */
.hero__slots {
  position: absolute;
  left: 50%;
  bottom: clamp(56px, 13vh, 130px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 46vw;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font: 400 0.78rem/1 var(--font-label);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.hero__slots.is-revealed {
  opacity: 1;
  transform: translate(-50%, 0);
}
html:not([data-hero='webgl']) .hero__slots {
  display: none;
}

/* Once-per-session opening while the scene loads (desktop, motion allowed). */
.hero__intro {
  position: absolute;
  left: 62%;
  top: 52%;
  z-index: 1;
  display: none;
  justify-items: center;
  gap: 20px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero__intro {
    display: grid;
    animation: intro-life 1.2s var(--ease-out) forwards;
  }
}
html.intro-seen .hero__intro {
  display: none;
}
html[data-hero] .hero__intro {
  opacity: 0 !important;
  visibility: hidden !important;
}
.hero__intro-ring {
  width: 180px;
  height: 180px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
  filter: drop-shadow(0 0 10px rgba(241, 202, 139, 0.55));
}
.hero__intro-ring circle {
  stroke-dasharray: 580;
  stroke-dashoffset: 580;
  animation: ring-draw 0.9s var(--ease-ritual) forwards;
}
.hero__intro-ring .hero__intro-inner {
  stroke-dasharray: 415;
  stroke-dashoffset: 415;
  opacity: 0.55;
  animation-delay: 0.2s;
}
.hero__intro-label {
  margin: 0;
  font: 400 0.7rem/1 var(--font-label);
  letter-spacing: 0.5em;
  color: var(--gold-strong);
}
@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes intro-life {
  0% {
    opacity: 0;
  }
  12%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  font: 400 0.66rem/1 var(--font-label);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(237, 224, 196, 0.55);
  opacity: calc(1 - var(--hero-p) * 5);
  transform: translateX(-50%);
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: scroll-cue 2.4s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

@media (max-width: 899px) {
  .hero {
    height: auto;
    min-height: 100svh;
    align-items: start;
    padding: calc(var(--header-h) + 18px) 0 64px;
  }
  .hero__bg {
    background:
      radial-gradient(70% 40% at 50% 78%, rgba(201, 168, 76, 0.26), transparent 72%),
      url('../img/hero/stage.webp') 50% 100% / auto 70% no-repeat,
      var(--ink);
  }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(6, 7, 7, 0.75) 0%, rgba(6, 7, 7, 0.2) 40%, rgba(6, 7, 7, 0) 72%, var(--ink) 100%);
  }
  .hero__content {
    padding-top: 0;
    text-align: center;
  }
  .hero__title {
    margin-inline: auto;
    font-size: clamp(2.3rem, 9.5vw, 3.4rem);
  }
  .hero__lead {
    margin-inline: auto;
    font-size: 1rem;
  }
  .hero__actions {
    justify-content: center;
    margin-top: 26px;
  }
  .hero__cards {
    position: relative;
    top: auto;
    right: auto;
    grid-row: 2;
    grid-column: 1;
    width: min(92vw, 520px);
    margin: 30px auto 36px;
    aspect-ratio: 1.3;
    transform: none;
  }
  .hero-card__label {
    top: calc(100% + 12px);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
  }
  .hero__scroll {
    display: none;
  }
}

/* ── Shared section heads ───────────────────────────────────────────────── */

.doors__head,
.ritual__head,
.reading__head,
.trust__head {
  max-width: 720px;
}
.trust__head {
  margin: 0 auto 56px;
  text-align: center;
}

/* ── Manifesto ──────────────────────────────────────────────────────────── */

.manifesto__inner {
  max-width: 940px;
  text-align: center;
}
.manifesto__title {
  margin-inline: auto;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
}
.manifesto__body {
  margin: 0 auto;
}
.manifesto__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.manifesto__tags li {
  display: flex;
  align-items: center;
  gap: 30px;
  font: 400 0.74rem/1 var(--font-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-strong);
}
.manifesto__tags li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold-strong);
  transform: rotate(45deg);
}

/* ── Four doorways ──────────────────────────────────────────────────────── */

.doors__pin {
  position: relative;
  padding-block: clamp(80px, 10vw, 128px) clamp(64px, 8vw, 104px);
}
.doors__head {
  margin-bottom: 44px;
}
.doors__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--panel), var(--ink-deep) 55%, #0E1F16);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.door::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--line-a), var(--line-b) 50%, var(--line-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.door__art {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.door__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.door:hover .door__art img {
  transform: scale(1.06);
}
.door--daily .door__art img {
  object-position: center 28%;
}
.door__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 22px;
}
.door__subtitle {
  margin-bottom: 0.7rem;
}
.door__title {
  margin-bottom: 0.3em;
}
.door__desc {
  color: rgba(237, 224, 196, 0.82);
}
.door__positions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.door__positions li {
  padding: 5px 12px;
  border: 1px solid rgba(241, 202, 139, 0.26);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--gold);
}
.door__note {
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.door__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}
.door__cost {
  color: var(--gold);
}
.door--intro {
  display: none;
}

/* Desktop with motion: a pinned horizontal walk through the doors. */
.doors--scroller .doors__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}
.doors--scroller .doors__track {
  display: flex;
  gap: 24px;
  width: max-content;
  max-width: none;
  margin: 0;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  will-change: transform;
}
.doors--scroller .door {
  width: 400px;
}
.doors--scroller .door--intro {
  display: block;
  width: 300px;
  background: none;
  box-shadow: none;
}
.doors--scroller .door--intro::before {
  display: none;
}
.door--intro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* ── The ritual (sticky phone + steps) ──────────────────────────────────── */

.ritual__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.ritual__device {
  position: sticky;
  top: max(calc(var(--header-h) + 24px), calc(50vh - 310px));
}
.phone {
  position: relative;
  width: min(300px, 100%);
  margin-inline: auto;
  padding: 10px;
  aspect-ratio: 600 / 1304;
  border-radius: 44px;
  background: linear-gradient(145deg, #2a2418, #0b0a07 40%, #1d1810);
  box-shadow:
    0 0 0 1px rgba(241, 202, 139, 0.26),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -30px rgba(241, 202, 139, 0.35);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #000;
}
.phone__screen > img,
.phone__layer > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__screen > .phone__shot--cropped,
.phone__layer > .phone__shot--cropped {
  height: auto;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.phone__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.phone__layer.is-active {
  opacity: 1;
  transform: none;
}
.steps {
  display: grid;
  gap: clamp(72px, 20vh, 220px);
  margin: 52px 0 0;
  padding: 0 0 18vh;
  list-style: none;
}
.step {
  position: relative;
  padding-left: 64px;
  transition: opacity 0.6s var(--ease-out);
}
.js-motion .step {
  opacity: 0.35;
}
.js-motion .step.is-active {
  opacity: 1;
}
.step__num {
  position: absolute;
  left: 0;
  top: 0.55em;
  font: 400 0.9rem/1 var(--font-label);
  letter-spacing: 0.2em;
  color: var(--gold-strong);
}
.step__body {
  max-width: 32rem;
  color: rgba(237, 224, 196, 0.82);
}
.step__media {
  display: none;
}

.screen-fan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 40% at 50% 62%, rgba(201, 168, 76, 0.28), transparent 72%), #050605;
}
.screen-fan__card {
  position: absolute;
  width: 34%;
  height: auto;
  border-radius: 7px;
  box-shadow: 0 12px 24px -10px #000, 0 0 0 1px rgba(241, 202, 139, 0.3);
  transform: translateY(12%) rotate(calc(var(--i) * 9deg));
  transform-origin: 50% 170%;
  animation: fan-breathe 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes fan-breathe {
  50% {
    translate: 0 -7px;
  }
}

.screen-spread {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  padding: 0 7%;
  background: radial-gradient(70% 45% at 50% 55%, rgba(197, 110, 128, 0.3), transparent 72%), #060707;
}
.screen-spread__card {
  display: grid;
  gap: 10px;
  width: 28%;
  margin: 0;
  text-align: center;
  transform: translateY(calc(var(--i) * var(--i) * 10px));
}
.screen-spread__card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(241, 202, 139, 0.32), 0 10px 22px -8px #000;
}
.screen-spread__card figcaption {
  font: 400 0.52rem/1 var(--font-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Share card ─────────────────────────────────────────────────────────── */

.share-card {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(241, 202, 139, 0.25),
    0 0 100px -40px rgba(197, 110, 128, 0.65);
  animation: card-float 7s ease-in-out infinite;
}
.share-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.share-card__title {
  position: absolute;
  top: 14%;
  inset-inline: 0;
  margin: 0;
  text-align: center;
  font: 400 0.72rem/1 var(--font-label);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #FFE4B9;
}
.share-card__quote {
  position: absolute;
  top: 47%;
  inset-inline: 11%;
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.5;
  text-align: center;
  color: #FFE4B9;
  text-shadow: 0 0 18px rgba(255, 200, 140, 0.55);
  transform: translateY(-50%);
}
.share-card__logo {
  position: absolute;
  bottom: 8.5%;
  left: 50%;
  width: 19%;
  height: auto;
  transform: translateX(-50%);
}
.share-card__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 238, 211, 0.35) 50%, transparent 60%);
  background-size: 260% 100%;
  mix-blend-mode: screen;
  animation: sheen 5.5s ease-in-out infinite;
}
.share-card--screen {
  width: 82%;
  animation: none;
}
.share-card--screen .share-card__quote {
  font-size: 0.95rem;
}
.screen-share {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #060707;
}
.screen-share__sample {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
@keyframes card-float {
  50% {
    translate: 0 -14px;
    rotate: 1.2deg;
  }
}
@keyframes sheen {
  0%,
  55% {
    background-position: 170% 0;
  }
  85%,
  100% {
    background-position: -70% 0;
  }
}
.share__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.share__visual {
  display: grid;
  place-items: center;
}

/* ── Reading showcase ───────────────────────────────────────────────────── */

.reading__grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.reading-panel {
  position: relative;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 8px;
  background: linear-gradient(170deg, rgba(13, 29, 20, 0.94), rgba(3, 10, 6, 0.97) 50%, rgba(14, 31, 22, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(105, 89, 56, 0.6),
    0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.reading-panel__tag {
  margin-bottom: 8px;
  font: 400 0.72rem/1 var(--font-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-strong);
}
.reading-panel__question {
  font-style: italic;
  color: var(--muted);
}
.reading-panel__part {
  position: relative;
  margin-top: 24px;
  padding-left: 18px;
}
.reading-panel__part::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  transition: transform 1.3s var(--ease-out);
}
.js-motion .reading-panel__part::before {
  transform: scaleY(0);
}
.js-motion .reading-panel.is-in .reading-panel__part::before {
  transform: none;
}
.reading-panel__label {
  margin-bottom: 10px;
  font: 400 0.68rem/1 var(--font-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.reading-panel__text {
  margin: 0;
  color: rgba(237, 224, 196, 0.92);
}
.reading-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reading-cards li {
  display: grid;
  gap: 6px;
  text-align: center;
}
.reading-cards__img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(241, 202, 139, 0.26), 0 16px 30px -18px #000;
}
.reading-cards__pos {
  margin-top: 6px;
  font: 400 0.62rem/1 var(--font-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-strong);
}
.reading-cards__name {
  font-size: 0.8rem;
  color: var(--muted);
}
.reading-cards__title {
  margin: 0;
  font-size: 1.05rem;
}
.reading-panel__closing {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-shadow: 0 0 22px rgba(241, 202, 139, 0.35);
}
.reading-panel__sample {
  position: absolute;
  top: 18px;
  right: 20px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(185, 164, 122, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted);
}
/* The untyped rest keeps the full text's layout while it is being typed. */
.typed__rest {
  visibility: hidden;
}
.typed.is-typing .typed__shown::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--gold);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* ── Deck wall ──────────────────────────────────────────────────────────── */

.wall {
  position: relative;
  overflow: hidden;
  padding-block: clamp(110px, 15vw, 190px);
  isolation: isolate;
}
.wall__stage {
  position: absolute;
  inset: -25% -15%;
  z-index: -1;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(68% 58% at 50% 50%, #000 28%, transparent 76%);
  mask-image: radial-gradient(68% 58% at 50% 50%, #000 28%, transparent 76%);
}
/* Centred on the stage so the rows rotate around the middle of the screen, not the strip's far end. */
.wall__tilt {
  --skew: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 18px;
  justify-items: center;
  transform: translate(-50%, -50%) rotate(-12deg) skewY(var(--skew));
}
.wall__strip {
  display: flex;
  width: max-content;
  animation: wall-scroll 95s linear infinite;
}
.wall__row--reverse .wall__strip {
  animation-direction: reverse;
  animation-duration: 120s;
}
.wall__card {
  width: clamp(110px, 12vw, 170px);
  height: auto;
  margin-right: 18px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(241, 202, 139, 0.2), 0 20px 40px -20px #000;
}
@keyframes wall-scroll {
  to {
    transform: translateX(-50%);
  }
}
.wall__copy {
  position: relative;
  text-align: center;
}
.wall__copy::before {
  content: '';
  position: absolute;
  inset: -60px -10%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(6, 7, 7, 0.88), transparent 75%);
}
.wall__copy .lead {
  margin-inline: auto;
}
.wall__copy .btn {
  margin-top: 18px;
}

/* ── Trust ──────────────────────────────────────────────────────────────── */

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--gold-hair);
  border-radius: 8px;
  background: var(--gold-hair);
}
.trust__item {
  padding: 34px 28px;
  background: var(--ink);
}
.trust__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust__title {
  margin: 0 0 8px;
  font: 600 1.05rem/1.4 var(--font-body);
  color: var(--parchment);
}
.trust__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.trust__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(241, 202, 139, 0.45);
  text-underline-offset: 0.2em;
}

/* ── Closing call ───────────────────────────────────────────────────────── */

.begin {
  position: relative;
  overflow: hidden;
  padding-block: clamp(120px, 16vw, 210px);
  text-align: center;
  isolation: isolate;
}
.begin::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(201, 168, 76, 0.3), transparent 70%),
    url('../img/hero/aura.webp') 50% 62% / min(900px, 130%) auto no-repeat;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(46% 62% at 50% 56%, #000 35%, transparent 78%);
  mask-image: radial-gradient(46% 62% at 50% 56%, #000 35%, transparent 78%);
  animation: breathe 6s ease-in-out infinite;
}
.begin__sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.begin__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.begin .lead {
  margin: 0 auto;
}
.begin__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
@keyframes breathe {
  50% {
    opacity: 0.95;
  }
}

html[data-motion='reduced'] .wall__strip,
html[data-motion='reduced'] .share-card,
html[data-motion='reduced'] .share-card__sheen,
html[data-motion='reduced'] .screen-fan__card,
html[data-motion='reduced'] .begin::before,
html[data-motion='reduced'] .hero-card__inner {
  animation: none;
}

@media (max-width: 899px) {
  .ritual__grid,
  .reading__grid,
  .share__grid {
    grid-template-columns: 1fr;
  }
  .ritual__device {
    display: none;
  }
  .steps {
    gap: 64px;
    padding-bottom: 0;
  }
  .step,
  .js-motion .step {
    padding-left: 0;
    opacity: 1;
  }
  .step__num {
    position: static;
    display: block;
    margin-bottom: 12px;
  }
  .step__media {
    display: block;
    margin-top: 24px;
  }
  .phone--mini {
    width: min(230px, 64vw);
    margin-inline: 0;
    padding: 8px;
    border-radius: 34px;
  }
  .phone--mini .phone__screen {
    border-radius: 27px;
  }
  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .trust__grid {
    grid-template-columns: 1fr;
  }
  .reading-cards {
    gap: 10px;
  }
}
