/* A realm beneath the oak: dungeon synth meets storybook. */

@font-face {
  font-family: "Grenze Gotisch";
  src: url("../fonts/grenze-gotisch-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("../fonts/alegreya-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("../fonts/alegreya-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("../fonts/alegreya-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --night: #0d1310;
  --night-2: #131c17;
  --bark: #1a231d;
  --moss: #6f8a4e;
  --moss-deep: #3f5530;
  --lichen: #b8c493;
  --parchment: #ece2c8;
  --parchment-dim: #c9bfa5;
  --lantern: #f3b95f;
  --ember: #e08a3c;
  --moon: #a9bfe0;
  --text: #e9e0c9;
  --text-dim: #bdb49c;
  --display: "Grenze Gotisch", "UnifrakturMaguntia", Georgia, serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --wrap: 1100px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(111,138,78,.10), transparent 60%),
    radial-gradient(900px 700px at 0% 40%, rgba(243,185,95,.05), transparent 60%),
    var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1.07rem, 1rem + .3vw, 1.2rem);
  line-height: 1.62;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lantern); text-underline-offset: .18em; }
a:hover { color: #ffd38e; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; }
strong { color: #fff3d6; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--lantern); color: #1a1208; padding: 12px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; position: relative; z-index: 2; }
.wrap.narrow { --wrap: 720px; }

/* ---------- Type ---------- */
h1, h2, h3, .section-title { font-family: var(--display); font-weight: 600; letter-spacing: .01em; line-height: 1.05; color: var(--parchment); }
h1 { max-width: 12ch; font-size: clamp(3.1rem, 2rem + 6vw, 6.4rem); margin: .1em 0 .2em; font-weight: 700;
  text-shadow: 0 2px 24px rgba(0,0,0,.6), 0 0 40px rgba(243,185,95,.18); }
.section-title { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.8rem); margin: .1em 0 .45em; }
.section-title em, h1 em { font-style: normal; color: var(--lantern); }
h3 { font-size: clamp(1.55rem, 1.3rem + .8vw, 1.9rem); margin: 0 0 .3em; }
.kicker, .eyebrow {
  font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lichen); margin: 0;
}
.eyebrow em { text-transform: none; letter-spacing: .04em; font-size: 1.1em; color: var(--lantern); }
.section-lede { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); color: var(--text); max-width: 46ch; margin: 0 0 1.6em; }
.section-lede.center { margin-inline: auto; text-align: center; margin-top: 2em; }
.prose p { margin: 0 0 1.05em; max-width: 62ch; }
.footnote { font-size: .92rem; color: var(--text-dim); max-width: 70ch; margin-top: 2rem; font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero-art { position: absolute; inset: -6% 0 -6% 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 34% 55%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,19,16,.55) 0%, rgba(13,19,16,0) 22%, rgba(13,19,16,0) 42%, rgba(13,19,16,.78) 72%, var(--night) 100%),
    radial-gradient(80% 60% at 20% 100%, rgba(13,19,16,.7), transparent 70%);
}
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
}
.brand { font-family: var(--display); font-size: 1.6rem; color: var(--parchment); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.brand span { color: var(--lantern); }
.pdf-link {
  display: inline-flex; gap: .45em; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(236,226,200,.35); border-radius: 999px; color: var(--parchment); text-decoration: none;
  background: rgba(13,19,16,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .95rem;
}
.pdf-link:hover { border-color: var(--lantern); color: var(--lantern); }
.pdf-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-copy { padding: 0 var(--gutter) clamp(28px, 8vh, 80px); max-width: 920px; position: relative; z-index: 2; }
.lede { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); max-width: 40ch; margin: 0 0 1.4em; color: #f1e8d2; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.scroll-cue { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; color: var(--lichen); text-decoration: none; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.credit {
  display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--parchment-dim); background: rgba(13,19,16,.72); padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(236,226,200,.18);
}
.credit.krea { color: var(--lichen); }
.hero-credit { position: absolute; right: var(--gutter); bottom: 18px; z-index: 3; }
@media (min-width: 1180px) {
  .hero-art img { object-position: 60% 55%; }
  .hero-copy { margin-left: auto; max-width: 640px; padding-right: var(--gutter); padding-left: 0; }
  .hero-copy h1 { max-width: none; font-size: clamp(3.6rem, 2rem + 3.6vw, 5.4rem); }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(13,19,16,.5) 0%, rgba(13,19,16,0) 20%, rgba(13,19,16,0) 55%, rgba(13,19,16,.6) 80%, var(--night) 100%),
      radial-gradient(60% 75% at 92% 88%, rgba(13,19,16,.82), rgba(13,19,16,.45) 55%, transparent 80%);
  }
  .hero-credit { right: auto; left: var(--gutter); }
}
@media (max-width: 1179px) {
  .hero { display: block; min-height: auto; }
  .hero-art { position: relative; inset: auto; height: 64svh; min-height: 420px; overflow: hidden; z-index: -2; }
  .hero-art img { position: absolute; inset: -6% 0; height: 112%; object-position: 30% 70%; }
  .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,19,16,.55) 0%, rgba(13,19,16,0) 18%, rgba(13,19,16,0) 62%, rgba(13,19,16,.85) 88%, var(--night) 100%); }
  .hero-shade { display: none; }
  .hero-copy { margin-top: -3svh; }
  .hero-credit { top: 76px; bottom: auto; }
}
@media (min-width: 701px) and (max-width: 1179px) {
  .hero-copy h1 { max-width: 16ch; }
  .hero-art { height: 58svh; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.letter .section-title { font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem); }
.dropcap::first-letter {
  font-family: var(--display); float: left; font-size: 4.1em; line-height: .82; padding: .06em .12em 0 0; color: var(--lantern);
}
.ask { padding: 1em 1.2em; border-left: 3px solid var(--lantern); background: linear-gradient(90deg, rgba(243,185,95,.10), transparent); border-radius: 0 10px 10px 0; }

.ico { width: 44px; height: 44px; fill: none; stroke: var(--lantern); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.why-intro { display: grid; gap: 28px; align-items: center; margin-bottom: 32px; }
@media (min-width: 900px) { .why-intro { grid-template-columns: 1fr 1.15fr; gap: 48px; } }

.trio { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card {
  background: linear-gradient(180deg, rgba(31,42,33,.85), rgba(19,28,23,.85));
  border: 1px solid rgba(184,196,147,.16); border-radius: 18px; padding: 24px 22px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
}
.card p { margin: 0; color: var(--text); }

/* paintings */
.painting { margin: 0; position: relative; }
.painting .frame {
  position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9.5;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(236,226,200,.12);
}
.painting .frame img { width: 100%; height: 112%; object-fit: cover; position: absolute; top: -6%; left: 0; will-change: transform; }
.painting figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; }

/* full-bleed breaks */
.bleed { margin: 0; position: relative; height: clamp(300px, 62vw, 78vh); overflow: hidden; }
.bleed-frame { position: absolute; inset: -10% 0; }
.bleed-frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.bleed::before, .bleed::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; z-index: 1; pointer-events: none; }
.bleed::before { top: 0; background: linear-gradient(var(--night), transparent); }
.bleed::after { bottom: 0; background: linear-gradient(transparent, var(--night)); }
.bleed figcaption { position: absolute; right: var(--gutter); bottom: 14px; z-index: 3; }
.bleed .divider-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; margin: 0 auto; }

/* the game */
.game-intro { display: grid; gap: 28px; align-items: center; margin-bottom: 44px; }
@media (min-width: 900px) { .game-intro { grid-template-columns: 1.1fr 1fr; gap: 52px; } }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } .features li:first-child { grid-column: span 2; } }
.features li {
  padding: 20px 20px 18px; border-radius: 16px;
  background: rgba(26,35,29,.7); border: 1px solid rgba(184,196,147,.14);
  transition: border-color .3s, transform .3s;
}
.features li:hover { border-color: rgba(243,185,95,.5); transform: translateY(-2px); }
.features h3 { font-size: 1.5rem; margin-top: .3em; }
.features p { margin: 0; font-size: .98em; }
.live-strip { margin-top: 56px; }
.strip-title { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.strip-note { color: var(--text-dim); margin: 0 0 18px; }
.strip, .mosaic { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .strip, .mosaic { grid-template-columns: repeat(3, 1fr); } }
.strip img, .mosaic img { border-radius: 12px; aspect-ratio: 16 / 9.5; object-fit: cover; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(236,226,200,.1); }

/* realms tiers */
.tiers { list-style: none; margin: 8px 0 0; padding: 0; position: relative; display: grid; gap: 22px; }
.tiers-vine { position: absolute; z-index: 0; overflow: visible; }
.tiers-vine-h { display: none; }
.tiers-vine-v { left: 6px; top: 20px; bottom: 20px; width: 60px; height: calc(100% - 40px); }
.tier { position: relative; z-index: 1; display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; align-items: center; }
.medal {
  grid-row: span 3; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2a3a2c, #142018); border: 2px solid rgba(184,196,147,.4);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.medal svg { width: 38px; height: 38px; fill: none; stroke: var(--lichen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tier-label { font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lichen); }
.tier-name { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; color: var(--parchment); }
.tier-note { color: var(--text-dim); font-size: .98rem; }
.tier-yours .medal { border-color: var(--lantern); animation: glow 4s ease-in-out infinite; background: radial-gradient(circle at 35% 30%, #4a3a1c, #1d170c); }
.tier-yours .medal svg { stroke: var(--lantern); }
.tier-yours .tier-name { color: var(--lantern); }
.tier-yours .tier-label::after { content: " · yours to shape"; color: var(--lantern); letter-spacing: .12em; }
@keyframes glow { 0%,100% { box-shadow: 0 0 18px rgba(243,185,95,.25), 0 0 0 0 rgba(243,185,95,.0); } 50% { box-shadow: 0 0 38px rgba(243,185,95,.5), 0 0 0 8px rgba(243,185,95,.08); } }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
  .tiers-vine-v { display: none; }
  .tiers-vine-h { display: block; left: 0; right: 0; top: 18px; width: 100%; height: 60px; }
  .tier { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; }
  .medal { grid-row: auto; width: 96px; height: 96px; margin-bottom: 8px; }
  .medal svg { width: 48px; height: 48px; }
  .tier-yours .tier-label::after { content: ""; }
  .tier-yours::before { content: "yours to shape"; position: absolute; top: -26px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lantern); font-weight: 700; }
}

/* realm seeds */
.seeds { display: grid; gap: clamp(36px, 6vw, 72px); }
.seed { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) {
  .seed { grid-template-columns: 1.45fr 1fr; gap: 48px; }
  .seed.flip { grid-template-columns: 1fr 1.45fr; }
  .seed.flip .painting { order: 2; }
}
.seed h3 { font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem); color: var(--parchment); }
.seed p { margin: 0; font-size: 1.08em; }
.seed-text { position: relative; padding-left: 20px; border-left: 2px solid rgba(184,196,147,.3); }
.mosaic { margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mosaic-note { display: grid; place-items: center; text-align: center; padding: 22px; border-radius: 12px; border: 1px dashed rgba(243,185,95,.55); background: rgba(243,185,95,.06); min-height: 140px; }
.mosaic-note p { margin: 0; font-size: 1.1rem; }
.mosaic-note strong { color: var(--lantern); font-family: var(--display); font-size: 1.5em; font-weight: 600; display: block; }

/* split / sankey */
.split-prose { margin-bottom: 18px; }
.sankey { margin: 12px 0 0; padding: clamp(14px, 3vw, 30px); border-radius: 20px; background: linear-gradient(180deg, rgba(26,35,29,.85), rgba(16,23,19,.9)); border: 1px solid rgba(184,196,147,.16); }
.sankey svg { width: 100%; height: auto; display: block; overflow: visible; }
.sankey .sankey-h { display: none; }
.sankey .sankey-v { max-width: 420px; margin: 0 auto; }
@media (min-width: 720px) { .sankey .sankey-h { display: block; max-width: 880px; margin: 0 auto; } .sankey .sankey-v { display: none; } .v-only { display: none; } }
.sankey text { font-family: var(--body); font-size: 15px; fill: var(--text); }
.sankey-v text { font-size: 17px; }
.sankey .b { font-weight: 700; fill: var(--parchment); }
.sankey .b.gold { fill: var(--lantern); }
.sankey .dim { fill: var(--text-dim); font-size: 13.5px; }
.sankey-v .dim { font-size: 15px; }
.sankey .hd { fill: var(--lichen); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.sankey-v .hd { font-size: 13.5px; }
.sankey .node { fill: var(--parchment); }
.sankey .creator-node { fill: var(--lantern); }
.sankey .us-node { fill: var(--moon); }
.band.cost { fill: #6d6a5a; opacity: .55; }
.band.margin { fill: #c9a25c; opacity: .55; }
.band.creator { fill: var(--lantern); opacity: .8; }
.band.us { fill: var(--moon); opacity: .6; }
.sankey figcaption { font-size: .92rem; color: var(--text-dim); margin-top: 14px; font-style: italic; max-width: 80ch; }
/* draw-in */
.grow-x, .grow-y { transform-box: fill-box; transition: transform 1.2s cubic-bezier(.6,.05,.25,1); }
.grow-x { transform-origin: left center; }
.grow-y { transform-origin: center top; }
.g2 { transition-delay: .3s; transition-duration: 1.6s; }
.g3 { transition-delay: 1.3s; }
.lbl { transition: opacity .7s ease; }
.l1 { transition-delay: .1s; } .l2 { transition-delay: 1s; } .l3 { transition-delay: 1.6s; } .l4 { transition-delay: 2.2s; }
.js .sankey:not(.is-in) .grow-x { transform: scaleX(0); }
.js .sankey:not(.is-in) .grow-y { transform: scaleY(0); }
.js .sankey:not(.is-in) .lbl { opacity: 0; }

.terms { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .terms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .terms { grid-template-columns: repeat(4, 1fr); } }
.terms li { padding: 18px 18px 16px; border-radius: 14px; border: 1px solid rgba(184,196,147,.16); background: rgba(19,28,23,.7); }
.terms h3 { font-size: 1.4rem; }
.terms p { margin: 0; font-size: .98em; }

/* timeline */
.timeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 3px solid var(--lichen); }
.timeline li:first-child::before { background: var(--lantern); border-color: var(--lantern); box-shadow: 0 0 18px rgba(243,185,95,.7); animation: glow 4s ease-in-out infinite; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 30px; bottom: 0; width: 2px; background: linear-gradient(var(--lichen), rgba(184,196,147,.25)); }
.timeline .when { font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lantern); }
.timeline h3 { margin-top: .15em; }
.timeline p { margin: 0; max-width: 46ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .timeline li { padding: 44px 0 0; }
  .timeline li::before { left: 0; top: 0; }
  .timeline li:not(:last-child)::after { left: 26px; right: -20px; top: 8px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--lichen), rgba(184,196,147,.25)); }
}

/* connect */
.connect { overflow: hidden; isolation: isolate; text-align: center; padding: clamp(90px, 14vw, 170px) 0; }
.connect-art { position: absolute; inset: 0; z-index: -2; }
.connect-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .5; }
.connect::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--night), rgba(13,19,16,.55) 30%, rgba(13,19,16,.7) 70%, var(--night)); }
.connect .section-lede { margin-inline: auto; }
.lantern { width: 56px; height: 84px; margin: 0 auto 10px; display: block; overflow: visible; }
.lantern-frame { fill: none; stroke: var(--parchment); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lantern-flame { fill: var(--lantern); filter: drop-shadow(0 0 10px rgba(243,185,95,.9)) drop-shadow(0 0 26px rgba(243,185,95,.6)); transform-origin: 32px 62px; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scale(1); opacity: 1; } 30% { transform: scale(.94,1.04); opacity: .9; } 60% { transform: scale(1.04,.96); opacity: 1; } 80% { transform: scale(.97,1.02); opacity: .92; } }
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 2.2em; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px;
  background: linear-gradient(180deg, #f7c877, #e39a3f); color: #22160a; font-weight: 700; font-size: 1.15rem; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,220,160,.6), 0 10px 30px rgba(224,138,60,.35); animation: lanternpulse 4s ease-in-out infinite;
}
.cta:hover { color: #22160a; filter: brightness(1.08); }
@keyframes lanternpulse { 50% { box-shadow: 0 0 0 1px rgba(255,220,160,.7), 0 10px 46px rgba(243,185,95,.6); } }
.cta-addr { font-family: ui-monospace, Menlo, monospace; font-size: .9rem; color: #1b130a; background: var(--lantern); padding: 2px 8px; border-radius: 6px; }
.signoff { font-style: italic; color: var(--text-dim); }
.sig { display: block; font-family: var(--display); font-style: normal; font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); color: var(--parchment); margin-top: .1em; line-height: 1.1; }
.sig-sub { display: block; font-style: normal; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; color: var(--lichen); font-weight: 700; }

.footer { padding: 34px 0 48px; border-top: 1px solid rgba(184,196,147,.14); font-size: .92rem; color: var(--text-dim); text-align: center; }
.footer p { margin: .4em auto; max-width: 70ch; }
.footer a { display: inline-block; padding: 10px 4px; }

/* ---------- Vines and dividers ---------- */
.leaf-body { fill: var(--moss-deep); stroke: var(--moss); stroke-width: 1.2; }
.leaf-vein { fill: none; stroke: var(--lichen); stroke-width: .9; stroke-linecap: round; opacity: .55; }
.acorn-nut { fill: #8a5a2b; stroke: #c48a4a; stroke-width: 1; }
.acorn-cap { fill: #4d3a22; stroke: #a07848; stroke-width: 1; }
.acorn-stem { fill: none; stroke: #a07848; stroke-width: 1.6; stroke-linecap: round; }
.vine-stroke { fill: none; stroke: var(--moss); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.vine-thin { stroke-width: 1.6; stroke: #7f9a5a; }
.divider { width: min(100% - 2 * var(--gutter), 900px); margin: 0 auto; position: relative; z-index: 2; }
.divider-svg { width: 100%; height: auto; display: block; overflow: visible; }

.js .divider .vine-stroke, .js .tiers .vine-stroke { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.4,.1,.2,1); }
.js .divider .vine-thin { transition-delay: .9s; transition-duration: 1.4s; }
.js .divider.is-in .vine-stroke, .js .tiers.is-in .vine-stroke { stroke-dashoffset: 0; }
.js .divider .leaf use, .js .divider use.leaf, .js .divider use.acorn { opacity: 0; transition: opacity .8s ease var(--d, .6s); }
.js .divider.is-in use.leaf, .js .divider.is-in use.acorn { opacity: 1; }
.js .divider use.acorn { transition-delay: 1.4s; }

.edge-vines { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; display: none; }
.edge-vines.on { display: block; }
.edge-vines .vine-stroke { stroke-width: 2.4; opacity: .85; }
.edge-vines use { opacity: 0; transition: opacity .9s ease; }
.edge-vines use.shown { opacity: .95; }
.edge-vines .tendril { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease; }

/* ---------- Fireflies ---------- */
.fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.fly {
  position: absolute; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: #ffe9a6; box-shadow: 0 0 8px 2px rgba(255,214,120,.8), 0 0 18px 6px rgba(243,185,95,.25);
  left: var(--x); top: var(--y); opacity: 0;
  animation: drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite, blink var(--blink, 3.4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes drift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(var(--dx1), var(--dy1)); }
  50% { transform: translate(var(--dx2), var(--dy2)); }
  75% { transform: translate(var(--dx3), var(--dy3)); }
  100% { transform: translate(0, 0); }
}
@keyframes blink { 0%, 100% { opacity: 0; } 40%, 60% { opacity: var(--o, .9); } }

/* Hero entrance: CSS only and never fully transparent, so it paints at once */
.hero-copy > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) var(--rd, 0s) both; }
@keyframes rise { from { opacity: .12; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease var(--rd, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion: everything visible and still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .divider .vine-stroke, .js .tiers .vine-stroke { stroke-dashoffset: 0; }
  .js .divider use { opacity: 1 !important; }
  .js .sankey .grow-x, .js .sankey .grow-y { transform: none !important; }
  .js .sankey .lbl { opacity: 1 !important; }
  .fly { opacity: .7; }
  .edge-vines use { opacity: .95; }
  [data-parallax] img, .hero-art img { transform: none !important; }
}

/* ---------- Print / PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  :root { --text: #2a2418; --text-dim: #5c533f; --parchment: #1f2a1c; --lantern: #9a5b12; --lichen: #4f6136; --moss: #5d7741; --moss-deep: #c9d3ad; }
  html, body { background: #fbf6ea !important; color: var(--text); font-size: 11.2pt; line-height: 1.5; }
  body * { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .sankey .grow-x, .js .sankey .grow-y { transform: none !important; }
  .js .sankey .lbl { opacity: 1 !important; }
  .js .divider .vine-stroke, .js .tiers .vine-stroke { stroke-dashoffset: 0 !important; }
  .js .divider use { opacity: 1 !important; }
  [data-parallax] img, .hero-art img, .bleed-frame img { transform: none !important; }
  .fireflies, .edge-vines, .skip, .scroll-cue, .pdf-link, .hero-shade, .connect-art, .connect::before, .bleed::before, .bleed::after { display: none !important; }
  strong { color: #1d160b; }
  a { color: var(--lantern); }
  .wrap { width: 100%; max-width: none; }

  .hero { min-height: auto; display: block; }
  .hero-art { height: auto !important; min-height: 0 !important; }
  .hero-art img { position: static !important; }
  .hero-art::after { display: none; }
  .hero-copy { margin-top: 0 !important; }
  .hero-credit { top: auto !important; }
  .hero-art { position: relative; inset: auto; }
  .hero-art img { height: auto; aspect-ratio: auto; border-radius: 8px; }
  .topbar { position: static; padding: 0 0 8px; }
  .brand { color: var(--parchment); text-shadow: none; }
  .hero-copy { padding: 14px 0 0; }
  .hero-credit { position: static; float: right; margin-top: 6px; }
  h1 { text-shadow: none; font-size: 44pt; color: #1f2a1c; }
  .lede { color: var(--text); text-shadow: none; max-width: none; }
  .section { padding: 18px 0 8px; }
  .section-title { font-size: 26pt; }
  .card, .features li, .terms li, .sankey, .mosaic-note { background: #fffdf6 !important; border-color: #d9cfb5; box-shadow: none; break-inside: avoid; }
  .credit { background: #fffdf6; color: #5c533f; border-color: #d9cfb5; }
  .painting .frame { box-shadow: none; }
  .painting .frame img { position: static; height: 100%; }
  .seed, .tier, .timeline li, .strip li, .mosaic li, .why-intro .painting { break-inside: avoid; }
  .bleed { height: auto; break-inside: avoid; margin: 8px 0; }
  .bleed-frame { position: static; }
  .bleed-frame img { height: auto; aspect-ratio: 1424/848; border-radius: 8px; max-height: 95mm; object-fit: cover; }
  .bleed figcaption { position: static; text-align: right; margin-top: 4px; }
  .bleed .divider-top { display: none; }
  .divider { width: 70%; }
  .medal { background: #f1ead6; box-shadow: none; }
  .tier-yours .medal { background: #f6e3bd; }
  .ask { background: #f6ecd6; }
  .band.cost { fill: #b8b29c; opacity: .7; }
  .sankey .node { fill: #2a2418; }
  .sankey .b, .sankey text { paint-order: normal; }
  .split, .could-be { break-before: page; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .card { padding: 12px; }
  .why-intro { grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
  .game-intro { grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
  .features { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .features li:first-child { grid-column: auto; }
  .features li { padding: 10px; }
  .features h3, .terms h3 { font-size: 13pt; }
  .features p, .terms p, .tier-note { font-size: 9.5pt; }
  .ico { width: 26px; height: 26px; }
  .live-strip { margin-top: 16px; }
  .strip, .mosaic { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mosaic { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
  .mosaic-note { min-height: 0; padding: 8px; }
  .mosaic-note p { font-size: 9.5pt; }
  .seeds { gap: 14px; }
  .seed, .seed.flip { grid-template-columns: 1.2fr 1fr; gap: 18px; }
  .seed.flip .painting { order: 0; }
  .seed h3 { font-size: 17pt; }
  .tiers { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tiers-vine-v { display: none; }
  .tier { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 3px; }
  .medal { grid-row: auto; width: 56px; height: 56px; }
  .medal svg { width: 30px; height: 30px; }
  .tier-name { font-size: 15pt; }
  .tier-yours .tier-label::after { content: ""; }
  .terms { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
  .terms li { padding: 10px; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .timeline li { padding: 30px 0 0; }
  .timeline li::before { left: 0; top: 0; }
  .timeline li:not(:last-child)::after { left: 26px; right: -10px; top: 8px; bottom: auto; width: auto; height: 2px; }
  .section-lede.center { margin-top: 1em; }
  .divider { width: 50%; margin: 4px auto; }
  .bleed-frame img { max-height: 70mm; }
  .sankey { break-inside: avoid; }
  .connect { padding: 24px 0; }
  .cta { animation: none; box-shadow: none; }
  .letter { break-inside: avoid; break-before: page; }
  .connect { padding: 10px 0 0; }
  .lantern { width: 30px; height: 46px; }
  .footer { padding: 10px 0 0; font-size: 8.5pt; }
  .footer { border-top: 1px solid #d9cfb5; }
  .footer a[href="tales-under-the-oak.pdf"] { display: none; }
}
