/* ==========================================================================
   CANADA.CA — FIELD CHART Nº 1
   Surveyor's field journal / brutalist cartography.
   Palette: topo cream · surveyor orange · ink black · aurora green (accent)
   Type: JetBrains Mono everywhere. No editorial serif. No photo-led hero.
   ========================================================================== */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ece4d0;
  --paper-2: #e3d9bf;
  --paper-3: #d9cdac;
  --ink: #191510;
  --ink-2: #4c4331;
  --orange: #f04e00;
  --orange-dark: #c23d00;
  --aurora: #1fe08a;
  --line: #c4b48d;          /* contour brown */
  --gridline: #d6caa8;
  --night: #101a14;
  --night-2: #0b120e;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hud-h: 64px;
  --rail-w: 116px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--mono);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--paper); }

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-size: 12px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------ alert bar */
.alert-bar {
  background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; display: flex; gap: 10px; align-items: center;
  justify-content: center; text-align: center;
}
.alert-tag {
  background: var(--orange); color: var(--ink);
  font-weight: 800; padding: 1px 7px; letter-spacing: .12em;
}

/* ------------------------------------------------ HUD header */
.hud {
  position: sticky; top: 0; z-index: 120;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.hud::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 5px;
  background:
    linear-gradient(90deg, var(--ink) 0 34px, transparent 34px 40px, var(--ink) 40px 46px, transparent 46px) repeat-x;
  background-size: 92px 5px; opacity: .28; pointer-events: none;
}
.hud-inner {
  height: var(--hud-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px;
}
.sig { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.sig-mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.sig-mark svg { width: 100%; height: 100%; }
.sig-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sig-text b { font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.sig-text span { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }

.hud-readout {
  display: flex; align-items: baseline; gap: 10px;
  border: 1.5px solid var(--ink); padding: 5px 12px;
  font-size: 11px; letter-spacing: .05em; background: var(--paper-2);
  margin-inline: auto;
  box-shadow: 3px 3px 0 var(--ink);
}
.ro-label { color: var(--orange-dark); font-weight: 800; font-size: 10px; }
.ro-val b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ro-val b:first-child { color: var(--ink); }
.ro-datum { color: var(--ink-2); font-size: 10px; }

.hud-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hud-readout + .hud-nav { margin-left: 0; }
.nav-link {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; padding: 8px 9px; font-weight: 600;
  border: 1.5px solid transparent;
}
.nav-link:hover { border-color: var(--ink); background: var(--paper-2); box-shadow: 2px 2px 0 var(--ink); }
.lang-toggle {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  padding: 8px 12px; margin-left: 6px; min-height: 36px;
}
.lang-toggle:hover { background: var(--orange); color: var(--ink); border-color: var(--ink); }
.menu-btn {
  display: none; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--paper-2); border: 1.5px solid var(--ink); padding: 8px 10px; min-height: 36px;
}

/* ------------------------------------------------ legend rail */
.legend-rail {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  width: var(--rail-w); z-index: 90;
  background: var(--paper-2); border: 1.5px solid var(--ink); border-left: none;
  padding: 14px 10px; display: flex; flex-direction: column; gap: 12px;
  font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(25,21,16,.18);
}
.rail-north svg { width: 34px; display: block; margin: 0 auto; }
.rail-item { display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; }
.rail-sym svg { width: 34px; height: 14px; display: block; }
.rail-cap { color: var(--ink-2); line-height: 1.3; }
.rail-scale { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.scale-bar { display: flex; width: 64px; height: 7px; border: 1.5px solid var(--ink); }
.scale-bar i { flex: 1; }
.scale-bar i:nth-child(odd) { background: var(--ink); }
.rail-sheet { border-top: 1.5px dashed var(--ink-2); padding-top: 8px; text-align: center; color: var(--ink-2); }

/* ------------------------------------------------ panels & corners */
.panel { position: relative; padding: 96px 0; border-bottom: 2px solid var(--ink); }
.corner {
  position: absolute; width: 26px; height: 26px; pointer-events: none; z-index: 2;
}
.corner::before, .corner::after { content: ""; position: absolute; background: var(--ink); }
.corner::before { width: 100%; height: 2px; top: 12px; }
.corner::after { height: 100%; width: 2px; left: 12px; }
.c-tl { top: 10px; left: 10px; }
.c-tr { top: 10px; right: 10px; }
.c-bl { bottom: 10px; left: 10px; }
.c-br { bottom: 10px; right: 10px; }
.corner.on-dark::before, .corner.on-dark::after { background: var(--aurora); }

.panel-head { max-width: 760px; margin-bottom: 44px; position: relative; }
.kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-dark); margin-bottom: 14px;
}
.kicker::before { content: "▣ "; color: var(--ink); }
.kicker.on-dark { color: var(--aurora); }
.kicker.on-dark::before { color: var(--paper); }
.panel-head h2, .hero-title { letter-spacing: -.02em; }
.panel-head h2 {
  font-size: clamp(26px, 4.4vw, 44px); font-weight: 800; line-height: 1.08;
  text-transform: uppercase; margin-bottom: 14px;
}
.panel-head p { font-size: 14px; color: var(--ink-2); max-width: 620px; }

/* ------------------------------------------------ stamps */
.stamp {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  color: var(--orange-dark); border: 2px solid var(--orange-dark);
  padding: 5px 10px; text-transform: uppercase; transform: rotate(-3deg);
  border-radius: 3px; position: relative; background: rgba(240,78,0,.06);
  mask-image: none;
}
.stamp::after {
  content: ""; position: absolute; inset: 2px; border: 1px dashed rgba(194,61,0,.5); border-radius: 2px;
}
.stamp-big { font-size: 12px; padding: 7px 14px; position: absolute; top: -6px; right: 0; transform: rotate(3.5deg); }
.stamp:hover { transform: rotate(-1deg) scale(1.02); }

/* ------------------------------------------------ reveal / trace */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.25,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.trace { transition: stroke-dashoffset 2.4s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .trace { transition: none !important; stroke-dashoffset: 0 !important; }
}
html.capture .reveal { opacity: 1 !important; transform: none !important; }
html.capture .trace { transition: none !important; stroke-dashoffset: 0 !important; }
html.capture .pin { opacity: 1 !important; transform: none !important; animation: none !important; }

/* ==========================================================================
   HERO — CHART Nº 1
   ========================================================================== */
.hero {
  position: relative; min-height: calc(100vh - var(--hud-h) - 30px);
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, var(--gridline) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, var(--gridline) 79px 80px),
    var(--paper);
  padding: 70px 0 90px;
}
.hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-contours path { fill: none; stroke: var(--line); stroke-width: 1.3; }
.hero-contours path.idx { stroke: var(--ink-2); stroke-width: 1.8; }

.hero-crosshair { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ch-v, .ch-h { position: absolute; background: var(--orange); opacity: 0; transition: opacity .3s; }
.ch-v { width: 1px; top: 0; bottom: 0; }
.ch-h { height: 1px; left: 0; right: 0; }
.hero:hover .ch-v, .hero:hover .ch-h { opacity: .5; }
.ch-read {
  position: absolute; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: var(--ink); color: var(--aurora); padding: 3px 8px;
  opacity: 0; transition: opacity .3s; white-space: nowrap;
}
.hero:hover .ch-read { opacity: 1; }

.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-kickerrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-title {
  font-size: clamp(34px, 7.2vw, 92px); font-weight: 800; line-height: .98;
  text-transform: uppercase; margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent { color: var(--orange); text-shadow: 3px 3px 0 var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise .8s cubic-bezier(.2,.9,.25,1) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
  .hero-title .line:nth-child(3) > span { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
}
.hero-lede { max-width: 560px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 34px; }

/* query instrument */
.searchbox { position: relative; max-width: 640px; margin-bottom: 40px; }
.query-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em;
  color: var(--ink); margin-bottom: 8px; text-transform: uppercase;
}
.searchbox.on-dark .query-label { color: var(--aurora); }
.field {
  display: flex; align-items: stretch; background: var(--paper);
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
}
.field:focus-within { box-shadow: 5px 5px 0 var(--orange); }
.field-prefix {
  display: flex; align-items: center; padding: 0 12px; font-weight: 800;
  color: var(--orange-dark); border-right: 2px solid var(--ink); background: var(--paper-2);
  font-size: 13px;
}
.field input {
  flex: 1; border: none; background: transparent; padding: 15px 14px;
  font-family: inherit; font-size: 14px; color: var(--ink); outline: none; min-width: 0;
  min-height: 48px;
}
.field input::placeholder { color: rgba(76,67,49,.55); }
.field .go {
  border: none; border-left: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
  padding: 0 22px; min-height: 48px;
}
.field .go:hover { background: var(--orange); color: var(--ink); }
.search-hint { margin-top: 9px; font-size: 11px; color: var(--ink-2); letter-spacing: .02em; }

.search-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  display: none; max-height: 380px; overflow: auto;
}
.search-results.open { display: block; }
.sr-head {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-dark); padding: 10px 14px 6px; border-bottom: 1px dashed var(--ink-2);
}
.sr-item {
  display: flex; gap: 12px; width: 100%; text-align: left; align-items: flex-start;
  background: none; border: none; border-bottom: 1px solid var(--gridline);
  padding: 11px 14px; font-size: 13px; min-height: 44px;
}
.sr-item:hover, .sr-item.focused { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--orange); }
.sr-item .dot { width: 22px; height: 22px; flex: none; color: var(--orange-dark); margin-top: 1px; }
.sr-item .dot svg { width: 100%; height: 100%; }
.sr-item b { display: block; font-weight: 700; }
.sr-item small { color: var(--ink-2); font-size: 11.5px; }
.sr-item mark { background: var(--orange); color: var(--ink); padding: 0 1px; }
.sr-empty { padding: 14px; font-size: 12.5px; color: var(--ink-2); }
.sr-topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; }
.sr-topics button {
  border: 1.5px solid var(--ink); background: var(--paper-2); font-size: 11px;
  padding: 7px 10px; text-transform: uppercase; letter-spacing: .05em; min-height: 36px;
}
.sr-topics button:hover { background: var(--orange); }

/* instrument readouts */
.readouts { display: flex; flex-wrap: wrap; gap: 14px; }
.readout {
  border: 1.5px solid var(--ink); background: var(--paper-2); padding: 10px 16px;
  display: flex; flex-direction: column; min-width: 128px; box-shadow: 3px 3px 0 var(--ink);
}
.readout .ro-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; color: var(--orange-dark); }
.readout b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.readout .ro-unit { font-size: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.readout.dark { background: var(--night-2); border-color: var(--aurora); box-shadow: 3px 3px 0 rgba(31,224,138,.35); }
.readout.dark .ro-tag { color: var(--aurora); }
.readout.dark b { color: var(--paper); }
.readout.dark .ro-unit { color: rgba(236,228,208,.65); }

.hero-compass { position: absolute; right: 34px; bottom: 34px; width: 108px; z-index: 3; }
.hero-compass svg { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-compass svg { animation: compassIdle 14s linear infinite; }
  @keyframes compassIdle { 0%,88%,100% { transform: rotate(0); } 92% { transform: rotate(3deg); } 96% { transform: rotate(-2deg); } }
}
.hero-meta {
  position: absolute; left: 24px; bottom: 20px; z-index: 3;
  display: flex; gap: 20px; font-size: 9.5px; letter-spacing: .12em; color: var(--ink-2);
  text-transform: uppercase;
}
.scroll-cue {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 10.5px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-2); z-index: 3;
}
.scroll-cue i { font-style: normal; color: var(--orange); animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i { display: inline-block; animation: cue 1.6s ease-in-out infinite; }
  @keyframes cue { 50% { transform: translateY(6px); } }
}

/* ==========================================================================
   FIELD REQUISITIONS — most requested
   ========================================================================== */
.strip { background: var(--paper-2); }
.strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(25,21,16,.05) 119px 120px);
}
.req-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 2px solid var(--ink); background: var(--ink); /* grid gutters via gap */
  gap: 2px; box-shadow: 7px 7px 0 var(--ink); position: relative; z-index: 1;
}
.req-card {
  background: var(--paper); border: none; text-align: left; padding: 18px 16px 14px;
  display: flex; flex-direction: column; gap: 8px; position: relative; min-height: 210px;
  transition: background .15s;
}
.req-card .req-no {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--orange-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.req-card .req-no .crosshair { width: 14px; height: 14px; color: var(--ink-2); }
.req-card b { font-size: 15px; font-weight: 800; text-transform: uppercase; line-height: 1.25; letter-spacing: -.01em; }
.req-card small { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.req-card .cta {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); display: flex; align-items: center; gap: 7px;
  border-top: 1.5px dashed var(--ink-2); padding-top: 10px;
}
.req-card .cta svg { width: 14px; height: 14px; }
.req-card:hover { background: var(--orange); }
.req-card:hover small, .req-card:hover .req-no { color: var(--ink); }
.req-card:hover .cta { color: var(--ink); border-top-color: var(--ink); }
.req-card:focus-visible { outline: 3px solid var(--aurora); outline-offset: -3px; }
.req-card::after {
  content: ""; position: absolute; right: 10px; bottom: 38px; width: 44px; height: 44px;
  border: 2px solid var(--orange-dark); border-radius: 50%; opacity: 0;
  transform: rotate(-12deg) scale(1.4); transition: all .18s;
}
.req-card:hover::after { opacity: .5; transform: rotate(-12deg) scale(1); }

/* ==========================================================================
   THE EXPEDITION CHART
   ========================================================================== */
.chart-panel { background: var(--paper); }
.chart-frame {
  position: relative; border: 2px solid var(--ink); background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}
.chart-frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg, transparent 0 79px, rgba(214,202,168,.55) 79px 80px),
              repeating-linear-gradient(90deg, transparent 0 79px, rgba(214,202,168,.55) 79px 80px);
}
.chart-map { position: relative; }
#chartSvg { display: block; width: 100%; height: auto; position: relative; z-index: 0; }
.chart-land { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.6; }
.chart-grat { stroke: var(--gridline); stroke-width: .8; fill: none; }
.chart-route { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 7 6; stroke-linecap: round; }
.chart-route-bed { fill: none; stroke: var(--ink); stroke-width: 5.4; stroke-dasharray: 7 6; opacity: .16; }
.city-label { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--ink); letter-spacing: .02em; }
.city-dot { fill: var(--ink); }
.coord-tag { font-family: var(--mono); font-size: 9px; fill: var(--ink-2); letter-spacing: .04em; }

#chartPins { position: absolute; inset: 0; z-index: 3; }
.pin {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: none; border: none; padding: 8px; opacity: 0;
}
.pin .pin-body {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 2.2px solid var(--ink); background: var(--paper);
  position: relative; transition: transform .15s, background .15s;
}
.pin .pin-body::after {
  content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--orange);
}
.pin .pin-tag {
  position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-size: 9.5px; font-weight: 800;
  letter-spacing: .08em; padding: 3px 7px; white-space: nowrap; text-transform: uppercase;
}
.pin.tag-below .pin-tag { bottom: auto; top: calc(100% + 2px); }
.pin .pin-tag i { font-style: normal; color: var(--aurora); }
.pin:hover .pin-body, .pin:focus-visible .pin-body { background: var(--orange); transform: scale(1.18); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-body { box-shadow: 0 0 0 3px var(--aurora); }
@media (prefers-reduced-motion: no-preference) {
  .chart-frame.plotted .pin { animation: pinDrop .55s cubic-bezier(.2,1.4,.4,1) both; }
  @keyframes pinDrop {
    0% { opacity: 0; transform: translateY(-46px) scale(.6); }
    60% { opacity: 1; transform: translateY(4px) scale(1.06); }
    80% { transform: translateY(-3px) scale(.98); }
    100% { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) { .pin { opacity: 1; } }

.chart-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 4;
  background: var(--paper); border: 1.5px solid var(--ink); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px; font-size: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.chart-legend b { font-size: 10px; letter-spacing: .14em; color: var(--orange-dark); }
.chart-legend span { display: flex; align-items: center; gap: 8px; }
.chart-legend svg { width: 30px; height: 12px; flex: none; }
.chart-legend i { font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.chart-scale {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700;
  background: var(--paper); border: 1.5px solid var(--ink); padding: 6px 10px;
}
.chart-caption {
  position: absolute; left: 14px; top: 14px; z-index: 4;
  font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--paper);
  background: var(--ink); padding: 5px 10px; text-transform: uppercase;
}

/* ==========================================================================
   FIELD NOTES — region stations
   ========================================================================== */
.notes { background: var(--paper); }
.fieldnote {
  border-top: 2px solid var(--ink);
  position: relative;
}
.fieldnote .wrap { padding-top: 64px; padding-bottom: 64px; }
.fn-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start;
}
.fieldnote:nth-child(even) .fn-grid { direction: rtl; }
.fieldnote:nth-child(even) .fn-grid > * { direction: ltr; }

.plate {
  border: 2px solid var(--ink); background: var(--paper-2); padding: 10px;
  box-shadow: 7px 7px 0 var(--ink); position: relative;
}
.plate::before, .plate::after {
  content: "+"; position: absolute; font-size: 14px; font-weight: 800; color: var(--orange-dark);
}
.plate::before { top: -12px; left: -8px; }
.plate::after { bottom: -14px; right: -8px; }
.plate .plate-img { position: relative; overflow: hidden; border: 1.5px solid var(--ink); }
.plate img {
  width: 100%; height: 340px; object-fit: cover;
  filter: grayscale(1) contrast(1.12) sepia(.32) brightness(1.02);
  mix-blend-mode: normal; transition: filter .35s;
}
.plate:hover img { filter: grayscale(.2) contrast(1.05) sepia(.1); }
.plate .plate-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(transparent 0 calc(50% - 1px), rgba(240,78,0,.5) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent 0 calc(50% - 1px), rgba(240,78,0,.5) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  opacity: .6;
}
.plate figcaption {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding-top: 9px; color: var(--ink); font-weight: 700;
}
.plate figcaption i { font-style: normal; }
.plate-coord { color: var(--orange-dark); font-variant-numeric: tabular-nums; }

.fn-copy .fn-no {
  font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--orange-dark);
  text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.fn-copy .fn-no::after { content: ""; flex: 1; border-top: 1.5px dashed var(--ink-2); }
.fn-copy h3 {
  font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; text-transform: uppercase;
  line-height: 1.05; margin-bottom: 8px; letter-spacing: -.01em;
}
.fn-place {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 6px; display: flex; gap: 8px; align-items: center;
}
.fn-place svg { width: 15px; height: 15px; color: var(--orange-dark); flex: none; }
.fn-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.fn-meta span {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; border: 1.5px solid var(--ink);
  padding: 4px 8px; background: var(--paper-2); text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.fn-meta span.elev { background: var(--ink); color: var(--aurora); border-color: var(--ink); }
.fn-copy .lede { font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px; max-width: 520px; }
.fn-cluster {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); display: inline-block; padding: 4px 10px;
  margin-bottom: 12px;
}
.fn-services { display: flex; flex-direction: column; border: 1.5px solid var(--ink); background: var(--paper); }
.wp {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--gridline);
  padding: 11px 14px; font-size: 12.5px; min-height: 44px;
}
.wp:last-child { border-bottom: none; }
.wp .wp-ico { width: 18px; height: 18px; flex: none; color: var(--orange-dark); }
.wp .wp-ico svg { width: 100%; height: 100%; }
.wp b { font-weight: 700; flex: 1; }
.wp .goto { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--ink-2); text-transform: uppercase; }
.wp:hover { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--orange); }
.wp:hover .goto { color: var(--orange-dark); }

/* ==========================================================================
   SURVEY INDEX
   ========================================================================== */
.browse { background: var(--paper-2); }
.tab-row { display: flex; gap: 0; margin-bottom: 0; border: 2px solid var(--ink); width: max-content; max-width: 100%; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.tab {
  border: none; background: none; padding: 13px 22px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; border-right: 2px solid var(--ink);
  min-height: 46px;
}
.tab:last-child { border-right: none; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: inset 0 -4px 0 var(--orange); }
.tab:hover:not([aria-selected="true"]) { background: var(--paper-2); }
.tab-panels { margin-top: 34px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ledger { border: 2px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.ledger-row {
  display: grid; grid-template-columns: 64px 26px 1fr auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--gridline); padding: 12px 16px; min-height: 52px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .code { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--orange-dark); }
.ledger-row .ic { width: 20px; height: 20px; color: var(--ink); }
.ledger-row .ic svg { width: 100%; height: 100%; }
.ledger-row .lt b { display: block; font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.ledger-row .lt small { color: var(--ink-2); font-size: 11.5px; }
.ledger-row .go-arrow { width: 18px; height: 18px; color: var(--ink-2); transition: transform .15s; }
.ledger-row .go-arrow svg { width: 100%; height: 100%; }
.ledger-row:hover { background: var(--paper-2); box-shadow: inset 5px 0 0 var(--orange); }
.ledger-row:hover .go-arrow { transform: translateX(5px); color: var(--orange-dark); }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card {
  border: 2px solid var(--ink); background: var(--paper); padding: 18px;
  box-shadow: 5px 5px 0 var(--ink); position: relative;
}
.event-card .ev-code { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--orange-dark); }
.event-card h4 { font-size: 15px; font-weight: 800; text-transform: uppercase; margin: 6px 0 12px; }
.event-card ol { list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 9px; }
.event-card ol li {
  counter-increment: st; font-size: 12px; color: var(--ink-2);
  padding-left: 30px; position: relative;
}
.event-card ol li::before {
  content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-size: 10px; font-weight: 800; color: var(--paper); background: var(--ink);
  padding: 2px 4px;
}
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border: 2px solid var(--ink); background: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.audience-card {
  background: var(--paper); border: none; text-align: left; padding: 16px;
  display: flex; flex-direction: column; gap: 6px; min-height: 118px; position: relative;
}
.audience-card .au-code { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--orange-dark); }
.audience-card b { font-size: 14px; font-weight: 800; text-transform: uppercase; }
.audience-card small { font-size: 11.5px; color: var(--ink-2); }
.audience-card:hover { background: var(--orange); }
.audience-card:hover small, .audience-card:hover .au-code { color: var(--ink); }

/* ==========================================================================
   TRIANGULATION OF POWER
   ========================================================================== */
.gov { background: var(--paper); }
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tri-wrap {
  position: relative; border: 2px solid var(--ink); background: var(--paper-2);
  box-shadow: 7px 7px 0 var(--ink); min-height: 380px;
  background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(214,202,168,.6) 39px 40px),
                    repeating-linear-gradient(90deg, transparent 0 39px, rgba(214,202,168,.6) 39px 40px);
}
.tri-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tri-line { stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 5 5; fill: none; }
.tri-node {
  position: absolute; transform: translate(-50%, -50%);
  border: 2px solid var(--ink); background: var(--paper); padding: 9px 13px;
  max-width: 208px; box-shadow: 4px 4px 0 var(--ink); text-align: center;
}
.tri-node::before {
  content: "△"; position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  font-size: 14px; color: var(--orange-dark);
}
.tri-node b { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; }
.tri-node small { font-size: 10.5px; color: var(--ink-2); line-height: 1.4; display: block; }
.tri-crown { left: 50%; top: 13%; }
.tri-commons { left: 21.5%; top: 59%; }
.tri-senate { left: 78.5%; top: 59%; }
.tri-prov { left: 50%; top: 88%; }

.gov-subhead {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin: 26px 0 12px; color: var(--ink);
}
.gov-subhead::before { content: "▸ "; color: var(--orange-dark); }
.plate-gov img { height: 240px; }
.dept-ledger { border: 1.5px solid var(--ink); background: var(--paper); }
.dept-chip {
  display: flex; gap: 12px; align-items: baseline; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--gridline);
  padding: 8px 14px; font-size: 12px; min-height: 34px;
}
.dept-chip .d-no { font-size: 9.5px; font-weight: 800; color: var(--orange-dark); letter-spacing: .08em; flex: none; }
.dept-chip:hover { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--orange); }
.dept-chip.extra { display: none; }
.dept-ledger.expanded .dept-chip.extra { display: flex; }
.dept-toggle {
  margin-top: 12px; border: 1.5px solid var(--ink); background: var(--paper-2);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 16px; min-height: 44px; box-shadow: 3px 3px 0 var(--ink);
}
.dept-toggle:hover { background: var(--orange); }

/* ==========================================================================
   DISPATCHES
   ========================================================================== */
.news { background: var(--paper-2); }
.news-list { display: flex; flex-direction: column; border: 2px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.news-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px;
  border-bottom: 1.5px solid var(--gridline); align-items: center;
}
.news-card:last-child { border-bottom: none; }
.news-card:hover { background: var(--paper-2); box-shadow: inset 5px 0 0 var(--orange); }
.news-card .thumb {
  border: 1.5px solid var(--ink); overflow: hidden; height: 96px;
}
.news-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) sepia(.3); transition: filter .3s;
}
.news-card:hover .thumb img { filter: grayscale(.15) sepia(.1); }
.news-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.news-meta .tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-dark); border: 1.5px solid var(--orange-dark); padding: 2px 7px;
  transform: rotate(-1.2deg); display: inline-block;
}
.news-meta .dt { font-size: 10.5px; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.news-card b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.news-card small { font-size: 12px; color: var(--ink-2); display: block; margin-top: 4px; }

/* ==========================================================================
   NORTHERN OBSERVATORY — finale
   ========================================================================== */
.north { background: var(--night); color: var(--paper); border-bottom: none; overflow: hidden; }
.north-bg { position: absolute; inset: 0; }
.north-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .32; filter: grayscale(.35) brightness(.55) contrast(1.1);
}
#auroraNorth { position: absolute; inset: 0; width: 100%; height: 100%; }
.north-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.north-contours path { fill: none; stroke: rgba(31,224,138,.22); stroke-width: 1.2; }
.north .wrap { position: relative; z-index: 2; }
.north h2 {
  font-size: clamp(30px, 5vw, 56px); font-weight: 800; text-transform: uppercase;
  line-height: 1.02; margin-bottom: 18px; color: var(--paper);
}
.north h2::first-line { color: var(--aurora); }
.north .lede { color: rgba(236,228,208,.75); max-width: 600px; font-size: 14px; margin-bottom: 36px; }
.north .searchbox .field { background: var(--night-2); border-color: var(--aurora); box-shadow: 5px 5px 0 rgba(31,224,138,.4); }
.north .field-prefix { background: var(--night); border-right-color: var(--aurora); color: var(--aurora); }
.north .field input { color: var(--paper); }
.north .field .go { background: var(--aurora); color: var(--night-2); border-left-color: var(--aurora); }
.north .field .go:hover { background: var(--orange); color: var(--ink); }
.north .search-results { background: var(--night-2); border-color: var(--aurora); box-shadow: 6px 6px 0 rgba(31,224,138,.4); color: var(--paper); }
.north .sr-item { border-bottom-color: rgba(31,224,138,.2); color: var(--paper); }
.north .sr-item small { color: rgba(236,228,208,.6); }
.north .sr-item:hover, .north .sr-item.focused { background: rgba(31,224,138,.12); box-shadow: inset 4px 0 0 var(--aurora); }
.north .sr-head { color: var(--aurora); border-bottom-color: rgba(31,224,138,.3); }
.north .sr-empty { color: rgba(236,228,208,.7); }
.north .sr-topics button { background: var(--night); color: var(--paper); border-color: var(--aurora); }
.north-readouts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ==========================================================================
   FOOTER / COLOPHON
   ========================================================================== */
.footer { background: var(--paper); padding: 70px 0 34px; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 44px; }
.footer h5 {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px; color: var(--orange-dark);
}
.footer p, .footer .credits { font-size: 11.5px; color: var(--ink-2); }
.footer a { display: block; font-size: 12px; padding: 6px 0; text-decoration: none; min-height: 32px; }
.footer a:hover { color: var(--orange-dark); text-decoration: underline; }
.footer a::before { content: "▸ "; color: var(--orange-dark); }
.colophon { margin-top: 12px; border-top: 1px dashed var(--ink-2); padding-top: 12px; }
.credits-list summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.credits-list ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.credits-list li { padding-left: 12px; position: relative; }
.credits-list li::before { content: "·"; position: absolute; left: 0; color: var(--orange-dark); }
.footer-bottom {
  border-top: 2px solid var(--ink); padding-top: 22px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.wordmark { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.wordmark svg { width: 24px; height: 24px; }
.footer-lang { font-size: 11px; color: var(--ink-2); flex: 1; min-width: 220px; }
.printed {
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em; color: var(--orange-dark);
  border: 1.5px solid var(--orange-dark); padding: 4px 9px; transform: rotate(-1.5deg);
}
.back-top {
  border: 1.5px solid var(--ink); background: var(--paper-2); padding: 10px 14px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  min-height: 44px; box-shadow: 3px 3px 0 var(--ink);
}
.back-top:hover { background: var(--orange); }
.sheet-ends {
  margin-top: 30px; text-align: center; font-size: 10px; letter-spacing: .2em;
  color: var(--ink-2); text-transform: uppercase;
}

/* ==========================================================================
   DOCK — quick tasks
   ========================================================================== */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: 200; }
.dock-fab {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  padding: 13px 18px; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; box-shadow: 4px 4px 0 rgba(25,21,16,.35); min-height: 48px;
}
.dock-fab svg { width: 17px; height: 17px; color: var(--aurora); }
.dock-fab:hover { background: var(--orange); color: var(--ink); }
.dock-fab:hover svg { color: var(--ink); }
.dock-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 340px; max-width: calc(100vw - 36px);
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
  display: none;
}
.dock.open .dock-panel { display: block; }
.dock-head { padding: 13px 16px; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.dock-head b { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.dock-head small { font-size: 10.5px; color: var(--ink-2); }
.dock-item {
  display: flex; gap: 12px; width: 100%; text-align: left; align-items: center;
  background: none; border: none; border-bottom: 1px solid var(--gridline);
  padding: 11px 16px; min-height: 48px;
}
.dock-item:last-child { border-bottom: none; }
.dock-item .ic { width: 18px; height: 18px; flex: none; color: var(--orange-dark); }
.dock-item .ic svg { width: 100%; height: 100%; }
.dock-item b { display: block; font-size: 12.5px; font-weight: 700; }
.dock-item small { font-size: 10.5px; color: var(--ink-2); }
.dock-item .arr { margin-left: auto; color: var(--ink-2); font-weight: 800; }
.dock-item:hover { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--orange); }

/* ==========================================================================
   MODAL — field form
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 250; display: none; }
.modal.open { display: block; }
.modal .scrim { position: absolute; inset: 0; background: rgba(25,21,16,.55); backdrop-filter: blur(2px); }
.modal .sheet {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px)); max-height: min(84vh, 780px); overflow: auto;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .modal.open .sheet { animation: sheetIn .3s cubic-bezier(.2,.9,.3,1.1); }
  @keyframes sheetIn { from { transform: translate(-50%, -47%) scale(.97); opacity: 0; } }
}
.sheet-close {
  position: sticky; top: 0; float: right; margin: 10px 10px 0 0; z-index: 5;
  width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--paper-2);
  font-size: 15px; font-weight: 800;
}
.sheet-close:hover { background: var(--orange); }
.sheet-hero { padding: 26px 26px 18px; border-bottom: 2px solid var(--ink); background: var(--paper-2); position: relative; }
.sheet-hero .kicker { margin-bottom: 8px; }
.sheet-hero h3 { font-size: 21px; font-weight: 800; text-transform: uppercase; line-height: 1.15; margin-bottom: 8px; padding-right: 44px; }
.sheet-hero p { font-size: 12.5px; color: var(--ink-2); padding-right: 30px; }
.sheet-hero .form-no {
  position: absolute; top: 14px; right: 60px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .12em; color: var(--orange-dark); border: 1.5px solid var(--orange-dark);
  padding: 3px 7px; transform: rotate(2deg);
}
.sheet-body { padding: 22px 26px 28px; }
.field-row { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.field-row .f { flex: 1; min-width: 200px; }
.field-row label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.sheet input[type="date"], .sheet select {
  width: 100%; border: 2px solid var(--ink); background: var(--paper); padding: 11px 12px;
  font-family: inherit; font-size: 13px; min-height: 46px; color: var(--ink);
}
.btn-primary {
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 13px 20px; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; box-shadow: 4px 4px 0 var(--orange); min-height: 48px;
}
.btn-primary:hover { background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.timeline { margin-top: 20px; display: none; flex-direction: column; gap: 0; }
.timeline.show { display: flex; }
.timeline-step { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0 10px 4px; position: relative; }
.timeline-step::before {
  content: ""; position: absolute; left: 11px; top: 0; bottom: 0; border-left: 2px dashed var(--ink-2);
}
.timeline-step:first-child::before { top: 16px; }
.timeline-step:last-child::before { bottom: auto; height: 16px; }
.timeline-dot {
  width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper); position: relative; z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--orange); }
.timeline-step.now .timeline-dot { background: var(--aurora); box-shadow: 0 0 0 4px rgba(31,224,138,.3); }
.timeline-step b { display: block; font-size: 13px; font-weight: 700; }
.timeline-step small { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.timeline-note {
  margin-top: 14px; font-size: 11px; color: var(--ink-2); border: 1.5px dashed var(--ink-2);
  padding: 10px 12px; letter-spacing: .02em;
}
.meter-result { margin-top: 18px; display: none; }
.meter-result.show { display: block; }
.meter-num { font-size: 42px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.meter-num span { font-size: 14px; font-weight: 600; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .08em; }
.meter-bar { margin-top: 12px; height: 18px; border: 2px solid var(--ink); background: var(--paper-2); position: relative; }
.meter-fill { height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--orange) 0 8px, var(--orange-dark) 8px 16px); transition: width .8s cubic-bezier(.2,.9,.3,1); }
.meter-scale { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 5px; }
.check-steps { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--ink); }
.check-step {
  display: flex; gap: 14px; align-items: flex-start; padding: 13px 14px; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--gridline); font-size: 13px;
}
.check-step:last-child { border-bottom: none; }
.check-step .n {
  width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); background: var(--paper-2); font-weight: 800; font-size: 12px;
}
.check-step .n svg { width: 14px; height: 14px; }
.check-step b { display: block; font-weight: 700; }
.check-step small { color: var(--ink-2); font-size: 11.5px; }
button.check-step:hover { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--orange); width: 100%; }
.quiz-q { margin-bottom: 18px; }
.q-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1.5px solid var(--ink); background: var(--paper-2); padding: 9px 13px;
  font-size: 11.5px; font-weight: 600; min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--orange); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 800; }
.quiz-results { margin-top: 20px; display: none; }
.quiz-results.show { display: block; }
.quiz-results .count { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; color: var(--orange-dark); }
.match-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--gridline); }
.match-item:last-child { border-bottom: none; }
.match-item .tick {
  width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); background: var(--aurora); font-weight: 800; font-size: 12px; color: var(--ink);
}
.match-item b { display: block; font-size: 13px; }
.match-item small { font-size: 11.5px; color: var(--ink-2); }

/* ==========================================================================
   MENU SHEET
   ========================================================================== */
.menu-sheet { position: fixed; inset: 0; z-index: 240; display: none; }
.menu-sheet.open { display: block; }
.menu-sheet .scrim { position: absolute; inset: 0; background: rgba(25,21,16,.5); }
.menu-sheet .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--paper); border-left: 2px solid var(--ink); padding: 22px;
  display: flex; flex-direction: column; gap: 4px; overflow: auto;
}
.menu-sheet h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; color: var(--orange-dark); }
.menu-sheet a {
  text-decoration: none; font-size: 14px; font-weight: 700; text-transform: uppercase;
  padding: 13px 10px; border: 1.5px solid var(--ink); margin-bottom: 8px; min-height: 48px;
  display: flex; align-items: center; background: var(--paper-2);
}
.menu-sheet a:hover { background: var(--orange); }
.close-btn {
  align-self: flex-end; width: 44px; height: 44px; border: 2px solid var(--ink);
  background: var(--paper-2); font-size: 16px; font-weight: 800; margin-bottom: 10px;
}
.menu-lang { margin-top: 12px; min-height: 48px; }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px);
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--aurora);
  padding: 11px 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  z-index: 300; opacity: 0; transition: all .3s; pointer-events: none;
  text-transform: uppercase;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 1280px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 1180px) {
  .legend-rail { display: none; }
}
@media (max-width: 1020px) {
  .hud-readout { display: none; }
  .hud-nav .nav-link { display: none; }
  .menu-btn { display: flex; }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .panel { padding: 64px 0; }
  .hero { padding: 44px 0 70px; min-height: 0; }
  .hero-title { font-size: clamp(30px, 10vw, 44px); }
  .hero-compass { display: none; }
  .scroll-cue { display: none; }
  .hero-meta { position: static; margin-top: 22px; flex-wrap: wrap; gap: 10px; }
  .fn-grid { grid-template-columns: 1fr; gap: 26px; }
  .plate img { height: 230px; }
  .req-grid { grid-template-columns: 1fr; }
  .req-card { min-height: 0; }
  .event-grid, .audience-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .news-card .thumb { height: 150px; }
  .tab-row { width: 100%; }
  .tab { flex: 1; padding: 12px 8px; font-size: 10.5px; }
  .ledger-row { grid-template-columns: 44px 22px 1fr auto; gap: 9px; padding: 11px 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .dock { right: 12px; left: 12px; bottom: 12px; }
  .dock-fab { width: 100%; justify-content: center; }
  .dock-panel { width: 100%; right: 0; }
  .stamp-big { position: static; margin-bottom: 12px; }
  .chart-legend { position: relative; margin: 10px; box-shadow: none; z-index: 4; }
  .chart-scale { display: none; }
  .chart-caption { position: relative; display: block; margin: 10px; width: max-content; max-width: calc(100% - 20px); z-index: 4; }
  .pin .pin-tag { display: none; }
  .tri-wrap { min-height: 330px; }
  .tri-node { max-width: 150px; padding: 7px 8px; }
  .tri-node small { display: none; }
  .modal .sheet { width: calc(100vw - 20px); }
  .sig-text span { display: none; }
}
@media (max-width: 420px) {
  .hud-inner { gap: 10px; padding: 0 12px; }
  .sig-text b { font-size: 11px; }
  .readouts { gap: 8px; }
  .readout { min-width: calc(50% - 8px); flex: 1; padding: 8px 12px; }
  .readout b { font-size: 21px; }
}
