/* ============================================================
   TRAVERSE — a field survey of everyday city life
   Design C: Blueprint Technical, light "paper + cyan ink" variant
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #EDF3F8;            /* cool survey paper */
  --surface: #F7FAFC;       /* raised plate */
  --plate: #FFFFFF;
  --ink: #142A40;           /* deep survey ink */
  --muted: #46607A;
  --line: rgba(20, 42, 64, .22);
  --hairline: rgba(20, 42, 64, .14);
  --accent: #2D7DD2;        /* cyan — lines, markers, fills */
  --accent-ink: #1B62A8;    /* text-safe cyan */
  --accent-tint: rgba(45, 125, 210, .10);
  --navy: #0F3057;          /* fills, inverted band */
  --navy-soft: #8FC1F2;     /* cyan on navy */
  --grid: rgba(45, 125, 210, .09);
  --f-disp: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap-pad: clamp(20px, 4vw, 48px);
}

@font-face { font-family: "Oswald";       src: url("assets/oswald.ttf")       format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans";    src: url("assets/work-sans.ttf")    format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono";src: url("assets/ibm-plex-mono.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, p, dl, ol, ul, figure { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--f-mono); }
.svg-mono { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; }

/* ---------- layout primitives ---------- */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--wrap-pad); }

/* ---------- sheet frame (decorative drawing border) ---------- */
.sheet-frame {
  position: fixed; inset: 8px; z-index: 60;
  border: 1.5px solid var(--ink);
  pointer-events: none;
}
.reg { position: absolute; width: 14px; height: 14px; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--accent); }
.reg::before { width: 14px; height: 1.5px; top: 6.25px; }
.reg::after   { width: 1.5px; height: 14px; left: 6.25px; }
.reg-tl { top: -8px; left: -8px; }  .reg-tr { top: -8px; right: -8px; }
.reg-bl { bottom: -8px; left: -8px; } .reg-br { bottom: -8px; right: -8px; }
.frame-label {
  position: absolute; font-size: 9px; letter-spacing: .22em; color: var(--muted);
  writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap;
}
.frame-label-l { left: -1px; top: 50%; transform: translate(-50%, -50%) rotate(180deg); }
.frame-label-r { right: -1px; top: 50%; transform: translate(50%, -50%); }
@media (max-width: 900px) { .frame-label { display: none; } }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1.5px solid var(--ink); background: var(--bg); }
.masthead-in {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; padding-block: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; padding-block: 10px; padding-inline: 2px;
  border-radius: 2px;
  transition: transform 160ms var(--ease);
}
.brand:active { transform: scale(.98); }
.brand-mark { width: 26px; height: 26px; color: var(--ink); flex: none; }
.brand-name {
  font-family: var(--f-disp); font-size: 26px; letter-spacing: .02em;
  text-transform: uppercase; line-height: 1;
}
.mast-tag { margin-left: auto; font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }
.mast-clock { font-size: 10.5px; letter-spacing: .14em; color: var(--accent-ink); white-space: nowrap; }
.mast-clock::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: blink 2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 720px) { .mast-tag { display: none; } .mast-clock { margin-left: auto; } }

/* ---------- hero ---------- */
.hero {
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1.5px solid var(--ink);
  overflow: clip;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 4vw, 64px);
  padding-block: clamp(48px, 7vh, 88px) clamp(48px, 6vh, 72px);
  align-items: center;
  min-height: min(620px, calc(100vh - 70px));
}
.kicker { font-size: 11.5px; letter-spacing: .2em; color: var(--accent-ink); margin-bottom: 22px; }
.h1-line {
  display: block;
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(56px, 8.4vw, 124px);
  line-height: .98; letter-spacing: -.005em;
  text-transform: uppercase;
  opacity: 0; transform: translateY(16px);
  animation: settle 640ms var(--ease) forwards;
}
.h1-line:nth-child(2) { animation-delay: 90ms; color: var(--accent-ink); }
.h1-line:nth-child(3) { animation-delay: 180ms; color: var(--navy); }
@keyframes settle { to { opacity: 1; transform: none; } }
.lede {
  margin-top: 26px; max-width: 52ch;
  font-size: 18.5px; line-height: 1.62; color: var(--muted);
  opacity: 0; animation: fadein 600ms var(--ease) 200ms forwards;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
  opacity: 0; animation: fadein 600ms var(--ease) 320ms forwards; }
.hero-note { margin-top: 26px; font-size: 10.5px; letter-spacing: .18em; color: var(--muted);
  opacity: 0; animation: fadein 600ms var(--ease) 420ms forwards; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  border: 1.5px solid var(--ink); border-radius: 2px;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-glyph { font-family: var(--f-body); font-size: 15px; line-height: 1; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 4px 4px 0 var(--accent); }
.btn-outline { background: var(--plate); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }

/* focus states — per context */
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctl-input:focus-visible, .ctl-select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.plan-point:focus-visible { outline: 2px solid var(--accent); outline-offset: 0;
  border-radius: 50%; background: var(--accent-tint); }

/* ---------- the plotted plan ---------- */
.plan { margin: 0; }
.plan-canvas {
  position: relative; background: var(--surface);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent-tint);
  overflow: clip;
}
.plan-svg { display: block; width: 100%; height: auto; }
.plan-svg .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 850ms var(--ease) forwards; }
.plan-svg .canal { stroke-dasharray: .08 .07; }
.plan-svg .ln-2 { animation-delay: 120ms; } .plan-svg .ln-3 { animation-delay: 240ms; }
.plan-svg .ln-4 { animation-delay: 340ms; } .plan-svg .ln-5 { animation-delay: 430ms; }
.plan-svg .dim { opacity: 0; animation: fadein 500ms var(--ease) 700ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.plan-cap {
  margin-top: 12px; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); text-align: right;
}

/* station points on the plan (live buttons) */
.plan-point {
  position: absolute; left: var(--x); top: var(--y);
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  animation: pt-in 400ms var(--ease) both;
  transition: opacity 200ms var(--ease);
}
@keyframes pt-in { from { opacity: 0; } }
.plan-point:nth-of-type(1) { animation-delay: .7s; } .plan-point:nth-of-type(2) { animation-delay: .78s; }
.plan-point:nth-of-type(3) { animation-delay: .86s; } .plan-point:nth-of-type(4) { animation-delay: .94s; }
.plan-point:nth-of-type(5) { animation-delay: 1.02s; } .plan-point:nth-of-type(6) { animation-delay: 1.1s; }
.plan-point:nth-of-type(7) { animation-delay: 1.18s; } .plan-point:nth-of-type(8) { animation-delay: 1.26s; }
.plan-point .pt-dot {
  position: relative; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--ink);
  transition: transform 180ms var(--ease);
}
.plan-point .pt-dot::before, .plan-point .pt-dot::after {
  content: ""; position: absolute; background: var(--ink);
}
.plan-point .pt-dot::before { left: 50%; top: -9px; bottom: -9px; width: 1.5px; transform: translateX(-50%); }
.plan-point .pt-dot::after  { top: 50%; left: -9px; right: -9px; height: 1.5px; transform: translateY(-50%); }
.plan-point .pt-ring {
  position: absolute; left: calc(50% - 6.5px); top: calc(50% - 6.5px);
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
.pt-chip {
  position: absolute; bottom: calc(100% + 2px); left: 50%;
  transform: translate(-50%, 6px);
  width: max-content; max-width: 190px;
  background: var(--navy); color: #fff;
  font-size: 10px; letter-spacing: .1em; line-height: 1.5;
  padding: 7px 10px; border-radius: 2px; text-align: left;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.pt-chip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--navy);
}
.pt-chip.flip { left: auto; right: 50%; transform: translate(6px, 6px); }
.pt-chip.flip::after { left: auto; right: 6px; transform: none; }
.pt-chip.flop { transform: translate(-6px, 6px); }
.pt-chip.flop::after { left: 6px; transform: none; }
.plan-point.is-off { opacity: .22; }

/* ---------- instrument panel (sticky) ---------- */
.panel-wrap { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.panel {
  display: flex; align-items: flex-end; gap: clamp(14px, 2.4vw, 32px);
  padding-block: 14px; flex-wrap: wrap;
}
.ctl { display: flex; flex-direction: column; gap: 7px; flex: 1 1 180px; max-width: 320px; }
.ctl-label { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }
.ctl-input, .ctl-select {
  font-family: var(--f-body); font-size: 16px; color: var(--ink);
  background: var(--plate); border: 1.5px solid var(--ink); border-radius: 2px;
  min-height: 48px; padding: 10px 14px; width: 100%;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.ctl-select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23142A40' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 38px;
}
.ctl-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--plate);
  min-height: 48px; padding: 10px 16px; width: 100%; text-align: left;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.ctl-toggle:active { transform: scale(.98); }
.toggle-box {
  width: 16px; height: 16px; flex: none; border: 1.5px solid var(--ink); border-radius: 2px;
  position: relative; transition: background-color 160ms var(--ease);
}
.toggle-box::after {
  content: ""; position: absolute; inset: 2.5px; background: var(--navy);
  transform: scale(0); transition: transform 160ms var(--ease);
}
.ctl-toggle[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ctl-toggle[aria-pressed="true"] .toggle-box { border-color: #fff; }
.ctl-toggle[aria-pressed="true"] .toggle-box::after { transform: scale(1); }
.toggle-count {
  margin-left: auto; font-size: 11px; letter-spacing: .08em;
  border: 1px solid currentColor; border-radius: 2px; padding: 2px 7px;
}
.count {
  margin-left: auto; align-self: center;
  font-size: 11px; letter-spacing: .16em; color: var(--accent-ink); white-space: nowrap;
}

/* ---------- index of stations ---------- */
.index { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 7vw, 96px); }
.stations { border-top: 1.5px solid var(--ink); }
.station { border-bottom: 1px solid var(--line); }
.margin-note {
  display: flex; gap: 14px; align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-block: 18px 20px;
  font-size: 10.5px; letter-spacing: .14em; color: var(--muted);
  background: var(--surface);
}
.margin-note .mn-cross { color: var(--accent); font-size: 14px; flex: none; }
.margin-note p { max-width: 72ch; }
.station-card {
  position: relative;
  display: grid; grid-template-columns: 96px 1fr 96px; gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
  padding-block: clamp(20px, 2.4vw, 28px);
}
.sta-no {
  font-size: 13px; letter-spacing: .14em; color: var(--accent-ink);
  padding-top: 5px; word-break: break-word;
}
.sta-no .sta-mark {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--ink);
  margin-bottom: 10px;
}
.sta-title {
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(23px, 2.6vw, 30px); line-height: 1.12; letter-spacing: .01em;
}
/* featured lead station — the newest survey entry gets plate scale */
.station.is-lead .station-card { grid-template-columns: 96px 1fr 150px; padding-block: clamp(30px, 3.2vw, 42px); }
.station.is-lead .sta-title { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.06; }
.station.is-lead .sta-sum { font-size: 17.5px; }
.station.is-lead .sta-thumb { width: 150px; }
.sta-sum { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 62ch; }
.sta-meta { margin-top: 12px; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.sta-thumb { width: 96px; justify-self: end; }
.sta-thumb svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); }
.sta-kept {
  position: absolute; top: 20px; right: 0;
  font-size: 9.5px; letter-spacing: .16em;
  background: var(--navy); color: #fff; padding: 4px 9px; border-radius: 2px;
}
.station-card:has(.sta-kept:not([hidden])) .sta-thumb { margin-top: 46px; }
.open-btn {
  position: absolute; inset: 0; z-index: 1;
  border-radius: 2px;
  transition: background-color 180ms var(--ease);
}
.open-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.open-btn:active { background: rgba(45, 125, 210, .16); }
.plan-point:active { transform: translate(-50%, -50%) scale(.9); }
.ctl-toggle:focus-visible, .fi-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.d-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.d-title:focus:not(:focus-visible) { outline: none; }
.interlude .btn:focus-visible { outline-color: #fff; }
.sta-hint {
  position: absolute; right: clamp(20px, 2.4vw, 36px); bottom: 16px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--accent-ink); opacity: 0; transform: translateX(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  pointer-events: none;
}

/* ---------- empty state ---------- */
.empty {
  max-width: 560px; margin: 8px auto 0; text-align: center;
  padding: clamp(40px, 6vw, 72px) 24px;
  border: 1.5px dashed var(--line); border-radius: 2px;
  background: var(--surface);
}
.empty-mark { width: 96px; height: 96px; margin: 0 auto 22px; }
.empty-title { font-family: var(--f-disp); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; }
.empty-body { margin-top: 12px; color: var(--muted); }
.empty .btn { margin-top: 28px; }
.noscript { margin-top: 32px; font-size: 13px; color: var(--accent-ink); border: 1.5px dashed var(--accent);
  padding: 16px 20px; border-radius: 2px; background: var(--surface); }

/* ---------- interlude (navy full-bleed) ---------- */
.interlude {
  position: relative; overflow: clip;
  background: var(--navy); color: #fff;
  border-top: 1.5px solid var(--ink);
  background-image:
    linear-gradient(to right, rgba(143, 193, 242, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 193, 242, .08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.side-label {
  position: absolute; left: 26px; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 10px; letter-spacing: .3em; color: var(--navy-soft);
  border-right: 1px solid rgba(143, 193, 242, .35);
  padding-left: 16px; max-height: 100%;
}
.interlude-in { padding-block: clamp(72px, 9vw, 128px); max-width: 900px; }
.interlude-quote-mark { font-size: 11px; letter-spacing: .24em; color: var(--navy-soft); }
.interlude-quote {
  margin-top: 18px;
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(40px, 5.8vw, 88px); line-height: 1.04; letter-spacing: 0;
}
.interlude-src { margin-top: 22px; font-size: 11px; letter-spacing: .18em; color: var(--navy-soft); }
.interlude .btn { margin-top: 34px; }
.interlude .btn:active { background: #fff; color: var(--navy); }

/* ---------- detail sheet ---------- */
.detail { padding-block: 28px clamp(64px, 7vw, 96px); background: var(--bg); }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 10px 34px; }
.d-sheetno { font-size: 11px; letter-spacing: .18em; color: var(--accent-ink); }
.d-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.d-notes { position: sticky; top: 96px; }
.d-sketch svg { display: block; width: 100%; height: auto; border: 1.5px solid var(--ink); background: var(--surface); }
.d-sketchcap { margin-top: 10px; font-size: 9.5px; letter-spacing: .18em; color: var(--muted); }
.d-meta {
  margin-top: 26px; border-top: 1.5px solid var(--ink);
}
.d-meta .row { display: grid; grid-template-columns: 88px 1fr; gap: 10px;
  padding-block: 10px; border-bottom: 1px solid var(--line); }
.d-meta dt { font-size: 9.5px; letter-spacing: .18em; color: var(--muted); padding-top: 3px; }
.d-meta dd { margin: 0; font-size: 12.5px; letter-spacing: .04em; line-height: 1.55; overflow-wrap: anywhere; }
.d-save { margin-top: 26px; width: 100%; justify-content: center; }
.d-save[aria-pressed="true"] { background: var(--accent-ink); border-color: var(--accent-ink); box-shadow: 4px 4px 0 var(--navy); }
.d-kicker { font-size: 11.5px; letter-spacing: .22em; color: var(--accent-ink); }
.d-title {
  margin-top: 14px;
  font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.05; letter-spacing: .005em;
}
.d-summary { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.d-rule { margin-top: 28px; height: 1.5px; background: var(--ink); position: relative; }
.d-rule::after {
  content: ""; position: absolute; left: 0; top: -4.5px;
  width: 10px; height: 10px; background: var(--accent); border: 1.5px solid var(--ink); border-radius: 50%;
}
.d-body { margin-top: 26px; max-width: 62ch; }
.d-body p { font-size: 17.5px; line-height: 1.68; margin-bottom: 1.35em; }
.d-body p:first-child { font-size: 19.5px; line-height: 1.6; }
.d-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; flex-wrap: wrap; }

/* ---------- footer title block ---------- */
.footer { border-top: 1.5px solid var(--ink); background: var(--surface); padding-block: 0 40px; }
.title-block {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr;
  border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--plate);
}
.tb-cell { padding: 18px 20px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; min-height: 108px; }
.tb-cell:first-child { border-left: none; justify-content: center; }
.tb-brand { background: var(--navy); color: #fff; }
.tb-name { font-family: var(--f-disp); font-size: 34px; text-transform: uppercase; line-height: 1; }
.tb-sub { font-size: 9px; letter-spacing: .2em; color: var(--navy-soft); }
.tb-label { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.tb-val { font-size: 14px; line-height: 1.45; }
.footer-index { display: flex; flex-wrap: wrap; gap: 8px 10px; padding-block: 22px; }
.fi-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--accent-ink);
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--plate);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease);
}
.fi-btn:active { transform: scale(.97); }
.fi-btn .fi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 1px solid var(--ink); }
.colophon { font-size: 9.5px; letter-spacing: .14em; line-height: 2; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ============ hover states (pointer only) ============ */
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark { color: var(--accent-ink); }
  .brand:hover .brand-name { color: var(--navy); }
  .btn-navy:hover { background: var(--accent-ink); box-shadow: 6px 6px 0 var(--navy); }
  .btn-outline:hover { background: var(--accent-tint); border-color: var(--accent-ink); }
  .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
  .open-btn:hover { background: var(--accent-tint); }
  .open-btn:hover + .sta-hint, .open-btn:focus-visible + .sta-hint { opacity: 1; transform: none; }
  .station-card:hover .sta-mark { transform: scale(1.35); }
  .sta-mark { transition: transform 180ms var(--ease); }
  .plan-point:hover .pt-dot { transform: scale(1.45); }
  .plan-point:hover .pt-chip, .plan-point:focus-visible .pt-chip,
  .plan-point:focus-within .pt-chip { opacity: 1; transform: translate(-50%, 0); }
  .plan-point:hover .pt-chip.flip, .plan-point:focus-visible .pt-chip.flip,
  .plan-point:focus-within .pt-chip.flip { opacity: 1; transform: translate(6px, 0); }
  .plan-point:hover .pt-chip.flop, .plan-point:focus-visible .pt-chip.flop,
  .plan-point:focus-within .pt-chip.flop { opacity: 1; transform: translate(-6px, 0); }
  .plan-point:hover { opacity: 1; }
  .ctl-input:hover, .ctl-select:hover { border-color: var(--accent-ink); }
  .ctl-toggle:hover { border-color: var(--accent-ink); }
  .ctl-toggle:not([aria-pressed="true"]):hover { background: var(--accent-tint); }
  .fi-btn:hover { border-color: var(--accent-ink); background: var(--accent-tint); }
  .d-save:not([aria-pressed="true"]):hover { background: var(--accent-ink); }
  .d-save[aria-pressed="true"]:hover { background: var(--accent-ink); box-shadow: 2px 2px 0 var(--navy); }
  .d-nav .btn:hover { background: var(--accent-tint); }
}

/* ============ responsive ============ */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .plan { max-width: 640px; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-left: none; border-top: 1px solid var(--line); min-height: 0; }
  .tb-cell:first-child { border-top: none; grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .d-grid { grid-template-columns: 1fr; }
  .d-notes { position: static; display: grid; grid-template-columns: 200px 1fr; gap: 0 24px; align-items: start; }
  .d-save { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .panel { align-items: stretch; flex-direction: column; gap: 14px; }
  .ctl { max-width: none; }
  .count { margin-left: 0; padding-block: 2px; }
  .station-card { grid-template-columns: 64px 1fr; }
  .sta-no .sta-mark { margin-bottom: 6px; }
  .sta-thumb { display: none; }
  .sta-kept { right: 4px; top: 16px; }
  .sta-hint { display: none; }
  .interlude-in { padding-block: 64px; }
  .side-label { display: none; }
  .d-notes { grid-template-columns: 1fr; }
  .d-body p { font-size: 16.5px; }
  .d-body p:first-child { font-size: 18px; }
  .title-block { grid-template-columns: 1fr; }
  .tb-cell { min-height: 0; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .h1-line, .lede, .hero-cta, .hero-note, .plan-svg .dim { opacity: 1; transform: none; }
  .plan-svg .ln { stroke-dashoffset: 0; }
  .plan-point .pt-ring { display: none; }
}
