/* ============================================================
   MARIOS Z. DARDAS — EXPEDITION ATLAS (v2)
   Design system: golden-age cartography / parchment field journal
   ============================================================ */

/* ---------- fonts ---------- */
/* Fraunces mapped onto the existing weight scale: 300→400 file, 500→600, 700→700 */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('../fonts/courier-prime-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('../fonts/courier-prime-latin-700-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* EXPEDITION ATLAS — parchment. Variable names kept (they're wired through
     ~40 composites); values re-mapped: ink-* now reads "paper-*". */
  --ink-0: #e8dcc3;          /* page paper */
  --ink-1: #e2d4b7;          /* section base */
  --ink-2: #dbcaa9;          /* raised panel */
  --ink-3: #cdb98f;          /* panel border base */
  --line: rgba(70, 54, 36, 0.22);
  --line-strong: rgba(70, 54, 36, 0.40);
  --text-hi: #2b2118;        /* iron-gall ink */
  --text-mid: #55432f;
  --text-lo: #85704f;
  --signal: #6e2f1e;         /* oxblood — seals, live marks, links */
  --signal-dim: rgba(110, 47, 30, 0.55);
  --signal-rgb: 110, 47, 30;
  --amber: #8a6a24;          /* brass — sector labels, secondary accent */
  --amber-rgb: 138, 106, 36;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
}

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

html { scroll-behavior: auto; }
html, body { overscroll-behavior-y: none; }

body {
  background: var(--ink-0);
  color: var(--text-hi);
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(var(--signal-rgb), 0.22); color: var(--text-hi); }

/* ---------- utility ---------- */
.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}
.tag::before { content: '§ '; color: var(--text-lo); }

/* ---------- paper grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- fixed chrome ---------- */
#topo-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 10%, transparent 42%, rgba(94, 74, 46, 0.28) 100%),
    linear-gradient(to bottom, rgba(94,74,46,0.10), transparent 18%, transparent 82%, rgba(94,74,46,0.20));
}

.frame-hud {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--text-lo); text-transform: uppercase;
}
.frame-hud .hud-corner { position: fixed; padding: 14px 18px; }
.hud-tl, .hud-tr { display: none; } /* top corners collide with nav */
.hud-bl { bottom: 0; left: 0; }
.hud-br { bottom: 0; right: 0; text-align: right; }
.hud-br .val, .hud-bl .val { color: var(--signal-dim); }

@media (max-width: 720px) {
  .hud-bl, .hud-br { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s ease;
}
/* NO backdrop-filter here: filters on .nav make it the containing block for
   the fixed .nav-links overlay, trapping the menu inside the bar (transparent-
   menu bug on phones). Solid-ish background instead. */
.nav.scrolled {
  background: rgba(235, 224, 200, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; color: var(--text-hi); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .blip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(var(--signal-rgb), 0.9);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none; color: var(--text-mid);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a .idx { color: var(--text-lo); margin-right: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--signal); }
.nav-links a:focus { outline: none; }
.nav-links a:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav.scrolled { background: #ebe0c8; } /* fully solid: no title ghosting */
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8vh; padding: 0 var(--gutter);
    background: #ece2cb; /* opaque: nothing may show through the open menu */
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-links a { font-size: 18px; }
  .nav.menu-open .nav-links { opacity: 1; pointer-events: auto; z-index: 60; }
  .nav-toggle {
    display: block; background: none; border: 0; cursor: pointer;
    width: 40px; height: 32px; position: relative; z-index: 70;
  }
  .nav-toggle span {
    display: block; height: 1.5px; background: var(--text-hi);
    margin: 7px 0 7px auto; transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s;
  }
  .nav-toggle span:nth-child(1) { width: 28px; }
  .nav-toggle span:nth-child(2) { width: 20px; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); width: 26px; }
  .nav.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4.3px) rotate(-45deg); width: 26px; }
}

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink-0);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
}
.loader .crosshair {
  width: 68px; height: 68px; position: relative;
}
.loader .crosshair::before, .loader .crosshair::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(var(--signal-rgb), 0.5);
}
.loader .crosshair::after {
  animation: sonar 1.6s ease-out infinite;
}
@keyframes sonar {
  from { transform: scale(0.4); opacity: 0.9; }
  to { transform: scale(1.5); opacity: 0; }
}
.loader .cross-dot {
  position: absolute; top: 50%; left: 50%; width: 6px; height: 6px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 14px rgba(var(--signal-rgb), 0.9);
}
.loader-line { font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; color: var(--text-mid); text-transform: uppercase; }
.loader-pct { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: 0.2em; }

/* ---------- sections shared ---------- */
main { position: relative; z-index: 10; }
section { position: relative; padding: clamp(96px, 14vh, 170px) 0; }

.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(36px, 6vh, 64px); }
@media (max-width: 640px) {
  .sec-head { flex-wrap: wrap; row-gap: 10px; }
  .sec-head .rule { display: none; }
  .sec-head .tag { flex-basis: 100%; order: 4; }
  .scroll-cue { display: none; }
}
.sec-head .rule { flex: 1; height: 1px; background: var(--line); position: relative; top: -4px; }
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.1;
}
.sec-num { font-family: var(--mono); font-size: 12px; color: var(--text-lo); letter-spacing: 0.2em; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 92px; padding-bottom: 96px;
}
.hero-coord {
  font-family: var(--mono); font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 0.3em; color: var(--text-mid); text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.hero-coord .dash { width: 44px; height: 1px; background: var(--signal-dim); display: inline-block; }
.hero h1 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700; line-height: 0.97; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .row > span { display: inline-block; }
.hero h1 .thin { font-weight: 300; color: var(--text-mid); }

.hero-sub {
  margin-top: 28px; max-width: 620px;
  display: flex; gap: 20px; align-items: flex-start;
}
.hero-sub .tick { width: 10px; height: 10px; margin-top: 7px; flex: none; border: 1px solid var(--signal); transform: rotate(45deg); }
.hero-sub p { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-mid); }
.hero-sub strong { color: var(--text-hi); font-weight: 500; }

.hero-meta {
  margin-top: clamp(30px, 5vh, 60px);
  display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 56px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--text-lo); text-transform: uppercase;
}
.hero-meta .item .k { display: block; margin-bottom: 5px; }
.hero-meta .item .v { color: var(--text-hi); font-size: 12px; }
.hero-meta .item .v.sig { color: var(--signal); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--text-lo); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .stem { width: 1px; height: 44px; background: linear-gradient(to bottom, transparent, var(--signal)); animation: stem 2s ease-in-out infinite; }
@keyframes stem { 0%,100% { transform: scaleY(0.6); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- brief / about ---------- */
.brief-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .brief-grid { grid-template-columns: 1fr; } }

.brief-lede {
  font-size: clamp(19px, 2.5vw, 30px);
  font-weight: 300; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--text-mid);
}
.brief-lede em { font-style: normal; color: var(--text-hi); font-weight: 500; }
.brief-lede .hl { color: var(--signal); font-weight: 500; }

.brief-body { margin-top: 28px; color: var(--text-mid); font-size: 15.5px; max-width: 56ch; }
.brief-body + .brief-body { margin-top: 16px; }

.dossier {
  border: 1px solid var(--line); background: rgba(246, 238, 218, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 26px 26px 10px;
  position: relative;
}
.dossier::before {
  content: 'FIELD RECORD'; position: absolute; top: -8px; left: 18px;
  background: var(--ink-0); padding: 0 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; color: var(--text-lo);
}
.dossier .drow {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.dossier .drow:last-child { border-bottom: 0; }
.dossier .dk { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-lo); padding-top: 2px; flex: none; }
.dossier .dv { text-align: right; color: var(--text-hi); font-weight: 300; }
.dossier .dv .sub { display: block; color: var(--text-lo); font-size: 11.5px; }

/* ---------- stats band ---------- */
.stats-band {
  margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: clamp(22px, 3.4vw, 40px) clamp(14px, 2vw, 28px);
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
@media (max-width: 860px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.stat .num {
  font-size: clamp(30px, 4.6vw, 58px); font-weight: 500; letter-spacing: -0.02em;
  color: var(--text-hi); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .num .unit { color: var(--signal); }
.stat .lbl { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-lo); }

/* ---------- traverse / timeline ---------- */
.traverse { position: relative; }
.trav-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 960px) { .trav-layout { grid-template-columns: 1fr; } }

.trav-map-wrap { position: relative; }
.trav-map-sticky { position: sticky; top: 90px; }
@media (max-width: 960px) {
  /* compact hovering chart: the whole map wrap pins below the nav and the
     journey entries scroll beneath it */
  .trav-layout { display: block; }
  .trav-map-wrap { position: sticky; top: 58px; z-index: 30; margin-bottom: 20px; }
  /* vanish band: continuous from the chart's bottom edge — opaque for the
     first 50px (vanish point sits lower per owner tuning), then fades.
     No gap: a gap lets content resurface between map and haze. No skirt
     above the map (owner tuning 2026-07-07). */
  .trav-map-wrap::after {
    content: ''; position: absolute; left: 0; right: 0;
    top: 100%; height: 91px; pointer-events: none; /* 114px - 20% (owner tuning) */
    background: linear-gradient(to bottom,
      rgba(232, 220, 195, 0.97) 0%,
      rgba(232, 220, 195, 0.97) 44%,
      rgba(232, 220, 195, 0.9) 58%,
      rgba(232, 220, 195, 0) 100%);
  }
  .trav-map-sticky { position: static; top: auto; margin-bottom: 0; max-height: none; }
  /* .trav-map-wrap prefix beats the base .trav-map rule that appears LATER
     in this sheet — do not reduce this selector's specificity */
  .trav-map-wrap .trav-map {
    aspect-ratio: auto;
    height: min(30svh, 260px);
    max-height: none;
    background:
      linear-gradient(rgba(var(--signal-rgb), 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(var(--signal-rgb), 0.035) 1px, transparent 1px),
      #ece1c6; /* opaque: entries scroll beneath */
    background-size: 40px 40px, 40px 40px, auto;
    box-shadow: 0 12px 26px rgba(43, 33, 24, 0.16);
  }
}
.trav-map {
  width: 100%; aspect-ratio: 1 / 1.06; max-height: calc(100svh - 130px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(var(--signal-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--signal-rgb), 0.035) 1px, transparent 1px),
    rgba(240, 231, 207, 0.60);
  background-size: 40px 40px, 40px 40px, auto;
  position: relative; overflow: hidden;
}
.trav-map svg { width: 100%; height: 100%; display: block; }
.trav-map .map-hud {
  position: absolute; top: 10px; left: 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--text-lo); text-transform: uppercase;
}
.trav-map .map-hud .live { color: var(--signal); }
.trav-map .map-scale {
  position: absolute; bottom: 10px; right: 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--text-lo);
  display: flex; align-items: center; gap: 8px;
}
.trav-map .map-scale::before { content: ''; width: 48px; height: 5px; border: 1px solid var(--text-lo); border-top: 0; display: block; }

.trav-route { fill: none; stroke: rgba(var(--signal-rgb), 0.9); stroke-width: 1.6; stroke-dasharray: 6 7; }
.trav-route-ghost { fill: none; stroke: rgba(var(--signal-rgb), 0.14); stroke-width: 1.6; }
.wp-node circle.core { fill: var(--ink-0); stroke: var(--signal); stroke-width: 1.4; }
.wp-node circle.halo { fill: none; stroke: rgba(var(--signal-rgb), 0.35); }
.wp-node text {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  fill: var(--text-lo); text-transform: uppercase;
}
.world .land {
  fill: rgba(70, 54, 36, 0.06);
  stroke: rgba(70, 54, 36, 0.5); stroke-width: 1.2;
  stroke-linejoin: round;
}
.world .river { fill: none; stroke: rgba(74, 107, 98, 0.55); stroke-width: 1; }
.world .mount path { fill: none; stroke: rgba(70, 54, 36, 0.45); stroke-width: 1; }
.world .rose circle { fill: none; stroke: rgba(var(--amber-rgb), 0.7); stroke-width: 1; }
.world .rose path { fill: rgba(var(--amber-rgb), 0.55); }
.terr-label {
  font-family: var(--display); font-style: italic; font-size: 11px;
  letter-spacing: 0.14em; fill: var(--text-lo);
}
.sea-label {
  font-family: var(--display); font-style: italic; font-size: 10px;
  letter-spacing: 0.3em; fill: rgba(74, 107, 98, 0.75);
}
.range-label {
  font-family: var(--display); font-style: italic; font-size: 9px;
  letter-spacing: 0.1em; fill: rgba(70, 54, 36, 0.55);
}
.world .harbor path { fill: none; stroke: rgba(70, 54, 36, 0.6); stroke-width: 1.1; stroke-linecap: round; }
.world .harbor circle { fill: none; stroke: rgba(70, 54, 36, 0.6); stroke-width: 1; }
.world .city circle { fill: rgba(70, 54, 36, 0.5); }
.world .city path { fill: none; stroke: rgba(70, 54, 36, 0.4); stroke-width: 0.8; }
.world .cloud path {
  fill: rgba(238, 229, 206, 0.9);
  stroke: rgba(70, 54, 36, 0.3); stroke-width: 0.9;
}
.world .rose text.rose-n {
  font-family: var(--mono); font-size: 8px; font-weight: 500;
  fill: rgba(var(--amber-rgb), 0.9); text-anchor: middle;
}
.world .rose .rose-x { fill: rgba(var(--amber-rgb), 0.35); }
.map-frame rect { fill: none; stroke: rgba(70, 54, 36, 0.35); }
.map-frame rect:first-child { stroke-width: 1.2; }
.map-frame rect:last-child { stroke-width: 0.6; }
.plane path { fill: var(--signal); }
.plane .plane-shadow path { fill: rgba(43, 33, 24, 0.18); }
.plane .prop { fill: none; stroke: rgba(110, 47, 30, 0.5); stroke-width: 1; }
.plane { transition: opacity 0.6s ease; }
.wp-node.active circle.core { fill: var(--signal); }
.wp-node.active text { fill: var(--signal); }
.wp-node.visited text { fill: var(--text-mid); }

.trav-entries { display: flex; flex-direction: column; gap: clamp(20px, 3vh, 30px); }
.trav-entry {
  border: 1px solid var(--line);
  background: rgba(246, 238, 218, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  transition: border-color 0.4s ease;
}
.trav-entry:hover { border-color: rgba(var(--signal-rgb), 0.4); }
.trav-entry .e-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-lo); margin-bottom: 14px;
}
.trav-entry .e-top .years { color: var(--signal); flex: none; }
.trav-entry h3 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 500; line-height: 1.2; }
.trav-entry .role { margin-top: 4px; color: var(--text-mid); font-size: 14px; }
.trav-entry .desc { margin-top: 14px; color: var(--text-mid); font-size: 14.5px; max-width: 58ch; }
.trav-entry .marks { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.trav-entry .marks span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid); border: 1px solid var(--line); padding: 5px 10px;
}
.trav-entry .promo { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--text-lo); letter-spacing: 0.08em; line-height: 2; }
.trav-entry .promo b { color: var(--text-mid); font-weight: 500; }

.ev-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ev-links a {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--signal); text-decoration: none;
  border-bottom: 1px dashed rgba(var(--signal-rgb), 0.35);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}
.ev-links a:hover { border-bottom-color: var(--signal); border-bottom-style: solid; }

/* ---------- operations / projects ---------- */
.ops-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 860px) { .ops-grid { grid-template-columns: 1fr; } }

.op-card {
  border: 1px solid var(--line);
  background: rgba(246, 238, 218, 0.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.op-card:hover { border-color: rgba(var(--signal-rgb), 0.45); transform: translateY(-3px); }
.op-card .scanline {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--signal-rgb), 0.8), transparent);
  opacity: 0; transition: opacity 0.35s ease;
}
.op-card:hover .scanline { opacity: 1; }

.op-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.op-id { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--text-lo); text-transform: uppercase; line-height: 1.9; }
.op-id .sector { color: var(--amber); display: block; }
.op-stamp {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--signal); border: 3px double rgba(var(--signal-rgb), 0.55);
  border-radius: 4px; padding: 4px 9px; flex: none; transform: rotate(-2.5deg);
}
.op-card h3 { font-size: clamp(19px, 2.1vw, 24px); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.op-card .op-desc { margin-top: 12px; color: var(--text-mid); font-size: 14px; }
.op-metrics { margin-top: 18px; display: flex; gap: clamp(18px, 3vw, 34px); flex-wrap: wrap; }
.op-metrics .m .mv { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.op-metrics .m .mv .u { color: var(--signal); }
.op-metrics .m .mk { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-lo); margin-top: 3px; }
.op-tools { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--text-lo); text-transform: uppercase; }
.op-tools b { color: var(--text-mid); font-weight: 500; }

.op-card.wide { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .op-card.wide { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; }
  .op-card.wide .op-aux { border-left: 1px dashed var(--line); padding-left: 34px; }
}
.aux-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 12px; }
@media (max-width: 860px) {
  .op-card.wide .op-aux { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
}
.op-aux ul { list-style: none; }
.op-aux li { font-size: 13.5px; color: var(--text-mid); padding: 8px 0 8px 20px; border-bottom: 1px dashed var(--line); position: relative; }
.op-aux li:last-child { border-bottom: 0; }
.op-aux li::before { content: '▸'; position: absolute; left: 0; color: var(--signal); font-size: 10px; top: 11px; }

/* Allegory — links an artifact to its interactive case-study twin */
.allegory { display: block; text-decoration: none; color: inherit; }
.allegory-thumb { display: block; border: 1px solid var(--line); overflow: hidden; }
.allegory-thumb img { display: block; width: 100%; height: auto; transition: transform .45s ease; }
.allegory:hover .allegory-thumb { border-color: rgba(var(--signal-rgb), 0.5); }
.allegory:hover .allegory-thumb img { transform: scale(1.03); }
.allegory-title { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--signal); margin-top: 12px; transition: color .2s ease; }
.allegory:hover .allegory-title { color: var(--amber); }
.allegory-desc { display: block; font-size: 14px; color: var(--text-mid); margin-top: 6px; line-height: 1.6; }
.op-card.wide .allegory-title { margin-top: 14px; }

/* inline Allegory (narrow cards): divider + optional side-by-side layout */
.op-allegory { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.op-allegory .aux-title { display: block; margin-bottom: 12px; }
.allegory-inline .allegory-title { margin-top: 0; }
.allegory-lock { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-lo); border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px; margin-left: 8px; vertical-align: middle; }
@media (min-width: 560px) {
  .allegory-inline { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
  .allegory-inline .allegory-copy { display: block; }
}

/* ---------- capability matrix ---------- */
.cap-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .cap-layout { grid-template-columns: 1fr; } }

.sector-list { display: flex; flex-direction: column; }
.sector-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.sector-row:first-child { border-top: 1px solid var(--line); }
.sector-row .s-name { font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; flex: none; width: 11ch; }
.sector-row .s-bar { flex: 1; height: 4px; background: rgba(var(--signal-rgb), 0.1); position: relative; overflow: hidden; }
.sector-row .s-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, rgba(var(--signal-rgb), 0.5), var(--signal)); }
.sector-row .s-pct { font-family: var(--mono); font-size: 11px; color: var(--text-mid); width: 8ch; text-align: right; flex: none; }
.cap-note { margin-top: 18px; font-size: 13px; color: var(--text-lo); max-width: 46ch; }

.cap-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 640px) { .cap-groups { grid-template-columns: 1fr; } }
.cap-group { background: rgba(246, 238, 218, 0.72); padding: 22px; }
.cap-group h4 {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal);
  margin-bottom: 14px;
}
.cap-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.cap-group li {
  font-family: var(--mono); font-size: 11px; color: var(--text-mid);
  border: 1px solid var(--line); padding: 5px 9px; letter-spacing: 0.04em;
  transition: border-color .25s ease, color .25s ease;
}
.cap-group li:hover { border-color: rgba(var(--signal-rgb), 0.5); color: var(--text-hi); }

/* ---------- signal / contact ---------- */
.signal-sec { padding-bottom: clamp(60px, 8vh, 110px); }
.signal-box {
  border: 1px solid var(--line-strong);
  background: rgba(246, 238, 218, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: clamp(36px, 6vw, 80px);
  text-align: center; position: relative; overflow: hidden;
}
.signal-box .radar {
  position: absolute; inset: -40%; opacity: 0.16; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--signal-rgb), 0.55) 18deg, transparent 60deg);
  animation: sweep 7s linear infinite;
  border-radius: 50%;
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .signal-box .radar, .loader .crosshair::after, .nav-brand .blip, .scroll-cue .stem { animation: none; }
}
.signal-box .tag { position: relative; }
.signal-box h2 {
  position: relative;
  font-size: clamp(30px, 5.4vw, 66px); font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.06; margin: 18px 0 14px;
}
.signal-box p.sub { position: relative; color: var(--text-mid); max-width: 52ch; margin: 0 auto; font-size: 15.5px; }
.signal-cta {
  position: relative; margin-top: 34px; display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: clamp(13px, 2vw, 17px); letter-spacing: 0.14em;
  color: var(--signal); text-decoration: none; text-transform: uppercase;
  border: 1px solid rgba(var(--signal-rgb), 0.5); padding: 16px 26px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.signal-cta:hover { background: rgba(var(--signal-rgb), 0.08); box-shadow: 0 0 34px rgba(var(--signal-rgb), 0.25); }
.signal-cta .arr { transition: transform 0.3s ease; }
.signal-cta:hover .arr { transform: translateX(5px); }
.signal-meta {
  position: relative; margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-lo);
}
.signal-meta a { color: var(--text-mid); text-decoration: none; transition: color .25s; }
.signal-meta a:hover { color: var(--signal); }

/* ---------- footer ---------- */
footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--line);
  padding: 26px var(--gutter) 34px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-lo);
}

/* ---------- survey reticle cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  pointer-events: none; opacity: 0;
  will-change: transform;
}
.cursor .cur-ring {
  position: absolute; top: -15px; left: -15px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid rgba(var(--amber-rgb), 0.7);
  box-shadow: inset 0 0 0 3px rgba(246, 238, 218, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cursor .cur-n {
  position: absolute; top: 0.5px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-style: normal; font-size: 6.5px; font-weight: 500;
  color: rgba(var(--amber-rgb), 0.95); line-height: 1;
}
.cursor .cur-needle {
  position: absolute; top: -7px; left: -1px;
  width: 2px; height: 14px; border-radius: 1px;
  background: linear-gradient(to bottom, var(--signal) 0 50%, var(--text-mid) 50% 100%);
  transform-origin: 50% 50%;
}
.cursor .cur-pivot {
  position: absolute; top: -1.5px; left: -1.5px;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(var(--amber-rgb), 1);
}
.cursor .cur-coord {
  position: absolute; top: 14px; left: 18px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em;
  color: rgba(var(--signal-rgb), 0.55); white-space: nowrap;
}
.cursor.on-link .cur-ring {
  transform: scale(1.6);
  border-color: rgba(var(--signal-rgb), 0.9);
}
@media (pointer: coarse), (max-width: 860px) {
  .cursor { display: none; }
}

/* ---------- nav scroll-progress route line ---------- */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(var(--signal-rgb), 0.65), var(--signal));
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 8px rgba(var(--signal-rgb), 0.5);
  pointer-events: none;
}

/* ---------- expandable dossier ---------- */
.op-expand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--signal);
}
.op-expand .pm {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  border: 1px solid rgba(var(--signal-rgb), 0.5);
  font-size: 11px; line-height: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}
.op-expand:hover .pm { background: rgba(var(--signal-rgb), 0.12); }
.op-expand[aria-expanded="true"] .pm { transform: rotate(45deg); }
.op-more {
  overflow: hidden; height: 0; opacity: 0;
}
.op-more p {
  padding-top: 14px; margin-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--text-mid);
}
html.no-js .op-more { height: auto; opacity: 1; }
html.no-js .op-expand { display: none; }

/* ---------- legendarium: eras, seals, appendices ---------- */
.e-era {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 8px;
}
.e-era::before { content: '❦ '; color: var(--text-lo); }

.sealed-note {
  margin: -26px 0 34px;
  max-width: 62ch;
  font-size: 14px; font-style: italic; color: var(--text-mid);
}

.appx-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 960px) { .appx-grid { grid-template-columns: 1fr; } }
.appx {
  border: 1px solid var(--line); background: rgba(246, 238, 218, 0.62);
  padding: clamp(20px, 2.6vw, 30px);
}
.appx h4 {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.appx-row { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.appx-row:last-child { border-bottom: 0; }
.appx-row .ar-k { display: block; font-weight: 500; color: var(--text-hi); }
.appx-row .ar-y { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--amber); margin: 2px 0 3px; }
.appx-row .ar-v { display: block; color: var(--text-mid); }

.appx-quote p {
  font-size: 14.5px; color: var(--text-mid); font-style: italic;
  margin-bottom: 12px; line-height: 1.65;
}
.appx-quote p:first-child::before { content: '“'; color: var(--signal); font-size: 1.4em; }
.appx-quote cite {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: 10px; font-style: normal;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-lo);
}

/* ---------- reveal primitives (GSAP hooks) ---------- */
.rv, .rv-line { will-change: transform, opacity; }
html.no-js .rv, html.no-js .rv-line { opacity: 1 !important; transform: none !important; }
