/* ═══════════════════════════════════════════════════════════════
   Shametu River Lodge — concept preview
   Art direction: African dawn. One light source, everything else
   silhouette. Olive is the brand ground; ember is the only accent.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Vidaloka';
  src: url('../fonts/vidaloka.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  /* Ground: off-black with a green cast, never pure #000 */
  --ink:        #0A0D09;
  --ink-2:      #0E120C;
  --river:      #0B1725;
  --wild:       #101509;

  /* Brand, carried over from the live site */
  --olive-900:  #1B2412;
  --olive-700:  #3A4520;
  --olive-500:  #6A7F30;
  --olive-300:  #829E3C;

  /* The single accent: the dawn sun off the render */
  --ember:      #E8862F;
  --ember-ink:  #96450D;   /* accessible ember for light backgrounds */

  --sand:       #D9C9AC;
  --bone:       #F5F2EA;
  --bone-2:     #EBE6DA;

  /* Text */
  --on-dark:    #EDE8DC;
  --on-dark-mu: #A8A695;
  --on-light:   #14180F;
  --on-light-mu:#4E5344;

  --rule:       rgba(217, 201, 172, 0.16);
  --rule-ink:   rgba(20, 24, 15, 0.14);

  /* Type */
  --display: 'Vidaloka', 'Times New Roman', Georgia, serif;
  --text: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  --t-lede: clamp(1.15rem, 1.02rem + 0.6vw, 1.5rem);
  --t-h3:   clamp(1.3rem, 1.14rem + 0.72vw, 1.85rem);
  --t-h2:   clamp(2.05rem, 1.45rem + 2.6vw, 4.1rem);
  --t-hero: clamp(2.1rem, 1.3rem + 3.5vw, 4.9rem);

  /* Space, 4px base */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 176px;

  --wrap: 1240px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --z-nav: 60; --z-flag: 70; --z-grain: 90;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--text);
  font-size: var(--t-base);
  line-height: 1.62;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

::selection { background: var(--ember); color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ember); color: var(--ink);
  padding: var(--s3) var(--s5); font-weight: 600;
}
.skip:focus { left: var(--s4); top: var(--s4); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(100% - var(--s6) * 2, var(--wrap)); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(100% - var(--s9), var(--wrap)); } }

/* ─────────────────────────  Preview flag  ───────────────────────── */
.flag {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-flag);
  display: flex; align-items: center; justify-content: center; gap: var(--s4);
  padding: var(--s3) var(--s5);
  background: var(--olive-900);
  border-top: 1px solid var(--rule);
  font-size: var(--t-sm); color: var(--sand);
  text-align: center;
}
.flag b { color: var(--on-dark); font-weight: 600; }
.flag button {
  flex: none; background: none; border: 1px solid var(--rule);
  color: var(--sand); width: 28px; height: 28px; border-radius: 2px;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.flag button:hover { background: var(--ember); color: var(--ink); border-color: var(--ember); }
.flag[hidden] { display: none; }

/* ───────────────────────────  Nav  ─────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: var(--s6);
  padding: var(--s5) clamp(var(--s5), 4vw, var(--s8));
  transition: background .5s var(--ease), padding .5s var(--ease),
              border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 13, 9, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
  padding-block: var(--s3);
}
.nav__mark { flex: none; line-height: 0; }
.nav__mark img {
  width: clamp(128px, 13vw, 172px); height: auto;
  /* The logo ships as dark green; invert it to sand over the dark ground. */
  filter: brightness(0) saturate(100%) invert(92%) sepia(14%)
          saturate(420%) hue-rotate(2deg) brightness(96%);
  transition: opacity .3s var(--ease);
}
.nav__mark:hover img { opacity: .75; }

.nav__links { display: flex; gap: clamp(var(--s4), 1.6vw, var(--s6)); margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: var(--t-sm); letter-spacing: .01em;
  color: var(--on-dark-mu); position: relative; padding-block: var(--s1);
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ember); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--on-dark); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-here { color: var(--on-dark); }
.nav__links a.is-here::after { transform: scaleX(1); background: var(--olive-300); }

.burger { display: none; }

/* ───────────────────────────  Buttons  ─────────────────────────── */
.btn {
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  background: var(--ember); color: var(--btn-fg);
  font-family: var(--text); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding: var(--s4) var(--s6); border: 1px solid var(--ember);
  border-radius: 2px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              transform .12s var(--ease);
}
.btn:hover { background: transparent; color: var(--ember); }
.btn:active { transform: scale(.975); }
.btn--sm { padding: var(--s3) var(--s5); font-size: var(--t-xs); }
.btn--lg { padding: var(--s5) var(--s8); font-size: var(--t-sm); }
.btn--wide { margin-top: var(--s8); }

/* ───────────────────────────  Hero  ─────────────────────────── */
.hero { height: 460vh; position: relative; }
.hero__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: #050A12;
}
/* Stacked photographic plates. One slow continuous camera move across the
   whole stack, with the individual plates cross-dissolving under it. */
.plates {
  position: absolute; inset: 0;
  will-change: transform;
}
.plate {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.plate.is-on { opacity: 1; }
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 42%;
}

/* Grade the render toward the page ground so the hero and the first
   section read as one continuous image. */
.hero__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 42%, transparent 40%, rgba(5,10,18,.62) 100%),
    linear-gradient(to bottom, rgba(5,10,18,.55) 0%, transparent 26%,
                    transparent 58%, var(--ink) 99%);
}

.hero__stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: var(--s8) var(--s5);
  text-align: center;
}
.hero__beat {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--s5);
  opacity: 0; visibility: hidden;
  transform: translate3d(0, 18px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease),
              visibility 0s linear .9s;
  max-width: 22ch;
}
.hero__beat.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease),
              visibility 0s;
}
.hero__logo {
  width: clamp(230px, 30vw, 400px); height: auto;
  filter: brightness(0) saturate(100%) invert(97%) sepia(30%)
          saturate(300%) hue-rotate(330deg) brightness(104%);
}
.hero__line {
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-hero); line-height: 1.08; letter-spacing: -0.015em;
  color: var(--bone); text-wrap: balance;
  text-shadow: 0 2px 40px rgba(5, 10, 18, .7);
}
.hero__line--lg { font-size: clamp(2.3rem, 1.4rem + 3.9vw, 5.4rem); }
.hero__beat { max-width: min(94vw, 24ch); }
.hero__beat[data-beat="1"], .hero__beat[data-beat="2"] { max-width: min(94vw, 30ch); }

.kicker {
  font-size: var(--t-xs); letter-spacing: .34em; text-transform: uppercase;
  color: var(--sand); font-weight: 500;
}

.hero__cue {
  position: absolute; left: 50%; bottom: clamp(20px, 4vh, 44px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-dark-mu);
  transition: opacity .5s var(--ease);
}
.hero__cue i { display: block; width: 1px; height: 42px; background: var(--rule); position: relative; }
.hero__cue i::after {
  content: ''; position: absolute; inset: 0 auto auto 0;
  width: 1px; height: 14px; background: var(--ember);
  animation: trickle 2.4s var(--ease-io) infinite;
}
@keyframes trickle {
  0% { transform: translateY(-14px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(42px); opacity: 0; }
}
.hero__cue.is-gone { opacity: 0; }


/* ───────────────────────────  Sections  ─────────────────────────── */
.sec { position: relative; padding-block: clamp(var(--s9), 12vh, var(--s11)); }
.sec--dark { background: var(--ink-2); }
.sec--river {
  background: linear-gradient(175deg, var(--river) 0%, #0A1119 62%, var(--ink-2) 100%);
}
.sec--wild { background: linear-gradient(190deg, var(--wild) 0%, var(--ink-2) 88%); }
.sec--region { background: var(--ink); }
.sec--light { background: var(--bone); color: var(--on-light); }
.sec--contact { background: var(--olive-900); }
.sec--flush { padding-bottom: 0; }

/* Numbered marker: a structural device, used on every section on purpose. */
.mark {
  display: flex; align-items: center; gap: var(--s4);
  font-size: var(--t-xs); letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-dark-mu); margin-bottom: var(--s6);
}
.mark i {
  font-style: normal; color: var(--ember); font-weight: 600;
  letter-spacing: .12em;
}
.mark::after {
  content: ''; flex: 1; height: 1px; background: var(--rule); max-width: 120px;
}
.mark--ink { color: var(--on-light-mu); }
.mark--ink i { color: var(--ember-ink); }
.mark--ink::after { background: var(--rule-ink); }

.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.018em;
  color: var(--bone); text-wrap: balance;
}
.h2--ink { color: var(--on-light); }
.h2--lead { margin-bottom: var(--s8); max-width: 18ch; }

.lede {
  font-size: var(--t-lede); line-height: 1.5; color: var(--sand);
  font-weight: 300;
}
.prose p, .split__body > p { max-width: 62ch; text-wrap: pretty; }
.split__body > p + p { margin-top: var(--s5); }
.split__body > p:not(.lede) { color: var(--on-dark-mu); }

/* Two-column with a sticky aside */
.split { display: grid; gap: var(--s8); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(280px, 0.85fr) 1.15fr; gap: clamp(var(--s8), 7vw, 140px); }
  .split__aside { position: sticky; top: 128px; align-self: start; }
}
.aside-note {
  margin-top: var(--s5); color: var(--on-dark-mu);
  font-size: var(--t-sm); max-width: 34ch;
}

/* ───────────────────────────  Tally  ─────────────────────────── */
.tally {
  list-style: none; padding: 0; margin-top: var(--s8);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--s5);
  border-top: 1px solid var(--rule); padding-top: var(--s6);
}
.tally li { display: flex; flex-direction: column; gap: var(--s1); }
.tally b {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 1.9vw, 3rem); line-height: 1;
  color: var(--ember); font-variant-numeric: tabular-nums;
}
.tally span {
  font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-mu);
}

/* ───────────────────────  River: the flood pulse  ─────────────────── */
.pulse {
  list-style: none; padding: 0;
  display: grid; gap: var(--s6);
  counter-reset: pulse;
}
@media (min-width: 820px) { .pulse { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }
.pulse li {
  border-top: 1px solid var(--rule); padding-top: var(--s5);
  position: relative;
}
.pulse li::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 34px; height: 1px;
  background: var(--ember);
}
.pulse__when {
  font-size: var(--t-xs); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember); margin-bottom: var(--s3);
}
.pulse__what { color: var(--sand); font-weight: 300; }
.coda {
  margin-top: var(--s9); max-width: 58ch;
  font-family: var(--display); font-size: var(--t-lede); line-height: 1.42;
  color: var(--on-dark-mu); text-wrap: pretty;
}

/* ───────────────────────────  Rooms  ─────────────────────────── */
.rooms { margin-top: var(--s8); display: grid; gap: clamp(var(--s8), 9vh, 120px); }
.room {
  width: min(100% - var(--s6) * 2, var(--wrap)); margin-inline: auto;
  display: grid; gap: var(--s6); align-items: center;
}
@media (min-width: 900px) {
  .wrap ~ .rooms .room, .rooms .room { width: min(100% - var(--s9), var(--wrap)); }
  .room { grid-template-columns: 1.15fr 0.85fr; gap: clamp(var(--s7), 6vw, 96px); }
  .room--flip .room__fig { order: 2; }
}
.room__fig { overflow: hidden; border-radius: 3px; margin: 0; }
.room__fig img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(.94);
}
.room:hover .room__fig img { transform: scale(1.06); filter: saturate(1); }
.room__n {
  font-family: var(--display); font-size: var(--t-sm);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ember-ink); margin-bottom: var(--s3);
}
.room__txt h3 {
  font-family: var(--display); font-weight: 400; font-size: var(--t-h3);
  line-height: 1.14; color: var(--on-light); margin-bottom: var(--s4);
}
.room__txt p { color: var(--on-light-mu); max-width: 46ch; text-wrap: pretty; }

/* ───────────────────  Days: a list, not a card grid  ─────────────── */
.ways { display: grid; gap: 0; }
@media (min-width: 880px) { .ways { grid-template-columns: 1fr 1fr; column-gap: clamp(var(--s8), 7vw, 120px); } }
.way {
  border-top: 1px solid var(--rule);
  padding: var(--s6) 0;
  transition: border-color .4s var(--ease);
}
.way:hover { border-top-color: var(--ember); }
.way dt {
  font-family: var(--display); font-size: var(--t-h3); font-weight: 400;
  line-height: 1.14; color: var(--bone); margin-bottom: var(--s3);
}
.way dd { margin: 0; color: var(--on-dark-mu); max-width: 46ch; text-wrap: pretty; }

/* ───────────────────────────  Birds  ─────────────────────────── */
.birds { display: grid; gap: var(--s7); }
.bird { border-left: 1px solid var(--rule); padding-left: var(--s5); }
.bird:nth-child(even) { margin-left: clamp(0px, 4vw, 56px); }
.bird h3 {
  font-family: var(--display); font-weight: 400; font-size: var(--t-h3);
  line-height: 1.14; color: var(--bone); margin-bottom: var(--s3);
}
.bird p { color: var(--on-dark-mu); max-width: 50ch; text-wrap: pretty; }

/* ───────────────────────────  Region  ─────────────────────────── */
.region { display: grid; gap: var(--s8); align-items: start; }
@media (min-width: 940px) { .region { grid-template-columns: 1.25fr 0.75fr; gap: clamp(var(--s8), 6vw, 96px); } }
.region__map {
  margin: 0; border: 1px solid var(--rule); border-radius: 3px;
  padding: var(--s5) var(--s4) var(--s3);
  background: linear-gradient(160deg, #0D1410 0%, #0A0D09 100%);
}
.region__map svg { width: 100%; height: auto; overflow: visible; }
.region__map figcaption {
  margin-top: var(--s3); text-align: right;
  font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-mu);
}

/* Schematic locator */
.mp__area { fill: rgba(130, 158, 60, .07); stroke: rgba(130, 158, 60, .34); stroke-width: 1; }
.mp__area-l {
  fill: rgba(130, 158, 60, .72); font-family: var(--text); font-size: 15px;
  letter-spacing: .22em; text-anchor: middle;
}
.mp__river {
  fill: none; stroke: #2E7C99; stroke-width: 7; stroke-linecap: round;
}
.mp__road {
  fill: none; stroke: rgba(217, 201, 172, .42); stroke-width: 2;
  stroke-dasharray: 1 0;
}
.mp__road--minor { stroke-width: 1.5; stroke-dasharray: 7 6; }
.mp__road-l {
  fill: rgba(217, 201, 172, .6); font-family: var(--text); font-size: 14px;
  font-weight: 600; letter-spacing: .12em; text-anchor: middle;
}
.mp__pt circle { fill: var(--bone); stroke: var(--ink); stroke-width: 2; }
.mp__pt text {
  fill: var(--bone); font-family: var(--text); font-size: 17px;
  text-anchor: middle;
}
.mp__pt .mp__d {
  fill: var(--on-dark-mu); font-size: 13px; letter-spacing: .08em;
}
.mp__pt--key circle { fill: var(--ember); stroke: var(--ink); stroke-width: 3; }
.mp__pt--key text {
  fill: var(--ember); font-size: 21px; font-weight: 700;
  letter-spacing: .12em; text-anchor: start;
}
.mp__pt--left text { text-anchor: start; }

/* Draw the routes in when the diagram scrolls into view. */
.mp__river, .mp__road {
  stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200);
}
.mp__road--minor { stroke-dasharray: 7 6; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s var(--ease) .5s; }
.mp.is-in .mp__river, .mp.is-in .mp__road { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.mp.is-in .mp__road--minor { opacity: 1; }
.mp__pt, .mp__area, .mp__area-l, .mp__road-l {
  opacity: 0; transition: opacity .7s var(--ease);
}
.mp.is-in .mp__pt, .mp.is-in .mp__area,
.mp.is-in .mp__area-l, .mp.is-in .mp__road-l { opacity: 1; transition-delay: .75s; }
.region__side > p { color: var(--on-dark-mu); max-width: 44ch; text-wrap: pretty; }

.specs { margin-top: var(--s7); }
.specs > div {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) 0; border-top: 1px solid var(--rule);
}
.specs dt { font-size: var(--t-sm); color: var(--sand); }
.specs dd {
  margin: 0; font-size: var(--t-sm); color: var(--on-dark-mu);
  text-align: right; font-variant-numeric: tabular-nums;
}

/* ───────────────────────────  Gallery  ─────────────────────────── */
.gal {
  margin-top: var(--s8);
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(2, 1fr);
  padding-inline: var(--s3);
}
@media (min-width: 820px) {
  .gal { grid-template-columns: repeat(4, 1fr); gap: var(--s4); padding-inline: var(--s4); }
  .gal__i--wide { grid-column: span 2; }
  .gal__i--tall { grid-row: span 2; }
}
.gal__i { margin: 0; overflow: hidden; background: var(--olive-900); border-radius: 2px; }
.gal__i img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  filter: saturate(.9) brightness(.92);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease), filter .7s var(--ease);
}
.gal__i--tall img { aspect-ratio: 2 / 3; }
.gal__i--wide img { aspect-ratio: 8 / 3; }
.gal__i:hover img { transform: scale(1.05); filter: saturate(1.02) brightness(1); }

/* ───────────────────────────  Quotes  ─────────────────────────── */
.quotes { display: grid; gap: var(--s7); }
@media (min-width: 880px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }
.quotes blockquote {
  margin: 0; border-top: 1px solid var(--rule-ink); padding-top: var(--s5);
}
.quotes p {
  font-family: var(--display); font-size: var(--t-lede); line-height: 1.4;
  color: var(--on-light); text-wrap: pretty;
}
.quotes p::before { content: '\201C'; color: var(--ember-ink); }
.quotes p::after { content: '\201D'; color: var(--ember-ink); }
.quotes cite {
  display: block; margin-top: var(--s4); font-style: normal;
  font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-light-mu);
}
.src { margin-top: var(--s7); font-size: var(--t-xs); color: var(--on-light-mu); letter-spacing: .1em; }

/* ───────────────────────────  Contact  ─────────────────────────── */
.contact { display: grid; gap: var(--s7); }
@media (min-width: 820px) { .contact { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }
.cblock { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.cblock h3 {
  font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase;
  color: var(--ember); font-weight: 600; margin-bottom: var(--s4);
}
.cblock__lines { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s4); }
.cblock__lines a {
  text-decoration: none; color: var(--bone);
  font-size: clamp(1rem, .95rem + .3vw, 1.18rem);
  width: fit-content; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.cblock__lines a:hover { color: var(--ember); border-bottom-color: var(--ember); }
.small { font-size: var(--t-sm); color: var(--on-dark-mu); }
.small + .small { margin-top: var(--s3); }

/* ───────────────────────────  Footer  ─────────────────────────── */
.foot { background: var(--ink); border-top: 1px solid var(--rule); padding-block: var(--s8); }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: var(--s4); text-align: center; }
.foot__mark {
  width: 168px; height: auto;
  filter: brightness(0) saturate(100%) invert(58%) sepia(12%)
          saturate(700%) hue-rotate(30deg) brightness(88%);
}
.foot__note { color: var(--on-dark-mu); max-width: 46ch; }

/* ───────────────────────────  Grain  ─────────────────────────── */
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain);
  pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
  will-change: transform;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* ───────────────────────────  Reveals  ─────────────────────────── */
.rv {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--rv-d, 0ms);
}
.rv.is-in { opacity: 1; transform: none; }

/* ───────────────────────────  Mobile  ─────────────────────────── */
@media (max-width: 860px) {
  .nav { padding: var(--s4) var(--s5); gap: var(--s4); }
  .nav__cta { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .burger span {
    display: block; width: 26px; height: 1px; background: var(--on-dark);
    margin-inline: auto;
    transition: transform .4s var(--ease), opacity .3s var(--ease);
  }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .nav__links {
    position: fixed; inset: 0; margin: 0;
    flex-direction: column; align-items: center; justify-content: center;
    gap: var(--s5);
    background: rgba(10, 13, 9, .97); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s linear .4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__links a { font-family: var(--display); font-size: 1.6rem; color: var(--bone); }

  .hero { height: 420vh; }
  .tally { grid-template-columns: repeat(2, 1fr); }
  .bird:nth-child(even) { margin-left: 0; }
  .specs dd { text-align: right; }
  .flag { font-size: var(--t-xs); padding: var(--s3) var(--s4); }
}

/* ───────────────────────  Reduced motion  ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: 100svh; }
  .hero__beat { position: static; }
  .grain { animation: none; }
  .hero__cue { display: none; }
}
