/* =====================================================================
   home.css — Home page layout & section shapes.
   Reusable system lives in observatory.css; this file is the rhythm.
   ===================================================================== */

/* ---------- HERO ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(8rem, 16vh, 12rem) var(--gutter) clamp(4rem, 9vh, 7rem);
  gap: clamp(1.8rem, 4vh, 3rem);
  overflow: hidden;
}
.hero-stage {
  --stage: min(52vmin, 480px);
  position: relative;
  width: var(--stage); height: var(--stage);
  display: grid; place-items: center;
  flex: 0 0 auto;
  order: 2;
}
.orrery-frame { position: relative; width: 100%; height: 100%; border-radius: 50%; }
#orrery { width: 100%; height: 100%; }

/* porthole ornament — brass dome under glass */
.orrery-frame::before, .orrery-frame::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.orrery-frame::before {  /* engraved tick ring + brass bezel */
  inset: -5%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0 2deg, color-mix(in oklab, var(--gold) 35%, transparent) 2deg 2.25deg, transparent 2.25deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 49.5%, #000 50% 53%, transparent 54%);
          mask: radial-gradient(circle, transparent 0 49.5%, #000 50% 53%, transparent 54%);
  opacity: 0.7;
}
.orrery-frame::after {  /* bezel + inner glass highlight */
  inset: 0;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--gold) 55%, transparent),
    0 0 0 7px color-mix(in oklab, var(--ink) 70%, transparent),
    0 0 0 8px color-mix(in oklab, var(--gold-deep) 50%, transparent),
    0 0 0 9px color-mix(in oklab, var(--gold) 30%, transparent),
    inset 0 18px 60px oklch(0.99 0 0 / 0.10),
    inset 0 -30px 80px oklch(0.06 0 0 / 0.7),
    0 50px 130px oklch(0 0 0 / 0.6);
}

/* the dome glass cap (specular) */
.orrery-frame .dome {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(120% 80% at 32% 18%, oklch(0.99 0 0 / 0.16), transparent 46%),
    radial-gradient(60% 50% at 70% 88%, oklch(0.70 0 0 / 0.10), transparent 60%);
  mix-blend-mode: screen;
}

/* engraving caption beneath the porthole */
.hero-cap {
  order: 3;
  font-size: 0.82rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8;
  display: inline-flex; align-items: center; gap: 0.8em;
}
.hero-cap::before, .hero-cap::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-cap::after { transform: scaleX(-1); }

.hero-copy { order: 1; max-width: 840px; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.hero-copy h1 { margin: 0.3rem 0 0.2rem; max-width: none; text-wrap: nowrap; line-height: 1.08; }
.hero-copy h1 em { display: inline-block; padding-bottom: 0.08em; }
.hero-copy .lead { max-width: 600px; }
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: center; margin-top: 0.4rem; }

/* full-bleed framing: system fills hero, copy floats over it */
body[data-hero="bleed"] .hero-stage {
  position: absolute; inset: 0; width: 100%; height: 100%;
  --stage: 100%;
}
body[data-hero="bleed"] .orrery-frame { border-radius: 0; }
body[data-hero="bleed"] .orrery-frame::before,
body[data-hero="bleed"] .orrery-frame::after { display: none; }
body[data-hero="bleed"] .orrery-frame .dome { display: none; }
body[data-hero="bleed"] .hero-cap { display: none; }
body[data-hero="bleed"] .hero-copy {
  position: relative; z-index: 3;
  background: radial-gradient(120% 120% at 50% 60%, oklch(0.10 0 0 / 0.55), transparent 70%);
  padding: 2rem;
}
body[data-hero="bleed"] .hero { justify-content: center; }

/* floating framing: no bezel, system glows free in space */
body[data-hero="float"] .orrery-frame::before,
body[data-hero="float"] .orrery-frame::after { display: none; }
body[data-hero="float"] .orrery-frame .dome { opacity: 0.5; }
body[data-hero="float"] .hero-stage { --stage: min(60vmin, 560px); }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--ivory-faint); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  z-index: 4;
}
.scroll-cue .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px var(--gold); animation: cueFall 2.2s var(--ease-soft) infinite; }
@keyframes cueFall { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* hero stat strip */
.hero-strip {
  order: 4;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: 0.6rem;
  color: var(--ivory-dim);
}
.hero-strip .stat { display: inline-flex; align-items: baseline; gap: 0.5em; font-size: 0.92rem; letter-spacing: 0.02em; }
.hero-strip .stat b { font-family: "Fraunces", serif; font-weight: 400; color: var(--gold); font-size: 1.15rem; }
.hero-strip .sep { width: 1px; height: 22px; background: var(--line); }
@media (max-width: 620px) { .hero-strip .sep { display: none; } }

/* ---------- MANIFESTO (centered moment) ----------------------------- */
.manifesto { text-align: center; }
.manifesto .inner { max-width: 940px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--s5); }
.manifesto .big {
  font-family: "Fraunces", serif; font-weight: 340;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1.28; color: var(--ivory); letter-spacing: -0.01em;
  text-wrap: balance;
}
.manifesto .big em { font-style: italic; color: var(--gold-soft); }

/* ---------- HOW IT WORKS (asymmetric 3 steps) ----------------------- */
.how-head { display: grid; grid-template-columns: 1fr; gap: var(--s4); max-width: 620px; margin-bottom: var(--s7); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); }
.step { position: relative; padding-top: var(--s5); }
.step:nth-child(2) { transform: translateY(var(--step-offset, 3rem)); }
.step:nth-child(3) { transform: translateY(calc(var(--step-offset, 3rem) * 2)); }
.step .numeral { display: block; margin-bottom: var(--s3); }
.step h4 { margin-bottom: var(--s2); }
.step .rule-short { margin-bottom: var(--s4); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
  .step:nth-child(2), .step:nth-child(3) { transform: none; }
}

/* ---------- RARITY (Gravity ladder, layered band) ------------------- */
.rarity { position: relative; }
.rarity-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .rarity-grid { grid-template-columns: 1fr; } }
.ladder { display: flex; flex-direction: column; gap: 2px; }
.tier {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s4);
  padding: 1.05rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--indigo) 40%, transparent), transparent);
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-cinematic);
}
.tier:hover { border-color: var(--gold); transform: translateX(6px); }
.tier .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.tier .name { font-family: "Fraunces", serif; font-size: 1.25rem; color: var(--ivory); font-weight: 400; }
.tier .req { font-size: 0.92rem; color: var(--gold); letter-spacing: 0.02em; }
.tier[data-level="0"] .dot { color: var(--ivory-faint); background: var(--ivory-faint); }
.tier[data-level="1"] .dot { color: var(--j-glacial); background: oklch(0.66 0 0); }
.tier[data-level="2"] .dot { color: oklch(0.82 0 0); background: oklch(0.82 0 0); }
.tier[data-level="3"] .dot { color: var(--gold); background: var(--gold); }
.tier[data-level="4"] .dot { color: var(--gold-soft); background: radial-gradient(circle at 40% 35%, #fff, var(--gold)); box-shadow: 0 0 18px var(--gold); }

/* ---------- LINE-UPS (horizontal rail) ------------------------------ */
.lineups { overflow: hidden; }
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: clamp(1rem, 2.5vw, 1.8rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 2rem;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.lineup-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(240px, 32vw, 320px);
  padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s4);
  min-height: 340px;
}
.lineup-card .glyph { height: 120px; display: grid; place-items: center; }
.lineup-card h4 { color: var(--ivory); }
.lineup-card .badge-tag { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.lineup-card p { font-size: 0.96rem; color: var(--ivory-dim); }
.rail-hint { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-faint); }

/* alignment glyph (simple circles + line — drawn with CSS) */
.align { position: relative; width: 150px; height: 60px; }
.align i { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.align .sun { left: 6px; width: 16px; height: 16px; color: var(--gold); background: radial-gradient(circle at 40% 35%, #fff, var(--gold)); }

/* ---------- GALLERY teaser (framed grid) ---------------------------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin-top: var(--s7);
}
@media (max-width: 820px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 30%, var(--ink-2), var(--ink));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 0 6px oklch(0.06 0 0 / 0.6), inset 0 0 0 7px var(--line-soft);
  transition: transform 0.6s var(--ease-cinematic), box-shadow 0.6s;
}
.frame:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 6px oklch(0.06 0 0 / 0.6), inset 0 0 0 7px var(--gold), var(--shadow-deep); }
.frame .mini { position: absolute; inset: 0; display: grid; place-items: center; }
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9rem 1.1rem;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.8rem; letter-spacing: 0.06em;
  background: linear-gradient(0deg, oklch(0.06 0 0 / 0.85), transparent);
  color: var(--ivory-dim);
}
.frame figcaption .id { color: var(--gold); font-family: "Fraunces", serif; }

/* mini generative system (pure CSS) */
.mini-sys { position: relative; width: 78%; aspect-ratio: 1; }
.mini-sys .star { position: absolute; inset: 50% auto auto 50%; width: 12px; height: 12px; transform: translate(-50%,-50%);
  border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--gold)); box-shadow: 0 0 18px var(--gold); }
.mini-sys .ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border: 1px solid var(--line-soft); border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spin var(--rs, 40s) linear infinite; }
.mini-sys .ring::after { content: ""; position: absolute; width: var(--pz, 8px); height: var(--pz, 8px); border-radius: 50%;
  top: -4px; left: 50%; transform: translateX(-50%); background: var(--pc, var(--j-ocean)); box-shadow: 0 0 10px var(--pc, var(--j-ocean)); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mini-sys .ring { animation: none; } }

/* ---------- MINT CTA ------------------------------------------------ */
.mint { position: relative; }
.mint-card {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 24px;
}
@media (max-width: 820px) { .mint-card { grid-template-columns: 1fr; text-align: center; } .mint-card .mint-preview { order: -1; } }
.mint-preview { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.mint-preview .mini-sys { width: 86%; }
.mint-points { display: flex; flex-direction: column; gap: var(--s3); margin: var(--s4) 0; }
.mint-points li { list-style: none; display: flex; gap: 0.8rem; align-items: baseline; color: var(--ivory); }
.mint-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); flex: 0 0 auto; transform: translateY(0.4em); }
.mint-free { font-family: "Fraunces", serif; font-size: clamp(1.4rem,1rem+1.6vw,2.1rem); color: var(--gold-soft); font-weight: 380; }

/* ---------- FOOTER -------------------------------------------------- */
.site-footer { position: relative; z-index: 2; padding-top: var(--s8); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); padding-bottom: var(--s7); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: var(--s5); } }
.footer-brand .wordmark { font-size: 1.7rem; margin-bottom: var(--s4); }
.footer-col h5 { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--ivory-dim); transition: color 0.3s; font-size: 0.96rem; }
.footer-col a:hover { color: var(--ivory); }
.soon { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); background: var(--gold-deep); padding: 0.15em 0.5em; border-radius: 999px; margin-left: 0.5em; vertical-align: middle; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s5); border-top: 1px solid var(--line-soft); }
