/* ─────────────────────────────────────────────────────────────
   SATS ON THE ROAD landing styles
   Palette: orange #F7931A, deep ink #0D0D0D, paper #F6EFE3, dust #1B1815
   Typography: Bricolage Grotesque (display/body), Instrument Serif (italic accents),
               JetBrains Mono (data)
   ───────────────────────────────────────────────────────────── */

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

:root {
  --orange: #F7931A;
  --orange-soft: #FFD9A8;
  --orange-deep: #C46B07;
  --ink: #0D0D0D;
  --ink-2: #1B1815;
  --ink-3: #2A241D;
  --paper: #F6EFE3;
  --paper-2: #ECE2CE;
  --paper-line: #d8cdb3;
  --rule: rgba(13,13,13,.12);
  --rule-soft: rgba(13,13,13,.06);
  --measure: 1280px;
  --r: 18px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  z-index: 100;
}

a { color: inherit; text-decoration: none; }
em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(246,239,227,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 38px; height: 38px; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-line { font-weight: 700; letter-spacing: -0.01em; }
.nav__brand-sub { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--orange-deep); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: transform .2s, background .2s;
}
.nav__cta:hover { background: var(--orange); color: var(--ink); transform: translateY(-1px); }

/* Hamburger toggle: only shown on mobile */
.nav__toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 12px;
}
.nav__toggle-box { position: relative; display: block; width: 20px; height: 14px; }
.nav__toggle-box span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav__toggle-box span:nth-child(1) { top: 0; }
.nav__toggle-box span:nth-child(2) { top: 6px; }
.nav__toggle-box span:nth-child(3) { top: 12px; }
.nav[data-nav="open"] .nav__toggle-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav[data-nav="open"] .nav__toggle-box span:nth-child(2) { opacity: 0; }
.nav[data-nav="open"] .nav__toggle-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 880px){
  /* Brand + "Fuel the truck" + hamburger all share the top line (space-between
     spreads them; no auto-margin, which caused the toggle to wrap). */
  .nav { flex-wrap: wrap; row-gap: 6px; gap: 8px; padding: 12px 14px; }
  .nav__brand { gap: 8px; }
  .nav__brand img { width: 32px; height: 32px; }
  .nav__brand-line { font-size: 14px; }
  .nav__brand-sub { font-size: 10px; }
  .nav__cta { order: 2; padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }
  .nav__toggle { display: inline-flex; order: 3; width: 40px; height: 40px; }
  .nav__links {
    display: none;
    order: 4; flex-basis: 100%;
    flex-direction: column; gap: 0;
    margin-top: 4px;
  }
  .nav[data-nav="open"] .nav__links { display: flex; }
  .nav__links a {
    padding: 13px 4px; font-size: 16px;
    border-top: 1px solid var(--rule-soft);
  }
}
@media (max-width: 360px){
  /* Smallest phones: trim so the three still fit one line */
  .nav { gap: 6px; padding: 12px 12px; }
  .nav__brand-sub { display: none; }
  .nav__brand img { width: 30px; height: 30px; }
  .nav__brand-line { font-size: 13px; }
  .nav__cta { padding: 6px 10px; font-size: 12px; }
  .nav__toggle { width: 38px; height: 38px; }
}

/* ───────── Hero ───────── */
.hero {
  padding: 56px 32px 48px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px){ .hero__grid { grid-template-columns: 1fr; gap: 40px; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: .02em;
  color: var(--ink-3);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(247,147,26,.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(247,147,26,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(247,147,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(247,147,26,0); }
}

.hero__title {
  margin: 22px 0 18px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero__title em { color: var(--orange-deep); }
.hero__title-stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero__lede {
  font-size: 19px; max-width: 56ch;
  color: var(--ink-3);
  margin: 0 0 28px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: var(--orange); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { color: var(--paper); border-color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

.hero__stats {
  max-width: var(--measure);
  margin: 40px auto 0;
  padding: 28px 32px 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 620px){ .hero__stats { grid-template-columns: 1fr; gap: 18px; } }
.hero__stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3);
}
.hero__stats dd {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700; letter-spacing: -0.02em;
}
.hero__stats .of { font-size: 18px; color: var(--ink-3); margin-left: 4px; font-weight: 500; }

/* Hero visual */
.hero__visual { position: relative; min-width: 0; margin-top: 68px; }
@media (max-width: 980px){ .hero__visual { margin-top: 0; } }
.hero__photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45),
              0 0 0 1px var(--rule);
}
.hero__photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 60% center;
  transform: scale(1.02);
}
.hero__photo-badge {
  position: absolute; left: 16px; top: 16px;
  width: 76px; height: 76px;
  background: var(--paper); border-radius: 14px;
  display: grid; place-items: center;
  padding: 8px;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.4);
  transform: rotate(-4deg);
}
.hero__photo-badge img { width: 100%; height: 100%; object-fit: contain; }
.hero__photo-tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(13,13,13,.6);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.hero__ticker {
  margin-top: 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  height: 44px;
  display: flex; align-items: center;
  position: relative;
}
.hero__ticker::before, .hero__ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
  pointer-events: none;
}
.hero__ticker::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.hero__ticker::after  { right: 0; background: linear-gradient(-90deg, var(--paper-2), transparent); }

.hero__ticker-track {
  display: flex; gap: 18px;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; color: var(--ink-3);
  padding-left: 24px;
  animation: marquee 38s linear infinite;
}
.hero__ticker-track > span:nth-child(odd) { color: var(--ink); font-weight: 600; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───────── Section heads ───────── */
.section-head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  margin-bottom: 40px;
}
.section-head__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--orange-deep);
  margin-bottom: 16px;
}
.section-head__num--light { color: var(--orange-soft); }
.section-head__title {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
}
.section-head__lede { color: var(--ink-3); max-width: 60ch; font-size: 18px; }
.section-head--inverted { color: var(--paper); }
.section-head--inverted .section-head__lede { color: rgba(246,239,227,.7); }

/* ───────── Mission ───────── */
.mission {
  padding: 96px 32px;
  border-top: 1px solid var(--rule);
}
.mission__grid {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 880px){ .mission__grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  display: grid; place-items: center;
  color: var(--orange-deep);
  margin-bottom: 12px;
}
.card h3 {
  margin: 0;
  font-size: 24px; line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.card p { margin: 0; color: var(--ink-3); font-size: 16px; }

/* ───────── Journey ───────── */
.journey {
  background: var(--ink);
  color: var(--paper);
  padding: 110px 32px 120px;
  position: relative;
  overflow: hidden;
}
.journey::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(247,147,26,.18), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(247,147,26,.09), transparent 60%);
  pointer-events: none;
}
.journey__panel {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
}

.journey__map {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  padding: 16px;
  aspect-ratio: 900 / 420;
  max-height: 560px;
  margin: 0 auto;
  width: 100%;
}
.journey__map svg text {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  fill: rgba(246,239,227,.85);
}
.journey__map .stop--future text { fill: rgba(246,239,227,.4); }
.journey__map .current text { fill: var(--orange); font-weight: 700; }
.journey__map .maptag { fill: var(--orange); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; }
.journey__map .stop--next text:first-of-type { fill: rgba(246,239,227,.85); }

#route { stroke-dashoffset: 0; animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }

.pulse-out { animation: pulseO 2.2s ease-out infinite; transform-origin: center; }
.pulse-in  { animation: pulseI 2.2s ease-out infinite; transform-origin: center; }
@keyframes pulseO {
  0% { transform: scale(.6); opacity: .9; }
  100%{ transform: scale(2.3); opacity: 0; }
}
@keyframes pulseI {
  0% { transform: scale(.7); opacity: 1; }
  100%{ transform: scale(1.6); opacity: 0; }
}

/* Legs ledger */
.journey__legs {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 8px 4px 12px;
  background: rgba(255,255,255,.02);
}
.leg {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.legs__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 6px 16px 12px;
  color: rgba(246,239,227,.5);
  text-transform: uppercase; letter-spacing: .12em; font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  border-bottom: 1px dashed rgba(255,255,255,.12);
  margin-bottom: 4px;
}
.legs__cap span:first-child { color: var(--orange-soft); }
.legs {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 640px){ .legs { grid-template-columns: 1fr; } }
.leg { border-bottom: 1px dashed rgba(255,255,255,.07); }
.leg:last-child { border-bottom: 0; }
.leg span:first-child { color: rgba(246,239,227,.4); }
.leg span:last-child { color: rgba(246,239,227,.55); justify-self: end; }
.leg--done span:last-child { color: var(--orange-soft); }
.leg--done span:nth-child(2) { color: var(--paper); }
.leg--live span:last-child {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  animation: pulseDot 1.6s infinite;
}

/* ───────── Numbers ───────── */
.numbers { padding: 110px 32px; }
.numbers__grid {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 880px){ .numbers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .numbers__grid { grid-template-columns: 1fr; } }

.bignum {
  background: var(--paper);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 200px;
  position: relative;
}
.bignum__val {
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
}
.bignum__val .unit {
  font-size: 0.4em; color: var(--ink-3);
  margin-left: 4px; font-weight: 600;
}
.bignum__lbl { color: var(--ink-3); font-size: 15px; max-width: 28ch; margin-top: 8px; }
.bignum:nth-child(3n+1) { background: linear-gradient(180deg, var(--paper) 60%, var(--paper-2)); }
.bignum:nth-child(odd) .bignum__val { color: var(--ink); }
.bignum:nth-child(even) .bignum__val { color: var(--orange-deep); }

/* ───────── Stories ───────── */
.stories { padding: 110px 32px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stories__grid {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px){ .stories__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px){ .stories__grid { grid-template-columns: 1fr; } }

.story {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.story:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.25); }
.story--wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
@media (max-width: 980px){ .story--wide { grid-column: span 2; flex-direction: column; } }
@media (max-width: 660px){ .story--wide { grid-column: span 1; } }

.story__photo {
  background: var(--ink-2);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.story--wide .story__photo { aspect-ratio: auto; flex: 1 1 50%; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__photo--tall { aspect-ratio: 4 / 3; }

.story__body { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 50%; }
.story__loc {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--orange-deep);
}
.story__title {
  margin: 4px 0 6px;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.story--wide .story__title { font-size: 28px; }
.story__body p { margin: 0; color: var(--ink-3); }
.story__meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink-3);
}

.story__body--quote {
  background: var(--ink);
  color: var(--paper);
  padding: 32px;
  position: relative;
}
.qmark { color: var(--orange); margin-bottom: 10px; }
.story__body--quote blockquote {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  line-height: 1.25;
  font-style: italic;
}
.story__body--quote em { font-style: italic; color: var(--orange-soft); }
.story__attr {
  margin-top: auto; padding-top: 18px;
  display: flex; flex-direction: column; gap: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.story__attr-name { color: var(--orange); font-weight: 600; }
.story__attr-role { color: rgba(246,239,227,.55); }

/* Ouagadougou feature card */
.story--feature { grid-column: span 3; }
@media (max-width: 980px){ .story--feature { grid-column: span 2; } }
@media (max-width: 660px){ .story--feature { grid-column: span 1; } }
.story--feature .story__body--quote {
  display: flex; flex-direction: column; gap: 12px;
  padding: 40px 44px;
}
.story--feature .story__title { font-size: 30px; max-width: 22ch; }
.story--feature .story__body--quote p { color: rgba(246,239,227,.75); max-width: 62ch; font-size: 17px; }
.story__loc--light { color: var(--orange-soft) !important; }
.demo {
  margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden;
}
@media (max-width: 660px){ .demo { grid-template-columns: repeat(2, 1fr); } }
.demo > div {
  background: rgba(255,255,255,.02);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.demo dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(246,239,227,.55);
}
.demo dd { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

/* ───────── Gallery ───────── */
.gallery {
  padding: 110px 32px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--rule);
}
.gallery .section-head__title { color: var(--paper); }
.gallery .section-head__lede { color: rgba(246,239,227,.7); }
.gallery__wall {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
@media (max-width: 640px){
  .gallery__wall { padding: 0 16px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

.g-item {
  aspect-ratio: 1;
  margin: 0;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  cursor: zoom-in;
}
.g-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.g-item:hover img { transform: scale(1.04); filter: brightness(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--paper);
  border-radius: 999px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.lightbox__close { top: 20px; right: 22px; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 30px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@media (max-width: 600px){
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ───────── Partners ───────── */
.partners { padding: 110px 32px; }
.partners__grid {
  max-width: var(--measure);
  margin: 0 auto 28px;
  padding: 0 32px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 880px){ .partners__grid { grid-template-columns: repeat(2, 1fr); } }

.partner {
  background: var(--paper);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .2s;
}
.partner:hover { background: var(--paper-2); }
.partner__plate {
  width: 100%; height: 96px;
  border-radius: 12px;
  border: 1px solid var(--paper-line);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 9px 12px;
  margin-bottom: 4px;
  overflow: hidden;
}
.partner__plate--dark { background: var(--ink); border-color: rgba(255,255,255,.14); }
.partner__plate--zoom img { transform: scale(1.55); }
.partner__plate img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.partner__name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.partner__role { font-size: 13px; color: var(--ink-3); }

.partners__foot {
  max-width: 64ch;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--ink-3);
  font-size: 20px;
}

/* ───────── CTA ───────── */
.cta {
  padding: 110px 32px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(247,147,26,.22), transparent 70%),
    radial-gradient(30% 50% at 0% 100%, rgba(247,147,26,.12), transparent 70%);
  pointer-events: none;
}
.cta__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
@media (max-width: 880px){ .cta__inner { grid-template-columns: 1fr; gap: 40px; } }
.cta__title {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 700;
}
.cta__lede { color: rgba(246,239,227,.7); font-size: 18px; max-width: 50ch; margin-bottom: 32px; }
.cta__split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 660px){ .cta__split { grid-template-columns: 1fr; } }
.cta__col {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.cta__col-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-soft);
}
.cta__addr { display: flex; align-items: center; gap: 12px; }
.cta__addr code {
  flex: 1; min-width: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: rgba(0,0,0,.35);
  padding: 8px 10px;
  border-radius: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.06);
}
.copy {
  background: var(--orange); color: var(--ink);
  border: 0; border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600; font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  transition: background .2s;
}
.copy:hover { background: var(--paper); }
.copy.copied { background: #5cd28d; }

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

.cta__qr {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.qr {
  width: clamp(220px, 28vw, 300px);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -30px rgba(247,147,26,.4);
}
.qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.qr svg { display: block; border-radius: 6px; }
.qr__cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(246,239,227,.6);
  text-align: center;
}

/* ───────── Contact ───────── */
.contact {
  padding: 110px 32px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.contact__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px){ .contact__inner { grid-template-columns: 1fr; gap: 48px; } }

/* Mobile fit: let grid items shrink so long addresses / cards never overflow
   the viewport (min-width:auto on grid items was forcing horizontal scroll). */
.cta__inner, .cta__copy, .cta__qr, .cta__split, .cta__col, .cta__addr { min-width: 0; }
.contact__inner, .contact__form, .contact__inner > * { min-width: 0; }

.contact__title {
  font-size: clamp(38px, 5vw, 60px);
  line-height: .98; letter-spacing: -.02em;
  margin: 0 0 16px;
}
.contact__lede {
  color: var(--ink-3); font-size: 17px; line-height: 1.55;
  max-width: 44ch; margin: 0 0 36px;
}

.channels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.channel a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  transition: border-color .2s, transform .2s, background .2s;
}
.channel a:hover { border-color: var(--orange); transform: translateX(4px); background: #fff; }
.channel__ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--orange);
}
.channel__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3);
}
.channel__val { font-weight: 600; font-size: 16px; letter-spacing: -.01em; overflow-wrap: anywhere; }

.contact__form {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--orange-soft);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--paper);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246,239,227,.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,.08);
}
.field select option { background: var(--ink); color: var(--paper); }
.contact__submit { align-self: flex-start; margin-top: 4px; }
.contact__note {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: rgba(246,239,227,.5); margin: 0;
  transition: color .2s;
}
.contact__note--ok { color: var(--orange-soft); }
.contact__note--err { color: #ff9b8a; }

/* ───────── Footer ───────── */
.foot {
  padding: 56px 32px 32px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.foot__top {
  max-width: var(--measure);
  margin: 0 auto 32px;
  padding: 0 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { width: 44px; height: 44px; }
.foot__brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.foot__brand-sub { color: var(--ink-3); font-size: 13px; }
.foot__links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.foot__links a { font-weight: 500; }
.foot__links a:hover { color: var(--orange-deep); }
.foot__bottom {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 22px 32px 0;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-3);
}
.foot__motto { color: var(--orange-deep); font-weight: 600; }

/* Clean-route anchoring: keep section tops clear of the sticky nav */
section[id] { scroll-margin-top: 72px; }

/* Footer: centre the brand + Volunteer link on mobile */
@media (max-width: 640px){
  .foot__top { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .foot__links { justify-content: center; width: 100%; }
}

/* ───────── Floating soundtrack player ───────── */
.soundbar {
  position: fixed; z-index: 60;
  right: 20px; bottom: 20px;
  width: min(360px, calc(100vw - 32px));
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

/* Collapsed pill */
.soundbar__pill {
  display: none;
  align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--orange); color: var(--ink);
  border: 0; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  font-weight: 700; letter-spacing: -.01em;
  transition: transform .15s ease;
}
.soundbar__pill:hover { transform: translateY(-1px); }

/* Expanded card */
.soundbar__card {
  width: 100%;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(246,239,227,.14);
  border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  overflow: hidden;
}
.soundbar__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 8px 9px 14px;
  border-bottom: 1px solid rgba(246,239,227,.1);
}
.soundbar__label { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.soundbar__label em { color: var(--orange); }
.soundbar__min {
  flex: none; width: 30px; height: 30px; line-height: 1;
  display: grid; place-items: center;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(246,239,227,.25); border-radius: 999px;
  font-size: 20px;
  transition: background .15s ease, color .15s ease;
}
.soundbar__min:hover { background: var(--paper); color: var(--ink); }
.soundbar__body {
  max-height: 320px; opacity: 1;
  transition: max-height .28s ease, opacity .2s ease;
}
.soundbar__frame { display: block; width: 100%; border: 0; background: var(--ink); }

/* Minimised state: keep the iframe mounted (clipped) so playback continues */
.soundbar[data-state="min"] .soundbar__card { display: none; }
.soundbar[data-state="min"] .soundbar__pill { display: inline-flex; }

/* Animated equaliser icon on the pill */
.soundbar__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.soundbar__eq i {
  width: 3px; height: 100%; background: var(--ink); border-radius: 1px;
  transform-origin: bottom; animation: sb-eq 1s ease-in-out infinite;
}
.soundbar__eq i:nth-child(2) { animation-delay: .2s; }
.soundbar__eq i:nth-child(3) { animation-delay: .45s; }
.soundbar__eq i:nth-child(4) { animation-delay: .15s; }
@keyframes sb-eq {
  0%, 100% { transform: scaleY(.35); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .soundbar__eq i { animation: none; transform: scaleY(.6); }
  .soundbar__body { transition: none; }
}

@media (max-width: 560px) {
  .soundbar { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* Reveal on scroll: gated so content is never permanently hidden */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
  }
  [data-reveal].in {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion: kill decorative loops + reveals, show everything */
@media (prefers-reduced-motion: reduce) {
  .hero__ticker-track,
  #route,
  .pulse-out,
  .pulse-in { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ───────── See-all fold (Gallery & Partners) ───────── */
.see-all-wrap { text-align: center; margin-top: 30px; }
.see-all {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  background: transparent; border: 1px solid var(--ink);
  color: var(--ink); font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s, transform .15s;
}
.see-all:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.partners .see-all-wrap { margin-bottom: 8px; }
/* Partners collapse to the first 6 until "See all" is pressed (gallery shows all,
   compactly, so no fold there). */
.partners:not(.is-open) .partner:nth-child(n+7) { display: none; }

/* ───────── Back-to-top arrow ───────── */
.to-top {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: 0 auto 40px; padding: 0;
  border-radius: 999px; background: transparent;
  border: 1px solid var(--rule); color: var(--ink);
  font-size: 20px; line-height: 1;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.to-top:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: translateY(-2px); }

/* Volunteer footer link */
.foot__volunteer { font-weight: 600; color: var(--orange-deep); }
.foot__volunteer:hover { color: var(--ink); }
