/* Merge Defenders / ZO Studio — one stylesheet, no frameworks, no external requests. */

@font-face {
  font-family: "Luckiest Guy";
  src: url("assets/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #2a1d16;
  --cream: #fbf1dc;
  --parchment: #f3e2bf;
  --amber: #e9a23b;
  --gold: #ffcf4a;
  --forest: #1d3b2a;
  --forest-2: #24563a;
  --night: #121d18;
  --red: #e2553f;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(10, 20, 14, .28);
  --display: "Luckiest Guy", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* The game's own lettering: cream fill, thick dark outline, a drop. */
.title, .subtitle, .section-title, .join h2, .card h3, .step h3, .booster h3, .march-line, .brand span,
.panel figcaption, .doc h2, .foot-brand, .btn {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .02em;
  /* The game writes all its lettering in capitals; Luckiest Guy's lower case reads as a different font. */
  text-transform: uppercase;
}
.outlined {
  paint-order: stroke fill;
  -webkit-text-stroke: .12em var(--ink);
}

/* NAV ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(18, 29, 24, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.brand span { font-size: 1.25rem; text-shadow: 0 2px 0 var(--ink); }
.nav-links { display: flex; gap: clamp(10px, 2vw, 26px); align-items: center; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  opacity: .9; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--gold); color: var(--ink) !important; text-shadow: none !important;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 3px 0 #b8862a;
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* BUTTONS -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .03em;
  text-decoration: none; color: var(--ink);
  padding: 14px 26px; border-radius: 999px; border: 3px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gold {
  background: linear-gradient(180deg, #ffe17a, var(--gold) 55%, #f0a92a);
  box-shadow: 0 5px 0 var(--ink), 0 12px 24px rgba(0,0,0,.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink), 0 16px 30px rgba(0,0,0,.3); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

/* HERO ----------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  color: #fff; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -8% 0 -8% 0; z-index: -3;
  background: url("assets/bg_lobby.webp") center 30% / cover no-repeat;
  will-change: transform;
  animation: slow-zoom 30s ease-in-out infinite alternate;
}
@keyframes slow-zoom { from { scale: 1.02; } to { scale: 1.1; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 70% at 50% 15%, rgba(18,29,24,.0) 0%, rgba(18,29,24,.35) 60%, rgba(18,29,24,.85) 100%),
    linear-gradient(180deg, rgba(18,29,24,.45) 0%, rgba(18,29,24,0) 30%, rgba(18,29,24,.15) 65%, rgba(18,29,24,.92) 100%);
}
.sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sparkle {
  position: absolute; bottom: -60px; width: var(--s, 34px); opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.7));
  animation: rise var(--t, 12s) linear var(--delay, 0s) infinite;
}
@keyframes rise {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .95; }
  85%  { opacity: .85; }
  100% { transform: translate(var(--drift, 40px), -110vh) rotate(var(--spin, 200deg)); opacity: 0; }
}

.hero-copy {
  align-self: center; justify-self: center; text-align: center;
  padding: 110px 20px 0; max-width: 780px;
}
.eyebrow {
  margin: 0 0 6px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  font-size: .8rem; color: var(--gold); text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.title {
  margin: 0; line-height: .9;
  font-size: clamp(3.4rem, 11vw, 7.8rem);
  color: var(--cream);
  paint-order: stroke fill;
  -webkit-text-stroke: .1em var(--ink);
  text-shadow: 0 .08em 0 var(--ink), 0 .2em .35em rgba(0,0,0,.35);
}
.subtitle {
  margin: .2em 0 0; font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: var(--gold);
  paint-order: stroke fill; -webkit-text-stroke: .12em var(--ink);
  text-shadow: 0 .08em 0 var(--ink);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.18) drop-shadow(0 0 14px rgba(255,207,74,.55)); }
}
.tagline {
  margin: 18px auto 26px; max-width: 34ch;
  font-size: clamp(1.02rem, 2.4vw, 1.25rem); font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.pill-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(18,29,24,.55); border: 2px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-weight: 700;
}
.pill-soon .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #6be36b;
  box-shadow: 0 0 0 0 rgba(107,227,107,.7); animation: ping 2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(107,227,107,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(107,227,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,227,107,0); }
}

.squad {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(0px, 1.5vw, 18px);
  padding: 30px 12px 70px;
}
.squad img {
  width: clamp(64px, 15vw, 170px);
  filter: drop-shadow(0 14px 10px rgba(0,0,0,.45));
  opacity: 0;
  animation:
    drop-in .9s cubic-bezier(.2,1.4,.4,1) calc(.5s + var(--i) * .12s) forwards,
    bob 2.6s ease-in-out calc(1.4s + var(--i) * .3s) infinite;
  transform-origin: 50% 100%;
}
.squad img.lead { width: clamp(78px, 18vw, 205px); }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-60px) scale(.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bob {
  0%, 100% { translate: 0 0; scale: 1 1; }
  50%      { translate: 0 -10px; scale: 1.02 .98; }
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  width: 26px; height: 42px; border: 3px solid rgba(255,255,255,.8); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 9px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* THE MARCH ------------------------------------------------------------- */
.march {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, #1b2a20 100%);
  padding: 46px 0 0;
  color: var(--cream); text-align: center;
}
.march-line { margin: 0 20px 6px; font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--cream);
  paint-order: stroke fill; -webkit-text-stroke: .1em var(--ink); }
.road {
  position: relative; height: 170px;
  background:
    linear-gradient(180deg, transparent 0 70%, rgba(0,0,0,.25) 70% 72%, transparent 72%),
    linear-gradient(180deg, transparent 0 58%, #a07a4f 58%, #b98f5f 80%, #8a6640 100%);
}
.walker {
  --cell: 130px;
  position: absolute; bottom: 22px; left: 100%;
  width: var(--cell); height: var(--cell);
  background-size: auto 100%; background-repeat: no-repeat;
  animation:
    march var(--speed) linear var(--delay) infinite,
    cycle var(--frame-time) steps(var(--frames)) infinite;
  filter: drop-shadow(0 8px 4px rgba(0,0,0,.35));
}
.walker.grub   { --frames: 10; --frame-time: .9s; background-image: url("assets/walk_grub.webp"); }
.walker.shell  { --frames: 11; --frame-time: 1.1s; background-image: url("assets/walk_shell.webp"); --cell: 140px; }
.walker.runner { --frames: 12; --frame-time: .6s; background-image: url("assets/walk_runner.webp"); }
@keyframes march { from { left: 100%; } to { left: -160px; } }
/* Each strip is N square cells: step through them by sliding the strip its own full length. */
@keyframes cycle { from { background-position-x: 0; } to { background-position-x: calc(var(--cell) * var(--frames) * -1); } }

/* SECTIONS ------------------------------------------------------------- */
.section { padding: clamp(70px, 10vw, 120px) clamp(16px, 5vw, 64px); }
.section-title {
  margin: 0 auto; text-align: center; max-width: 20ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.02;
  color: var(--cream);
  paint-order: stroke fill; -webkit-text-stroke: .11em var(--ink);
  text-shadow: 0 .07em 0 var(--ink);
}
.section-lede { margin: 14px auto 0; text-align: center; max-width: 52ch; font-size: 1.1rem; font-weight: 500; }

/* HOW IT PLAYS */
.play { background: radial-gradient(90% 60% at 50% 0%, #fff7e6 0%, var(--cream) 60%); }
.steps {
  display: grid; gap: 24px; margin: 46px auto 0; max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.step {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 18px 22px 24px; box-shadow: 0 8px 0 var(--ink), var(--shadow);
}
.step h3 { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 1.7rem; }
.step p { margin: 0; }
.num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--ink); font-size: 1.2rem;
}
.stage {
  position: relative; height: 170px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #cfe9b6, #9fcf83);
  border: 3px solid var(--ink);
}
.stage .t { position: absolute; width: 64px; top: 50%; margin-top: -32px; }

.stage-merge .t1 { left: calc(50% - 100px); animation: merge-l 2.8s ease-in-out infinite; }
.stage-merge .t2 { left: calc(50% + 36px); animation: merge-r 2.8s ease-in-out infinite; }
.stage-merge .t3 { left: 50%; margin-left: -32px; opacity: 0; animation: merge-pop 2.8s ease-in-out infinite; }
@keyframes merge-l   { 0%, 20% { transform: none; opacity: 1; } 45% { transform: translateX(68px); opacity: 1; } 46%, 92% { opacity: 0; transform: none; } 100% { opacity: 1; } }
@keyframes merge-r   { 0%, 20% { transform: none; opacity: 1; } 45% { transform: translateX(-68px); opacity: 1; } 46%, 92% { opacity: 0; transform: none; } 100% { opacity: 1; } }
@keyframes merge-pop { 0%, 45% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.65); } 65%, 88% { opacity: 1; transform: scale(1.35); } 100% { opacity: 0; transform: scale(1.35); } }
.burst {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px;
  border-radius: 50%; border: 4px solid #fff; opacity: 0;
  animation: burst 2.8s ease-out infinite;
}
@keyframes burst { 0%, 45% { opacity: 0; transform: scale(1); } 47% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(14); } }

.hero-mini { position: absolute; left: 10%; bottom: 10px; width: 92px; filter: drop-shadow(0 6px 4px rgba(0,0,0,.3)); }
.stage-send .t.fly { width: 58px; margin-top: -29px; right: 12%; animation: fly 2.6s ease-in-out infinite; }
@keyframes fly {
  0%, 15% { transform: none; opacity: 1; }
  60%     { transform: translate(-150px, -40px) scale(.7) rotate(-200deg); opacity: 1; }
  70%     { transform: translate(-175px, 10px) scale(.2) rotate(-280deg); opacity: 0; }
  100%    { opacity: 0; }
}
.stage-send .hero-mini { animation: gulp 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes gulp { 0%, 66% { transform: none; filter: drop-shadow(0 6px 4px rgba(0,0,0,.3)); } 72% { transform: scale(1.12, .92); filter: drop-shadow(0 0 16px #ffd36b); } 85%, 100% { transform: none; } }

.walker-mini {
  --cell: 92px; --frames: 10;
  position: absolute; bottom: 14px; width: var(--cell); height: var(--cell); right: -100px;
  background: url("assets/walk_grub.webp") 0 0 / auto 100% no-repeat;
  animation: mini-march 3.2s linear infinite, cycle .8s steps(10) infinite;
}
@keyframes mini-march { 0% { right: -100px; opacity: 1; } 62% { right: 30%; opacity: 1; } 66%, 100% { right: 30%; opacity: 0; } }
.shot {
  position: absolute; left: 30%; bottom: 62px; height: 6px; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #fff6c9, #ff7a3d);
  box-shadow: 0 0 12px #ffb347; opacity: 0;
  animation: shot 3.2s ease-out infinite;
}
@keyframes shot { 0%, 55% { width: 0; opacity: 0; } 58% { opacity: 1; width: 30%; } 63% { opacity: 0; width: 34%; } 100% { opacity: 0; } }
.boom {
  position: absolute; right: 30%; bottom: 40px; width: 70px; height: 70px; margin-right: -10px;
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, #ffd34d 30%, #ff7a3d 55%, rgba(255,122,61,0) 70%);
  animation: boom 3.2s ease-out infinite;
}
@keyframes boom { 0%, 61% { opacity: 0; transform: scale(.2); } 64% { opacity: 1; transform: scale(1.2); } 76%, 100% { opacity: 0; transform: scale(1.8); } }

/* DEFENDERS */
.defenders { background: linear-gradient(180deg, var(--forest-2), var(--forest)); color: var(--cream); }
.defenders .section-lede { color: #e8f1e2; }
.cards {
  /* Flex rather than grid so an uneven last row centres instead of hanging left. */
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  margin: 46px auto 0; max-width: 1150px;
}
.cards .card { flex: 0 1 clamp(120px, 17.5%, 210px); }
@media (max-width: 520px) { .cards .card { flex-basis: calc(50% - 9px); } }
.card {
  position: relative; border-radius: var(--radius); padding: 18px 14px 14px;
  background:
    radial-gradient(90% 60% at 50% 35%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 70%);
  border: 3px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink), var(--shadow);
  transform-style: preserve-3d;
  transition: transform .2s ease;
  will-change: transform;
}
.card-art { width: 82%; margin: 4px auto 0; filter: drop-shadow(0 10px 8px rgba(0,0,0,.35)); transform: translateZ(30px); transition: transform .3s; }
.card:hover .card-art { transform: translateZ(40px) scale(1.06) rotate(-2deg); }
.card-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;
  background: rgba(255,255,255,.88); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px;
}
.card-foot img { width: 26px; }
.card h3 { margin: 0; font-size: 1.45rem; color: var(--ink); }

.boosters {
  display: grid; gap: 16px; margin: 40px auto 0; max-width: 1000px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.booster {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 14px 16px;
}
.booster img { width: 56px; flex: none; animation: float 3.4s ease-in-out infinite; }
.booster:nth-child(2) img { animation-delay: -1.1s; }
.booster:nth-child(3) img { animation-delay: -2.2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
.booster h3 { margin: 0; font-size: 1.3rem; color: var(--gold); }
.booster p { margin: 0; color: #e8f1e2; }

/* STORY */
.story { background: var(--night); color: var(--cream); }
.reel { position: relative; max-width: 1180px; margin: 44px auto 0; }
.reel-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 18px; scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.panel {
  position: relative; margin: 0; flex: 0 0 clamp(230px, 30vw, 330px);
  aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; scroll-snap-align: center;
  border: 3px solid rgba(255,255,255,.12);
  transform: scale(.94); opacity: .55; transition: transform .5s, opacity .5s, border-color .5s;
}
.panel.active { transform: scale(1); opacity: 1; border-color: var(--gold); }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.panel.active img { transform: scale(1.08); }
.panel figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 16px 18px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  font-family: var(--display); font-size: 1.15rem; line-height: 1.15; color: var(--cream);
}
.reel-btn {
  position: absolute; top: 45%; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--gold); color: var(--ink);
  font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 var(--ink);
}
.reel-btn.prev { left: -6px; } .reel-btn.next { right: -6px; }
.reel-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (max-width: 600px) { .reel-btn { display: none; } }
.reel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.reel-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.3); transition: width .3s, background .3s;
}
.reel-dots button.on { width: 28px; background: var(--gold); }

/* WORLD */
.world {
  display: grid; gap: 40px; align-items: center; justify-content: center;
  grid-template-columns: minmax(0, 480px) minmax(0, 520px);
  background: linear-gradient(180deg, #e8f4ff 0%, #cfe6f7 100%);
}
.world .section-title, .world .section-lede { text-align: left; margin-left: 0; }
@media (max-width: 860px) {
  .world { grid-template-columns: minmax(0, 560px); }
  .world .section-title, .world .section-lede { text-align: center; margin-left: auto; }
}
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.facts li {
  display: flex; align-items: center; gap: 12px; font-weight: 700;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 5px 0 var(--ink);
}
.facts img { width: 30px; flex: none; }
.map {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink), var(--shadow);
  aspect-ratio: 2 / 3; max-height: 82vh; margin: 0 auto; width: 100%;
}
.map img { width: 100%; height: 100%; object-fit: cover; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .node { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.map.drawn .node { animation: node-pop .5s cubic-bezier(.2,1.6,.4,1) forwards; animation-delay: var(--d); }
@keyframes node-pop { to { transform: scale(1); } }
.map .node.last { animation: node-pop .5s cubic-bezier(.2,1.6,.4,1) forwards var(--d), node-pulse 1.6s ease-in-out calc(var(--d) + .6s) infinite; }
@keyframes node-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* JOIN */
.join {
  position: relative; overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 16px;
  background: url("assets/bg_forest.webp") center / cover;
  display: grid; place-items: center;
}
.join::before { content: ""; position: absolute; inset: 0; background: rgba(18,29,24,.45); }
.join-card {
  position: relative; max-width: 560px; text-align: center;
  background: var(--parchment); border: 4px solid var(--ink); border-radius: 26px;
  padding: 34px 26px 30px; box-shadow: 0 0 0 6px var(--amber), 0 10px 0 6px var(--ink), var(--shadow);
}
.join h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.05; }
.join p { margin: 0 0 22px; font-size: 1.05rem; }
.join .btn { font-size: clamp(.95rem, 3.6vw, 1.15rem); word-break: break-all; }
.join-zip {
  position: absolute; width: clamp(110px, 18vw, 200px); right: max(2vw, calc(50% - 470px)); bottom: -10px;
  filter: drop-shadow(0 10px 8px rgba(0,0,0,.4));
  animation: peek 4s ease-in-out infinite; transform-origin: 50% 100%;
}
@keyframes peek { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(-6px); } }
@media (max-width: 700px) { .join-zip { display: none; } }

/* FOOTER */
.footer {
  background: var(--night); color: #cfd8d2; text-align: center;
  padding: 34px 16px 40px; display: grid; gap: 12px; justify-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.2rem; color: #fff; }
.foot-brand img { border-radius: 8px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--gold); font-weight: 700; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.fine { margin: 0; font-size: .82rem; opacity: .75; }

/* SCROLL REVEAL ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* PRIVACY PAGE --------------------------------------------------------- */
.doc-page { background: var(--night); }
.doc-hero { padding: 120px 16px 40px; text-align: center; color: var(--cream); }
.doc-hero .section-title { max-width: none; }
.doc {
  max-width: 760px; margin: 0 auto 80px; background: var(--cream);
  border: 4px solid var(--ink); border-radius: 26px; padding: clamp(22px, 5vw, 48px);
  box-shadow: 0 0 0 6px var(--amber), var(--shadow);
}
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 1.6em 0 .4em; }
.doc h2:first-of-type { margin-top: .4em; }
.doc a { color: #1f6fb8; }
.doc .meta { margin-top: 0; font-weight: 700; }

/* MOTION SAFETY: everything above becomes still for people who asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .squad img { opacity: 1; }
  .walker { left: auto; }
  .walker:nth-child(1) { left: 12%; } .walker:nth-child(2) { left: 34%; } .walker:nth-child(3) { left: 56%; }
  .walker:nth-child(4) { left: 74%; } .walker:nth-child(5) { display: none; }
  .map .node { transform: scale(1); }
  .sparkles { display: none; }
}
