/* ============================================================
   Ashwick Online — landing page
   A candlelit door into the realm of Tir Celydd.
   ============================================================ */

:root {
  --ink: #0b0d14;
  --ink-2: #0e1018;
  --panel: rgba(18, 21, 32, 0.55);
  --panel-solid: #12151e;

  --gold: #d8b154;
  --gold-bright: #f4e3a1;
  --gold-deep: #9c7b16;
  --ember: #ff7a3c;
  --arcane: #8a7bff;
  --teal: #5bc7c0;
  --rose: #c96f9c;

  --parchment: #e8e3d2;
  --muted: #9aa0b4;
  --danger: #d97070;

  --display: 'Cinzel Decorative', Georgia, serif;
  --head: 'Cinzel', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold-deep) transparent;
}

body {
  font-family: var(--body);
  color: var(--parchment);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(138, 123, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(91, 199, 192, 0.06), transparent 55%),
    radial-gradient(1000px 800px at 10% 80%, rgba(255, 122, 60, 0.06), transparent 60%),
    linear-gradient(180deg, #0b0d14 0%, #0e1018 40%, #090a10 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* The native cursor is hidden ONLY once the magical trail is actually running
   (the JS adds .has-trail). If JS is disabled/blocked, the normal cursor stays. */
body.has-trail,
body.has-trail a,
body.has-trail button {
  cursor: none;
}
body.has-trail input { cursor: text; }

/* No trail on touch / coarse pointers */
@media (hover: none), (pointer: coarse) {
  #trail { display: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Canvas + atmospheric layers ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#trail {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
.mist {
  position: fixed;
  inset: -20% 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(60% 40% at 20% 30%, rgba(138, 123, 255, 0.06), transparent 70%),
    radial-gradient(50% 45% at 80% 60%, rgba(91, 199, 192, 0.05), transparent 70%);
  animation: mistDrift 26s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  from { transform: translate3d(-2%, 0, 0) scale(1.05); }
  to { transform: translate3d(3%, -2%, 0) scale(1.12); }
}

/* ---------- Loading veil ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--ink);
  /* Lift via CSS so the veil can never trap the visitor, even if JS fails. */
  animation: veilLift 0.9s var(--ease) 1.1s forwards;
}
.veil.is-gone { opacity: 0; visibility: hidden; }
@keyframes veilLift {
  to { opacity: 0; visibility: hidden; }
}
.veil__rune {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(216, 177, 84, 0.25);
  border-top-color: var(--gold);
  border-right-color: var(--gold-bright);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 30px rgba(216, 177, 84, 0.4);
}
.veil__text {
  font-family: var(--head);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.btn {
  --glow: rgba(216, 177, 84, 0.5);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  border-radius: 999px;
  cursor: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #1a1407;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(244, 227, 161, 0.4), 0 10px 30px -8px var(--glow);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(244, 227, 161, 0.7), 0 14px 40px -8px var(--glow),
    0 0 24px var(--glow);
}
/* Shimmer sweep */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep {
  0%, 60% { left: -120%; }
  100% { left: 140%; }
}
.btn--ghost {
  color: var(--gold-bright);
  border-color: rgba(216, 177, 84, 0.45);
  background: rgba(216, 177, 84, 0.05);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(216, 177, 84, 0.14);
  box-shadow: 0 0 22px -4px var(--glow);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(9, 10, 16, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(216, 177, 84, 0.18), 0 10px 30px -20px #000;
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav__brand img { height: 38px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.nav__links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  margin-left: auto;
  font-family: var(--head);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--gold-bright); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { font-size: 0.82rem; padding: 0.6em 1.2em; }
@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}
.hero__halo {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(820px, 110vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 177, 84, 0.18), rgba(138, 123, 255, 0.08) 40%, transparent 66%);
  filter: blur(8px);
  animation: haloPulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.hero__inner {
  position: relative;
  max-width: 760px;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
}
.eyebrow__line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero__logo img {
  width: min(560px, 86vw);
  filter: drop-shadow(0 6px 30px rgba(216, 177, 84, 0.35));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero__tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-style: italic;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}
.hero__narration {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--parchment);
  opacity: 0.9;
}
.hero__narration em { color: var(--teal); font-style: italic; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero__badge {
  font-family: var(--head);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  animation: flicker 3.5s infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: 0.55; }
  52% { opacity: 0.9; }
  70% { opacity: 0.7; }
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(216, 177, 84, 0.5);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: cueBob 1.6s var(--ease) infinite;
}
@keyframes cueBob {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 40px);
}
.section__head { text-align: center; margin-bottom: 54px; display: grid; justify-items: center; gap: 10px; }
.section__head--sub { margin-top: 80px; margin-bottom: 34px; }
.kicker {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--gold);
}
.kicker--danger { color: var(--danger); }
.display {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  background: linear-gradient(180deg, #fff8e6, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 30px rgba(216, 177, 84, 0.2);
}
.display--sm { font-size: clamp(1.5rem, 4vw, 2.2rem); }

.rune-divider {
  width: 220px;
  max-width: 70vw;
  height: 18px;
  margin-top: 6px;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='18' viewBox='0 0 220 18'%3E%3Cg fill='none' stroke='%23d8b154' stroke-width='1.2'%3E%3Cline x1='0' y1='9' x2='86' y2='9' stroke='%23d8b154' opacity='0.5'/%3E%3Cline x1='134' y1='9' x2='220' y2='9' stroke='%23d8b154' opacity='0.5'/%3E%3Ccircle cx='110' cy='9' r='6'/%3E%3Cpath d='M110 1 L110 17 M102 9 L118 9 M104 3 L116 15 M116 3 L104 15' opacity='0.9'/%3E%3C/g%3E%3C/svg%3E");
}

.prose { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--parchment); opacity: 0.92; }
.prose h3 {
  font-family: var(--head);
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.prose em { color: var(--teal); font-style: italic; }
.prose strong { color: var(--gold-bright); font-weight: 600; }
.prose--center { text-align: center; max-width: 680px; margin: 0 auto 18px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
}
.two-col .prose {
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid rgba(216, 177, 84, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Academy ---------- */
.section--academy {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.academy__art { position: relative; }
.academy__art img {
  border-radius: 12px;
  box-shadow: 0 30px 60px -24px #000;
  image-rendering: pixelated;
}
.academy__frame {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(216, 177, 84, 0.35);
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(216, 177, 84, 0.12);
}
.academy__body .section__head { text-align: left; justify-items: start; margin-bottom: 22px; }
.motto {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  font-family: var(--head);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--gold-bright);
  background: rgba(216, 177, 84, 0.06);
  border-radius: 0 10px 10px 0;
}
.motto cite { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); font-style: normal; letter-spacing: 0.05em; }
@media (max-width: 760px) {
  .section--academy { grid-template-columns: 1fr; }
  .academy__body .section__head { justify-items: center; text-align: center; }
}

/* ---------- Features ---------- */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(216, 177, 84, 0.14);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -20%, rgba(216, 177, 84, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 177, 84, 0.5);
  box-shadow: 0 22px 50px -28px var(--gold), 0 0 0 1px rgba(216, 177, 84, 0.2);
}
.feature:hover::before { opacity: 1; }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  border-radius: 12px;
  background: rgba(216, 177, 84, 0.1);
  border: 1px solid rgba(216, 177, 84, 0.3);
  margin-bottom: 14px;
}
.feature h3 {
  font-family: var(--head);
  font-size: 1.12rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.feature p { font-size: 0.98rem; color: var(--muted); }

/* ---------- Paths ---------- */
.paths { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.path {
  font-family: var(--head);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  color: var(--parchment);
  background: rgba(138, 123, 255, 0.07);
  border: 1px solid rgba(138, 123, 255, 0.28);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.path:hover {
  transform: translateY(-3px) scale(1.04);
  color: var(--gold-bright);
  background: rgba(216, 177, 84, 0.12);
  border-color: rgba(216, 177, 84, 0.5);
  box-shadow: 0 0 22px -6px var(--gold);
}

/* ---------- Morality (Light vs Shadow) ---------- */
.morality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 14px 0 28px;
}
@media (max-width: 720px) { .morality { grid-template-columns: 1fr; } }
.moral {
  position: relative;
  padding: 34px 30px;
  border-radius: 18px;
  text-align: center;
  background: var(--panel);
  border: 1px solid;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.moral::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, var(--mc), transparent 60%);
}
.moral > * { position: relative; }
.moral:hover { transform: translateY(-6px); }
.moral__sigil {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  font-size: 1.8rem;
  border-radius: 50%;
}
.moral h3 { font-family: var(--head); font-size: 1.5rem; margin-bottom: 10px; }
.moral p { color: var(--muted); font-size: 1.02rem; }
.moral--light { --mc: rgba(216, 177, 84, 0.18); border-color: rgba(216, 177, 84, 0.4); }
.moral--light:hover { box-shadow: 0 24px 60px -30px var(--gold), 0 0 0 1px rgba(216, 177, 84, 0.35); }
.moral--light .moral__sigil {
  color: #1a1407;
  background: radial-gradient(circle, var(--gold-bright), var(--gold));
  box-shadow: 0 0 26px rgba(216, 177, 84, 0.55);
}
.moral--light h3 { color: var(--gold-bright); }
.moral--shadow { --mc: rgba(138, 123, 255, 0.2); border-color: rgba(138, 123, 255, 0.4); }
.moral--shadow:hover { box-shadow: 0 24px 60px -30px var(--arcane), 0 0 0 1px rgba(138, 123, 255, 0.35); }
.moral--shadow .moral__sigil {
  color: #efe9ff;
  background: radial-gradient(circle, #4a3f8c, #1a1633);
  box-shadow: 0 0 26px rgba(138, 123, 255, 0.5);
}
.moral--shadow h3 { color: #c9bfff; }

/* ---------- Factions ---------- */
.factions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .factions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .factions { grid-template-columns: 1fr; } }
.faction {
  padding: 22px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(216, 177, 84, 0.14);
  border-top: 2px solid var(--gold);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faction:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -28px #000; }
.faction h4 {
  font-family: var(--head);
  font-size: 1.08rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.faction p { font-size: 0.96rem; color: var(--muted); }

/* ---------- Mystery ---------- */
.section--mystery {
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(138, 123, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(5, 4, 10, 0.6), rgba(5, 4, 10, 0.85));
  border-top: 1px solid rgba(138, 123, 255, 0.16);
  border-bottom: 1px solid rgba(138, 123, 255, 0.16);
  max-width: none;
}
.mystery__inner { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; }
.mystery__inner .display { background: linear-gradient(180deg, #efe9ff, var(--arcane) 70%, #4a3f8c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.whisper {
  margin-top: 14px;
  font-family: var(--head);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  line-height: 1.7;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(216, 177, 84, 0.3);
}

/* ---------- Waitlist ---------- */
.section--waitlist { display: grid; place-items: center; }
.waitlist {
  position: relative;
  max-width: 640px;
  width: 100%;
  text-align: center;
  padding: clamp(34px, 6vw, 60px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 18, 30, 0.82), rgba(12, 12, 20, 0.82));
  border: 1px solid rgba(216, 177, 84, 0.3);
  box-shadow: 0 30px 80px -40px #000, inset 0 0 60px rgba(216, 177, 84, 0.05);
  overflow: hidden;
}
.waitlist .kicker { margin-bottom: 8px; }
.waitlist .display { margin-bottom: 14px; }
.waitlist__rune {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px dashed rgba(216, 177, 84, 0.25);
  box-shadow: inset 0 0 0 18px rgba(216, 177, 84, 0.04);
  animation: spin 36s linear infinite;
  pointer-events: none;
}
.signup {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.signup__input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0.9em 1.1em;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--parchment);
  background: rgba(9, 10, 16, 0.8);
  border: 1px solid rgba(216, 177, 84, 0.35);
  border-radius: 999px;
  outline: none;
  cursor: text;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.signup__input::placeholder { color: #6f7488; }
.signup__input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 177, 84, 0.18); }
.signup__btn { flex: 0 0 auto; }
.signup__msg { margin-top: 14px; min-height: 1.3em; font-style: italic; color: var(--teal); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 60px 20px 50px;
  border-top: 1px solid rgba(216, 177, 84, 0.14);
  background: rgba(5, 6, 11, 0.6);
  display: grid;
  gap: 12px;
  justify-items: center;
}
.footer__mark { color: var(--gold); font-size: 1.2rem; animation: flicker 4s infinite; }
.footer__motto {
  font-family: var(--head);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  font-size: 1.05rem;
}
.footer__fine { max-width: 620px; font-size: 0.86rem; color: var(--muted); }
.footer__copy { font-size: 0.8rem; color: #6b7186; letter-spacing: 0.05em; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  /* Animations are off, so hide the veil outright rather than animating it. */
  .veil { display: none !important; }
  #trail, #bg { display: none; }
}
