/*
Theme Name: The Hoodiens
Theme URI: https://hoodiens.space
Author: Radans
Description: The site for The Hoodiens — 888 stranded aliens hiding in a night city on Base. A single page: the story, the five archetypes, the chronology, the interactive night atlas, the book of legends and the mint.
Version: 2.3.1
Requires at least: 6.0
Requires PHP: 8.0
License: All rights reserved
Text Domain: the-hoodiens
*/

:root {
  --bg: #07080f;
  --bg-raised: #0e1120;
  --bg-sunken: #05060b;
  --line: #1e2338;
  --line-bright: #2d3452;
  --ink: #e9ebf4;
  --muted: #868da8;
  --green: #b6e84c;
  --magenta: #ff57c8;
  --cyan: #57e8e8;
  --yellow: #ffe500;

  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 3.6vw, 60px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Pixel art is only ever shown at 1:1 against its source file — any fractional
   scale drops pixel rows unevenly and the art reads as squashed. */
.frame img,
.residents__grid img,
.marquee img { image-rendering: pixelated; }

a { color: inherit; text-decoration: none; }

a, button { -webkit-tap-highlight-color: transparent; }

/* A touch should light a control up at once; the fade back on release keeps
   the element's own transition. */
.btn:active, .tab:active, .legend:active, .epoch__place:active, .shuffle:active,
.dossier__close:active, .foot__facts dd a:active, .foot__social a:active,
.nav__links a:active { transition-duration: 0s; }

.wrap { padding-inline: var(--gutter); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The project's mark. Its outline is thinner than a pixel at these sizes, so it is
   scaled smoothly rather than as pixel art, which would drop the line. */
.mark { flex: none; width: 25px; height: 25px; }
.mark--lg { width: 50px; height: 50px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgb(7 8 15 / 0.82);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__links { display: flex; align-items: center; gap: 22px; font-size: 14px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
  font-weight: 700;
}
@media (hover: hover) {
  .btn--primary:hover { background: #fff04d; border-color: #fff04d; }
}
.btn--primary:active { background: #fff04d; border-color: #fff04d; }

@media (hover: hover) {
  .btn--ghost:hover { border-color: var(--green); color: var(--green); }
}
.btn--ghost:active { border-color: var(--green); color: var(--green); }

.btn[aria-disabled="true"] { cursor: default; }
@media (hover: hover) {
  .btn[aria-disabled="true"]:hover { transform: none; }
}
.btn[aria-disabled="true"]:active { transform: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90vh;
  background:
    radial-gradient(45% 55% at 22% 32%, color-mix(in srgb, var(--magenta) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 78% 22%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 70%),
    radial-gradient(60% 60% at 50% 80%, color-mix(in srgb, var(--green) 7%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding: 0 var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 534px;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}


.eyeline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--magenta) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--green); }

.lede {
  margin: 0 0 32px;
  max-width: 48ch;
  color: #b9bfd4;
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.stats { display: flex; gap: 46px; margin: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stats dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd { margin: 4px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

/* featured art card — 512px source shown at exactly 512px (plus 10px padding and 1px border each side) */

/* The eyeline (19px line + 22px margin + inline-flex spacing) sits above the
   headline; the art drops by the same 46px so its frame starts level with it. */
.hero__card { margin: 46px 0 0; width: 534px; max-width: 100%; }

.frame {
  position: relative;
  border: 1px solid var(--line-bright);
  background: var(--bg-sunken);
  padding: 10px;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px color-mix(in srgb, var(--magenta) 12%, transparent);
}
.frame img { width: 512px; height: 512px; max-width: 100%; background: var(--bg-sunken); }

.frame__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 4px 9px;
  background: var(--yellow);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero__card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.shuffle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (hover: hover) {
  .shuffle:hover { color: var(--yellow); }
}
.shuffle:active { color: var(--yellow); }

/* scrolling strip — 128px source shown at exactly 128px */

.marquee {
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 2px; width: max-content; animation: slide 72s linear infinite; }
.marquee img { width: 128px; height: 128px; opacity: 0.4; transition: opacity 0.2s; }
@media (hover: hover) {
  .marquee img:hover { opacity: 1; }
}
.marquee img:active { opacity: 1; }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(72px, 9vw, 130px) 0; scroll-margin-top: 88px; }

.section__num {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.section__head h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section__lede { margin: 0; max-width: 68ch; color: #b9bfd4; }

.hazard {
  height: 8px;
  margin: 46px 0 46px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #0a0a0a 10px 20px);
  opacity: 0.85;
}

/* ---------- the night atlas ----------
   The map is painted artwork; everything here is the interactive layer on top of
   it. The image is shown at 1:1 or at an exact half — any other scale would break
   up its pixel grid — so the panel scrolls sideways when the screen is narrower. */

.map__scroll { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); }

/* The map is painted rather than drawn on a strict pixel grid, so it can grow
   to fill a wide content area; it never shrinks below 1:1. */
.map__svg { display: block; width: max(1200px, 100%); height: auto; background: #101a2c; }
.mp__art { image-rendering: pixelated; }

@media (max-width: 700px) {
  .map__svg { width: 600px; }
}

.mp__labels { pointer-events: none; }
.mp__name {
  fill: #eef2ff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(6, 10, 20, 0.92);
  stroke-width: 4.5px;
  stroke-linejoin: round;
}
.mp__sub {
  fill: #9fb0d0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(6, 10, 20, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* districts */


/* Districts have no drawn border — the terrain itself blends across them. The hit
   area only becomes visible while the reader is pointing at it. */
.ad { cursor: pointer; }
.ad__hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  transition: fill 0.2s, stroke 0.2s;
}
@media (hover: hover) {
  .ad:hover .ad__hit,
.ad:focus-visible .ad__hit {
  fill: rgba(182, 232, 76, 0.1);
  stroke: rgba(182, 232, 76, 0.5);
}
}
.ad:active .ad__hit,
.ad:focus-visible .ad__hit {
  fill: rgba(182, 232, 76, 0.1);
  stroke: rgba(182, 232, 76, 0.5);
}
.ad:focus-visible { outline: none; }

.ad__label { pointer-events: none; }
.ad__name {
  fill: #eef1fa;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #05070e;
  stroke-width: 6px;
  stroke-linejoin: round;
}
.ad__count {
  fill: #96a2c2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #05070e;
  stroke-width: 5px;
  stroke-linejoin: round;
}

/* recorded events */

.at__event { cursor: pointer; }
.at__event-pin { fill: var(--yellow); stroke: #10161f; stroke-width: 2; }
.at__event-halo { fill: none; stroke: var(--yellow); stroke-width: 1.5; opacity: 0.4; }
/* Labels stay hidden so the map itself is readable; the pin invites the hover. */
.at__event-label {
  fill: var(--yellow);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: #10161f;
  stroke-width: 5px;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.16s;
}
@media (hover: hover) {
  .at__event:hover .at__event-label,
.at__event:focus-visible .at__event-label { opacity: 1; }
}
.at__event:active .at__event-label,
.at__event:focus-visible .at__event-label { opacity: 1; }
.at__event--signal .at__event-pin { fill: var(--cyan); }
.at__event--signal .at__event-halo { stroke: var(--cyan); }
.at__event--signal .at__event-label { fill: var(--cyan); }
.at__event--legend .at__event-pin { fill: var(--magenta); }
.at__event--legend .at__event-halo { stroke: var(--magenta); }
.at__event--legend .at__event-label { fill: #ff8cd8; }
@media (hover: hover) {
  .at__event:hover .at__event-halo,
.at__event:focus-visible .at__event-halo { opacity: 0.9; r: 24; }
}
.at__event:active .at__event-halo,
.at__event:focus-visible .at__event-halo { opacity: 0.9; r: 24; }
.at__event:focus-visible { outline: none; }

/* rumoured districts */

.at__myth { cursor: pointer; }
.at__myth-ring {
  fill: rgba(255, 87, 200, 0.05);
  stroke: var(--magenta);
  stroke-width: 1.6;
  stroke-dasharray: 9 10;
  opacity: 0.55;
  transition: opacity 0.18s;
}
.at__myth-core { fill: var(--magenta); opacity: 0.7; }
.mp__sub--myth { fill: #c58fb4; }
@media (hover: hover) {
  .at__myth:hover .at__myth-ring,
.at__myth:focus-visible .at__myth-ring { opacity: 1; }
}
.at__myth:active .at__myth-ring,
.at__myth:focus-visible .at__myth-ring { opacity: 1; }
.at__myth:focus-visible { outline: none; }

.at__unsurveyed {
  fill: #47607c;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-anchor: middle;
}

/* legend */

.map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 18px;
}
.map__hint { margin-right: auto; color: var(--green); }
.key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.key__swatch { width: 15px; height: 15px; border: 1px solid var(--line-bright); flex: none; }
.key__swatch--count { background: #1a2740; border-color: #6b78a0; }
.key__swatch--event { background: var(--yellow); border-color: var(--yellow); border-radius: 50%; }
.key__swatch--outer { background: rgba(255, 87, 200, 0.1); border-color: var(--magenta); border-style: dashed; border-radius: 50%; }

/* ---------- unmapped ---------- */

.unmapped { margin-top: 78px; padding-top: 44px; border-top: 1px dashed var(--line-bright); }
.unmapped h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 21px; letter-spacing: -0.02em; }
.unmapped__lede { margin: 0 0 26px; max-width: 68ch; color: var(--muted); font-size: 14px; }

.unmapped__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 10px;
}
.unmapped__list li {
  padding: 15px 16px;
  border: 1px dashed var(--line-bright);
  background: color-mix(in srgb, var(--bg-raised) 50%, transparent);
  color: var(--muted);
  font-size: 13px;
}
.unmapped__list strong { display: block; margin-bottom: 5px; color: #aab0c6; font-weight: 500; font-size: 15px; }

/* ---------- dossier ---------- */

.dossier { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.dossier[hidden] { display: none; }
.dossier__backdrop { position: absolute; inset: 0; background: rgba(3, 4, 9, 0.82); backdrop-filter: blur(6px); }

.dossier__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--line-bright);
  background: var(--bg-raised);
  animation: rise 0.22s ease-out;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.dossier__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-bright);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
@media (hover: hover) {
  .dossier__close:hover { color: var(--ink); border-color: var(--ink); }
}
.dossier__close:active { color: var(--ink); border-color: var(--ink); }

.dossier__level { margin: 0 0 8px; color: var(--yellow); }
.dossier__panel h3 { margin: 0 0 14px; font-size: 29px; letter-spacing: -0.03em; }
.dossier__lore { margin: 0 0 26px; color: #b9bfd4; }
.dossier__note {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--magenta);
  background: var(--bg-sunken);
  color: var(--muted);
  font-size: 14px;
}
.dossier__level--myth { color: var(--magenta); }
.dossier__level--signal { color: var(--cyan); }
.dossier__level--legend { color: #ff8cd8; }

.meter { padding: 16px; border: 1px solid var(--line); background: var(--bg-sunken); margin-bottom: 24px; }
.meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.meter__head strong { font-size: 22px; letter-spacing: -0.02em; }
.meter__bar { display: block; height: 4px; background: var(--line); margin: 12px 0 8px; }
.meter__bar span { display: block; height: 100%; background: var(--green); }
.meter__note { margin: 0; }

.residents > .mono { display: block; margin-bottom: 12px; }
.residents__grid { display: grid; grid-template-columns: repeat(4, 128px); gap: 8px; justify-content: start; }
.residents__grid figure { margin: 0; }
.residents__grid img { width: 128px; height: 128px; border: 1px solid var(--line); background: var(--bg-sunken); }
.residents__grid figcaption { margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- the allowlist page ---------- */

/* An element marked hidden stays hidden, whatever display its class gives it.
   Without this the form, which is a grid, ignored the attribute and stayed on
   screen under its own success message. */
.gate [hidden] { display: none !important; }

/* Shown to an administrator only: a strip that cannot be mistaken for the page. */
.al-preview {
  position: relative;
  z-index: 2;
  margin-top: 79px;                 /* clear of the fixed header */
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  background: var(--yellow);
  color: #0a0a0a;
  font-size: 13px;
}
.al-preview p { margin: 0; }
.al-preview__links { display: flex; gap: 16px; margin-left: auto !important; }
.al-preview__links a { border-bottom: 1px solid currentColor; }
.al-preview__links a[aria-current="page"] { font-weight: 700; border-bottom-width: 2px; }
/* The strip has already cleared the header, so the page below needs less room. */
.al-preview + .gate { padding-top: 71px; }
@media (max-width: 560px) { .al-preview + .gate { padding-top: 48px; } }

/* Its own page, but the same city: the glow, the frame, the mono labels. */
.gate {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  overflow: hidden;
}
.gate__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80vh;
  background:
    radial-gradient(45% 55% at 28% 28%, color-mix(in srgb, var(--magenta) 15%, transparent), transparent 70%),
    radial-gradient(40% 50% at 76% 26%, color-mix(in srgb, var(--cyan) 13%, transparent), transparent 70%),
    radial-gradient(60% 60% at 50% 85%, color-mix(in srgb, var(--green) 7%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
/* The signal runs across the top on its own; under it, copy on the left and the
   form on the right start on the same line, so the whole thing is one screen. */
.gate__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 0;
  align-items: start;
}
.gate__signal { grid-column: 1 / -1; justify-self: start; }
/* The headline's first line sits a little below the top of its box; the panel
   is nudged by the same amount so the two read as level. */
.gate__panel { padding-top: 6px; }
.gate__copy { max-width: 46ch; }
/* The spec line sits under the headline; the pulsing signal is above it. */
.gate__spec {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.gate__fine { margin: 24px 0 0; max-width: 48ch; color: #6f7590; font-size: 13px; }
.gate__panel { min-width: 0; }

@media (max-width: 1000px) {
  .gate__inner { grid-template-columns: 1fr; row-gap: 0; }
  .gate__copy, .gate__fine { max-width: 54ch; }
  .gate__panel { padding-top: 0; margin-top: 40px; }
}
.gate h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.gate h1 em { font-style: normal; color: var(--green); }
.gate__lede { margin: 0 0 40px; max-width: 54ch; color: #b9bfd4; font-size: clamp(15px, 1.4vw, 18px); }

.al { display: grid; gap: 26px; }
.al__field { display: grid; gap: 8px; }
.al__field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.al__field input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  background: var(--bg-sunken);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  transition: border-color 0.18s, background 0.18s;
}
.al__field input::placeholder { color: #4b5068; }
.al__field input:focus {
  outline: none;
  border-color: var(--green);
  background: #080a12;
}
.al__field input[aria-invalid="true"] { border-color: var(--magenta); }

.al__hint { margin: 0; color: #6f7590; font-size: 12px; }
.al__error { margin: 0; color: var(--magenta); font-size: 12px; }

/* The honeypot: present in the markup, never on the screen. */
.al__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.al__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.al__status { margin: 0; color: var(--green); text-transform: none; letter-spacing: 0.04em; }
.al__legal { margin: 0; max-width: 56ch; color: #6f7590; font-size: 12px; }

.al__done {
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line-bright));
  background: color-mix(in srgb, var(--green) 6%, var(--bg-raised));
  animation: panel 0.4s ease-out;
}
.al__done-mark { margin: 0 0 12px; color: var(--green); }
.al__done h2 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.025em; }
.al__done-note { margin: 0 0 24px; color: #b9bfd4; font-size: 15px; }

.al__result {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line-bright);
  background: var(--bg-raised);
  animation: panel 0.4s ease-out;
}
.al__result h2 { margin: 0 0 12px; font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -0.025em; }
.al__result p { margin: 0; color: #b9bfd4; font-size: 15px; }
.al__result .mono { display: block; margin-bottom: 10px; }
/* Green for a guaranteed place, yellow for first-come, magenta for neither. */
.al__result--gtd { border-color: color-mix(in srgb, var(--green) 50%, var(--line-bright)); }
.al__result--gtd .mono { color: var(--green); }
.al__result--fcfs { border-color: color-mix(in srgb, var(--yellow) 50%, var(--line-bright)); }
.al__result--fcfs .mono { color: var(--yellow); }
.al__result--no { border-color: color-mix(in srgb, var(--magenta) 45%, var(--line-bright)); }
.al__result--no .mono { color: var(--magenta); }
/* An address is not a label: upper-casing it would turn 0x into 0X. */
.al__result .al__result-wallet { margin: 16px 0 0; color: var(--muted); font-size: 11px; text-transform: none; }

@media (max-width: 560px) {
  .gate { padding-top: 120px; }
  .al__done, .al__result { padding: 24px 20px; }
  .al__actions .btn { flex: 1 1 auto; }
}

/* ---------- analytics consent ---------- */

/* Asked once, at the bottom of the screen, where it never covers the art. */
.consent {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 18px;
  border: 1px solid var(--line-bright);
  background: rgb(9 11 20 / 0.96);
  background: color-mix(in srgb, var(--bg-raised) 96%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.5);
  animation: consent-in 0.3s ease-out;
}
@keyframes consent-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.consent__text { flex: 1 1 280px; margin: 0; color: #b9bfd4; font-size: 13px; }
.consent__actions { display: flex; gap: 10px; margin-left: auto; }
.consent .btn { padding: 10px 16px; font-size: 13px; }

@media (max-width: 560px) {
  .consent { bottom: 0; width: 100%; border-inline: 0; border-bottom: 0; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}

/* ---------- footer ---------- */

.foot { padding: 34px 0; border-top: 1px solid var(--line); }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- responsive ---------- */

/* Once the columns stack, the art fills the content width, up to the 512px
   source. The art is drawn on a coarse grid (one art pixel is about five source
   pixels), so even on a phone each art pixel spans several screen pixels and
   the scaling stays even. */
@media (max-width: 1100px) {
  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: -1; width: 100%; max-width: 534px; margin: 0 auto; }
  .frame img { width: 100%; height: auto; aspect-ratio: 1; }
}

@media (max-width: 900px) {
  .marquee img { width: 64px; height: 64px; }
}

@media (max-width: 560px) {
  .stats { gap: 28px; }
  .stats dd { font-size: 22px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .dossier__panel { padding: 24px 20px; }
  .residents__grid { grid-template-columns: repeat(2, 128px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- alternating section grounds ---------- */

.section--raised { background: #090b14; border-block: 1px solid var(--line); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 01 the rupture ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  margin-top: 44px;
}
.story__body p { margin: 0 0 20px; font-size: clamp(16px, 1.35vw, 19px); color: #c2c8dc; max-width: 62ch; }
.story__body p:last-child { margin-bottom: 0; }

.pull {
  margin: 0 0 30px;
  padding: 22px 24px;
  border-left: 2px solid var(--green);
  background: var(--bg-sunken);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- 02 the five ----------
   A master and detail split: the roster on the left, the selected archetype
   filling the right. Nothing is hidden off-screen and nothing has to be expanded. */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.split__list { display: grid; gap: 8px; }

.tab {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
@media (hover: hover) {
  .tab:hover { border-color: var(--line-bright); transform: translateX(3px); }
}
.tab:active { border-color: var(--line-bright); transform: translateX(3px); }
.tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.tab[aria-selected="true"] {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 7%, var(--bg-raised));
  transform: none;
}
.tab--echoes[aria-selected="true"] {
  border-color: var(--magenta);
  background: color-mix(in srgb, var(--magenta) 8%, var(--bg-raised));
}

.tab__id { color: var(--muted); letter-spacing: 0.14em; }
.tab[aria-selected="true"] .tab__id { color: var(--green); }
.tab--echoes[aria-selected="true"] .tab__id { color: var(--magenta); }

.tab__name { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.tab__motto {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab[aria-selected="true"] .tab__motto { color: var(--green); }
.tab--echoes[aria-selected="true"] .tab__motto { color: var(--magenta); }

.tab__count { text-align: right; }
.tab__count strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tab__count .mono { font-size: 10px; }

/* the detail half */

.split__panel {
  position: sticky;
  top: 90px;
  border: 1px solid var(--green);
  background: color-mix(in srgb, var(--green) 4%, var(--bg-raised));
  padding: 32px;
}
.split__panel--echoes {
  border-color: var(--magenta);
  background: color-mix(in srgb, var(--magenta) 5%, var(--bg-raised));
}

.detail { animation: panel 0.26s ease-out; }
@keyframes panel {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.detail__head h3 { margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 31px); letter-spacing: -0.03em; }
.detail__motto { margin: 0; color: var(--green); font-size: 15px; }
.split__panel--echoes .detail__motto { color: var(--magenta); }

.detail__count { margin: 0; text-align: right; flex: none; }
.detail__count strong { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.detail__count .mono { font-size: 10px; }

.detail__body { margin: 0 0 26px; color: #c2c8dc; font-size: 16px; max-width: 58ch; }
.detail__label { display: block; margin: 0 0 10px; }

.chips { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 11px; border: 1px solid var(--line-bright); background: var(--bg-sunken); }
.chip__value { display: block; font-size: 13px; font-weight: 500; }
.chip__meta { display: block; font-size: 10px; letter-spacing: 0.08em; }

.detail__members { display: flex; flex-wrap: wrap; gap: 6px; }
.detail__members figure { margin: 0; }
.detail__members img {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  background: var(--bg-sunken);
}
.detail__members figcaption { margin-top: 5px; font-size: 10px; }

/* Below this width the two halves stack: roster first, detail underneath. */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__panel { position: static; padding: 24px; }
  .tab { padding: 16px 18px; grid-template-columns: 28px minmax(0, 1fr) auto; }

  /* Four residents across the full width of the card; a fifth would wrap. */
  .detail__members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .detail__members figure:nth-child(n + 5) { display: none; }
  .detail__members img { width: 100%; height: auto; aspect-ratio: 1; }
}

@media (max-width: 560px) {
  .detail__head { flex-direction: column; gap: 12px; }
  .detail__count { text-align: left; }
}


/* ---------- 03 chronology ----------
   The trace runs live and cyan until the Last Transmission, breaks there, and
   continues as a dead dashed line — the story told by the line itself. */

.epochs { list-style: none; margin: 40px 0 0; padding: 0; }

.epochs__key { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.epochs__key li { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.epochs__line { width: 28px; height: 0; border-top: 2px solid var(--cyan); }
.epochs__line--cut { border-top: 2px dashed var(--line-bright); }

.epoch { position: relative; padding: 0 0 46px 58px; max-width: 76ch; }
.epoch:last-child { padding-bottom: 0; }

.epoch::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 20px;
  bottom: -4px;
  width: 2px;
  background: var(--cyan);
  opacity: 0.5;
}
.epoch:last-child::before { display: none; }

.epoch__node {
  position: absolute;
  left: 7px;
  top: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}

/* The line has two states and only two: solid while the signal from home still
   arrives, dashed once it is cut. The rupture is where one turns into the other,
   so the line leaving it is already dashed. */
.epoch--rupture::before,
.epoch--after::before { width: 0; background: none; opacity: 1; border-left: 2px dashed var(--line-bright); }
.epoch--rupture .epoch__node {
  border-color: var(--magenta);
  background: var(--magenta);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--magenta) 20%, transparent);
}
.epoch--rupture .epoch__era { color: var(--magenta); }
.epoch--rupture h3 { font-size: clamp(23px, 2.5vw, 33px); }

.epoch--after .epoch__node { border-color: var(--line-bright); }
.epoch--after .epoch__era { color: var(--muted); }

.epoch:last-child .epoch__node { border-color: var(--green); background: var(--green); }
.epoch:last-child .epoch__era { color: var(--green); }



.epoch__era { margin: 0 0 6px; color: var(--cyan); }
.epoch h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.025em; }

.epoch__flag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-size: 10px;
}

.epoch__body { margin: 0 0 18px; color: #b3bace; }

/* Each epoch that happened somewhere links to that district on the atlas. */
.epoch__place {
  display: inline-grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line-bright);
  background: var(--bg-raised);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
@media (hover: hover) {
  .epoch__place:hover { border-color: var(--cyan); background: var(--bg-sunken); transform: translateX(3px); }
}
.epoch__place:active { border-color: var(--cyan); background: var(--bg-sunken); transform: translateX(3px); }
.epoch__place:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.epoch__place-label { font-size: 10px; letter-spacing: 0.14em; }
.epoch__place-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.epoch__place-count { font-size: 10px; letter-spacing: 0.08em; }

@media (hover: hover) {
  .epoch--rupture .epoch__place:hover { border-color: var(--magenta); }
}
.epoch--rupture .epoch__place:active { border-color: var(--magenta); }
.epoch--rupture .epoch__place-name { color: var(--magenta); }

.epoch__nowhere {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line-bright);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #5f647c;
}

.unknown {
  margin-top: 56px;
  padding: 26px 28px;
  border: 1px dashed var(--line-bright);
  background: var(--bg-sunken);
  max-width: 74ch;
}
.unknown h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 19px; letter-spacing: -0.02em; }
.unknown p { margin: 0; color: var(--muted); }

/* ---------- 05 legends ----------
   Rumours are shown the way the atlas shows unconfirmed districts: dashed and
   magenta. The title is on the card, the story is behind a click. */

.legends {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: start;
}

.legend {
  position: relative;
  display: block;
  width: 100%;
  padding: 20px 22px;
  border: 1px dashed var(--line-bright);
  border-radius: 0;
  background: color-mix(in srgb, var(--bg-raised) 60%, transparent);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
@media (hover: hover) {
  .legend:hover {
    border-color: color-mix(in srgb, var(--magenta) 55%, var(--line-bright));
    background: var(--bg-raised);
    transform: translateY(-2px);
  }
  .legend:hover .legend__cue { color: var(--magenta); }
}
.legend:active {
  border-color: color-mix(in srgb, var(--magenta) 55%, var(--line-bright));
  background: var(--bg-raised);
}
.legend:active .legend__cue { color: var(--magenta); }
.legend:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

.legend__n { display: block; margin-bottom: 8px; color: var(--magenta); }
.legend__title { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.legend__cue {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #5f647c;
  transition: color 0.2s;
}

/* ---------- 06 find your Hoodien ---------- */

.finder {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 534px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.finder__art { margin: 0; }
.finder__read > .mono { display: block; margin-bottom: 10px; }
.finder__read h3 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; }
.finder__motto { margin: 0 0 18px; color: var(--green); }
.finder__why { margin: 0 0 26px; color: #b9bfd4; font-size: 17px; max-width: 46ch; }

.traits { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.traits th, .traits td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.traits th { width: 38%; font-size: 11px; letter-spacing: 0.1em; }
.traits td { font-size: 15px; }
.traits__rarity { width: 74px; text-align: right; color: var(--muted); }
.traits__rare td, .traits__rare th { color: var(--green); }
.traits__rare .traits__rarity { color: var(--green); }

.finder__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.foot__brand .mark { margin-bottom: 14px; }
.foot__brand p { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.foot__line { margin-top: 6px !important; font-weight: 400 !important; color: var(--muted); font-size: 14px; }

.foot__facts { margin: 0; display: grid; gap: 16px; align-content: start; }
.foot__facts div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.foot__facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.foot__facts dd { margin: 0; font-size: 12px; color: var(--ink); text-align: right; word-break: break-all; }

.foot__honest { margin: 28px 0 0; max-width: 78ch; color: var(--muted); font-size: 14px; }

/* ---------- responsive for the new sections ---------- */

@media (max-width: 1100px) {
  .story { grid-template-columns: 1fr; }
  .finder { grid-template-columns: 1fr; }
  .finder__art { width: 100%; max-width: 534px; margin-inline: auto; }
  .foot__top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .type { padding: 20px; }
  .type__members img { width: 64px; height: 64px; }
}

/* The nav link row does not fit once the viewport narrows: the links fold into
   a dropdown behind the menu button, and OpenSea stays in the bar. */
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__toggle { display: none; }

/* The allowlist button: beside OpenSea in the bar, inside the dropdown on a
   phone, where a third button would not fit. */
.nav__al--bar { border-color: color-mix(in srgb, var(--green) 45%, var(--line-bright)); color: var(--green); }
@media (hover: hover) {
  .nav__al--bar:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
}
.nav__al--bar:active { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.nav__al--menu { display: none; color: var(--green); }
.nav__links a:not(.btn) { transition: color 0.18s; }
@media (hover: hover) {
  .nav__links a:not(.btn):hover { color: var(--green); }
}
.nav__links a:not(.btn):active { color: var(--green); }

@media (max-width: 1000px) {
  .nav__brand { white-space: nowrap; }
  .nav__actions { gap: 10px; }

  /* A pixel-drawn menu icon: three bars with the middle one broken, like a
     signal that cut out. Open, it becomes a pixel X. No frame — the icon is
     the button; the 46px box only keeps the tap target large. */
  .nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-right: -11px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--green);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
  .nav__toggle[aria-expanded="true"] { color: var(--magenta); }

  .nav__icon { display: block; width: 24px; height: 20px; fill: currentColor; shape-rendering: crispEdges; }
  .nav__shard { fill: var(--magenta); }
  .nav__icon--close,
  .nav__toggle[aria-expanded="true"] .nav__icon--menu { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__icon--close { display: block; }

  @media (hover: hover) {
    .nav__toggle:hover .nav__shard { animation: shard 0.6s steps(1) infinite; }
  }
  @keyframes shard {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(1px, -1px); }
    50%  { transform: translate(-1px, 0); }
    75%  { transform: translate(0, 1px); }
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(0 0 0 / 0.45);
    font-size: 17px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
  }
  .nav--open .nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.18s, transform 0.18s;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__al--bar { display: none; }
  .nav__al--menu { display: block; }
  .nav__links a:last-child { border-bottom: 0; }
}

@media (max-width: 340px) {
  .nav__brand span { display: none; }
}

/* A CID is not a label — never upper-case it. */
.foot__facts dd { text-transform: none; }



/* Five portraits at 128px need about 664px of panel; below that they drop to an
   exact half size, which keeps the pixel grid intact. */
@media (max-width: 1250px) and (min-width: 901px) {
  .detail__members img { width: 64px; height: 64px; }
}
@media (max-width: 900px) {
  .epoch { padding-left: 46px; }
}

/* ---------- 07 what comes next ---------- */

.future {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  margin-top: 44px;
  align-items: start;
}
.future__body p { margin: 0 0 20px; color: #c2c8dc; font-size: clamp(16px, 1.3vw, 18px); max-width: 56ch; }
.future__body .facts { margin-top: 28px; }

.pledge {
  padding: 32px;
  border: 1px solid var(--yellow);
  background: color-mix(in srgb, var(--yellow) 5%, var(--bg-raised));
}
.pledge__label { display: block; margin: 0 0 10px; color: var(--yellow); }
.pledge h3 { margin: 0 0 14px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; }
.pledge__body { margin: 0 0 22px; color: #d3d8e8; }

.pledge__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pledge__points li {
  position: relative;
  padding-left: 26px;
  color: #b9bfd4;
  font-size: 15px;
}
.pledge__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  transform: rotate(45deg);
}

.future__caveat {
  margin: 34px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--line-bright);
  max-width: 76ch;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .future { grid-template-columns: 1fr; }
  .pledge { padding: 24px; }
}

/* The legend names every surface, so the map does not rely on the reader guessing. */
.map__legend { display: block; margin-top: 16px; }
.map__hint { margin: 0 0 12px; color: var(--green); }
.keys {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.keys:last-child { margin-bottom: 0; }


/* Hand-drawn district plans: a real avenue is wider than a side street, and the
   block patterns below are the ones a downtown is actually built from. */


/* Block patterns used by the hand-drawn plans. */

/* ---------- mint countdown ---------- */

.countdown { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.countdown__cell {
  display: grid;
  gap: 2px;
  min-width: 68px;
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  background: var(--bg-raised);
  text-align: center;
}
.countdown__cell strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__cell .mono { font-size: 10px; letter-spacing: 0.12em; }
.countdown__live {
  padding: 12px 18px;
  border: 1px solid var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.stats__free { color: var(--yellow); }

.foot__facts dd a { color: var(--green); border-bottom: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
@media (hover: hover) {
  .foot__facts dd a:hover { color: var(--yellow); border-color: var(--yellow); }
}
.foot__facts dd a:active { color: var(--yellow); border-color: var(--yellow); }

@media (max-width: 560px) {
  .countdown__cell { min-width: 58px; padding: 8px 10px; }
  .countdown__cell strong { font-size: 21px; }
}

/* A full-bleed breath between the world and the one thing we ask for: the
   whole street, scrolling with the page. */
.band {
  margin: 0;
  background: #09060b;
  line-height: 0;
}
.band img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* No rule between the last section and the band — the city starts where the
   section ends. */
.section:has(+ .band) { border-bottom: 0; }

.foot__social { margin-top: 14px !important; font-weight: 400 !important; }


/* The drop is listed on NFT Calendar; the mark sits on the line with the words. */
.foot__listing { margin: 12px 0 0 !important; font-weight: 400 !important; }
.foot__listing a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.18s;
}
.foot__listing img { height: 56px; width: auto; transition: opacity 0.18s; opacity: 0.9; }
@media (hover: hover) {
  .foot__listing a:hover { color: var(--ink); }
  .foot__listing a:hover img { opacity: 1; }
}
.foot__listing a:active { color: var(--ink); }
.foot__listing a:active img { opacity: 1; }
.foot__listing a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.foot__social a {
  color: var(--green);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  font-size: 14px;
}
@media (hover: hover) {
  .foot__social a:hover { color: var(--yellow); border-color: var(--yellow); }
}
.foot__social a:active { color: var(--yellow); border-color: var(--yellow); }
