/* =========================================================
   Mr Bri Guy — mrbriguy.com
   Direction: instrument console. Brian instruments everything he
   owns, so the site reads like the panel: dark warm ground, real
   photographs, and one readout per channel. Colour is not decoration
   here — each channel's accent is derived from its own subject
   (ember for the smoker, flats aqua for the salt, copper for the
   kettle), and the right-hand rail is that spectrum doing triple
   duty as navigation, scroll position, and legend.
   Static HTML + CSS, no build step.
   ========================================================= */

:root {
  --void:   #0C1210;   /* deep warm black, green cast — pine and water at night */
  --panel:  #141C19;   /* raised surface */
  --line:   #26332E;   /* hairline */
  --paper:  #EFE9DC;   /* warm off-white, carries the old sand forward */
  --muted:  #97A49D;   /* secondary type */
  --live:   #FF6A2B;   /* current channel accent, swapped by JS on scroll */
  --ch:     #FF6A2B;   /* per-section accent, set inline */

  --maxw: 1280px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 2rem; }

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--live); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--paper); color: var(--void);
  padding: 0.6rem 1rem; border-radius: 4px;
  font: 500 0.85rem var(--mono);
}
.skip:focus { top: 1rem; }

/* ---------- Atmosphere ----------
   Film grain keeps the black from reading as flat digital black.
   Kept faint on purpose; it should register as texture, not noise. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Topbar ---------- */
.topbar-scrim {
  position: absolute; inset: 0 0 auto 0; height: 190px; z-index: -1;
  background: linear-gradient(180deg, rgba(12,18,16,0.85) 0%, rgba(12,18,16,0.45) 45%, rgba(12,18,16,0) 100%);
  pointer-events: none;
}
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  isolation: isolate;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.1rem, 4vw, 2.6rem);
}
.wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--paper);
}
.wordmark em { color: var(--live); font-style: normal; }
.wordmark:hover { text-decoration: none; color: var(--live); }
.coords {
  margin: 0;
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.16em;
  color: var(--muted);
}
.live {
  display: inline-block; vertical-align: middle;
  margin-right: 0.55rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,106,43,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255,106,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,43,0); }
}

/* ---------- Channel spectrum (the signature) ---------- */
.rail {
  position: fixed; z-index: 80;
  right: clamp(0.7rem, 1.6vw, 1.4rem); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 0.95rem;
  padding: 1.15rem 0.95rem;
  background: rgba(12, 18, 16, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
}
.tick {
  position: relative;
  display: block;
  width: 30px; height: 5px;
  border-radius: 3px;
  background: var(--ch);
  opacity: 0.6;
  transition: opacity 0.3s ease, width 0.3s ease;
}
.tick span {
  position: absolute; right: calc(100% + 0.85rem); top: 50%;
  transform: translateY(-50%) translateX(6px);
  font: 700 0.8rem var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ch);
  /* The active channel's label lands on body copy at narrower widths. A text
     shadow was not enough; it needs its own ground. */
  padding: 0.32rem 0.6rem;
  border-radius: 4px;
  background: rgba(12, 18, 16, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tick:hover, .tick:focus-visible { opacity: 1; width: 54px; }
.tick.on { opacity: 1; width: 54px; }
.tick:hover span, .tick:focus-visible span, .tick.on span {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

.progress { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
}
.hero-type {
  position: relative; z-index: 20;
  padding: 8rem clamp(1.2rem, 4vw, 2.6rem) 4rem;
  max-width: 720px;
}
.eyebrow {
  margin: 0 0 1.6rem;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow em { color: var(--live); font-style: normal; padding: 0 0.35em; }

.tagline {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2.3rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  overflow-wrap: break-word;
  letter-spacing: -0.035em;
  text-transform: none;
}
.tagline a {
  position: relative;
  display: inline-block;
  color: var(--paper);
  margin-right: 0.16em;
  transition: color 0.25s ease;
}
.tagline a::after {
  content: "";
  position: absolute; left: 0; bottom: 0.1em;
  height: 0.075em; width: 100%;
  background: var(--ch);
  transform-origin: left;
  transform: scaleX(1);
  opacity: 0.55;
  transition: opacity 0.25s ease;
}
.tagline a:hover, .tagline a:focus-visible { color: var(--ch); text-decoration: none; }
.tagline a:hover::after, .tagline a:focus-visible::after { opacity: 1; }

.lede {
  max-width: 40ch;
  margin: 1.8rem 0 2.2rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
}
.cue {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper);
}
.cue i {
  display: block; width: 46px; height: 1px; background: var(--live);
  position: relative;
}
.cue i::after {
  content: ""; position: absolute; right: 0; top: -2px;
  width: 5px; height: 5px; border-right: 1px solid var(--live);
  border-bottom: 1px solid var(--live); transform: rotate(-45deg);
}
.cue:hover { text-decoration: none; color: var(--live); }

.hero-shot { position: relative; margin: 0; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }

/* ---------- Readout badge ----------
   Every channel carries a real number off its own subject. This is the
   structural device that replaces decorative labelling. */
.readout {
  margin: 0;
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  padding: 0.6rem 0.95rem 0.65rem;
  background: rgba(9, 14, 12, 0.93);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--ch);
}
.readout b {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ch);
}
.readout span {
  font: 500 0.6rem var(--mono);
  letter-spacing: 0.18em;
  color: var(--muted);
}
.ch-shot .readout,
.hero-shot .readout {
  position: absolute; left: 0; bottom: 1.7rem; z-index: 3;
}
.hero-shot .readout { left: auto; right: 0; border-left: 0; border-right: 3px solid var(--ch); }
.readout span { color: #C9D3CD; }

/* A readout that carries a place under its measurement. */
.readout--twoline {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.readout-main { display: flex; align-items: baseline; gap: 0.6rem; }
.readout-sub {
  font: 500 0.66rem var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ch);
}

/* ---------- Channels ---------- */
.channels { position: relative; }

.ch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 3rem);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.ch-shot { position: relative; margin: 0; }
#music .ch-shot img { object-position: 50% 44%; }
.ch-shot img { width: 100%; height: auto; max-height: 76svh; object-fit: cover; }

.ch-body { padding: 0 clamp(1.2rem, 4vw, 2.6rem); max-width: 60ch; }

.ch-meta {
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1rem;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ch);
}
.ch-num { color: var(--paper); opacity: 0.45; }
.ch-meta i { display: block; width: 26px; height: 1px; background: var(--ch); flex: none; }

.ch-body h2 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--paper);
  max-width: 16ch;
}
.ch-body p { margin: 0 0 0.9rem; color: var(--muted); }
.ch-note { font-size: 0.94rem; color: #7E8B85; }
.ch-body a { color: var(--ch); border-bottom: 1px solid rgba(255,255,255,0.18); }
.ch-body a:hover { text-decoration: none; border-bottom-color: var(--ch); }

/* 01 — the lead. Card size encodes rank: cooking is his number one, so it
   gets the full viewport and nothing else does. */
.strip + .strip-hint + .ch { border-top: 1px solid var(--line); }

.ch--lead {
  display: block;
  min-height: 92svh;
  padding: 0;
  border-top: 0;
  overflow: hidden;
}
.ch-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  background: url("photos/cook-poster.jpg") 50% 50%/cover no-repeat;
  filter: saturate(1.05);
}
/* An empty <video> paints black over the poster underneath it, so it stays
   invisible until JS actually attaches a source. */
.ch-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.ch-video[src] { opacity: 1; }
.ch-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(72deg, rgba(12,18,16,0.93) 0%, rgba(12,18,16,0.60) 44%, rgba(12,18,16,0.05) 84%),
    linear-gradient(0deg, rgba(12,18,16,0.78) 0%, rgba(12,18,16,0) 46%);
}
.ch--lead .ch-body {
  position: relative; z-index: 10;
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  max-width: 54rem;
}
.ch--lead .ch-body h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 22ch; }
.readout--float {
  position: absolute; z-index: 10;
  right: clamp(0px, 9vw, 7.5rem); bottom: clamp(3rem, 8vw, 5.5rem);
  border-left: 0; border-right: 3px solid var(--ch);
}

/* ---------- Cook filmstrip ----------
   Cooking is the one channel with a few thousand photos behind it, so it gets a
   strip instead of a single frame. Fixed height, natural width: every shot keeps
   its own composition instead of being centre-cropped into a uniform tile. */
.strip {
  overflow-x: auto;
  overflow-y: hidden;
  /* mandatory + snap-stop:always means a swipe advances exactly one frame and
     always lands on a whole one, never halfway through the next. */
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(1.2rem, 4vw, 2.6rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ch) transparent;
  --ch: #FF6A2B;
}
.strip::-webkit-scrollbar { height: 12px; }
.strip::-webkit-scrollbar-thumb {
  background: var(--ch);
  border-radius: 6px;
  border: 3px solid var(--void);
}
.strip::-webkit-scrollbar-thumb:hover { filter: brightness(1.2); }
.strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.07); border-radius: 6px; }
.strip ul {
  display: flex; gap: 8px;
  list-style: none; margin: 0;
  padding: 0 clamp(1.2rem, 4vw, 2.6rem);
}
.strip li { flex: none; scroll-snap-align: start; scroll-snap-stop: always; }
.strip img {
  height: clamp(200px, 27vw, 330px);
  width: auto;
  display: block;
  filter: saturate(0.92) brightness(0.92);
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.strip li:hover img, .strip img:focus-visible { filter: none; transform: translateY(-4px); }
.strip-hint {
  margin: 0.9rem 0 0;
  padding: 0 clamp(1.2rem, 4vw, 2.6rem);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #6C7873;
}

/* A channel with no photo yet: let the copy hold the full width rather than
   leave a dead column, and give its readout a place to sit. */
.readout--inline { margin: 0 0 1.4rem; }

/* A channel with no photo beside it: the copy is the whole row, so it needs a
   margin of its own at EVERY width, not just on desktop. max() keeps the inset
   from ever collapsing, which is how the text ended up flush to the edge. */
.ch.ch--textonly .ch-body {
  max-width: min(74ch, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1.5rem, clamp(2.6rem, 6vw, 6rem));
  padding-right: max(1.5rem, clamp(2.6rem, 6vw, 6rem));
}

@media (min-width: 900px) {
  .ch.ch--textonly { grid-template-columns: 1fr; }
}

/* ---------- The three bikes ----------
   Three frames because there are three machines, one per clause of the copy
   and matching the readout. Not a gallery: a count. */
.trio {
  margin-top: calc(clamp(3.5rem, 8vw, 7rem) * -0.45);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trio figure { position: relative; margin: 0; background: var(--void); }
.trio img {
  width: 100%; height: auto; display: block;
  filter: saturate(0.94) brightness(0.94);
  transition: filter 0.35s ease;
}
.trio figure:hover img { filter: none; }
.trio figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: 0.55rem 0.9rem;
  background: rgba(9, 14, 12, 0.9);
  border-left: 3px solid var(--ch);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #C9D3CD;
}



#ai .ch-body h2 { max-width: 20ch; }

/* ---------- Equipment manifest ----------
   A hardware list wants to look like a hardware list, not a paragraph. */
.kit {
  border-top: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.6rem);
}
.kit-head {
  margin: 0 0 1rem;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ch);
}
.kit ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 2rem;
}
.kit li {
  font: 400 0.86rem var(--mono);
  letter-spacing: 0.04em;
  color: #B6C1BB;
  padding-left: 1.1rem;
  position: relative;
}
.kit li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 2px; background: var(--ch);
}

/* Daisy signs her own section. */
.signoff {
  display: flex; align-items: center; gap: 0.7rem;
  margin: 1.6rem 0 0 !important;
}
.signoff span {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ch);
}
.signoff img { width: 44px; height: 44px; display: block; }

/* The gear, as a scrollable row: the pieces have wildly different aspects (a
   wide cart, a tall dome), so they share a height and take whatever width that
   gives them. Scrolls rather than shrinks as more gear arrives. */
.kit-shots {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(1.2rem, 4vw, 2.6rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ch) transparent;
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.kit-shots::-webkit-scrollbar { height: 12px; }
.kit-shots::-webkit-scrollbar-thumb {
  background: var(--ch);
  border-radius: 6px;
  border: 3px solid var(--void);
}
.kit-shots::-webkit-scrollbar-thumb:hover { filter: brightness(1.2); }
.kit-shots::-webkit-scrollbar-track { background: rgba(255,255,255,0.07); border-radius: 6px; }
.kit-shots ul {
  display: flex; gap: 10px;
  list-style: none; margin: 0;
  padding: 0 clamp(1.2rem, 4vw, 2.6rem);
  align-items: flex-start;
}
.kit-shots li { flex: none; scroll-snap-align: start; scroll-snap-stop: always; }
.kit-shots figure { margin: 0; }
/* The loop sits over its own poster still, so an empty <video> never shows. */
.kit-loop { position: relative; }
.kit-video {
  position: absolute; inset: 0;
  width: 100%; height: clamp(200px, 26vw, 340px);
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.8s ease;
}
.kit-video[src] { opacity: 1; }
.kit-shots img {
  height: clamp(200px, 26vw, 340px);
  width: auto; display: block;
  filter: saturate(0.94) brightness(0.94);
  transition: filter 0.3s ease;
}
.kit-shots li:hover img { filter: none; }
.kit-shots figcaption {
  margin-top: 0.55rem;
  max-width: 34ch;
  font: 500 0.6rem var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #6C7873;
}

/* A genre list sits inside a channel's copy, so it drops the section chrome. */
.kit--inline { border-top: 0; padding: 0.4rem 0 1.2rem; }
/* Two columns, and specific enough to beat the desktop three-across rule:
   band names are long and were wrapping mid-name. */
.kit.kit--inline ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.5rem; }
.kit--inline + .kit--inline { padding-top: 0.2rem; }
.kit-more {
  margin: 0.7rem 0 0;
  font: 400 0.86rem var(--mono);
  letter-spacing: 0.04em;
  color: #6C7873;
}

/* ---------- A named venue ---------- */
.venue { position: relative; margin: 0; border-top: 1px solid var(--line); }
.venue img { width: 100%; height: auto; max-height: 70svh; object-fit: cover; display: block; }
.venue figcaption {
  position: absolute; left: 0; bottom: 0;
  max-width: min(46ch, 100%);
  padding: 1.1rem clamp(1.2rem, 3vw, 1.8rem) 1.2rem;
  background: rgba(9, 14, 12, 0.9);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--ch);
}
.venue-label {
  display: block;
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ch);
  margin-bottom: 0.5rem;
}
.venue-name {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.venue-desc { display: block; font-size: 0.9rem; color: var(--muted); }
.venue-credit {
  display: block; margin-top: 0.7rem;
  font: 400 0.6rem var(--mono); letter-spacing: 0.1em;
  color: #6C7873;
}
.venue-credit a { color: #8A968F; border-bottom: 1px solid rgba(255,255,255,0.16); }

/* ---------- Full galleries ----------
   Every frame Brian shot for a channel lives here. Collapsed behind a toggle
   so a channel opens with its curated strip and only unfolds the whole roll
   when someone asks for it. */
.gallery { border-top: 1px solid var(--line); }
.gallery-toggle {
  display: block; width: 100%;
  background: none; border: 0;
  padding: 1.15rem clamp(1.2rem, 4vw, 2.6rem);
  text-align: left; cursor: pointer;
  color: var(--paper);
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.25s ease;
}
.gallery-toggle:hover { background: rgba(255, 255, 255, 0.035); }
.gallery-toggle-label { color: var(--ch); }
.gallery-toggle-label::after { content: " \2193"; }
.gallery-toggle[aria-expanded="true"] .gallery-toggle-label::after { content: " \2191"; }
.gallery-toggle-sub { color: #6C7873; margin-left: 0.7rem; letter-spacing: 0.16em; }

/* A class-level display beats the UA's [hidden]{display:none}, so the
   collapsed gallery has to say so explicitly. */
.grid[hidden] { display: none; }

.grid {
  list-style: none; margin: 0;
  padding: 0 clamp(0.5rem, 1.5vw, 1rem) clamp(1rem, 3vw, 1.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 13vw, 190px), 1fr));
  gap: 4px;
}
.grid img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--panel);
  filter: saturate(0.92) brightness(0.9);
  transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.grid li:hover img { filter: none; transform: scale(1.04); z-index: 2; position: relative; }


/* ---------- Lightbox ----------
   Any photograph opens full screen. [hidden] is spelled out because a
   class-level display beats the UA stylesheet. */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(6, 10, 9, 0.95);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 40px 90px -40px #000;
}
.lightbox-close {
  position: absolute; top: clamp(0.6rem, 2vw, 1.4rem); right: clamp(0.6rem, 2vw, 1.4rem);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 18, 16, 0.85);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--panel); }

/* Photographs advertise that they open. */
.strip img, .grid img, .trio img, .ch-shot img, .hero-shot img { cursor: zoom-in; }

/* A photograph shown whole: no crop, no scrim, nothing on top of it. */
.ch-shot--whole img { max-height: none; object-fit: contain; }

/* A scroll rail the strips can always show, because iOS hides native
   scrollbars and the thin desktop one was easy to miss. */
.rail-track {
  position: relative;
  height: 4px;
  margin: 0.9rem clamp(1.2rem, 4vw, 2.6rem) 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.rail-track i {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--ch);
  border-radius: 2px;
  transition: transform 0.08s linear;
}

@media (hover: none) {
  .strip::-webkit-scrollbar, .kit-shots::-webkit-scrollbar { height: 0; }
}

/* ---------- Field stations ---------- */
.stations {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.stations-head {
  display: block;
  margin: 0 0 2rem;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.stations-head em { font-style: normal; color: var(--live); padding: 0 0.2em; }
.stations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.station {
  position: relative;
  display: block;
  background: var(--panel);
  padding: 1.9rem 1.6rem 2rem;
  color: var(--paper);
  transition: background 0.3s ease;
}
.station::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--ch);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.station:hover { background: #1B2621; text-decoration: none; }
.station:hover::before, .station:focus-visible::before { transform: scaleX(1); }
.station-no {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.8rem;
  font: 500 0.62rem var(--mono); letter-spacing: 0.2em;
  color: var(--ch);
}
.station-no::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ch); opacity: 0.75;
}
.station-name {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.05;
  letter-spacing: -0.028em;
  margin-bottom: 0.55rem;
}
.station-desc { display: block; font-size: 0.9rem; color: var(--muted); }

/* The projects panel reuses the stations grid; four cards want two-up, not
   three, on a wide screen. */
.projects { border-top: 0; padding-top: 0; }

@media (min-width: 900px) {
  .projects .stations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .projects .stations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Outro ---------- */
.outro {
  text-align: center;
  padding: clamp(4.5rem, 11vw, 8rem) 1.2rem;
  border-top: 1px solid var(--line);
}
.outro h2 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.outro p { margin: 1rem 0 2rem; color: var(--muted); }
.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border: 1px solid var(--live);
  color: var(--live);
  font: 500 0.78rem var(--mono);
  letter-spacing: 0.12em;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--live); color: var(--void); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.2rem 1.2rem 7rem;
  border-top: 1px solid var(--line);
  font: 400 0.78rem var(--mono);
  letter-spacing: 0.06em;
  color: #6C7873;
}
.site-footer p { margin: 0.35rem 0; }
.footer-links a { color: var(--muted); }

/* ---------- Desktop layout ---------- */
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 42vw); min-height: 100svh; }
  .hero-type { padding-left: clamp(2.6rem, 6vw, 6rem); padding-bottom: 6rem; }
  .hero-shot { height: 100svh; }
  .hero-shot::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--void) 0%, rgba(12,18,16,0.62) 14%, rgba(12,18,16,0.18) 34%, rgba(12,18,16,0) 52%);
  }

  .ch { grid-template-columns: minmax(0, 52vw) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); }
  .ch .ch-body { padding-right: clamp(3.5rem, 7vw, 7rem); padding-left: 0; }
  .ch--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 52vw); }
  .ch--flip .ch-shot { order: 2; }
  .ch--flip .ch-body { padding-left: clamp(2.6rem, 6vw, 6rem); padding-right: 0; }

  .ch--lead .ch-body { padding-left: clamp(2.6rem, 6vw, 6rem); }

  .stations-grid { grid-template-columns: repeat(3, 1fr); }
  .kit ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .station { padding: 2rem 1.9rem 2.2rem; }
}

/* ---------- Phone ---------- */
@media (max-width: 899px) {
  .hero-shot { order: -1; height: 50svh; }
  .hero-shot img { object-position: 50% 8%; }
  .hero-shot .readout {
    left: 0; right: auto; bottom: 0;
    border-left: 3px solid var(--ch); border-right: 0;
  }
  .hero-shot::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(12,18,16,0.55) 0%, rgba(12,18,16,0.1) 40%, var(--void) 99%);
  }
  .hero { min-height: 0; align-items: start; }
  .hero-type { padding-top: 1rem; padding-bottom: 5.5rem; }

  .ch--lead { min-height: 0; }
  .ch--lead .ch-body { min-height: 76svh; }
  /* A 72deg scrim leaves the bottom of a narrow screen bright, and that is
     exactly where the body copy sits on a phone. Add a vertical one. */
  .ch-bg::after {
    background: linear-gradient(0deg, rgba(12,18,16,0.94) 8%, rgba(12,18,16,0.74) 48%, rgba(12,18,16,0.28) 100%);
  }
  .readout--float { right: 0; top: auto; bottom: 1.1rem; }
  .strip { padding-top: 1.6rem; }
  .ch-body h2 { max-width: none; }

  /* Rail becomes a thumb-reachable pill at the bottom. */
  .rail {
    right: 50%; top: auto; bottom: 0.9rem;
    transform: translateX(50%);
    flex-direction: row; align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: rgba(12, 18, 16, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .tick { width: 22px; height: 4px; border-radius: 2px; }
  .tick:hover, .tick:focus-visible, .tick.on { width: 34px; }
  .tick span { display: none; }

  .progress {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; z-index: 85;
    height: 2px;
  }
  .progress i {
    display: block; height: 100%;
    background: var(--live);
    transform: scaleX(0); transform-origin: left;
  }

  .site-footer { padding-bottom: 7.5rem; }
}

@media (max-width: 700px) {
  .coords { display: none; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .topbar { padding: 1.1rem 1.1rem; }
  .tagline { letter-spacing: -0.045em; }
}

/* ---------- Motion ----------
   One orchestrated load moment (the tagline drawing itself in channel
   order) and a quiet rise on scroll. Nothing else moves. */
.anim .ch,
.anim .station,
.anim .outro {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim .ch.in,
.anim .station.in,
.anim .outro.in { opacity: 1; transform: none; }

@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.32em); }
  to   { opacity: 1; transform: none; }
}
@keyframes drawIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.anim .tagline a { opacity: 0; animation: wordIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.anim .tagline a::after { animation: drawIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.anim .tagline a:nth-child(1), .anim .tagline a:nth-child(1)::after { animation-delay: 0.10s; }
.anim .tagline a:nth-child(2), .anim .tagline a:nth-child(2)::after { animation-delay: 0.19s; }
.anim .tagline a:nth-child(3), .anim .tagline a:nth-child(3)::after { animation-delay: 0.28s; }
.anim .tagline a:nth-child(4), .anim .tagline a:nth-child(4)::after { animation-delay: 0.37s; }
.anim .tagline a:nth-child(5), .anim .tagline a:nth-child(5)::after { animation-delay: 0.46s; }
.anim .tagline a:nth-child(6), .anim .tagline a:nth-child(6)::after { animation-delay: 0.55s; }
.anim .tagline a:nth-child(7), .anim .tagline a:nth-child(7)::after { animation-delay: 0.64s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live { animation: none; }
  .live { box-shadow: none; }
  .anim .ch, .anim .station, .anim .outro,
  .anim .tagline a, .anim .tagline a::after {
    opacity: 1; transform: none; animation: none; transition: none;
  }
}
