/* Xel Delivery — courier recruitment, Brașov and Constanța
   Two surfaces, not one. The page is paper: off-white, graphite ink, one
   emerald. Header, hero, application and footer are cut from near-black,
   which is where the emblem lives — it was drawn on black and its glow
   only resolves there.
   Every colour is a token, so a band inverts by re-declaring the same
   names inside .inverse rather than by overriding a hundred rules. */

:root {
  /* paper */
  --bg: #f5f6f3;
  --bg-rgb: 245, 246, 243;
  --surface: #ffffff;
  --surface-2: #eceff0;

  /* Emerald for fills, rules and dots, where 3:1 is the bar. A deeper cut
     for the same colour used as text, where the bar is 4.5:1 — one green
     could not clear both against paper. */
  --accent: #0b8f4d;
  --accent-rgb: 11, 143, 77;
  --accent-text: #076b3a;
  --accent-bright: #0a7f45;
  --accent-dim: rgba(var(--accent-rgb), 0.34);
  --on-accent: #ffffff;

  /* Filled call to action. Dark green on paper reads as a decision. */
  --cta: #076b3a;
  --cta-hover: #0b8f4d;
  --on-cta: #ffffff;

  --text: #131c17;
  --text-rgb: 19, 28, 23;
  --muted: #566159;
  --line: rgba(var(--accent-rgb), 0.24);
  --line-soft: rgba(var(--text-rgb), 0.14);

  --alert: #b4460a;
  --alert-rgb: 180, 70, 10;

  --display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "Public Sans", system-ui, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --radius: 3px;

  color-scheme: light;
}

/* The near-black bands. #060a08 is within a shade of the emblem's own
   backdrop, so the logo composites onto it without a visible edge. */
.inverse {
  --bg: #060a08;
  --bg-rgb: 6, 10, 8;
  --surface: #0d1410;
  --surface-2: #141d18;

  --accent: #16c768;
  --accent-rgb: 22, 199, 104;
  --accent-text: #35d67f;
  --accent-bright: #5ce89a;
  --accent-dim: rgba(var(--accent-rgb), 0.4);
  --on-accent: #04140b;

  --cta: #16c768;
  --cta-hover: #35d67f;
  --on-cta: #04140b;

  --text: #e8efe9;
  --text-rgb: 232, 239, 233;
  --muted: #8fa096;
  --line: rgba(var(--accent-rgb), 0.24);
  --line-soft: rgba(var(--text-rgb), 0.13);

  --alert: #ff9d4d;
  --alert-rgb: 255, 157, 77;

  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.band {
  padding-block: clamp(64px, 9vw, 124px);
  position: relative;
}

/* The header is sticky, so anchor jumps must clear it. */
[id] {
  scroll-margin-top: 84px;
}

.band-edge {
  border-top: 1px solid var(--line-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1.25rem;
}

.h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.97;
  letter-spacing: -0.025em;
  margin: 0 0 1.35rem;
  text-wrap: balance;
}

.h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.h3 {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.lede {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.section-intro {
  max-width: 62ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-intro p {
  color: var(--muted);
  margin: 0;
}

/* ---------- placeholders for facts not yet supplied ---------- */

.todo {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  color: var(--alert);
  border: 1px dashed rgba(var(--alert-rgb), 0.55);
  border-radius: var(--radius);
  padding: 0.05em 0.45em;
  background: rgba(var(--alert-rgb), 0.08);
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 34px;
  height: auto;
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Too long to sit on one line on a phone, and the hero eyebrow directly
   below already names every city. */
@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }
}

.header-nav {
  display: none;
  gap: 1.6rem;
  font-size: 0.88rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease;
}

.header-nav a:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0.25rem;
}

.lang-switch a,
.lang-switch .is-active {
  text-decoration: none;
  color: var(--muted);
  padding: 0.7rem 0.4rem;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch .is-active {
  color: var(--accent);
  font-weight: 500;
}

.lang-sep {
  color: var(--line);
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cta);
  color: var(--on-cta);
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-ghost {
  border-color: var(--accent-dim);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.cta-row .btn {
  flex: 1 1 220px;
}

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

.hero {
  padding-block: clamp(48px, 7vw, 92px) clamp(52px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.partners {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.partners-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Partner marks sit on white chips rather than being recoloured: Bolt Food's
   wordmark is near-black and would vanish on the navy, and altering a partner's
   trademark is not ours to do. */
.partner-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
}

.partner-chip img {
  height: 22px;
  width: auto;
  display: block;
}

/* ---------- coverage discs (signature) ----------

   Bucharest is six sectors around a centre, so the old site drew a rose.
   Brașov and Constanța are two separate cities with nothing in common
   geographically, which is the whole point: one sits in a bowl under the
   Carpathians, the other stops dead at the sea. Each disc carries the
   terrain that shapes its rounds. */

.cities {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  display: block;
  overflow: visible;
}

.city-disc {
  fill: rgba(var(--accent-rgb), 0.1);
  stroke: var(--accent);
  stroke-width: 1.25;
}

.city-halo {
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.ridge {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ridge-far {
  stroke-width: 1.25;
  opacity: 0.5;
}

/* Constanța's delivery area has a hard edge: everything east of the
   coastline is water, so the disc is filled only up to it. */
/* The coastal disc carries no fill of its own; the landmass supplies it, so
   the water reads as what it is — outside the round. */
.city-disc.is-coastal {
  fill: none;
}

.landmass {
  fill: rgba(var(--accent-rgb), 0.12);
}

.coastline {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
}

.swell {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.45;
}

.city-core {
  fill: var(--accent);
}

.city-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  fill: var(--text);
  text-anchor: middle;
}

.city-meta {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  fill: var(--muted);
  text-anchor: middle;
}

.cities-caption {
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* ---------- figures strip ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

@media (min-width: 860px) {
  .figures {
    grid-template-columns: repeat(4, 1fr);
  }
}

.figure {
  padding: 1.5rem 1.35rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.figure:nth-child(2n) {
  border-right: 0;
}

@media (min-width: 860px) {
  .figure {
    border-bottom: 0;
  }

  .figure:nth-child(2n) {
    border-right: 1px solid var(--line-soft);
  }

  .figure:last-child {
    border-right: 0;
  }
}

.figure-value .todo {
  font-size: 0.82rem;
  vertical-align: 0.25em;
}

.figure-value {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  display: block;
  margin-bottom: 0.45rem;
}

.figure-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.card:hover {
  border-color: var(--accent-dim);
  background: var(--surface-2);
}

.card-tag {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

.card p {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

.facts {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.facts li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--text);
}

.facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--accent);
  transform: rotate(45deg);
}

.facts .facts-neutral::before {
  background: var(--muted);
}

/* ---------- process spine ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 2.25rem;
}

.steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--accent-dim) 65%,
    transparent
  );
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  background: var(--bg);
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .steps::before {
    left: 16px;
    right: 16px;
    top: 16px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      var(--accent),
      var(--accent-dim) 70%,
      transparent
    );
  }

  .step {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

/* ---------- shift photos ---------- */

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

.shot-caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

/* ---------- documents split ---------- */

.docs-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 820px) {
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doc-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.06),
    transparent 45%
  );
}

.doc-panel h3 {
  margin-top: 0;
}

.doc-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- zones ---------- */

/* Two cities, two panels — Brașov and Constanța are separate operations. */
.city-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 860px) {
  .city-grid {
    grid-template-columns: 1.55fr 1fr;
  }
}

.city-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.06),
    transparent 45%
  );
}

.city-kicker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.75rem;
}

.city-panel .h3 {
  margin-bottom: 1.15rem;
}

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-chip {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  color: var(--text);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--accent-dim);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--accent-text);
  font-size: 1.1rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 1.35rem 1.3rem;
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- apply form ---------- */

.apply {
  background: var(--bg);
}

.apply-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 960px) {
  .apply-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.apply-aside .facts {
  margin-top: 1.5rem;
}

.form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .field-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color 0.18s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 2px),
    calc(100% - 14px) calc(50% + 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.88rem;
  color: var(--muted);
}

.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check a {
  color: var(--accent-text);
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-note {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}

.form-note[data-state="busy"] {
  color: var(--accent-text);
}

.form-note[data-state="success"] {
  color: var(--accent-text);
}

.form-note[data-state="error"] {
  color: var(--alert);
}

.conditional {
  display: none;
}

.conditional.is-visible {
  display: grid;
}

/* ---------- sticky mobile bar ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(var(--bg-rgb), 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.mobile-bar .btn {
  min-height: 50px;
  font-size: 0.95rem;
  padding: 0 0.75rem;
}

@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }
}

@media (max-width: 899px) {
  body {
    padding-bottom: 78px;
  }
}

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

.site-footer {
  padding-block: clamp(48px, 6vw, 80px);
  font-size: 0.9rem;
  color: var(--muted);
}

/* The footer sits directly under the dark application band; without this
   the two read as one undifferentiated slab. */
.site-footer.inverse {
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* The emblem carries a tagline under the wordmark; below about 160px it
   stops being type and becomes texture. */
.footer-logo {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.85rem;
  font-weight: 400;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-list a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.4rem;
}

.footer-list a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ---------- legal pages ---------- */

.legal {
  padding-block: clamp(48px, 7vw, 88px);
}

.legal-body {
  max-width: 68ch;
}

.legal-body h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
}

.legal-body ul {
  padding-left: 1.15rem;
}

.legal-back {
  margin-top: 2.5rem;
}

.footer-plain {
  margin-top: 0;
  border-top: 0;
}

/* ---------- phones ---------- */

@media (max-width: 600px) {
  /* Mono labels sit around 11px on desktop, which is too small to read
     comfortably at arm's length on a phone. Floor them at 12px. */
  .eyebrow,
  .card-tag,
  .city-kicker,
  .partners-label,
  .figure-label,
  .shot-caption,
  .label,
  .footer-grid h4,
  .cities-caption {
    font-size: 0.75rem;
  }

  /* Comfortable thumb targets. */
  .brand {
    min-height: 44px;
  }

  .footer-list a {
    padding-block: 0.65rem;
  }

  .lang-switch a,
  .lang-switch .is-active {
    padding: 0.8rem 0.5rem;
  }
}

/* ---------- motion ---------- */

/* Only hide reveal targets where scripting can bring them back. With JS off
   (or in a browser without the `scripting` query) the content stays visible
   instead of disappearing forever. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* One orchestrated moment on load: the two areas draw themselves, the
   terrain follows, the labels arrive last. Nothing else on the page
   animates without being asked to. */
.cities-draw .city-disc {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cities-draw .is-late {
  animation-delay: 0.14s;
}

.cities-draw .terrain {
  opacity: 0;
  animation: fadeIn 0.7s ease 0.7s forwards;
}

/* Dashed already, so it fades rather than drawing. */
.cities-draw .city-halo {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.55s forwards;
}

.cities-draw .city-fade {
  opacity: 0;
  animation: fadeIn 0.6s ease 0.95s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cities-draw .city-disc {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }

  .cities-draw .city-halo,
  .cities-draw .terrain,
  .cities-draw .city-fade {
    opacity: 1;
    animation: none;
  }
}
