/* ═══════════════════════════════════════════════════════════
   $JARC — dark illuminated altar for the ARC chain
   Oil-painting night, burnished gold frames, parchment insets.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "MedievalSharp";
  src: url("../assets/fonts/MedievalSharp-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Pirata One";
  src: url("../assets/fonts/PirataOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* the night of the painting */
  --night:       #150e07;
  --night-lit:   #221507;
  --panel:       #1d1309;
  --panel-line:  #52391a;

  --gold:        #c9a24b;
  --gold-lit:    #eed48d;
  --gold-deep:   #8a6116;

  --parchment:      #e9dcb4;
  --parchment-deep: #d9c48d;
  --ink:            #2a2014;
  --ink-soft:       #55432a;

  --vermilion:      #a83c28;
  --vermilion-deep: #7e2a1b;
  --royal:          #2b3a6b;

  --text:     #e7d9b2;
  --text-dim: #b5a075;

  --display: "MedievalSharp", "Luminari", fantasy;
  --blackletter: "Pirata One", "MedievalSharp", "Luminari", fantasy;
  --body: "Geist", system-ui, sans-serif;

  --w-text: 46rem;
  --w-wide: 72rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--night);
  line-height: 1.65;
  overflow-x: hidden;
  /* candlelight in the dark */
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(201,162,75,.14), transparent 65%),
    radial-gradient(ellipse 45% 35% at 12% 45%, rgba(43,58,107,.14), transparent 60%),
    radial-gradient(ellipse 45% 35% at 88% 70%, rgba(168,60,40,.10), transparent 60%),
    radial-gradient(ellipse 130% 130% at 50% 50%, transparent 50%, rgba(0,0,0,.5) 100%);
  background-attachment: fixed;
}

/* old varnish grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.79 0 0 0 0 0.64 0 0 0 0 0.29 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ornate frame around the whole page, like the mockup's outer border */
body::after {
  content: "";
  position: fixed;
  inset: 10px;
  z-index: 8; /* below the sticky nav so the frame never cuts through it */
  pointer-events: none;
  border: 3px double rgba(201,162,75,.75);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(21,14,7,.9),
    inset 0 0 0 2px rgba(238,212,141,.28),
    inset 0 0 26px rgba(0,0,0,.55);
}
@media (max-width: 700px) { body::after { inset: 6px; border-width: 2px; } }

::selection { background: var(--gold); color: var(--night); }

a { color: var(--gold-lit); text-decoration-color: rgba(201,162,75,.45); text-underline-offset: 3px; }
a:hover { color: #fff3d0; }

:focus-visible {
  outline: 3px solid var(--gold-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 640; color: var(--gold-lit); }
em { font-style: italic; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────── Herald (nav) ─────────── */

.herald {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .65rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(rgba(21,14,7,.96), rgba(21,14,7,.88));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-deep);
  box-shadow: 0 1px 0 rgba(238,212,141,.12), 0 10px 24px -14px rgba(0,0,0,.9);
}

.herald-crest {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--gold-lit);
}
.herald-crest .fleur { color: var(--gold); font-size: 1.25rem; }
.herald-name {
  font-family: var(--blackletter);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .05em;
  background: linear-gradient(178deg, var(--gold-lit) 15%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.7));
}

.herald-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}
.herald-links a {
  font-size: .82rem;
  font-weight: 540;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
}
.herald-links a:hover { color: var(--gold-lit); }

.herald-side {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  border: 1px solid #5c3f0d;
  color: #241804;
  text-decoration: none;
  font-size: .95rem;
  background: linear-gradient(180deg, var(--gold-lit) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,244,214,.8),
    inset 0 -2px 4px rgba(90,60,10,.5),
    0 8px 20px -8px rgba(201,162,75,.5);
  transition: transform .15s ease, filter .15s ease;
}
.icon-btn:hover { transform: translateY(-1px); filter: brightness(1.06); color: #241804; }
.icon-btn svg { width: .95rem; height: .95rem; fill: currentColor; display: block; }

@media (max-width: 860px) {
  .herald-links { display: none; }
  .herald-side { margin-left: auto; }
}

/* ─────────── Buttons ─────────── */

.btn {
  display: inline-block;
  font-family: var(--display);
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: .05em;
  text-align: center;
}

.btn-gold {
  font-size: 1.1rem;
  padding: .75rem 2rem;
  color: #241804;
  background: linear-gradient(180deg, var(--gold-lit) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  border: 1px solid #5c3f0d;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,244,214,.8),
    inset 0 -2px 4px rgba(90,60,10,.5),
    0 8px 20px -8px rgba(201,162,75,.5);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-gold:hover {
  color: #241804;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,244,214,.8),
    inset 0 -2px 4px rgba(90,60,10,.5),
    0 12px 26px -8px rgba(201,162,75,.65);
}

.btn-ghost {
  font-size: 1.05rem;
  padding: .75rem 1.7rem;
  color: var(--gold-lit);
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 4px rgba(138,97,22,.55);
  background: transparent;
  transition: background .18s ease, border-color .18s ease;
}
.btn-ghost:hover { background: rgba(201,162,75,.1); border-color: var(--gold); color: var(--gold-lit); }

.btn-small { font-size: .92rem; padding: .42rem 1.05rem; }
.btn-big { font-size: 1.3rem; padding: .9rem 2.8rem; }
.btn-block { display: block; width: 100%; }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1rem, 4vw, 2.5rem) 0;
}

/* the great painting, sunk into the night as a backdrop */
.hero-bg {
  position: absolute;
  inset: -50px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 90% 80% at 60% 40%, transparent 25%, rgba(21,14,7,.7) 75%, var(--night) 100%),
    linear-gradient(rgba(21,14,7,.88) 0%, rgba(21,14,7,.62) 20%, rgba(21,14,7,.68) 60%, var(--night) 98%),
    url("../assets/img/hero-art.jpg");
  background-size: cover, cover, 135%;
  background-position: center, center, 50% 26%;
  filter: saturate(.75) blur(11px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}

.hero-grid {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { padding: 1.5rem 0 2rem; }

.eyebrow {
  font-size: .8rem;
  font-weight: 560;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.eyebrow span { color: var(--vermilion); }

.hero-title {
  font-family: var(--blackletter);
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: .92;
  letter-spacing: .02em;
  background: linear-gradient(172deg,
    var(--gold-deep) 0%, var(--gold-lit) 26%, var(--gold) 46%,
    #6e4c10 62%, var(--gold-lit) 84%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(0,0,0,.55))
    drop-shadow(0 8px 22px rgba(201,162,75,.35));
}
.hero-title .dollar { font-size: .52em; vertical-align: .34em; letter-spacing: 0; }

.hero-motto {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold-lit);
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  margin: 1rem 0 1.1rem;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 33rem;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0,0,0,.75);
  margin-bottom: 1.9rem;
}
.hero-sub strong { color: var(--gold-lit); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.4rem;
}

/* the token itself, enthroned */
.hero-token {
  position: relative;
  margin: 0;
  padding: 2.2rem 0 1rem;
  max-width: 21rem;
  justify-self: center;
}

.halo {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(238,212,141,.34) 0deg 3deg, transparent 3deg 11deg),
    radial-gradient(circle, rgba(238,212,141,.55) 0%, rgba(201,162,75,.26) 38%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 32%, transparent 70%);
  mask-image: radial-gradient(circle, #000 32%, transparent 70%);
  animation: halo-turn 90s linear infinite;
}
@keyframes halo-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }

.token-frame {
  position: relative;
  z-index: 1;
  padding: 11px;
  background:
    linear-gradient(140deg, var(--gold-lit) 0%, var(--gold-deep) 25%, var(--gold) 50%, #5c3f0d 75%, var(--gold-lit) 100%);
  border: 1px solid #3d2a08;
  box-shadow:
    inset 0 0 0 3px rgba(21,14,7,.85),
    0 30px 60px -22px rgba(0,0,0,.95),
    0 0 55px -12px rgba(201,162,75,.45);
  transform: rotate(1.6deg);
  transition: transform .35s ease;
}
.token-frame:hover { transform: rotate(0deg) scale(1.015); }
.token-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--vermilion-deep);
}

.hero-token figcaption {
  margin-top: .9rem;
  font-size: .78rem;
  font-style: italic;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { text-align: center; padding-bottom: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .seal-row { justify-content: center; }
  .hero-token { max-width: 17rem; }
}

/* wax seal */
.seal-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 1.1rem;
}

.seal {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 46% 54% 52% 48% / 52% 47% 53% 48%;
  background:
    radial-gradient(circle at 32% 28%, #d4634a 0%, var(--vermilion) 35%, var(--vermilion-deep) 75%, #4a160c 100%);
  border: none;
  box-shadow:
    inset 0 3px 6px rgba(255,220,190,.35),
    inset 0 -4px 8px rgba(40,8,4,.65),
    0 6px 16px -4px rgba(0,0,0,.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.seal:hover { transform: rotate(-4deg) scale(1.05); }
.seal:active { transform: scale(.94); }
.seal-fleur {
  font-size: 1.8rem;
  color: rgba(60,14,7,.9);
  text-shadow: 0 1px 0 rgba(255,215,185,.3);
}

.seal-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.seal-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.seal-ca {
  font-family: var(--body);
  font-weight: 540;
  font-size: .92rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.seal-hint { font-size: .78rem; font-style: italic; color: var(--text-dim); }

/* ─────────── Panels (swap / numbers / why) ─────────── */

.panels {
  position: relative;
  z-index: 2;
  max-width: var(--w-wide);
  margin: 4.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 940px) {
  .panels { grid-template-columns: 1fr; max-width: 34rem; margin-top: 1.6rem; }
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.4rem 1.5rem;
  background: linear-gradient(rgba(34,21,7,.9), rgba(24,15,7,.95));
  border: 2px solid var(--panel-line);
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(238,212,141,.14),
    inset 0 0 40px rgba(0,0,0,.45),
    0 16px 36px -20px rgba(0,0,0,.9);
}
/* illuminated corners */
.panel::before,
.panel::after {
  content: "❧";
  position: absolute;
  top: .35rem;
  font-size: .95rem;
  color: rgba(201,162,75,.65);
  pointer-events: none;
}
.panel::before { left: .6rem; }
.panel::after { right: .6rem; transform: scaleX(-1); }

.panel-title {
  font-family: var(--display);
  font-size: 1.25rem;
  text-align: center;
  color: var(--gold-lit);
  letter-spacing: .04em;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(201,162,75,.3);
}
.panel-title span { color: var(--gold); margin-right: .3rem; }

/* war camp links */
.camp-list { display: flex; flex-direction: column; gap: .55rem; flex: 1; justify-content: center; }
.camp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.1rem;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  font-weight: 560;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.camp-row:hover {
  border-color: var(--gold);
  background: rgba(201,162,75,.08);
  color: var(--gold-lit);
}
.camp-arrow { color: var(--gold); font-size: .85rem; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  flex: 1;
  align-content: center;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold-lit);
}
.stat-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .2rem;
}
.stat-note {
  font-size: .78rem;
  font-style: italic;
  color: var(--text-dim);
  text-align: center;
}

/* why */
.why-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; flex: 1; justify-content: center; }
.why-list li { display: flex; flex-direction: column; gap: .1rem; padding-left: 1.3rem; position: relative; }
.why-list li::before {
  content: "⚜";
  position: absolute;
  left: 0;
  top: .05rem;
  color: var(--gold);
  font-size: .85rem;
}
.why-list strong { font-size: .98rem; }
.why-list span { font-size: .85rem; color: var(--text-dim); }

/* ─────────── Dividers & sections ─────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--w-wide);
  margin: clamp(3rem, 7vh, 5rem) auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 5px;
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  opacity: .6;
}
.divider span { font-size: 1.3rem; letter-spacing: .5em; text-indent: .5em; white-space: nowrap; }

.section {
  max-width: var(--w-text);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 4vw, 2.5rem);
}
.section-wide { max-width: var(--w-wide); }

.section-eyebrow {
  font-size: .78rem;
  font-weight: 580;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--vermilion);
  text-align: center;
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  color: var(--gold-lit);
  text-shadow: 0 3px 12px rgba(0,0,0,.6);
  margin-bottom: .6rem;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  max-width: 36rem;
  margin: 0 auto 2.2rem;
}

/* ─────────── Prophecy ─────────── */

#prophecy.section { max-width: 58rem; }

.prophecy-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1.8rem;
}
@media (max-width: 780px) {
  .prophecy-wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 270px; margin: 0 auto; }
}

.portrait { margin: 0; }
.portrait-frame {
  padding: 10px;
  background:
    linear-gradient(140deg, var(--gold-lit) 0%, var(--gold-deep) 25%, var(--gold) 50%, #5c3f0d 75%, var(--gold-lit) 100%);
  border: 1px solid #3d2a08;
  box-shadow:
    inset 0 0 0 3px rgba(21,14,7,.85),
    0 24px 50px -20px rgba(0,0,0,.9),
    0 0 40px -14px rgba(201,162,75,.3);
  transform: rotate(1.5deg);
  transition: transform .35s ease;
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.015); }
.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--vermilion-deep);
}
.portrait figcaption {
  margin-top: .8rem;
  font-size: .78rem;
  font-style: italic;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.prophecy {
  font-size: 1.12rem;
  color: var(--text);
}
.prophecy p + p { margin-top: 1.2rem; }
.prophecy em { color: var(--gold-lit); }

.dropcap::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 4.6em;
  line-height: .78;
  padding: .08em .12em .02em 0;
  color: var(--vermilion);
  text-shadow: 2px 2px 0 rgba(201,162,75,.4);
}

/* ─────────── Decree (parchment inset) ─────────── */

.decree {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 120% at 50% 50%, transparent 55%, rgba(106,79,35,.28) 100%),
    linear-gradient(var(--parchment), var(--parchment-deep));
  border: 1px solid #3d2a08;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 4px rgba(233,220,180,.9),
    inset 0 0 0 6px rgba(138,97,22,.55),
    0 0 0 6px rgba(201,162,75,.25),
    0 24px 50px -22px rgba(0,0,0,.85);
  padding: 2.2rem clamp(1.2rem, 4vw, 2.8rem) 1.8rem;
}
.decree strong { color: var(--ink); }
.decree::before,
.decree::after {
  content: "⚜";
  position: absolute;
  top: .55rem;
  font-size: 1.05rem;
  color: rgba(168,60,40,.6);
  pointer-events: none;
}
.decree::before { left: .9rem; }
.decree::after { right: .9rem; }

.decree-head {
  font-family: var(--display);
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(138,97,22,.5);
  padding-bottom: 1.1rem;
  margin-bottom: .4rem;
}

.decree-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px dashed rgba(74,59,38,.35);
  align-items: baseline;
}
.decree-row:last-child { border-bottom: none; }
.decree-row dt {
  font-family: var(--display);
  color: var(--vermilion-deep);
  font-size: 1.05rem;
}
.decree-row dd { color: var(--ink-soft); }
.decree-row dd strong { color: var(--ink); font-weight: 660; }

@media (max-width: 560px) {
  .decree-row { grid-template-columns: 1fr; gap: .1rem; }
}

.decree-foot {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(138,97,22,.5);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .8rem;
  justify-content: space-between;
}
.decree-sig {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ink);
}
.decree-note { font-size: .78rem; font-style: italic; color: var(--ink-soft); }

/* ─────────── Tapestry (roadmap) ─────────── */

.tapestry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  padding: 2rem 1.4rem;
  background: linear-gradient(rgba(43,58,107,.22), rgba(43,58,107,.08));
  border-top: 4px double var(--gold-deep);
  border-bottom: 4px double var(--gold-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(201,162,75,.55) 0 10px, transparent 10px 18px),
    repeating-linear-gradient(90deg, rgba(201,162,75,.55) 0 10px, transparent 10px 18px),
    linear-gradient(rgba(43,58,107,.22), rgba(43,58,107,.08));
  background-size: 100% 2px, 100% 2px, 100% 100%;
  background-position: 0 6px, 0 calc(100% - 6px), 0 0;
  background-repeat: no-repeat;
}
@media (max-width: 980px) { .tapestry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tapestry { grid-template-columns: 1fr; } }

.scene {
  background: linear-gradient(rgba(34,21,7,.92), rgba(24,15,7,.96));
  border: 1px solid var(--gold-deep);
  border-radius: 999px 999px 8px 8px / 260px 260px 8px 8px;
  padding: 2.4rem 1.3rem 1.5rem;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(238,212,141,.12),
    0 14px 30px -18px rgba(0,0,0,.9);
}

.scene-num {
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.3rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: var(--gold-lit);
  background: radial-gradient(circle at 35% 30%, var(--royal) 0%, #16234a 80%);
  border: 1px solid rgba(238,212,141,.4);
  box-shadow: inset 0 1px 0 rgba(238,212,141,.3), 0 3px 10px -2px rgba(0,0,0,.7);
  margin-bottom: .9rem;
}

.scene h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--gold-lit);
  margin-bottom: .7rem;
}
.scene h3 small {
  display: block;
  font-size: .72em;
  color: var(--vermilion);
  margin-top: .15rem;
}
.scene p { font-size: .9rem; color: var(--text-dim); }
.scene em { color: var(--gold-lit); }

/* ─────────── How to buy ─────────── */

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(rgba(34,21,7,.85), rgba(24,15,7,.92));
  border: 1px solid var(--panel-line);
  border-left: 4px solid var(--vermilion);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(238,212,141,.1);
}

.step-num {
  flex: none;
  font-family: var(--display);
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: #241804;
  background: linear-gradient(160deg, var(--gold-lit), var(--gold-deep));
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,244,214,.7), 0 4px 12px -3px rgba(201,162,75,.5);
}

.step h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--gold-lit);
  margin-bottom: .3rem;
}
.step p { color: var(--text-dim); font-size: .96rem; }

.cta-final {
  text-align: center;
  margin-top: 3.2rem;
}
.cta-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  background: linear-gradient(168deg,
    var(--gold-deep) 0%, var(--gold-lit) 30%, var(--gold) 55%, var(--gold-lit) 85%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.cta-attrib {
  font-size: .88rem;
  font-style: italic;
  color: var(--text-dim);
  margin: .6rem 0 1.8rem;
}

/* ─────────── Footer ─────────── */

.footer {
  margin-top: 4rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 2.4rem;
  text-align: center;
  color: var(--text-dim);
  background:
    radial-gradient(ellipse 90% 120% at 50% 130%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55));
  border-top: 4px double var(--gold-deep);
}

.motto-banner {
  display: inline-block;
  margin-top: -1.4rem;
  font-family: var(--display);
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  letter-spacing: .28em;
  color: #241804;
  padding: .55rem 2.4rem .65rem;
  background: linear-gradient(180deg, var(--gold-lit) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  border: 1px solid #5c3f0d;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  box-shadow: 0 10px 26px -10px rgba(201,162,75,.5);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-bottom: 1.6rem;
}
.footer-links a {
  color: var(--gold-lit);
  text-decoration: none;
  font-weight: 540;
  font-size: .95rem;
}
.footer-links a:hover { color: #fff3d0; text-decoration: underline; }
.footer-links span { opacity: .5; }

.footer-disclaimer {
  max-width: 42rem;
  margin: 0 auto 1.4rem;
  font-size: .82rem;
  opacity: .8;
  line-height: 1.7;
}

.footer-fine {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--gold);
  letter-spacing: .08em;
}

/* ─────────── Toast ─────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 140%);
  z-index: 20;
  background: var(--night-lit);
  color: var(--gold-lit);
  font-family: var(--display);
  font-size: 1rem;
  padding: .7rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
}
.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  transition: transform .3s ease, opacity .3s ease;
}

/* ─────────── Little animations ─────────── */

/* hero entrance, one element after the other */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { opacity: 0; animation: rise .7s ease forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .1s; }
.hero-copy > *:nth-child(2) { animation-delay: .22s; }
.hero-copy > *:nth-child(3) { animation-delay: .34s; }
.hero-copy > *:nth-child(4) { animation-delay: .46s; }
.hero-copy > *:nth-child(5) { animation-delay: .6s; }
.hero-copy > *:nth-child(6) { animation-delay: .74s; }

@keyframes token-in {
  from { opacity: 0; transform: translateY(26px) rotate(4deg) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.hero-token { opacity: 0; animation: token-in .9s cubic-bezier(.2,.7,.2,1) .4s forwards; }

.panels .panel { opacity: 0; animation: rise .7s ease forwards; }
.panels .panel:nth-child(1) { animation-delay: .85s; }
.panels .panel:nth-child(2) { animation-delay: 1s; }
.panels .panel:nth-child(3) { animation-delay: 1.15s; }

/* gold leaf catching the light */
@keyframes shimmer {
  0%, 78% { background-position: 0% 50%; }
  100%    { background-position: 200% 50%; }
}
.hero-title {
  background-size: 250% 100%;
  animation: rise .7s ease .22s forwards, shimmer 7s ease-in-out 2s infinite;
}

/* the halo breathes */
@keyframes halo-pulse {
  from { opacity: .65; }
  to   { opacity: 1; }
}
.halo {
  animation:
    halo-turn 90s linear infinite,
    halo-pulse 5.5s ease-in-out infinite alternate;
}

/* embers rising from the pyre */
.embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.embers i {
  --sway: 20px;
  position: absolute;
  bottom: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd97a 0%, rgba(201,122,43,0) 70%);
  opacity: 0;
  animation: ember 10s linear infinite;
}
@keyframes ember {
  0%   { transform: translate(0, 0); opacity: 0; }
  6%   { opacity: .85; }
  55%  { opacity: .45; }
  100% { transform: translate(var(--sway), -95vh); opacity: 0; }
}
.embers i:nth-child(1) { left: 6%;  animation-delay: 0s;    animation-duration: 11s; --sway: 26px; }
.embers i:nth-child(2) { left: 16%; animation-delay: 3.2s;  animation-duration: 9s;  --sway: -18px; width: 4px; height: 4px; }
.embers i:nth-child(3) { left: 27%; animation-delay: 6.1s;  animation-duration: 12s; --sway: 32px; }
.embers i:nth-child(4) { left: 38%; animation-delay: 1.4s;  animation-duration: 10s; --sway: -24px; width: 6px; height: 6px; }
.embers i:nth-child(5) { left: 52%; animation-delay: 4.7s;  animation-duration: 13s; --sway: 18px; width: 4px; height: 4px; }
.embers i:nth-child(6) { left: 63%; animation-delay: 7.8s;  animation-duration: 9.5s; --sway: -30px; }
.embers i:nth-child(7) { left: 74%; animation-delay: 2.3s;  animation-duration: 11.5s; --sway: 22px; width: 6px; height: 6px; }
.embers i:nth-child(8) { left: 85%; animation-delay: 5.5s;  animation-duration: 10.5s; --sway: -16px; }
.embers i:nth-child(9) { left: 94%; animation-delay: 8.6s;  animation-duration: 12.5s; --sway: 28px; width: 4px; height: 4px; }

/* a shine sweeps across gold buttons on hover */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -130%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255,248,220,.55), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-gold:hover::after { left: 165%; }

/* the seal stamps when pressed */
@keyframes stamp {
  0%   { transform: scale(1); }
  40%  { transform: scale(.86) rotate(-4deg); }
  100% { transform: scale(1); }
}
.seal.stamp { animation: stamp .4s ease; }

/* camp rows nudge on hover */
.camp-row { will-change: transform; }
.camp-row:hover { transform: translateX(4px); }

/* ─────────── Reveal on scroll ─────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-gold, .seal, .icon-btn, .token-frame, .portrait-frame, .camp-row { transition: none; }
  .halo, .seal.stamp { animation: none; }
  .hero-copy > *, .hero-token, .panels .panel, .hero-title {
    animation: none;
    opacity: 1;
  }
  .embers { display: none; }
  .btn-gold::after { display: none; }
}
