/* ============================================================
   The Money–Body Code — homepage.css
   Page-specific layer for templates/index.json. Loaded from
   layout/theme.liquid when template.name == 'index'.
   Shared tokens / containers / type / .glow-* live in base.css.
   Nav + footer CSS live in sections/header.liquid + footer.liquid.
   ============================================================ */

/* ── S1 · hero ── */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-2);
}
#hero-bg {
  position: absolute;
  top: -15%; left: 0; right: 0; bottom: -15%;
  background-size: 130%;
  background-position: 15% 51%;
  will-change: transform;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(226,191,106,.09), transparent 55%),
    radial-gradient(55% 90% at 88% 50%, rgba(6,5,6,.52) 0%, transparent 68%),
    linear-gradient(180deg, rgba(10,8,9,.44) 0%, rgba(10,8,9,.08) 28%, rgba(10,8,9,.58) 70%, rgba(8,7,8,.93) 100%);
}
.hero-body {
  position: relative; z-index: 2;
  width: 100%;
  margin-block: auto;
  padding-block: clamp(64px, 10vh, 120px);
}
.hero-copy {
  max-width: 780px;
  display: flex; flex-direction: column;
  gap: clamp(24px, 2.6vw, 36px);
}
.hero-h1 {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; letter-spacing: .004em;
  color: var(--cream); max-width: 25ch; text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.hero-h1 em { color: var(--cream); }
.hero-stack { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }
.hero-p {
  font-family: var(--font-b); font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.62; letter-spacing: .015em; color: rgba(245,242,237,.86);
}
.hero-terror {
  font-family: var(--font-d); font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.24; color: var(--cream);
}
.hero-fears { padding-left: 26px; border-left: 1px solid rgba(154,117,53,.45); }
.hero-fears p {
  font-family: var(--font-b); font-size: 14px;
  line-height: 1.66; letter-spacing: .015em; color: rgba(245,242,237,.82);
}
.hero-coda {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(56px,8vw,96px) clamp(24px,8vw,120px) clamp(64px,8vw,100px);
}
.hero-coda p {
  margin: 0 auto;
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem); line-height: 1.28; letter-spacing: .005em;
  color: var(--cream); text-wrap: balance; max-width: 36ch;
}
.hero-coda-rule {
  margin-top: 38px;
  width: 1px; height: clamp(32px, 4vw, 52px); margin-inline: auto;
  background: linear-gradient(to bottom, rgba(201,162,78,.5), transparent);
}

/* ── S2+S3 · shared-background zone (home-want-more) ── */
.wm-wrap {
  position: relative; overflow: hidden;
  background-size: cover; background-position: center 62%;
  background-color: var(--ink-2);
}
.wm-seam {
  position: absolute; top: 0; left: 0; right: 0;
  height: clamp(60px, 8vw, 100px);
  background: linear-gradient(to bottom, #080708 0%, transparent 100%);
  pointer-events: none; z-index: 2;
}
.s2-text-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(12,10,11,.58) 0%, rgba(12,10,11,.65) 100%);
}
.s3-text-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(12,10,11,.65) 0%, rgba(12,10,11,.25) 100%);
}
.s2s3-mobile-scrim {
  display: none;
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: rgba(12,10,11,.68);
}
.s3-scrim-top {
  display: none;
  position: absolute; top: 0; left: 0; right: 0;
  height: clamp(100px, 14vw, 180px);
  background: linear-gradient(to bottom, var(--ink) 0%, transparent 100%);
  pointer-events: none; z-index: 1;
}
.s2s3-bridge { display: none; pointer-events: none; }
@media (max-width: 720px) {
  /* mobile: one flat scrim across both halves — drop the per-half vignettes so
     there's no sudden darkening (hard line) at the S2 → S3 seam */
  .s2-text-vignette,
  .s3-text-vignette { display: none; }
  .s2s3-mobile-scrim { display: block; }
}

/* S2 content */
.wm-content {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 2.5vw, 28px);
}
.wm-h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; max-width: 18ch; }
.label-pair { display: flex; gap: clamp(16px, 2vw, 28px); }
.label-pair span {
  font-family: var(--font-b); font-size: 10px; letter-spacing: .32em;
  text-transform: uppercase; color: rgba(226,191,106,.72);
}
.wm-body { max-width: 46ch; line-height: 1.72; color: rgba(245,242,237,.86); }
.wm-pull {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(17px, 1.85vw, 22px); line-height: 1.38;
  color: rgba(245,242,237,.68); max-width: 36ch; text-wrap: balance;
}
.wm-rule { width: 40px; height: 1px; background: var(--line-gold); margin-block: clamp(24px, 3.5vw, 40px); }
.wm-card {
  background: var(--cream); border: 1px solid rgba(201,162,78,.6);
  padding: 7px; max-width: 580px; width: 100%;
}
.wm-card-inner {
  border: 1px solid rgba(201,162,78,.6);
  padding: clamp(36px, 4.5vw, 56px) clamp(28px, 4vw, 52px);
  text-align: center;
}
.wm-card-inner p {
  font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.22;
  color: var(--ink); max-width: 32ch; text-wrap: balance;
  margin: 0 auto;
}

.s3-scene {
  position: relative; overflow: hidden;
  padding-block: 0;
  min-height: clamp(520px, 65vw, 780px);
  background: transparent;
  display: flex; align-items: stretch;
}
.s3-content {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding-block: clamp(64px, 9vw, 120px);
}
.s3-content > div { width: min(48%, 540px); display: flex; flex-direction: column; }
.s3-heading-block { margin-bottom: clamp(16px, 2vw, 24px); }
.s3-heading-block .h2 { margin-bottom: 16px; }
.s3-freedoms { margin-bottom: clamp(16px, 2vw, 24px); }
.s3-freedom {
  padding: clamp(14px, 1.8vw, 20px) 0;
  border-top: 1px solid var(--line-gold);
}
.s3-freedom:last-child { border-bottom: 1px solid var(--line-gold); }
.s3-freedom p {
  font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-size: clamp(19px, 2.2vw, 26px); line-height: 1.32; color: var(--cream); margin: 0;
}
#ff-arm {
  position: absolute; bottom: 0; left: clamp(20px, 5vw, 56px);
  width: clamp(300px, 45vw, 600px);
  pointer-events: none; z-index: 3;
}
#ff-arm img { display: block; width: 100%; height: auto; }

/* ── S5 · offer (framed plate + straddling mockup) ── */
.s5-section { position: relative; padding-block-start: 0; }
.s5-caustic-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.s5-blob {
  position: absolute; border-radius: 50%;
  mix-blend-mode: screen; transform: translate(-50%, -50%);
}

.s5-plate {
  position: relative; z-index: 1;
  width: 100%;
  min-height: clamp(340px, 38vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(201,162,78,.3);
  box-shadow: 0 28px 64px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
.s5-plate-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.s5-plate-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(18,15,16,.45) 0%, rgba(18,15,16,.82) 80%);
}
.s5-plate-text {
  position: relative; z-index: 1; text-align: center;
  padding: clamp(2.5rem,4vw,4rem) clamp(1rem,3vw,2.5rem) 15%;
  max-width: 80ch;
}
@media (min-width: 861px) { .s5-plate-text { padding-bottom: 12%; } }
@media (max-width: 860px) { .s5-plate-text { padding-bottom: 19%; } }
.s5-plate-eyebrow {
  font-family: var(--font-b); font-weight: 600; font-size: 10px;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.s5-plate-h2 {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05;
  color: var(--cream); margin-bottom: 1.3rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.s5-plate-lede {
  font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55;
  color: rgba(245,242,237,.82); max-width: 46ch; margin: 0 auto; text-wrap: balance;
}

.s5-mockup {
  position: relative; z-index: 2;
  width: clamp(280px, 42vw, 480px);
  margin: -13% auto 0;
  pointer-events: none;
  overflow: hidden;
  aspect-ratio: 900 / 590;   /* fallback height for the 900×590 design canvas; JS sets the real height */
}
#s5-lp-inner { transform-origin: top left; }

.s5-body {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(40px, 3.5vw, 48px);
  padding-block-start: clamp(38px, 4.1vw, 47px);
}
.s5-intro { max-width: 52ch; line-height: 1.78; color: rgba(245,242,237,.86); }
.s5-close {
  font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.28;
  color: var(--cream); max-width: 40ch; text-wrap: balance;
}

.g-offer {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  width: 100%; max-width: 860px;
}
.g-offer > div {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .7rem;
  padding: clamp(24px, 2.4vw, 28px) clamp(12px, 1.5vw, 18px);
  border-top: 2px solid var(--gold-dark);
  background: linear-gradient(180deg, rgba(201,162,78,.07) 0%, rgba(18,15,16,1) 100%);
}
.g-offer-word {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.08; color: var(--cream);
}
.g-offer-sub {
  font-family: var(--font-b); font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light);
}

/* mockup animation */
@keyframes lp-breathe { 0%,100% { transform: scale(.97); opacity: .58; } 50% { transform: scale(1.05); opacity: .80; } }
@keyframes lp-float { 0% { transform: translateY(14px); opacity: 0; } 22% { opacity: .75; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes lp-sheen { 0%,100% { opacity: .5; } 50% { opacity: .8; } }
@keyframes mbc-glow2 { 0%,100% { box-shadow: 0 0 0 0 rgba(201,162,78,0); } 50% { box-shadow: 0 0 26px 2px rgba(201,162,78,.5); } }
@keyframes mbc-pip2 { 0%,100% { opacity: .6; transform: translateY(-50%) scale(1); } 50% { opacity: 1; transform: translateY(-50%) scale(1.25); } }
@keyframes mbc-ripple2 { 0% { transform: scale(.55); opacity: .65; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes mbc-breathe2 { 0%,100% { transform: scale(.94); opacity: .55; } 50% { transform: scale(1.06); opacity: .9; } }
.lp-scope .lp-glow, .lp-scope .lp-particles, .lp-scope .lp-sheen-lay { animation: none; }
.lp-scope.lp-alive .lp-glow { animation: lp-breathe 8.5s ease-in-out infinite; }
.lp-scope.lp-alive .lp-sheen-lay { animation: lp-sheen 9s ease-in-out infinite; }
.lp-scope.lp-alive .lp-particles span { animation-name: lp-float; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.lp-scope .lp-play {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(150deg, #E2BF6A, #B98F3E); flex: none;
  animation: mbc-glow2 3.4s ease-in-out infinite;
}
.lp-scope .lp-bar-fill::after {
  content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-light); box-shadow: 0 0 8px rgba(226,191,106,.9);
  animation: mbc-pip2 2.4s ease-in-out infinite;
}

/* ── S6 · Rose intro banner ── */
.rose-banner-section { padding-block: 0; }
.rose-banner { position: relative; width: 100%; height: clamp(320px, 44vw, 560px); overflow: hidden; }
.rose-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rose-banner-fade-v {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 28%, transparent 58%, var(--ink) 100%);
}
.rose-banner-fade-h {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,15,16,.62) 0%, transparent 44%, rgba(18,15,16,.44) 100%);
}
.rose-banner-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 clamp(20px, 5vw, 56px) clamp(28px, 4vw, 52px);
}
.rose-banner-h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; }

/* ── S6 story + S7 testimonials · shared-background zone ── */
.story-wrap { position: relative; overflow: hidden; background: var(--ink); }
.s6s7-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; z-index: 0; }

.story-block { position: relative; padding-bottom: clamp(40px, 6vw, 72px); }
.story-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18,15,16,1) 0%, rgba(18,15,16,.90) 12%, rgba(18,15,16,.75) 50%, rgba(18,15,16,.62) 100%);
}
.story-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding-block-start: clamp(10px, 1.2vw, 18px);
}
.story-p { max-width: 58ch; line-height: 1.84; }
.story-p p + p { margin-top: 16px; }
.story-emphasis {
  margin-block: clamp(24px, 3vw, 38px);
  padding-left: clamp(20px, 2.6vw, 28px);
  border-left: 1px solid rgba(201,162,78,.38);
  display: flex; flex-direction: column; gap: 6px;
}
.story-emphasis p {
  font-family: var(--font-b); font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7; letter-spacing: .015em; color: var(--cream);
}
.story-italic {
  font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.24;
  color: var(--cream); margin-block: clamp(28px, 3.2vw, 44px);
}
.story-italic--gold { color: var(--gold-light); }

.testi-block { position: relative; padding-block: clamp(64px, 8vw, 96px); }
.testi-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,15,16,.62) 0%, rgba(18,15,16,.82) 24%, rgba(18,15,16,.82) 100%);
}
.testi-inner { position: relative; z-index: 1; }
.testi-head { text-align: center; margin-bottom: clamp(36px, 4.5vw, 54px); max-width: 860px; margin-inline: auto; }
.oracle-eye { display: block; margin: 0 auto clamp(14px, 1.8vw, 20px); }
.testi-heading {
  font-family: var(--font-b); font-weight: 400;
  font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .22em;
  text-transform: uppercase; color: rgba(245,242,237,.72); text-wrap: balance; margin: 0;
}
.testi-rule { margin: 20px auto 0; width: 48px; height: 1px; background: var(--gold); opacity: .5; }

.testi-hero {
  margin: 0 auto clamp(52px, 6.5vw, 72px); max-width: 680px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.testi-hero blockquote {
  margin: 0; font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.35; color: var(--cream); text-wrap: balance;
}
.testi-hero figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.testi-hero .testi-attr { font-family: var(--font-b); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.testi-hero .testi-source { font-family: var(--font-b); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(226,191,106,.42); }

.s7-3up {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(24px, 3vw, 40px);
}
.testi-item {
  margin: 0; padding-left: 20px; border-left: 1.5px solid rgba(201,162,78,.35);
  display: flex; flex-direction: column; gap: 16px;
}
.testi-item blockquote {
  margin: 0; font-family: var(--font-d); font-style: italic; font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.45; color: var(--cream);
}
.testi-item figcaption { display: flex; flex-direction: column; gap: 5px; }
.testi-item .testi-attr { font-family: var(--font-b); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.testi-item .testi-source { font-family: var(--font-b); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(226,191,106,.4); }
.testi-hero blockquote p, .testi-item blockquote p { margin: 0; font: inherit; color: inherit; }
.testi-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
  z-index: 0; /* behind the quotes — was covering the last one */
}
@media (max-width: 640px) { .testi-fade { height: 120px; } }

/* ── S8 · journal coda ── */
.s8-caustics { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.journal-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.journal-italic {
  font-family: var(--font-d); font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--cream);
}
.journal-link { display: inline-block; margin-top: 6px; }

/* ── responsive ── */
@media (max-width: 860px) {
  .g-test  { grid-template-columns: 1fr !important; }
  .g-offer { grid-template-columns: repeat(2, 1fr) !important; }
  .s5-mockup { width: clamp(220px, 58vw, 340px) !important; margin-top: -18% !important; }
  #hero-bg {
    background-size: cover !important;
    background-position: 50% 35% !important;
    top: 0 !important; bottom: 0 !important;
    transform: none !important;
  }
  #hero::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(8,7,8,.42); pointer-events: none; z-index: 1;
  }
}
@media (min-width: 769px) and (max-width: 1100px) { #ff-arm { left: 0 !important; } }
@media (min-width: 769px) and (max-width: 1280px) {
  #hero-bg { background-size: cover !important; background-position: 40% 51% !important; }
}
@media (max-width: 640px) {
  .label-pair { flex-direction: column; gap: 4px; }
  #ff-arm { display: none; }
  .s3-content { justify-content: flex-start !important; }
  .s3-content > div { width: 100% !important; }
  .g-test { gap: clamp(36px, 6vw, 56px) !important; }
  .g-test > div { display: contents; }
  .s7-3up { grid-template-columns: 1fr !important; gap: clamp(36px, 5vw, 48px) !important; }
  .s8-caustics { opacity: .45; }

  /* tighten loose body leading, open up the tight closing lines — balance the two */
  .s5-intro { line-height: 1.6; }
  .s5-close { line-height: 1.42; }
  .story-p,
  .story-p p { line-height: 1.62; }
  .story-emphasis p { line-height: 1.55; }
}

/* S1 hero — more breathing room between blocks on small screens */
@media (max-width: 700px) {
  .hero-body { padding-block: clamp(84px, 13vh, 120px); }
  .hero-copy { gap: 32px; }
  .hero-stack { gap: 26px; }
  .hero-coda { padding-top: clamp(72px, 12vw, 100px); }
}
