/* DEADWATT site. Minimal: big footage, few words, one accent (gold) used only for the download buttons. */

@font-face { font-family: "BS Display"; src: url("../assets/fonts/display-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "BS Text"; src: url("../assets/fonts/text-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #100b20;
  --bg-2: #171030;
  --text: #f4ead3;
  --muted: #a99fc7;
  --gold: #ffc83a;
  --gold-hover: #ffd96e;
  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 56px);
  --display: "BS Display", "Arial Narrow", Impact, sans-serif;
  --body: "BS Text", "Arial Narrow", "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 700 19px/1.5 var(--body); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h2 { font: 900 clamp(44px, 5.6vw, 104px)/.9 var(--display); text-transform: uppercase; letter-spacing: .005em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ------------------------------------------------------------------ buttons and links */
.btn {
  display: inline-block; padding: 17px 30px; background: var(--gold); color: var(--bg);
  font: 900 21px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  transition: background-color .15s;
}
.btn:hover { background: var(--gold-hover); }
.btn--small { padding: 10px 18px; font-size: 16px; }
.btn--big { padding: 22px 40px; font-size: 26px; }
.link { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; font-size: 18px; }
.link:hover { color: var(--gold); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); transition: background-color .25s, padding .25s;
}
.nav.is-solid { background: rgba(16, 11, 32, .94); padding-block: 10px; backdrop-filter: blur(8px); }
.nav__logo { opacity: 0; transition: opacity .25s; }
.nav.is-solid .nav__logo { opacity: 1; }
.nav__logo img { width: 132px; }

/* ------------------------------------------------------------------ hero: the horde under the moon */
.hero {
  position: relative; height: 100svh; min-height: 620px; max-height: 1300px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff9 50%, transparent 51%) 0 0 / 420px 420px,
    radial-gradient(1px 1px at 32% 62%, #fff8 50%, transparent 51%) 0 0 / 380px 380px,
    radial-gradient(1.6px 1.6px at 58% 12%, #fffa 50%, transparent 51%) 0 0 / 460px 460px,
    radial-gradient(1px 1px at 78% 44%, #fff7 50%, transparent 51%) 0 0 / 300px 300px,
    linear-gradient(180deg, #1b1240 0%, #2c1c5c 55%, #3a2470 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14vh; z-index: 4; background: linear-gradient(0deg, var(--bg), transparent); pointer-events: none; }
.hero__moon { position: absolute; left: 80%; top: 7vh; width: 28vh; height: 28vh; translate: -50% 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 42% 40%, #fff6dc 0 55%, #f1e3b8 70%, #e2cf9a 100%); box-shadow: 0 0 120px 30px rgba(255, 236, 190, .16); }
.hero__in { position: relative; z-index: 5; display: grid; justify-items: center; gap: 18px; padding: 15vh var(--gutter) 0; text-align: center; }
.hero__logo { width: min(86vw, max(720px, 40vw), 1180px); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .5)); }
.hero__line { font: 900 clamp(17px, 1.25vw, 30px)/1.2 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 32px; margin-top: 10px; }
.hero__cta .btn { font-size: clamp(21px, 1.15vw, 28px); padding: .85em 1.5em; }
.hero__cta .link { font-size: clamp(18px, .95vw, 22px); }

.crowd { position: absolute; left: 0; right: 0; bottom: 0; height: 52vh; z-index: 3; pointer-events: none; }
.crowd img { position: absolute; left: var(--x); bottom: 0; width: auto; translate: -50% 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); animation: bob 2.6s var(--d) ease-in-out infinite; }
.crowd .back { height: 34vh; bottom: 13vh; z-index: 1; filter: brightness(.62) saturate(.85) drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); }
.crowd .mid { height: 30vh; bottom: 5vh; z-index: 2; }
.crowd .front { height: 26vh; bottom: -2vh; z-index: 3; }
@keyframes bob { 50% { translate: -50% -6px; } }
/* the one entrance: the horde climbs into view, front row last */
.intro .crowd img { animation: climb .8s calc(.25s + var(--i) * 35ms) cubic-bezier(.2, 1.15, .4, 1) both, bob 2.6s var(--d) ease-in-out infinite; }
@keyframes climb { from { transform: translateY(70%); opacity: 0; } }
.intro .hero__in { animation: fade 1s .1s ease-out both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ the enemy loop: a carnival shooting gallery */
.gallery { position: relative; background: linear-gradient(180deg, #174a55 0%, #12414b 100%); overflow: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M16 3v7M16 22v7M3 16h7M22 16h7' stroke='%23100b20' stroke-width='5'/%3E%3Cpath d='M16 3v7M16 22v7M3 16h7M22 16h7' stroke='%23f4ead3' stroke-width='2.2'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.3' fill='%23f4ead3' stroke='%23100b20' stroke-width='1.4'/%3E%3C/svg%3E") 16 16, crosshair; }
.gallery__awning { position: relative; z-index: 2; height: 92px; background: repeating-linear-gradient(90deg, #e23b2e 0 54px, var(--text) 54px 108px); }
.gallery__awning::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: radial-gradient(circle at 27px 0, #e23b2e 25px, transparent 26px) 0 0 / 108px 22px, radial-gradient(circle at 81px 0, var(--text) 25px, transparent 26px) 0 0 / 108px 22px; }
.gallery__sign { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 10px 24px; background: var(--bg); color: var(--gold); font-size: clamp(28px, 3.2vw, 44px); white-space: nowrap; }
.gallery__rows { padding: 50px 0 6px; }
.gallery__row { position: relative; overflow: hidden; padding-top: 8px; }
.gallery__row::after { content: ""; display: block; height: 10px; background: #7b3f20; }
.gallery__row--back { margin-top: 18px; }
.gallery__track { display: flex; align-items: flex-end; gap: 48px; width: max-content; padding: 0 24px; animation: slide 90s linear infinite; }
.gallery__row--back .gallery__track { animation-duration: 120s; animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.critter { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.critter img { height: 160px; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.gallery__row--back .critter img { height: 124px; }
.critter span { font: 900 14px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text); background: var(--bg); padding: 5px 9px 4px; margin-bottom: -2px; }
.gallery__hint { text-align: center; padding: 18px var(--gutter) 24px; font-size: 17px; color: #cfe3e3; }

.target { -webkit-user-drag: none; user-select: none; touch-action: manipulation; transition: filter .08s; }
.target.hit { filter: brightness(2.4) saturate(.2); }
.target.knock { animation: knock .22s ease-out; }
.target.dead { animation: shrink .38s ease-in forwards; }
.target.back { animation: popin .4s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes knock { 30% { rotate: -9deg; } }
@keyframes shrink { to { scale: 0; rotate: 25deg; } }
@keyframes popin { from { scale: 0; } }
.fx { position: fixed; z-index: 60; pointer-events: none; left: 0; top: 0; }
.fx--spark { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, var(--text) 0 16%, var(--gold) 17% 30%, transparent 32%); animation: spark .18s ease-out forwards; }
@keyframes spark { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.fx--dmg { font: 900 30px/1 var(--display); color: var(--text); text-shadow: 2px 2px 0 var(--bg), -2px -2px 0 var(--bg), 2px -2px 0 var(--bg), -2px 2px 0 var(--bg); translate: -50% -50%; animation: dmg .65s ease-out forwards; white-space: nowrap; }
.fx--dmg.head { color: var(--gold); font-size: 38px; }
@keyframes dmg { 0% { transform: translate(0, 0) scale(1.3); } 25% { transform: translate(var(--dx), -18px) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), -46px) scale(.9); opacity: 0; } }

/* ------------------------------------------------------------------ maps */
.maps { padding: clamp(96px, 12vw, 160px) 0; }
.lede { max-width: 40ch; margin-top: 18px; font-size: 21px; color: var(--muted); }
.maps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.maps__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
.maps__grid figcaption { padding-top: 18px; }
.maps__grid h3 { font: 900 clamp(28px, 2.4vw, 40px)/1 var(--display); text-transform: uppercase; }
.maps__grid p { margin-top: 6px; color: var(--muted); font-size: 18px; }

/* ------------------------------------------------------------------ co-op + numbers */
.coop { padding: clamp(96px, 12vw, 160px) 0 clamp(40px, 5vw, 64px); }
.coop__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: end; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.numbers div { display: flex; flex-direction: column-reverse; gap: 8px; }
.numbers dd { font: 900 clamp(64px, 7vw, 112px)/.85 var(--display); }
.numbers dt { color: var(--muted); font-size: 17px; line-height: 1.3; max-width: 16ch; }

/* ------------------------------------------------------------------ download */
.get { padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(40px, 5vw, 72px); text-align: center; }
.get__in { display: grid; justify-items: center; gap: 22px; }
.get__meta { color: var(--text); font-size: 20px; margin-bottom: 8px; }
.get__pending { color: var(--gold); }
.get__how { max-width: 46ch; color: var(--muted); font-size: 17px; }

.get__plan { max-width: 52ch; color: var(--text); font-size: 18px; }
.get__full { color: var(--text); font-size: 20px; }
.get__full a, .get__plan a { color: var(--gold); }
.spots { width: min(420px, 100%); display: grid; gap: 10px; }
.spots__count { font: 900 22px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.spots__count b { color: var(--gold); font-weight: 900; }
.spots__bar { height: 8px; background: rgba(244, 234, 211, .14); }
.spots__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .8s ease-out; }
.hero__spots { color: var(--text); font-size: clamp(16px, .95vw, 20px); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.hero__spots b { color: var(--gold); }

/* ------------------------------------------------------------------ faq */
.faq { padding: clamp(32px, 4vw, 56px) 0 clamp(72px, 9vw, 120px); }
.faq__in { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.faq h2 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 24px; }
.faq details { border-top: 1px solid rgba(244, 234, 211, .14); }
.faq details:last-child { border-bottom: 1px solid rgba(244, 234, 211, .14); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 40px 20px 0; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 900 26px/1 var(--display); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--gold); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 60ch; }

/* ------------------------------------------------------------------ footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 32px var(--gutter) 40px; color: var(--muted); font-size: 15px; border-top: 1px solid rgba(244, 234, 211, .08); }
.foot a { color: var(--muted); }
.foot p a { margin-left: 8px; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 800px) {
  .maps__grid { grid-template-columns: 1fr; gap: 40px; }
  .coop__in { grid-template-columns: 1fr; }
  .critter img { height: 118px; }
  .gallery__row--back .critter img { height: 94px; }
  .gallery__awning { height: 76px; }
  .gallery__sign { font-size: 26px; }
}
@media (max-width: 700px) {
  .hero__in { padding-top: 13vh; }
  .hero__moon { left: 80%; top: 37vh; width: 12vh; height: 12vh; }
  .crowd { height: 46vh; }
  .crowd img { left: var(--xs); }
  .crowd .wide-only { display: none; }
  .crowd .back { height: 26vh; bottom: 14vh; }
  .crowd .mid { height: 24vh; bottom: 6vh; }
  .crowd .front { height: 21vh; bottom: -1vh; }
}
@media (max-width: 520px) {
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .btn--big { width: 100%; font-size: 22px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro .hero__in, .intro .crowd img, .crowd img { animation: none; }
  .gallery__track { animation: none; }
  .gallery__row { overflow-x: auto; }
}
