/* =========================================================================
   MOSSWATER — Reedhouse Studio
   Design system: dark, lamplit, hand-painted field record.
   Three families only: Fraunces (display), Newsreader (prose), Plex Mono (data).
   ========================================================================= */

/* ---------- Self-hosted variable faces ---------------------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-normal-100-900.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-roman-normal-200-800.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-italic-italic-200-800.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-normal-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-normal-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------ */
:root {
  --bg: #0B1114;
  --surface: #131B1F;
  --raised: #1B252A;
  --line: #2A363B;
  --ink: #F2ECDF;
  --muted: #9AA39F;
  --brass: #C9862F;
  --brass-lit: #E0A150;
  --moss: #7FA46F;
  --foxglove: #C06C86;
  --water: #1E4A57;
  --water-lit: #4E93A4;
  --paper: #F4EDE1;
  --paper-ink: #1A1512;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --prose: 'Newsreader', Georgia, serif;
  --data: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --measure: 62ch;
  --maxw: 1220px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.25rem);
  --section-y: clamp(4.5rem, 3rem + 6.5vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hdr: 72px;
}

/* ---------- Reset / base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 18px;
  line-height: 1.62;
  font-variation-settings: 'wght' 400, 'opsz' 18;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: var(--brass); color: var(--bg); }

/* Page-wide paper grain — 3%, sits above everything, never intercepts input */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type primitives -------------------------------------------- */
.h1, .h2, .h3 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
.h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  font-variation-settings: 'opsz' 120, 'wght' 600, 'SOFT' 60, 'WONK' 1;
}
.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  font-variation-settings: 'opsz' 72, 'wght' 500, 'SOFT' 40, 'WONK' 1;
}
.h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 36, 'wght' 500, 'SOFT' 30, 'WONK' 1;
}
p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--data);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85em;
}
.kicker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}
.mono { font-family: var(--data); font-variant-numeric: tabular-nums; }
.lede { font-size: 1.15rem; color: var(--muted); }
.caption {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.85rem;
  line-height: 1.55;
}

/* ---------- Layout ------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section-y); position: relative; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Plates: every painting gets the same treatment — hairline, no radius. */
.plate {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.plate img { width: 100%; }

/* ---------- Buttons ----------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 90ms linear;
  min-height: 52px;
}
.badge:hover { border-color: var(--brass); background: var(--raised); }
.badge:active { transform: translateY(2px); }
.badge svg { flex: none; fill: currentColor; }
.badge__t {
  display: block;
  font-family: var(--data);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
}
.badge__n {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.15;
  font-variation-settings: 'opsz' 24, 'wght' 500, 'SOFT' 20, 'WONK' 0;
  letter-spacing: -0.005em;
}
.badge--solid { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.badge--solid .badge__t { color: rgba(11, 17, 20, 0.62); }
.badge--solid:hover { background: var(--brass-lit); border-color: var(--brass-lit); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 26px;
  background: var(--brass);
  color: var(--bg);
  border: 1px solid var(--brass);
  font-family: var(--data);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 90ms linear;
}
.btn:hover { background: var(--brass-lit); }
.btn:active { transform: translateY(2px); }

.tlink {
  font-family: var(--data);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  /* underline, not border-bottom — a wrapped link keeps one continuous rule */
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease);
}
.tlink:hover { color: var(--brass); text-decoration-color: var(--brass); }

/* ---------- Header ------------------------------------------------------ */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--hdr);
  display: flex;
  align-items: center;
  transition: height 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hdr.is-stuck {
  height: 56px;
  background: rgba(19, 27, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.wordmark {
  font-family: var(--display);
  font-size: 19px;
  font-variation-settings: 'opsz' 30, 'wght' 600, 'SOFT' 40, 'WONK' 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.wordmark svg { color: var(--brass); }
.nav { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav a {
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.is-here { color: var(--ink); border-bottom-color: var(--brass); }
.hdr__cta { display: flex; gap: 10px; margin-left: auto; }
.hdr__cta .badge { padding: 8px 14px; min-height: 42px; }
.hdr__pair { display: flex; gap: 10px; }
.hdr__one { display: none; }
.hdr.is-stuck .hdr__pair { display: none; }
.hdr.is-stuck .hdr__one { display: inline-flex; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .hdr__pair { display: none; }
  .hdr__one { display: inline-flex; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  max-height: 1000px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__art {
  position: absolute;
  inset: -6% 0 0;
  z-index: -2;
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: 62% 42%;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11,17,20,0.72) 0%, rgba(11,17,20,0.12) 26%, rgba(11,17,20,0.30) 44%, rgba(11,17,20,0.88) 76%, var(--bg) 100%),
    radial-gradient(120% 80% at 78% 34%, rgba(201,134,47,0.10) 0%, transparent 60%);
}
.hero__in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--hdr) + 3rem) var(--gutter) 5.5rem;
}
.hero__copy { max-width: 660px; }
.hero .h1 { margin-bottom: 1.15rem; }
.hero__sub {
  font-size: 1.08rem;
  color: #CBD1CB;
  max-width: 58ch;
  margin-bottom: 1.9rem;
}
.hero__eyebrow {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
  max-width: none;
}
.hero__legal {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.055em;
  color: var(--muted);
  line-height: 1.75;
  margin: 1.4rem 0 0;
  max-width: 62ch;
}
.hero__legal b { color: var(--ink); font-weight: 600; }
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.spec {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.55rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(242, 236, 223, 0.16);
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Hairline separators, not middots — a wrapped row never orphans a dot. */
.spec li { padding-inline: 1.05rem; white-space: nowrap; }
.spec li:first-child { padding-left: 0; }
.spec li + li { border-left: 1px solid rgba(242, 236, 223, 0.16); }
.spec b { color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Water-board readout pinned to the base of the hero */
.hud {
  position: absolute;
  inset: auto 0 0;
  height: 40px;
  display: flex;
  align-items: center;
  background: rgba(19, 27, 31, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 2;
}
.hud::-webkit-scrollbar { display: none; }
.hud ul {
  display: flex;
  gap: 0 1.5rem;
  list-style: none;
  margin: 0 auto;
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  width: 100%;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hud li { display: flex; align-items: center; gap: 1.5rem; }
.hud li:not(:last-child)::after { content: ''; width: 1px; height: 12px; background: var(--line); }
.hud b { color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud .w { color: var(--water-lit); }

/* ---------- Manifest ---------------------------------------------------- */
.manifest { text-align: center; }
.manifest__studio {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-variation-settings: 'opsz' 40, 'wght' 500, 'SOFT' 40, 'WONK' 1;
  margin: 0 auto 3rem;
  max-width: 34ch;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats li { padding: 0 1rem; }
.stats li + li { border-left: 1px solid var(--line); }
.stats .n {
  display: block;
  font-family: var(--data);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}
.stats .l {
  display: block;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 23ch;
  margin-inline: auto;
}
.manifest__foot {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem auto 0;
  max-width: none;
}

/* ---------- Water line (before / after) --------------------------------- */
.waterline__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ba {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 1536 / 2752;
  background: var(--surface);
  /* Sized off height so the portrait plate never runs off a laptop screen. */
  height: min(78vh, 760px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-family: var(--data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 17, 20, 0.66);
  backdrop-filter: blur(3px);
  padding: 6px 9px;
  pointer-events: none;
  max-width: 44%;
  line-height: 1.4;
}
.ba__tag--l { left: 12px; }
.ba__tag--r { right: 12px; text-align: right; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--brass);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(201, 134, 47, 0.45);
}
.ba__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.ba__hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  z-index: 5;
  font-family: var(--data);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--brass);
  padding: 7px 12px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
.ba.is-touched .ba__hint { opacity: 0; }

/* ---------- Session beats ---------------------------------------------- */
.beats { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.beat { padding-block: 2.2rem; }
.beat + .beat { border-top: 1px solid var(--line); }
.beat__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.beat__t {
  font-family: var(--data);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.beat__n {
  font-family: var(--data);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.beat__head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.beat p { color: #C6CCC6; max-width: 64ch; }

/* the 7x9 board demo */
.board {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(0.85rem, 2vw, 1.25rem);
  margin: 2.4rem 0;
  max-width: 430px;
}
.board__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cell {
  aspect-ratio: 1;
  background: #141C20;
  border: 1px solid #1E272C;
  display: grid;
  place-items: center;
  position: relative;
}
.cell svg { width: 62%; height: 62%; }
.tile {
  position: absolute;
  inset: 3px;
  display: grid;
  place-items: center;
  background: #233034;
  border: 1px solid #33434A;
  cursor: grab;
  transition: transform 260ms var(--ease), opacity 200ms linear, border-color 200ms linear, background 200ms linear;
}
.tile:active { cursor: grabbing; }
.tile.is-hot { border-color: var(--brass); box-shadow: 0 0 0 1px rgba(201,134,47,0.35), 0 0 22px rgba(201,134,47,0.18); }
.tile.is-gone { opacity: 0; transform: scale(0.7); }
.tile.is-born { animation: born 420ms var(--ease); }
@keyframes born {
  0%   { transform: scale(0.6); opacity: 0; }
  55%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.board__bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--data);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.board__bar b { color: var(--brass); font-weight: 600; }
.board__say { color: var(--ink); }

/* ---------- Letters ----------------------------------------------------- */
.letters__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.paper {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 3.4vw, 2.6rem);
  rotate: -1.4deg;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  clip-path: polygon(0 8px, 6% 2px, 14% 9px, 27% 1px, 41% 8px, 55% 2px, 68% 9px, 82% 2px, 93% 8px, 100% 3px,
                     100% calc(100% - 7px), 88% calc(100% - 1px), 74% calc(100% - 8px), 61% calc(100% - 2px),
                     47% calc(100% - 9px), 33% calc(100% - 2px), 19% calc(100% - 8px), 8% calc(100% - 2px), 0 calc(100% - 7px));
}
.paper p { color: var(--paper-ink); max-width: 46ch; }
.paper__body {
  font-family: var(--prose);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  font-variation-settings: 'wght' 400, 'opsz' 28;
}
.paper__sig {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6C5F52;
  margin-top: 1.4rem;
}
.paper__flower { position: absolute; top: 14px; left: 16px; opacity: 0.9; }
.letters__after { margin-top: 2.4rem; }
.letters__note {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 1.4rem;
  line-height: 1.7;
}

/* ---------- Valley ------------------------------------------------------ */
.valley__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 3rem;
}
.map { position: relative; border: 1px solid var(--line); background: #0B1114; }
.map svg { width: 100%; height: auto; display: block; }
.map__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  max-width: none;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.map__head b { color: var(--brass); font-variant-numeric: tabular-nums; }
.map__pin { cursor: pointer; }
.map__pin circle.hit { fill: transparent; }
.map__pin .dot { fill: var(--brass); transition: r 200ms var(--ease); }
.map__pin .ring { fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0; transition: opacity 200ms var(--ease), r 260ms var(--ease); }
.map__pin text { font-family: var(--data); font-size: 10px; font-weight: 600; fill: var(--bg); pointer-events: none; }
.map__pin.is-on .ring { opacity: 0.85; }
.map__vig {
  position: absolute;
  width: 216px;
  border: 1px solid var(--brass);
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.map__vig.is-on { opacity: 1; visibility: visible; }
.map__vig .f { height: 152px; overflow: hidden; }
.map__vig img { width: 100%; height: 100%; object-fit: cover; }
.map__vig span {
  display: block;
  font-family: var(--data);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}
.districts { list-style: none; margin: 0; padding: 0; }
.districts li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 0.9rem;
  padding: 0.95rem 0 0.95rem 0.9rem;
  border-top: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.districts li:last-child { border-bottom: 1px solid var(--line); }
.districts li.is-on { border-left-color: var(--brass); background: rgba(201, 134, 47, 0.045); }
.districts .n {
  font-family: var(--data);
  font-weight: 600;
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.08em;
  padding-top: 0.28em;
  font-variant-numeric: tabular-nums;
}
.districts .t {
  font-size: 15px;
  font-variation-settings: 'wght' 600, 'opsz' 18;
  letter-spacing: 0.02em;
}
.districts .d { grid-column: 2; font-size: 14.5px; color: var(--muted); line-height: 1.5; max-width: 46ch; }
.valley__foot {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.6rem;
  max-width: none;
}

/* ---------- Villagers --------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 3.2rem;
  list-style: none;
  padding: 0;
}
.card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 240ms var(--ease);
}
.card:hover { border-color: var(--brass); }
.card__f { border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 1.4rem; }
.card__f img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.card:hover .card__f img { transform: scale(1.02); }
.card__n {
  font-family: var(--display);
  font-size: 1.28rem;
  font-variation-settings: 'opsz' 32, 'wght' 500, 'SOFT' 30, 'WONK' 1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.card__h { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 1.4rem; flex: 1; }
.card__kv { border-top: 1px solid var(--line); padding-top: 0.85rem; margin-top: auto; }
.card__kv div { display: grid; grid-template-columns: 6.4rem 1fr; gap: 0.6rem; padding: 0.42rem 0; }
.card__kv div + div { border-top: 1px solid var(--line); }
.card__kv dt {
  font-family: var(--data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25em;
}
.card__kv dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.villagers__foot { text-align: center; margin: 2.6rem auto 0; color: var(--muted); max-width: 52ch; }

/* ---------- Ada --------------------------------------------------------- */
.ada {
  position: relative;
  background: #10262D;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(6rem, 11vw, 10rem);
  border-block: 1px solid var(--line);
}
.ada__art {
  position: absolute;
  inset: -8% 0 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  opacity: 0.16;
  z-index: -2;
  will-change: transform;
}
.ada__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(75% 65% at 50% 46%, rgba(16, 38, 45, 0.35) 0%, rgba(9, 21, 26, 0.93) 72%);
}
.ada__in { max-width: 62ch; margin-inline: auto; text-align: left; }
.ada .h2 { margin-bottom: 1.9rem; }
.ada p {
  font-style: italic;
  font-size: clamp(1.06rem, 1.7vw, 1.32rem);
  line-height: 1.62;
  font-variation-settings: 'wght' 400, 'opsz' 30;
  max-width: none;
  margin-bottom: 1.5em;
}
.ada p:last-child { color: var(--brass); }

/* ---------- Low water --------------------------------------------------- */
.low__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.tidepanel { border: 1px solid var(--line); background: var(--bg); padding: 1.6rem; }
.tidepanel dl {
  margin: 0 0 1.5rem;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tidepanel dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.tidepanel dl div + div { border-top: 1px solid var(--line); }
.tidepanel dt { color: var(--muted); }
.tidepanel dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.tidepanel svg { width: 100%; height: auto; }
.form { margin-top: 2.4rem; max-width: 34rem; }
.form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.form label {
  display: block;
  font-family: var(--data);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.form input {
  flex: 1 1 15rem;
  min-height: 52px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 17px;
  padding: 0 15px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.form input::placeholder { color: #5F6A66; }
.form input:focus {
  outline: none;
  border-color: var(--foxglove);
  box-shadow: 0 0 0 3px rgba(192, 108, 134, 0.2);
}
.form input[aria-invalid='true'] { border-color: var(--foxglove); }
.form__micro { font-size: 14px; color: var(--muted); margin-top: 1rem; line-height: 1.55; }
.form__err {
  font-family: var(--data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foxglove);
  margin-top: 0.7rem;
  min-height: 1em;
}
.form__ok {
  font-family: var(--display);
  font-size: 1.3rem;
  font-variation-settings: 'opsz' 36, 'wght' 500, 'SOFT' 40, 'WONK' 1;
  color: var(--brass);
}

/* ---------- Money ------------------------------------------------------- */
.money__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 3rem;
  align-items: start;
}
.nots { list-style: none; margin: 0; padding: 0; }
.nots li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  max-width: 44ch;
}
.nots li:last-child { border-bottom: 1px solid var(--line); }
.nots svg { margin-top: 0.35em; color: var(--moss); }
.cap {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.8rem;
}
.cap h3 { margin-bottom: 0.9rem; }
.cap p { font-size: 16.5px; color: #C6CCC6; }
.shop { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.shop p { font-size: 16.5px; color: #C6CCC6; }
.shop .price { font-family: var(--data); font-weight: 600; color: var(--brass); font-variant-numeric: tabular-nums; }

/* ---------- Voices ------------------------------------------------------ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 3rem;
  list-style: none;
  padding: 0;
}
.quote {
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
}
.quote blockquote {
  margin: 0 0 1.6rem;
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.55;
  font-variation-settings: 'wght' 400, 'opsz' 24;
  flex: 1;
}
.quote figcaption {
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.voices__attr {
  font-family: var(--data);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 2.6rem auto 0;
  max-width: 68ch;
  line-height: 1.8;
}
.voices__comm { text-align: center; margin: 1rem auto 0; color: var(--muted); font-size: 15.5px; max-width: 60ch; }

/* ---------- Studio ------------------------------------------------------ */
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stage { border: 1px solid var(--line); overflow: hidden; position: relative; }
.stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 34%; }
/* Four stages of the same plate, staged with filters: pencil → block-in →
   colour → final. Values tuned so each step reads as a distinct pass. */
.stage.s1 img { filter: grayscale(1) contrast(1.55) brightness(1.22); }
.stage.s2 img { filter: sepia(0.42) saturate(0.5) contrast(0.94) brightness(1.06); }
.stage.s3 img { filter: saturate(0.7) contrast(1.02); }
.stage span {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--data);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 17, 20, 0.74);
  padding: 5px 9px;
}
.studio__note { max-width: none; }
.studio__note .paper { rotate: 0.8deg; }
.studio__note .paper p { font-size: 16.5px; max-width: 50ch; }
.smallprint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.3rem;
  list-style: none;
  margin: 3.4rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.smallprint li { display: flex; align-items: center; gap: 1.3rem; }
.smallprint li:not(:last-child)::after { content: '·'; color: var(--line); }
.smallprint b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- FAQ --------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin-top: 2.6rem;
}
.faq > div { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.faq dt {
  font-family: var(--display);
  font-size: 1.06rem;
  font-variation-settings: 'opsz' 24, 'wght' 500, 'SOFT' 30, 'WONK' 0;
  margin-bottom: 0.6rem;
}
.faq dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 52ch; }

/* ---------- Close + footer ---------------------------------------------- */
.close {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(6rem, 12vw, 11rem);
  text-align: center;
  border-top: 1px solid var(--line);
}
.close__art {
  position: absolute;
  inset: -8% 0 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 44%;
  z-index: -2;
  will-change: transform;
}
.close__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(11,17,20,0.80) 0%, rgba(11,17,20,0.58) 34%, rgba(11,17,20,0.90) 78%, var(--bg) 100%);
}
.close .h2 { max-width: 22ch; margin-inline: auto; }
.close__sub {
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B9C0BA;
  margin: 1.6rem auto 2.4rem;
  max-width: 70ch;
  line-height: 1.85;
}
.close .badges { justify-content: center; }
.close__icon {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(242, 236, 223, 0.22);
  margin: 0 auto 2.2rem;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
/* crop the plate's remaining wash off the edge so the icon reads as an icon */
.close__icon img { width: 118%; max-width: none; margin: -9%; }
.foot { padding: 3rem 0 3.6rem; border-top: 1px solid var(--line); }
.foot__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  font-family: var(--data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.foot__row a { text-decoration: none; border-bottom: 1px solid transparent; transition: color 180ms var(--ease), border-color 180ms var(--ease); }
.foot__row a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.foot__small {
  text-align: center;
  color: #8A938E;
  font-size: 14px;
  margin: 1.6rem auto 0;
  max-width: 60ch;
}

/* ---------- Reveal ------------------------------------------------------ */
/* Scoped to .js so the page is fully readable with scripting off — without
   this guard every revealable block would sit at opacity 0 forever. */
.js .rv { opacity: 0; transform: translateY(16px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.ada .rv.is-in { transition-duration: 640ms; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1000px) {
  .waterline__grid,
  .letters__grid,
  .valley__grid,
  .low__grid,
  .studio__grid { grid-template-columns: 1fr; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .stats li + li { border-left: 0; }
  .stats li:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-right: 0; }
  .money__cols { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .waterline__grid > .waterline__copy { order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero { min-height: 92svh; }
  .hero__in { padding-bottom: 4.5rem; }
  .badges { width: 100%; }
  .badge { flex: 1 1 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .stats li:nth-child(odd) { border-right: 0; }
  .stats li + li { border-top: 1px solid var(--line); padding-top: 2rem; }
  .paper { rotate: -0.8deg; }
  .map__vig { display: none; }
  .card__kv div { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
}
