/* ============================================================
   TERRA ARCANA — HOMEPAGE
   Loads after terra-arcana.css
   ============================================================ */

/* ============================================================
   HERO — animation choreography preserved from original
   ============================================================ */

.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  padding: 120px var(--shell-pad) 88px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 72% 48%, rgba(201, 162, 85, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 560px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.hero-text.is-revealed {
  opacity: 1;
  transform: none;
}

.hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  margin-bottom: 26px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ivory-dim);
  max-width: 38ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ivory-mute);
  line-height: 1.7;
  max-width: 36ch;
}

.hero-visual {
  position: relative;
  z-index: 2;
  height: 640px;
  isolation: isolate;
}

.hero-pouch {
  width: 240px;
  position: absolute;
  bottom: 0;
  left: 50%;
  animation: pouchEntry .6s ease forwards,
             pouchOpen .5s ease 1s forwards,
             pouchMove .9s cubic-bezier(.4,0,.2,1) 1.8s forwards,
             pouchFloat 5s ease-in-out 2.8s infinite;
  transform: translateX(-50%) translateX(-120px);
  opacity: 0;
  z-index: 3;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,.5));
}

.coin-flip-wrap {
  width: 340px;
  height: 340px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-52%, -10%) scale(.08);
  opacity: 0;
  animation: coinReveal .9s cubic-bezier(.34,1.56,.64,1) 1.4s forwards,
             coinSettle .8s cubic-bezier(.4,0,.2,1) 2.2s forwards,
             coinFloat 6s ease-in-out 3.2s infinite;
  z-index: 4;
  perspective: 1000px;
}

.coin-flip-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  display: block;
}

.coin-flip-button::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 162, 85, 0.16);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .3s ease, transform .3s ease;
}

.coin-flip-button:hover::after,
.coin-flip-button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.coin-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: coinSpin 2.8s cubic-bezier(.4,0,.6,1) 4.2s 1 forwards;
  transition: transform 1.15s cubic-bezier(.22,1,.36,1);
}

.coin-flip-wrap.is-interactive .coin-flip-inner {
  animation: none;
  transform: rotateY(var(--coin-rotation, 0deg));
}

.coin-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.coin-front { transform: rotateY(0deg); }
.coin-back  { transform: rotateY(180deg); }

.coin-hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 24px);
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239, 229, 212, 0.5);
  white-space: nowrap;
  transition: opacity .3s ease;
  font-family: var(--sans);
}

.hero-card {
  width: 238px;
  position: absolute;
  bottom: 0;
  right: 0;
  transform: rotate(0deg) scale(.08) translateX(-60px);
  opacity: 0;
  animation: cardReveal .9s cubic-bezier(.34,1.56,.64,1) 1.7s forwards,
             cardSettle .8s cubic-bezier(.4,0,.2,1) 2.5s forwards,
             cardFloat 6s ease-in-out 3.4s infinite;
  z-index: 2;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,.55));
}

/* Hero animation keyframes */

@keyframes pouchEntry {
  from { opacity: 0; transform: translateX(-50%) translateX(-120px) scale(.85); }
  to   { opacity: 1; transform: translateX(-50%) translateX(-120px) scale(1); }
}
@keyframes pouchOpen {
  0%   { transform: translateX(-50%) translateX(-120px) scale(1); }
  50%  { transform: translateX(-50%) translateX(-120px) scale(1.06); }
  100% { transform: translateX(-50%) translateX(-120px) scale(1); }
}
@keyframes pouchMove {
  from { transform: translateX(-50%) translateX(-120px); }
  to   { transform: translateX(-185%); }
}
@keyframes pouchFloat {
  0%, 100% { transform: translateX(-185%) translateY(0); }
  50%      { transform: translateX(-185%) translateY(-9px); }
}
@keyframes coinReveal {
  0%   { opacity: 0; transform: translate(-52%, -10%) scale(.08); filter: drop-shadow(0 0 0 rgba(201,162,85,0)); }
  60%  { opacity: 1; transform: translate(-52%, -95%) scale(1.08); filter: drop-shadow(0 0 40px rgba(201,162,85,.3)); }
  100% { opacity: 1; transform: translate(-52%, -90%) scale(1.05); filter: drop-shadow(0 0 30px rgba(201,162,85,.18)); }
}
@keyframes coinSettle {
  from { transform: translate(-52%, -90%) scale(1.05); }
  to   { transform: translate(-52%, -62%) scale(1); filter: drop-shadow(0 30px 70px rgba(0,0,0,.8)); }
}
@keyframes coinFloat {
  0%, 100% { transform: translate(-52%, -62%) translateY(0); }
  50%      { transform: translate(-52%, -62%) translateY(-14px); }
}
@keyframes coinSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes cardReveal {
  0%   { opacity: 0; transform: rotate(0deg) scale(.08) translateX(-60px); }
  60%  { opacity: 1; transform: rotate(10deg) scale(1.08) translateX(30px); }
  100% { opacity: 1; transform: rotate(8deg) scale(1) translateX(20px); }
}
@keyframes cardSettle {
  from { transform: rotate(8deg) scale(1) translateX(20px); }
  to   { transform: rotate(6deg) scale(1) translateX(0); }
}
@keyframes cardFloat {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-8px); }
}

/* Mobile-tuned hero keyframes — pouch stays on-screen, card sits closer */
@keyframes pouchEntryMob {
  from { opacity: 0; transform: translateX(-50%) translateX(-30px) scale(.85); }
  to   { opacity: 1; transform: translateX(-50%) translateX(-30px) scale(1); }
}
@keyframes pouchOpenMob {
  0%   { transform: translateX(-50%) translateX(-30px) scale(1); }
  50%  { transform: translateX(-50%) translateX(-30px) scale(1.06); }
  100% { transform: translateX(-50%) translateX(-30px) scale(1); }
}
@keyframes pouchMoveMob {
  from { transform: translateX(-50%) translateX(-30px); }
  to   { transform: translateX(-50%) translateX(-100px); }
}
@keyframes pouchFloatMob {
  0%, 100% { transform: translateX(-50%) translateX(-100px) translateY(0); }
  50%      { transform: translateX(-50%) translateX(-100px) translateY(-6px); }
}
@keyframes cardRevealMob {
  0%   { opacity: 0; transform: rotate(0deg) scale(.08) translateX(-40px); }
  60%  { opacity: 1; transform: rotate(8deg) scale(1.04) translateX(-20px); }
  100% { opacity: 1; transform: rotate(6deg) scale(1) translateX(-30px); }
}
@keyframes cardSettleMob {
  from { transform: rotate(6deg) scale(1) translateX(-30px); }
  to   { transform: rotate(6deg) scale(1) translateX(-10px); }
}
@keyframes cardFloatMob {
  0%, 100% { transform: rotate(6deg) translateX(-10px) translateY(0); }
  50%      { transform: rotate(6deg) translateX(-10px) translateY(-6px); }
}

/* ============================================================
   SECTION RHYTHM
   ============================================================ */

.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
}

.section-head p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ivory-dim);
  max-width: 54ch;
  margin: 0 auto;
}

/* ============================================================
   HOW IT WORKS — 4-step editorial ribbon
   ============================================================ */

.howworks {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.howworks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.howworks-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-deep), var(--gold-deep), transparent);
  opacity: .5;
}

.howstep {
  padding: 0 24px;
  position: relative;
  text-align: left;
}

.howstep-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
  background: var(--ink);
  padding-right: 14px;
  position: relative;
  z-index: 1;
}

.howstep h3 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.howstep p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory-dim);
}

/* ============================================================
   VOLUMES — Vol I dominant, II & III tucked
   ============================================================ */

.volumes-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}

.volume {
  background: var(--ink);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  text-decoration: none;
  transition: background .4s var(--ease-in-out);
}

.volume:hover {
  background: var(--ink-1);
}

.volume-active {
  background: linear-gradient(180deg, var(--ink-1), var(--ink));
}

.volume-active:hover {
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
}

.volume-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-soft);
}

.volume-roman {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 1;
}

.volume-status {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-mute);
}

.volume-status--live {
  color: var(--gold);
}

.volume h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.0;
  margin-bottom: 4px;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
}

.volume-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-soft);
  margin-bottom: 10px;
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 1;
}

.volume p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ivory-dim);
  flex-grow: 1;
}

.volume-chapters {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
}

.volume-chapter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ivory-dim);
  padding: 5px 0;
  letter-spacing: 0.015em;
}

.volume-chapter .ch-num {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 11px;
  letter-spacing: 0.22em;
  min-width: 32px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.volume-chapter .ch-name {
  flex: 1;
}

.volume-chapter .ch-tag {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  padding: 3px 7px;
  border: 1px solid var(--hairline-soft);
}

.volume-chapter.is-live .ch-name { color: var(--ivory); }
.volume-chapter.is-live .ch-tag  { color: var(--gold); border-color: var(--hairline); }
.volume-chapter.is-sealed .ch-name { color: var(--ivory-mute); font-style: italic; }
.volume-chapter.is-sealed .ch-tag  { color: var(--ivory-mute); }

.volume-cta {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .3s var(--ease-in-out);
}

.volume-cta::after {
  content: "→";
  font-family: var(--serif);
  transition: transform .3s var(--ease-in-out);
}

.volume:hover .volume-cta::after {
  transform: translateX(4px);
}

.volume-cta--dim {
  color: var(--ivory-mute);
}
.volume-cta--dim::after {
  opacity: .4;
}

.volume-locked {
  opacity: .94;
}

.volume-chapter-withheld {
  color: var(--ivory-mute);
  font-style: italic;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  padding: 5px 0;
}

/* ============================================================
   ATLANTIS — the featured chapter (story-first)
   ============================================================ */

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.chapter-media {
  position: relative;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.chapter-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201, 162, 85, 0.06), transparent 65%);
  pointer-events: none;
}

.chapter-coin-front {
  width: 380px;
  max-width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
  position: relative;
  z-index: 1;
}

.chapter-coin-back {
  position: absolute;
  width: 180px;
  bottom: 30px;
  right: 20px;
  opacity: .75;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,.5));
  transform: rotate(-8deg);
  z-index: 0;
}

.chapter-body {
  max-width: 540px;
}

.chapter-body h2 {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.98;
  margin-bottom: 6px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.chapter-title-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-soft);
  margin-bottom: 32px;
  font-variation-settings: "opsz" 48, "SOFT" 80, "WONK" 1;
  display: block;
}

.chapter-body p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--ivory-dim);
}

.chapter-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.chapter-spec-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.chapter-spec-value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ivory);
  line-height: 1.3;
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 1;
}

.chapter-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================
   INSIDE THE SET
   ============================================================ */

.inside {
  border-top: 1px solid var(--hairline-soft);
}

.inside-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.inside-item {
  padding: 28px 24px;
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, rgba(239,229,212,0.015), transparent);
  transition: border-color .4s var(--ease-in-out), background .4s var(--ease-in-out);
}

.inside-item:hover {
  border-color: var(--hairline);
  background: linear-gradient(180deg, rgba(239,229,212,0.03), transparent);
}

.inside-num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-soft);
}

.inside-item h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.inside-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ivory-dim);
}

/* ============================================================
   ARCHIVE PREVIEW — stylised ledger teaser
   ============================================================ */

.archive-preview {
  background: linear-gradient(180deg, var(--ink-1), var(--ink));
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.archive-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.archive-preview-copy h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  margin-bottom: 24px;
}

.archive-preview-copy p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.archive-preview-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.ledger {
  padding: 40px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(239, 229, 212, 0.02), rgba(239, 229, 212, 0.005)),
    var(--ink-1);
  position: relative;
}

.ledger::before,
.ledger::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.ledger::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ledger::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-soft);
}

.ledger-title {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ivory);
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 1;
}

.ledger-meta {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.ledger-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.slot {
  aspect-ratio: 1;
  border: 1px solid var(--hairline-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(239, 229, 212, 0.015);
}

.slot-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ivory-mute);
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.slot.is-claimed {
  border-color: var(--gold);
  background:
    radial-gradient(circle at center, rgba(201, 162, 85, 0.18), transparent 65%),
    rgba(201, 162, 85, 0.04);
}

.slot.is-claimed::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--gold-soft), var(--gold-deep) 70%);
  box-shadow: 0 0 20px rgba(201, 162, 85, 0.25);
}

.slot.is-claimed .slot-num { display: none; }

.slot.is-sealed {
  border-color: var(--hairline);
  border-style: dashed;
}
.slot.is-sealed .slot-num {
  color: var(--ivory-mute);
  opacity: .5;
}

.ledger-caption {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.ledger-caption-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-mute);
}

.ledger-caption-value {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--gold-soft);
  font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 1;
}

/* ============================================================
   FOUNDER LETTER — paper flip
   ============================================================ */

.founder {
  padding: 120px 0;
  background: var(--paper);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.founder::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}

.founder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(58, 47, 32, 0), rgba(58, 47, 32, 0.06) 70%, rgba(58, 47, 32, 0.18));
}

.founder-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  position: relative;
  z-index: 2;
}

.founder-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.founder-eyebrow::before,
.founder-eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-ink);
  opacity: .6;
}

.founder h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper-ink);
  margin-bottom: 40px;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
}

.founder h2 em {
  font-style: italic;
  color: var(--gold-ink);
  font-variation-settings: "opsz" 96, "SOFT" 80, "WONK" 1;
}

.founder-letter p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  color: var(--paper-ink);
  margin-bottom: 22px;
  font-variation-settings: "opsz" 18, "SOFT" 50, "WONK" 0;
}

.founder-letter p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 78px;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  color: var(--gold-ink);
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.founder-letter p em {
  font-style: italic;
  color: var(--paper-quote);
}

.founder-sign {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-paper);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.founder-sign-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--gold-ink);
  line-height: 1;
  font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1;
}

.founder-sign-role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-quote);
}

/* ============================================================
   JOIN THE ARCHIVE — pre-launch signup
   ============================================================ */

.signup {
  padding: 120px 0 140px;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Drifting hairline paths — ocean currents / map contours.
   Sit behind the signup content at low opacity. */
.signup-paths {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%,
              rgba(0,0,0,.9) 0%, rgba(0,0,0,.45) 55%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%,
              rgba(0,0,0,.9) 0%, rgba(0,0,0,.45) 55%, transparent 90%);
}

.signup-paths svg {
  width: 100%;
  height: 100%;
  display: block;
}

.signup-paths path {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
}

/* Slow drift animation. Two timings so paths don't pulse together. */
@keyframes pathDriftA {
  0%, 100% { stroke-dashoffset: 0;    opacity: .08; }
  50%      { stroke-dashoffset: -80;  opacity: .22; }
}
@keyframes pathDriftB {
  0%, 100% { stroke-dashoffset: 0;    opacity: .12; }
  50%      { stroke-dashoffset: 60;   opacity: .05; }
}

.signup-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  position: relative;
  z-index: 1;
}

.signup h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.05;
  margin-bottom: 22px;
}

.signup p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
}

.signup-form button {
  appearance: none;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--ease-in-out);
}

.signup-form button:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.signup-status {
  margin-top: 18px;
  font-size: 13px;
  min-height: 18px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
}

.signup-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ivory-mute);
  letter-spacing: 0.04em;
}

/* ============================================================
   COUNTDOWN — dormant until a real launch date is set
   Shown only when .countdown[data-active="true"]
   ============================================================ */

.countdown {
  display: none;
  padding: 72px 0 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.countdown[data-active="true"] {
  display: block;
}

.countdown-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.countdown-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.countdown-eyebrow::before,
.countdown-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-deep);
  opacity: .6;
}

.countdown-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 40px;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}

.countdown-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-variation-settings: "opsz" 48, "SOFT" 80, "WONK" 1;
}

/* Dial row — hair-thin rules, Fraunces numerals, gold separators */
.countdown-dials {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 0 auto;
  max-width: 600px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 80px;
}

.countdown-value {
  font-family: var(--serif);
  font-size: clamp(44px, 5.2vw, 64px);
  line-height: 1;
  color: var(--ivory);
  font-feature-settings: "lnum", "tnum";
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.02em;
  transition: opacity .25s var(--ease-in-out);
}

.countdown-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.countdown-sep {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  color: var(--gold-deep);
  font-style: italic;
  align-self: flex-start;
  padding-top: 8px;
  opacity: .7;
}

.countdown-footer {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ivory-mute);
  font-style: italic;
  font-family: var(--serif);
}

/* Tick pulse — subtle, only the seconds unit gets it */
.countdown-unit--seconds .countdown-value {
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .85; }
}

/* ============================================================
   ARCHIVE INDEX STRIP — running ledger line between sections
   ============================================================ */

.archive-index {
  padding: 22px 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  position: relative;
  z-index: 2;
  background: rgba(10, 8, 6, 0.4);
}

.archive-index-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-mute);
}

.archive-index-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.archive-index-item + .archive-index-item::before {
  content: "·";
  color: var(--gold-deep);
  font-size: 14px;
  opacity: .7;
}

.archive-index-item strong {
  font-weight: 500;
  color: var(--gold-deep);
}

.archive-index-item em {
  font-style: normal;
  color: var(--ivory);
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .hero { gap: 40px; }
  .hero-visual { height: 540px; }
  .coin-flip-wrap { width: 280px; height: 280px; }
  .hero-pouch { width: 200px; }
  .hero-card { width: 200px; }

  .volumes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .volume-active {
    grid-column: 1 / -1;
  }

  .chapter-grid {
    gap: 48px;
  }

  .inside-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .archive-preview-grid {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 110px 0 72px;
  }

  .hero-text { padding: 0 var(--shell-pad); }

  .hero-visual {
    height: 460px;
    padding: 0 var(--shell-pad);
    overflow: hidden;
  }

  .coin-flip-wrap { width: 240px; height: 240px; }
  .hero-pouch { width: 150px; }
  .hero-card { width: 160px; right: var(--shell-pad); }

  /* Mobile-tuned animation endpoints — keep pouch + card on-screen */
  .hero-pouch {
    animation: pouchEntryMob .6s ease forwards,
               pouchOpenMob .5s ease 1s forwards,
               pouchMoveMob .9s cubic-bezier(.4,0,.2,1) 1.8s forwards,
               pouchFloatMob 5s ease-in-out 2.8s infinite;
  }
  .hero-card {
    animation: cardRevealMob .9s cubic-bezier(.34,1.56,.64,1) 1.7s forwards,
               cardSettleMob .8s cubic-bezier(.4,0,.2,1) 2.5s forwards,
               cardFloatMob 6s ease-in-out 3.4s infinite;
  }

  .section { padding: 80px 0; }

  .howworks-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .howworks-grid::before { display: none; }
  .howstep { padding: 0; }
  .howstep-num { background: transparent; padding-right: 0; }

  .volumes-grid {
    grid-template-columns: 1fr;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chapter-media {
    min-height: 400px;
    padding: 20px;
  }

  .chapter-coin-front { width: 280px; }
  .chapter-coin-back { width: 130px; }

  .chapter-specs {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .inside-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .archive-preview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ledger {
    padding: 28px 22px;
  }

  .ledger-slots {
    gap: 8px;
  }

  .slot-num { font-size: 15px; }

  .founder {
    padding: 80px 0;
  }

  .founder-letter p:first-of-type::first-letter {
    font-size: 60px;
  }

  .signup {
    padding: 80px 0 100px;
  }

  .signup-form {
    flex-direction: column;
  }

  .countdown {
    padding: 48px 0 0;
  }

  .countdown-dials {
    gap: 10px;
    padding: 24px 0;
  }

  .countdown-unit {
    min-width: 56px;
    gap: 8px;
  }

  .countdown-sep {
    padding-top: 4px;
  }

  .archive-index-inner {
    gap: 12px;
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  .archive-index-item {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .section-head h2 { font-size: 32px; }
  .chapter-body h2 { font-size: 40px; }
  .volume { padding: 32px 24px; }
  .volume h3 { font-size: 26px; }

  .archive-index {
    padding: 16px 0;
  }
}
