/* Four Mirrors v5: homepage only. Builds on site.css tokens; no raw colour outside the token set
   except the image-matched atmosphere values commented where they appear. */

/* ---------- 1. Hero: the candlelit hall (unpinned; the push-in scrubs over its own scroll-out) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: clip; }
.hero__stage {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}
.hero__media { position: absolute; inset: 0; transform-origin: 50% 64%; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img {
  position: absolute; left: 50%; bottom: -4vh;
  height: min(84vh, 83vw); width: auto; max-width: none;
  transform: translateX(-50%);
  /* feathered on every edge so the art dissolves into the ground (it is stitched to #04070E) */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.hero__glow { /* candle atmosphere plane: rises as the camera walks in */
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(54% 42% at 50% 56%, rgba(240, 214, 150, 0.42) 0%, rgba(201, 162, 74, 0.16) 42%, rgba(4, 7, 14, 0) 74%);
  mix-blend-mode: screen;
}
.hero__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; pointer-events: none; background: linear-gradient(180deg, rgba(4, 7, 14, 0) 0%, rgba(4, 7, 14, 0.62) 58%, rgba(4, 7, 14, 0.9) 100%); }
.hero__copy {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  padding: calc(var(--head-h) + clamp(12px, 4.4vh, 52px)) var(--gutter-r) clamp(24px, 5.5vh, 58px) var(--gutter);
  text-align: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: min(var(--text-hero), 11.6vh); line-height: var(--leading-tight); letter-spacing: -0.01em;
  color: var(--color-display);
  text-shadow: 0 2px 18px rgba(4, 7, 14, 0.75);
}
.hero__lead {
  max-width: 31em; margin: clamp(14px, 2.4vh, 24px) auto 0;
  font-family: var(--font-text); font-size: var(--text-lead); line-height: 1.45;
  color: var(--color-ink); text-wrap: balance;
  text-shadow: 0 1px 12px rgba(4, 7, 14, 0.9);
}
.hero__base { margin-top: auto; }
.hero__ctas { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 30px; }
.hero__fine { margin-top: 14px; font-family: var(--font-text); font-style: italic; font-size: 1.0625rem; color: var(--color-ink-soft); text-shadow: 0 1px 10px rgba(4, 7, 14, 0.95); }
@media (max-aspect-ratio: 3/4) {
  .hero { height: auto; min-height: max(100svh, 760px); }
  .hero__media { transform-origin: 50% 70%; }
  .hero__media img {
    left: 50%; bottom: 2%; height: auto; width: min(100%, max(60svh, 456px));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  }
  .hero__copy { position: relative; inset: auto; min-height: max(100svh, 760px); padding-top: calc(var(--head-h) + 4vh); }
  html:not(.js) .hero__copy { padding-top: 4vh; }
  .hero__base { margin-top: 28px; }
}
@media (max-width: 719.98px) {
  .hero__title { font-size: clamp(2.75rem, 13vw, 3.5rem); line-height: 1.08; }
  .hero__lead { font-size: 1.1875rem; max-width: 22em; }
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__fine { font-size: 1rem; margin-top: 8px; }
  .hero__shade { height: 16%; }
}

/* ---------- 2. The moment: type, then the lake with the line on its horizon ---------- */
.moment { padding-bottom: 0; }
.moment__moon { width: 22px; height: 22px; margin: 0 auto 22px; fill: var(--color-signal); }
.lake {
  /* the night-horizon art: its water line sits at 64% of the image; at a 12/5 band with object-position 72% it lands at 59% */
  --hz: 59%;
  position: relative; margin: clamp(48px, 6vw, 80px) 0 0; aspect-ratio: 12 / 5; max-height: 640px; width: 100%;
}
.lake__plate { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
.lake__plate picture { width: 100%; height: 100%; }
.lake__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.lake__scrim { /* a sibling, only where the line sits (never a full-frame overlay) */
  position: absolute; left: 50%; top: var(--hz); width: min(980px, 92vw); height: 34%; transform: translate(-50%, -100%);
  background: radial-gradient(52% 62% at 50% 72%, rgba(4, 7, 14, 0.86), rgba(4, 7, 14, 0.4) 62%, rgba(4, 7, 14, 0) 100%);
  pointer-events: none;
}
.lake__line, .lake__mirror { position: absolute; left: 0; right: 0; margin: 0; padding: 0 var(--gutter-r) 0 var(--gutter); text-align: center; }
.lake__line { bottom: calc(100% - var(--hz)); padding-bottom: 0.55em; }
.lake__line .statement { color: var(--color-ink); text-shadow: 0 1px 14px rgba(4, 7, 14, 0.95); max-width: 22em; margin-inline: auto; }
.lake__mirror { top: calc(var(--hz) - 0.45em); pointer-events: none; user-select: none; font-size: var(--text-statement); }
.lake__mirror .statement { font-size: 1em; }
.lake__mirror .statement {
  max-width: 22em; margin-inline: auto; color: var(--color-ink-soft);
  transform: scaleY(-1); opacity: 0.3;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 70%); mask-image: linear-gradient(0deg, #000 0%, transparent 70%);
}
.js-motion .lake.is-live .lake__mirror { filter: url(#fx-ripple); }
@media (max-width: 699.98px) {
  .lake { aspect-ratio: 1 / 1; --hz: 64%; }
  .lake__plate img { object-position: 50% 60%; }
  .lake__scrim { height: 44%; }
}

/* ---------- 3. The method: four lenses converge into the mark (the peak) ---------- */
.method { padding-bottom: clamp(40px, 6vw, 80px); }
.converge { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.converge.is-hold { height: calc(var(--stage-h, 640px) + var(--hold, 70vh)); }
.converge.is-hold .converge__stage { position: sticky; top: var(--stick, 0px); }
.converge__stage { position: relative; overflow-x: clip; }
.converge__field {
  --d: 168px;
  position: relative; display: flex; justify-content: center; gap: 56px;
  max-width: var(--wrap); margin: 0 auto; padding: calc(var(--d) * 0.42) var(--gutter-r) 36px var(--gutter);
}
.lens { position: relative; z-index: 1; margin: 0; width: var(--d); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lens.is-moving { will-change: transform; }
.lens__ring { position: relative; width: var(--d); height: var(--d); }
.lens__ring picture, .lens__ring img { position: absolute; left: 7px; top: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 50%; }
.lens__ring img { object-fit: cover; object-position: 50% 30%; }
.lens__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lens__ring circle { fill: none; stroke: url(#fmGold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.converge__star {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: calc(var(--d) * 0.6); height: calc(var(--d) * 0.6);
  margin: calc(var(--d) * -0.3) 0 0 calc(var(--d) * -0.3);
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(4, 7, 14, 0.6));
}
.converge__glow {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: calc(var(--d) * 3.2); height: calc(var(--d) * 3.2);
  margin: calc(var(--d) * -1.6) 0 0 calc(var(--d) * -1.6);
  background: radial-gradient(closest-side, rgba(227, 199, 126, 0.17), rgba(107, 30, 36, 0.08) 56%, rgba(4, 7, 14, 0) 100%);
  opacity: 0; pointer-events: none;
}
/* Reduced motion: the convergence cannot play, so its resolved state is shown as a still beneath the four lenses */
.converge__still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .converge__still { display: block; position: relative; width: 132px; height: 132px; margin: 8px auto 0; }
  .converge__still::before { content: ""; position: absolute; inset: -60%; background: radial-gradient(closest-side, rgba(227, 199, 126, 0.14), rgba(4, 7, 14, 0)); }
  .converge__still svg { position: relative; width: 100%; height: 100%; }
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 1040px; margin: 36px auto 0; padding: 0 var(--gutter-r) 0 var(--gutter); text-align: center; }
.step .ic { margin: 0 auto 16px; outline: 1px solid transparent; outline-offset: 4px; transition: box-shadow 600ms var(--ease-out), color 600ms var(--ease-out), outline-color 600ms var(--ease-out); }
.step__title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-h3); line-height: 1.18; color: var(--color-display); text-wrap: balance; transition: color 600ms var(--ease-out); }
.step p { margin: 10px auto 0; max-width: 21em; font-size: 1.09rem; line-height: 1.55; color: var(--color-ink-soft); text-wrap: balance; }
.step.is-lit .ic { color: var(--color-display-bright); box-shadow: inset 0 0 0 1px var(--color-display); outline-color: rgba(227, 199, 126, 0.32); }
.step.is-lit .step__title { color: var(--color-display-bright); }
@media (max-width: 899.98px) {
  .converge__field { --d: 112px; display: grid; grid-template-columns: repeat(2, var(--d)); gap: 28px 46px; justify-content: center; padding-top: 44px; padding-bottom: 28px; }
  .lens { gap: 12px; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; max-width: 440px; }
}

/* ---------- 4. Inside: real pages float above a waterline and drift sideways ---------- */
.inside { --page-w: 272px; --shore-top: 56px; padding-bottom: clamp(48px, 6vw, 88px); }
.shore { position: relative; margin-top: clamp(24px, 3vw, 40px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.shore__line, .shore__water { position: absolute; left: 0; right: 0; pointer-events: none; top: calc(var(--shore-top) + var(--page-w) * 1.5 + 14px); }
.shore__line { height: 1px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.5) 15%, rgba(227, 199, 126, 0.75) 50%, rgba(201, 162, 74, 0.5) 85%, transparent); transform-origin: 50% 50%; }
.shore__water { height: 300px;
  background: radial-gradient(42% 100% at 50% 0%, rgba(227, 199, 126, 0.12), rgba(227, 199, 126, 0.03) 45%, rgba(227, 199, 126, 0) 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.leaves-port { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.leaves-port::-webkit-scrollbar { display: none; }
.leaves-port:focus-visible { outline-offset: -3px; }
.leaves { position: relative; z-index: 1; list-style: none; display: flex; gap: 64px; width: max-content; padding: var(--shore-top) calc(50vw - var(--page-w) / 2) 16px; }
.leaf { width: var(--page-w); flex: none; scroll-snap-align: center; }
.leaf figure { margin: 0; }
.leaf__page {
  width: var(--page-w); aspect-ratio: 2 / 3; margin-bottom: calc(var(--page-w) * 0.5);
  box-shadow: var(--shadow-page);
  -webkit-box-reflect: below 28px linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2));
}
.leaf__page picture, .leaf__page img { width: 100%; height: 100%; }
.leaf__page img { object-fit: cover; }
.leaf figcaption { text-align: center; }
.leaf figcaption p { margin-top: 10px; font-size: 1.03rem; line-height: 1.55; color: var(--color-ink-soft); text-wrap: pretty; }
.shore.is-drift .leaves-port { overflow: visible; scroll-snap-type: none; }
.shore.is-drift .leaves { padding-left: 0; padding-right: 0; }
.shore.is-moving .leaves { will-change: transform; }
@media (max-width: 899.98px) {
  .inside { --page-w: min(64vw, 280px); --shore-top: 40px; }
  .leaves { gap: 22px; }
}
@supports not (-webkit-box-reflect: below 0) { .leaf__page { margin-bottom: 36px; } .shore__water { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  /* no drift: the pages tile as a still gallery, all seven reachable */
  .leaves { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 40px; padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .leaf__page { margin-bottom: 28px; -webkit-box-reflect: unset; }
  .shore { -webkit-mask-image: none; mask-image: none; }
  .shore__water, .shore__line { display: none; }
}

/* ---------- 5. From a reading: the one framed page on the site ---------- */
.excerpt__frame { max-width: 1040px; margin-inline: auto; text-align: center; }
.excerpt__label { margin-bottom: clamp(36px, 4.4vw, 56px); }
.quotes { list-style: none; max-width: 820px; margin-inline: auto; }
.quotes li + li::before {
  content: ""; display: block; width: 12px; height: 12px; margin: clamp(26px, 3.2vw, 38px) auto;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C10.6 6.4 13.6 9.4 20 10C13.6 10.6 10.6 13.6 10 20C9.4 13.6 6.4 10.6 0 10C6.4 9.4 9.4 6.4 10 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C10.6 6.4 13.6 9.4 20 10C13.6 10.6 10.6 13.6 10 20C9.4 13.6 6.4 10.6 0 10C6.4 9.4 9.4 6.4 10 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote .caption { display: block; margin-top: 14px; }
.excerpt__close { max-width: 30em; margin: clamp(40px, 5vw, 60px) auto 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem); line-height: 1.45; color: var(--color-display); text-wrap: balance; }

/* ---------- 6. Editions: three arched windows, the fullest raised and lit ---------- */
.editions-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); max-width: 1080px; margin: clamp(48px, 6vw, 72px) auto 0; align-items: stretch; }
.ed { display: flex; }
.ed:not(.ed--complete) { margin-top: 44px; }
.ed .arch-card { flex: 1; }
.ed--complete .arch-card { padding-top: clamp(76px, 8vw, 100px); }
.ed__star { width: 15px; height: 15px; margin-bottom: 18px; color: var(--color-accent); }
.ed__flag { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-display); }
.ed__flag svg { width: 9px; height: 9px; fill: var(--color-signal); flex: none; }
.ed__name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-h3); line-height: 1.22; color: var(--color-display); }
.ed__pages { margin-top: 10px; font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-ink-soft); padding-left: 0.22em; }
.ed__price { margin-top: 20px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.7rem + 1.2vw, 2.5rem); line-height: 1; color: var(--color-ink); font-variant-numeric: lining-nums; }
.ed__price span { font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--color-accent); vertical-align: 0.95em; margin-right: 8px; }
.ed__rule { width: 56px; height: 1px; margin: 24px auto; background: linear-gradient(90deg, transparent, var(--gold-600), transparent); }
.ed__desc { margin-bottom: 30px; max-width: 30ch; font-size: 1.03rem; line-height: 1.6; color: var(--color-ink-soft); text-wrap: pretty; }
.ed__btn { margin-top: auto; width: 100%; max-width: 250px; padding-inline: 18px; }
.editions__note { max-width: 46ch; margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; }
@media (max-width: 899.98px) {
  .editions-grid { grid-template-columns: 1fr; max-width: 380px; gap: 26px; }
  .ed:not(.ed--complete) { margin-top: 0; }
}

/* ---------- 7. What I need: four details in one ruled band ---------- */
.details { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1000px; margin: clamp(44px, 5vw, 64px) auto 0; }
.details li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 6px 22px; text-align: center; }
.details li + li::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: linear-gradient(180deg, transparent, var(--gold-600), transparent); transform-origin: 50% 50%; transition: transform 900ms var(--ease-out); }
.js-motion .details.is-pending li + li::before { transform: scaleY(0); }
.details__text { font-family: var(--font-display); font-weight: 500; font-size: var(--text-h4); line-height: 1.3; color: var(--color-ink); text-wrap: balance; }
.need__note { max-width: 34em; margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; font-size: 1.09rem; }
@media (max-width: 899.98px) {
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; max-width: 460px; }
  .details li + li::before { display: none; }
  .details li:nth-child(even)::before { display: block; }
  .details li { padding: 4px 12px; }
}

/* ---------- 8. More readings: the ledger (component in site.css) ---------- */
.readings__ledger { margin-top: clamp(44px, 5vw, 64px); }
/* Vedic tiers: the one cell that sells three depths holds a ruled price list (name and pages left, price right) */
.tiers { list-style: none; position: relative; width: 100%; max-width: 340px; margin: var(--space-6) auto 0; text-align: left; }
.tier {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  min-height: 60px; padding: 10px 6px 10px 4px;
  border-top: 1px solid var(--color-line-faint); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.tiers li:last-child .tier { border-bottom: 1px solid var(--color-line-faint); }
.tier__name { grid-column: 1; grid-row: 1; align-self: end; font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.25; color: var(--color-display); text-wrap: balance; transition: color var(--dur-fast) var(--ease-out); }
.tier__pages { grid-column: 1; grid-row: 2; align-self: start; margin-top: 4px; font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-ink-soft); }
.tier__price { grid-column: 2; grid-row: 1 / 3; font-family: var(--font-display); font-weight: 500; font-size: 1.3125rem; line-height: 1; color: var(--color-ink); font-variant-numeric: lining-nums; white-space: nowrap; }
.tier__cur { font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--color-accent); vertical-align: 0.3em; }
.tier__arrow { grid-column: 3; grid-row: 1 / 3; margin-left: 0; }
.tier:hover { background-color: rgba(201, 162, 74, 0.07); }
.tier:hover .tier__name { color: var(--color-display-bright); }
.tier:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 479.98px) { /* keeps "Complete Vedic Reading" on one line from 390px; it wraps as a balanced pair below that */
  .tier { column-gap: 10px; }
  .tier__name { font-size: 1.125rem; }
  .tier__price { font-size: 1.25rem; }
}

/* ---------- 9. Questions ---------- */
.questions .faq { margin-top: clamp(40px, 5vw, 60px); }

/* ---------- 10. Begin: the lockup on the water line, one button; it holds ---------- */
.begin { text-align: center; padding-bottom: clamp(96px, 12vw, 160px); overflow-x: clip; }
.lockup { position: relative; width: clamp(250px, 22vw, 300px); margin: 0 auto; }
.lockup::before { content: ""; position: absolute; left: 50%; top: 36%; z-index: -1; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(227, 199, 126, 0.17), rgba(107, 30, 36, 0.06) 55%, rgba(4, 7, 14, 0)); pointer-events: none; }
.lockup img { width: 100%; height: auto; }
.begin__water { width: min(420px, 84vw); height: 1px; margin: 40px auto 44px; background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.7) 30%, rgba(227, 199, 126, 0.85) 50%, rgba(201, 162, 74, 0.7) 70%, transparent); }
.begin__title { max-width: 14em; margin-inline: auto; }
.begin__btn { margin-top: 44px; }
