/* ============================================================
   KINGDOM COME — kingdomcome.lt  ·  DIRECTION C: "Vigil"
   A full title sequence in CSS. The night breathes: a wheel of
   rays turns, seeds are thrown in arcs and drift like embers,
   film grain flickers, the title tracks in from darkness with
   a gold shimmer. Below the fold, CSS scroll-driven reveals —
   the wheat grows as you reach the giving section. No JS added;
   everything degrades gracefully and honors reduced motion.
   ============================================================ */

:root {
  --paper: #faf6ef;
  --paper-warm: #f4ecdd;
  --card: #fffdf8;
  --ink: #2b2320;
  --muted: #6e6156;
  --gold: #b08843;
  --gold-bright: #c9a05c;
  --gold-pale: #e8d9bd;
  --gold-deep: #8a6a30;
  --night: #0e0b08;
  --night-2: #1c1610;
  --moon: #f2ead9;
  --moon-dim: #cfc2a9;
  --line: rgba(43, 35, 32, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Book Antiqua", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold-deep); }
a:hover { color: var(--ink); }

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

.wrap {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.4rem;
}

.wrap-wide {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 1.4rem;
}

/* ---------- header — fades in last, like a credit ---------- */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 6;
  color: var(--moon);
  animation: fadeIn 1.6s ease 2.4s both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.head-in {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-variant: small-caps;
  letter-spacing: 0.26em;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-mark { color: var(--gold-bright); flex: none; }

.lang { display: flex; gap: 0.15rem; }

.lang button {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--moon-dim);
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.lang button:hover { color: var(--moon); }

.lang button.is-active {
  color: var(--moon);
  border-bottom-color: var(--gold);
}

.lang button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ============================================================
   HERO — the vigil
   ============================================================ */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(130% 70% at 50% 112%, #43301a 0%, rgba(67, 48, 26, 0) 60%),
    linear-gradient(180deg, var(--night) 0%, #171209 70%, #261c11 100%);
  color: var(--moon);
  padding-block: 6.5rem 7.5rem;
  text-align: center;
  animation: heroBloom 3s ease both;
}

/* the whole night blooms from black — a projector warming up */
@keyframes heroBloom {
  0%   { filter: brightness(0.15) saturate(0.6); }
  100% { filter: brightness(1) saturate(1); }
}

/* dormant film slot */
#hero-visual { position: absolute; inset: 0; margin: 0; z-index: 0; }

#hero-visual video,
#hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 70% at 50% 112%, rgba(67, 48, 26, 0.55) 0%, rgba(14, 11, 8, 0) 60%),
    linear-gradient(180deg, rgba(14, 11, 8, 0.85) 0%, rgba(14, 11, 8, 0.55) 45%, rgba(38, 28, 17, 0.88) 100%);
}

.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* the wheel of rays — slowly turning around the horizon point */
.ray-wheel {
  position: absolute;
  left: 50%;
  bottom: -110vmin;
  width: 220vmin;
  height: 220vmin;
  margin-left: -110vmin;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
    transparent 0deg 7deg,
    rgba(201, 160, 92, 0.055) 7deg 9.5deg,
    transparent 9.5deg 16deg,
    rgba(201, 160, 92, 0.03) 16deg 17.5deg,
    transparent 17.5deg 24deg);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,0) 26%, #000 40%, rgba(0,0,0,0.15) 68%, transparent 78%);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,0) 26%, #000 40%, rgba(0,0,0,0.15) 68%, transparent 78%);
  animation: wheelTurn 160s linear infinite;
}

@keyframes wheelTurn { to { transform: rotate(360deg); } }

/* the ember horizon — breathes like a coal */
.ember {
  position: absolute;
  left: 50%;
  bottom: 4.4rem;
  width: min(80vw, 680px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold) 28%, #e0b878 50%, var(--gold) 72%, transparent);
  animation: emberBreathe 6s ease-in-out infinite;
}

@keyframes emberBreathe {
  0%, 100% { box-shadow: 0 0 18px 1px rgba(201, 160, 92, 0.35), 0 0 70px 10px rgba(176, 136, 67, 0.16); opacity: 0.8; }
  50%      { box-shadow: 0 0 26px 3px rgba(201, 160, 92, 0.55), 0 0 110px 22px rgba(176, 136, 67, 0.28); opacity: 1; }
}

/* drifting seeds — three depths: blur, size, speed */
.seed {
  position: absolute;
  bottom: -3vh;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  animation: seedRise linear infinite;
}

@keyframes seedRise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.9; }
  55%  { transform: translate(3vw, -55vh); }
  75%  { opacity: 0.45; }
  100% { transform: translate(-1vw, -108vh); opacity: 0; }
}

.s1  { left: 7%;  animation-duration: 18s; animation-delay: 0s;    width: 2px; height: 2px; filter: blur(1px); }
.s2  { left: 15%; animation-duration: 27s; animation-delay: 6s; }
.s3  { left: 23%; animation-duration: 21s; animation-delay: 12s;   width: 2px; height: 2px; filter: blur(1px); }
.s4  { left: 32%; animation-duration: 31s; animation-delay: 3s; }
.s5  { left: 40%; animation-duration: 20s; animation-delay: 9s;    width: 5px; height: 5px; filter: blur(0.5px); }
.s6  { left: 49%; animation-duration: 28s; animation-delay: 15s;   width: 2px; height: 2px; filter: blur(1px); }
.s7  { left: 57%; animation-duration: 22s; animation-delay: 1.5s; }
.s8  { left: 65%; animation-duration: 30s; animation-delay: 7.5s;  width: 2px; height: 2px; filter: blur(1px); }
.s9  { left: 73%; animation-duration: 19s; animation-delay: 13s;   width: 4px; height: 4px; }
.s10 { left: 81%; animation-duration: 26s; animation-delay: 4.5s;  width: 5px; height: 5px; filter: blur(0.5px); }
.s11 { left: 89%; animation-duration: 29s; animation-delay: 10s;   width: 2px; height: 2px; filter: blur(1px); }
.s12 { left: 95%; animation-duration: 23s; animation-delay: 16s; }

/* sown seeds — thrown in arcs from the left, like a sower's hand.
   Parabola = outer span moves X linearly, inner <i> falls with ease. */
.sown {
  position: absolute;
  left: -2%;
  bottom: 30%;
  animation: sowX linear infinite;
}

.sown i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e0b878;
  box-shadow: 0 0 8px 1px rgba(224, 184, 120, 0.6);
  animation: sowY cubic-bezier(0.3, 0, 0.75, 1) infinite;
  animation-duration: inherit;
  animation-delay: inherit;
}

@keyframes sowX {
  0%   { transform: translateX(0); opacity: 0; }
  6%   { opacity: 0.9; }
  80%  { opacity: 0.7; }
  100% { transform: translateX(104vw); opacity: 0; }
}

@keyframes sowY {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-16vh) scale(1); }
  100% { transform: translateY(24vh) scale(0.6); }
}

.a1 { animation-duration: 11s; animation-delay: 1s;   bottom: 34%; }
.a2 { animation-duration: 14s; animation-delay: 6s;   bottom: 26%; }
.a3 { animation-duration: 12s; animation-delay: 9.5s; bottom: 40%; }
.a4 { animation-duration: 16s; animation-delay: 3.5s; bottom: 22%; }

/* film grain — two layers, one flickering in steps like celluloid */
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.g1 { opacity: 0.05; }

.g2 {
  opacity: 0.035;
  background-position: 90px 45px;
  animation: flicker 0.9s steps(3) infinite;
}

@keyframes flicker {
  0%   { opacity: 0.02; background-position: 90px 45px; }
  50%  { opacity: 0.05; background-position: 20px 120px; }
  100% { opacity: 0.03; background-position: 140px 10px; }
}

/* soft vignette closing the frame */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(8, 6, 4, 0.55) 100%);
}

/* ---------- the title tracks in from darkness ---------- */

.hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hero .kicker {
  color: var(--gold-bright);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 1.4s ease 1.9s both;
}

#hero .kicker::before,
#hero .kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  transform-origin: right;
  animation: ruleGrow 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.1s both;
}

#hero .kicker::after {
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
}

@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

h1 {
  font-size: clamp(3rem, 12.5vw, 8.5rem);
  line-height: 1.02;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
  background: linear-gradient(105deg,
    var(--moon) 0%, var(--moon) 38%,
    #ecd9ae 46%, #d9b877 50%, #ecd9ae 54%,
    var(--moon) 62%, var(--moon) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--moon); /* fallback if clip unsupported */
  animation:
    trackIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both,
    shimmer 9s ease-in-out 3.4s infinite;
  text-shadow: none;
}

@keyframes trackIn {
  0%   { letter-spacing: 0.34em; opacity: 0; filter: blur(14px); }
  40%  { opacity: 1; }
  100% { letter-spacing: 0.015em; opacity: 1; filter: blur(0); }
}

@keyframes shimmer {
  0%, 55%  { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

.hero-rule {
  width: 54px;
  height: 1px;
  margin: 2.2rem 0 1.9rem;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: ruleGrow 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.5s both;
}

#hero .lead {
  color: var(--moon-dim);
  max-width: 44ch;
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  animation: leadRise 1.6s cubic-bezier(0.16, 1, 0.3, 1) 2.7s both;
}

@keyframes leadRise {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* scroll cue — a falling seed on a thread */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  width: 1px;
  height: 38px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(201, 160, 92, 0.5));
  animation: fadeIn 1s ease 3.6s both;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: cueDrop 2.4s ease-in-out infinite;
}

@keyframes cueDrop {
  0%   { top: 0; opacity: 0; }
  25%  { opacity: 1; }
  80%  { top: 34px; opacity: 0; }
  100% { top: 34px; opacity: 0; }
}

/* dawn — the passage into the chapel */
.dawn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  z-index: 3;
  background: linear-gradient(180deg, rgba(250, 246, 239, 0) 0%, rgba(250, 246, 239, 0.35) 60%, var(--paper) 100%);
}

/* ============================================================
   THE CHAPEL — scroll-driven stillness
   ============================================================ */

.kicker {
  font-variant: small-caps;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: var(--gold-deep);
  margin: 0 0 0.8rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 400;
  text-wrap: balance;
}

h3 {
  font-size: 1.18rem;
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.lead {
  font-style: italic;
  font-size: 1.16rem;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 58ch;
  text-wrap: pretty;
}

.note { color: var(--muted); font-size: 0.96rem; margin: 0; text-wrap: pretty; }

.small { color: var(--muted); font-size: 0.85rem; }

section { padding-block: clamp(3.6rem, 9vw, 6.5rem); }

/* scroll-driven reveals — pure CSS, progressive enhancement */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .work-list li,
    #seed .seed-head > *,
    .card,
    .partner-panel > *,
    #app .wrap > * {
      animation: viewRise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }

    .work-list li:nth-child(2), .card:nth-child(2) { animation-range: entry 12% entry 52%; }
    .work-list li:nth-child(3), .card:nth-child(3) { animation-range: entry 19% entry 59%; }

    /* the wheat grows as it enters */
    .wheat {
      transform-origin: 50% 100%;
      animation: wheatGrow 1s cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@keyframes viewRise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wheatGrow {
  from { opacity: 0; transform: scaleY(0.2); }
  to   { opacity: 1; transform: scaleY(1); }
}

/* ---------- what we create ---------- */

#work { padding-top: clamp(4rem, 10vw, 7rem); }

.work-list {
  list-style: none;
  counter-reset: work;
  margin: 1.8rem 0 0;
  padding: 0;
}

.work-list li {
  counter-increment: work;
  position: relative;
  padding: 1.7rem 0 1.7rem clamp(4.4rem, 12vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.work-list li:last-child { border-bottom: 1px solid var(--line); }

.work-list li::before {
  content: counter(work, upper-roman);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-style: italic;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1;
  opacity: 0.85;
}

/* ---------- sow a seed — light through a window ---------- */

#seed {
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 44% at 50% 0%, rgba(176, 136, 67, 0.07) 0%, rgba(176, 136, 67, 0) 70%),
    var(--paper);
}

/* a slow shaft of light crossing the chapel floor */
.light-shaft {
  position: absolute;
  top: -12%;
  left: 50%;
  width: 46vmax;
  height: 130%;
  margin-left: -23vmax;
  pointer-events: none;
  background: linear-gradient(102deg,
    transparent 42%,
    rgba(176, 136, 67, 0.06) 47%,
    rgba(176, 136, 67, 0.11) 50%,
    rgba(176, 136, 67, 0.06) 53%,
    transparent 58%);
  animation: shaftDrift 26s ease-in-out infinite alternate;
}

@keyframes shaftDrift {
  from { transform: translateX(-9vmax) rotate(-1.5deg); opacity: 0.7; }
  to   { transform: translateX(9vmax) rotate(1.5deg); opacity: 1; }
}

.seed-head { position: relative; display: flex; flex-direction: column; align-items: center; }

.wheat { color: var(--gold); margin-bottom: 1.6rem; }

#seed .lead { margin-inline: auto; }

.blessing {
  margin: 2.2rem auto 0;
  padding: 0;
  border: none;
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: balance;
}

.blessing::before,
.blessing::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 1.3rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#seed-methods {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.1rem;
  margin-top: 3rem;
  text-align: left;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 2px rgba(43, 35, 32, 0.04), 0 12px 34px -18px rgba(43, 35, 32, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(43, 35, 32, 0.05), 0 22px 48px -20px rgba(43, 35, 32, 0.26);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
}

.card .note { margin-top: 0.1rem; }

.card .btn { margin-top: auto; }

.card h3 + .btn,
.iban + .btn,
.note + .btn { margin-top: 1.2rem; }

.iban { margin: 0.9rem 0 0; width: 100%; }

.iban div {
  display: flex;
  gap: 0.8rem;
  padding-block: 0.3rem;
}

.iban dt {
  min-width: 5.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: none;
}

.iban dd { margin: 0; }

.iban-value {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pending {
  position: relative;
  font-style: italic;
  color: var(--muted);
  margin: 2.6rem auto 0;
  max-width: 46ch;
  text-align: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.66rem 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* ink fill sweeps up from below */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover { color: var(--paper); }

.btn:hover::before { transform: translateY(0); }

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(138, 106, 48, 0.55);
}

.btn-gold::before { background: var(--gold-deep); }

.btn-gold:hover { color: #fff; border-color: var(--gold-deep); }

#iban-copy.is-done {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: rgba(176, 136, 67, 0.08);
}

#iban-copy.is-done::after { content: " ✓"; }

/* ---------- monthly partner ---------- */

#partner { padding-top: 0; }

.partner-panel {
  background:
    radial-gradient(120% 130% at 50% -20%, rgba(176, 136, 67, 0.13) 0%, rgba(176, 136, 67, 0.04) 55%, rgba(176, 136, 67, 0.09) 100%),
    var(--card);
  border: 1px solid rgba(176, 136, 67, 0.3);
  border-radius: 18px;
  padding: clamp(2.2rem, 6vw, 3.4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-body {
  max-width: 52ch;
  margin: 0 0 1.8rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Emausas app ---------- */

#app {
  text-align: center;
  border-top: 1px solid var(--line);
}

#app .wrap { display: flex; flex-direction: column; align-items: center; }

.app-body {
  max-width: 48ch;
  margin: 0 0 1.6rem;
  color: var(--muted);
  text-wrap: pretty;
}

.badge {
  display: inline-block;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold-deep);
  border: 1px solid rgba(176, 136, 67, 0.4);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  background: rgba(176, 136, 67, 0.06);
}

#app-store-wrap { margin-top: 1.2rem; }

/* ---------- footer — the night returns, seeds still rising ---------- */

footer {
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
  color: var(--moon-dim);
  padding-block: clamp(3rem, 8vw, 4.5rem) 2.6rem;
  margin-top: clamp(2rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(60vw, 420px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  box-shadow: 0 0 18px 1px rgba(176, 136, 67, 0.3);
}

footer .seed { bottom: -6px; }

.f1 { left: 18%; animation-duration: 14s; animation-delay: 2s;  width: 2px; height: 2px; }
.f2 { left: 52%; animation-duration: 18s; animation-delay: 7s; }
.f3 { left: 83%; animation-duration: 16s; animation-delay: 0s;  width: 2px; height: 2px; }

footer .kicker { color: var(--gold-bright); }

.foot-body { margin: 0 0 1.6rem; color: var(--moon); }

footer a { color: var(--gold-bright); }

footer a:hover { color: var(--moon); }

footer a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

footer .small { color: rgba(207, 194, 169, 0.75); margin: 0.3rem 0 0; }

/* ---------- misc ---------- */

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .seed, .sown, .scroll-cue, .g2, .light-shaft { display: none; }
  h1 { letter-spacing: 0.015em; opacity: 1; filter: none; }
}
