/* Cinematic stack + blueprint. Scoped to #anatomy so the hero stage is untouched. */
html, body { height: auto; min-height: 100%; }
#app { height: 100vh; height: 100dvh; }
@media (max-width: 900px) {
  #app { height: auto; }
}

#anatomy {
  position: relative;
  isolation: isolate;
  background: #000;
  color: #fff;
  overflow: clip;
}
#anatomy .bp-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
#anatomy .anatomy-intro,
#anatomy .anatomy-pin,
#anatomy .anatomy-cta { position: relative; z-index: 1; }

#anatomy .eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-inter, Inter), Inter, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4af37;
}
#anatomy .anatomy-intro {
  max-width: 980px;
  padding: 14vh 7vw 8vh;
}
#anatomy .anatomy-intro h2,
#anatomy .beat h3 {
  margin: 0;
  font-family: var(--font-inter, Inter), Inter, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(100deg, #ffffff 10%, #d4af37 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#anatomy .anatomy-intro h2 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
#anatomy .anatomy-intro .lede {
  max-width: 28ch;
  margin: 18px 0 0;
  font-size: 1.25rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

#anatomy .anatomy-pin {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(212, 175, 55, 0.16), transparent 58%),
    repeating-conic-gradient(from 0deg at 70% 46%, rgba(212, 175, 55, 0.05) 0deg 1.1deg, transparent 1.1deg 11deg);
}
#anatomy .part-progress {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 18px 6vw 0;
}
#anatomy .part-progress li {
  flex: 1;
  padding-top: 8px;
  border-top: 2px solid rgba(212, 175, 55, 0.22);
  font-family: var(--font-inter, Inter), Inter, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 220, 138, 0.38);
}
#anatomy .part-progress li.on {
  border-top-color: #d4af37;
  color: #f6dc8a;
}
#anatomy .anatomy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 4vh 6vw 8vh;
}
#anatomy .beats { display: grid; min-height: 220px; }
#anatomy .beat { max-width: 36rem; }
#anatomy .num {
  margin: 0;
  font-family: var(--font-poiret, "Poiret One"), "Poiret One", cursive;
  font-weight: 400;
  font-size: clamp(5rem, 12vw, 8.75rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px #f6dc8a;
}
#anatomy .beat h3 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
}
#anatomy .beat .line {
  margin: 0;
  max-width: 34ch;
  font-size: 1.2rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

#anatomy .bot-wrap { position: relative; }
#anatomy .bot-wrap svg {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
#anatomy .guides {
  fill: none;
  stroke: #d4af37;
  stroke-width: 0.6;
  opacity: 0.35;
}
#anatomy .seg {
  fill: url(#goldFill);
  stroke: #f3d77a;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: url(#goldGlow);
}
#anatomy .part-label {
  position: absolute;
  margin: 0;
  font-family: var(--font-inter, Inter), Inter, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4af37;
  white-space: nowrap;
}
#anatomy .part-label[data-label="0"] { top: 1%; left: 62%; }
#anatomy .part-label[data-label="1"] { top: 46%; left: 0; }
#anatomy .part-label[data-label="2"] { top: 28%; right: 0; left: auto; }
#anatomy .part-label[data-label="3"] { top: 20%; left: 38%; }
#anatomy .part-label[data-label="4"] { top: 64%; left: 68%; }
#anatomy .part-label[data-label="5"] { top: auto; bottom: 0; left: 50%; transform: translateX(-50%); }

#anatomy .anatomy-cta {
  text-align: center;
  padding: 10vh 24px 16vh;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.28), transparent 62%);
}
#anatomy .anatomy-cta h2 {
  margin: 0 auto 28px;
  max-width: 14ch;
  font-family: var(--font-inter, Inter), Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}
#anatomy .anatomy-cta h2 .gold { display: block; color: #d4af37; }
#anatomy .build-plan {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  overflow: hidden;
  border: 1px solid #d4af37;
  background: transparent;
  color: #f6dc8a;
  font-family: var(--font-inter, Inter), Inter, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
#anatomy .build-plan span { position: relative; z-index: 1; }
#anatomy .build-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #d4af37;
  transform: translateX(-101%);
  transition: transform 0.45s ease;
}
#anatomy .build-plan:hover::before,
#anatomy .build-plan:focus-visible::before { transform: translateX(0); }
#anatomy .build-plan:hover,
#anatomy .build-plan:focus-visible { color: #0d0b06; }

#plan {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 50vh;
  padding: 8px 8px 12px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
}
#quiz { scroll-margin-top: 20px; padding: 16px 14px 8px; }
.gold-shelf { position: relative; z-index: 1; padding: 8vh 7vw 12vh; background: #000; color: #fff; }
.gold-shelf .eyebrow { margin: 0 0 16px; font-family: var(--font-inter, Inter), Inter, sans-serif; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #d4af37; font-size: 12px; }
.gold-shelf-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gold-shelf a.gumroad-button { color: #f6dc8a; border: 1px solid #d4af37; border-radius: 999px; padding: 10px 14px; text-decoration: none; font-family: var(--font-inter, Inter), Inter, sans-serif; font-weight: 600; font-size: 14px; }
.gold-shelf-links { margin: 16px 0 0; color: rgba(255,255,255,.7); }
.gold-shelf-links a { color: #fff; }

html.anatomy-motion #anatomy .seg {
  fill: #0d0b06;
  stroke: #2c2512;
  filter: none;
}
html.anatomy-motion #anatomy .part-label { opacity: 0; }
html.anatomy-motion #anatomy .beats { display: grid; }
html.anatomy-motion #anatomy .beat { grid-area: 1 / 1; opacity: 0; }
html.anatomy-motion #anatomy .beat[data-beat="0"] { opacity: 1; }

@media (max-width: 820px) {
  #anatomy .bp-grid { background-size: 64px 64px; opacity: 0.85; }
  #anatomy .anatomy-pin {
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.14), transparent 62%);
  }
  #anatomy .seg { filter: none; }
  #anatomy .anatomy-layout {
    grid-template-columns: 1fr;
    padding: 8px 16px 20px;
  }
  #anatomy .num { font-size: 4.25rem; }
  #anatomy .beat h3 { font-size: 1.85rem; }
  #anatomy .beat .line { font-size: 1rem; }
  #anatomy .beats { order: 1; min-height: 0; }
  #anatomy .bot-wrap { order: 2; }
  #anatomy .bot-wrap svg { width: min(72vw, 250px); }
  #anatomy .anatomy-intro { padding: 64px 20px 24px; }
  #anatomy .part-progress { gap: 6px; padding: 12px 12px 0; }
  #anatomy .part-progress li { font-size: 8px; letter-spacing: 0.02em; }
  #anatomy .part-label { letter-spacing: 0.12em; }
  #anatomy .build-plan { width: min(100%, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  #anatomy .build-plan::before { transition: none; }
  #anatomy .anatomy-layout { grid-template-columns: 1fr; }
  #anatomy .bot-wrap { order: -1; max-width: 380px; margin: 0 auto; }
  #anatomy .beats { display: grid; gap: 36px; }
  #anatomy .beat { opacity: 1; }
  #anatomy .seg { filter: none; }
  #anatomy .part-progress li {
    color: #f6dc8a;
    border-top-color: #d4af37;
  }
  html.anatomy-motion #anatomy .beat {
    position: static;
    opacity: 1;
    grid-area: auto;
  }
  html.anatomy-motion #anatomy .part-label { opacity: 1; }
  html.anatomy-motion #anatomy .seg {
    fill: url(#goldFill);
    stroke: #f3d77a;
  }
}
