/* ============================================================
   Arasense design system — shared across all public pages
   Palette: deep green-black, emerald accent, amber signal
   Type: Instrument Serif (display) / Inter (UI) / JetBrains Mono (data)
   Fonts are self-hosted (see fonts/) — no third-party requests.
   ============================================================ */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}

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

:root {
  --bg0: #050d0b;
  --bg1: #071310;
  --panel: #0a1a15;
  --panel-2: #0d211a;
  --line: rgba(110, 231, 183, 0.13);
  --line-strong: rgba(110, 231, 183, 0.28);
  --text: #eaf6f0;
  --muted: #93b4a7;
  --faint: #5f8073;
  --accent: #34d399;
  --accent-bright: #7df0c3;
  --amber: #f4c77d;
  --red: #f08f84;
  --ink: #04120c;
  --max: 1140px;
  --radius: 14px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}

/* Fine grid backdrop, fading out down the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
  z-index: 0;
}

a { color: inherit; }

::selection { background: rgba(52, 211, 153, 0.32); }

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------------- Typography ---------------- */

h1, h2, h3 { margin: 0; font-weight: 400; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.015em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--accent-bright);
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.lead {
  font-size: 19px;
  max-width: 640px;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.mono { font-family: var(--font-mono); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Nav ---------------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; display: block; }

.brand strong {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); background: rgba(110, 231, 183, 0.07); }

.nav-links a.active { color: var(--accent-bright); }

.nav-links a.nav-cta {
  color: var(--ink);
  background: var(--accent);
  font-weight: 600;
  margin-left: 8px;
  padding: 9px 16px;
  border-radius: 999px;
}

.nav-links a.nav-cta:hover { background: var(--accent-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */

.button, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.button {
  background: var(--accent);
  color: var(--ink);
  border: 1px solid transparent;
}

.button:hover { background: var(--accent-bright); transform: translateY(-1px); }

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover { border-color: var(--accent); transform: translateY(-1px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Sections & panels ---------------- */

.section { padding: 84px 0 0; }

.section-head { max-width: 720px; margin-bottom: 36px; }

.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 84px 0 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  padding: 28px;
}

.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.card .big {
  display: block;
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--accent-bright);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

a.card { text-decoration: none; display: block; }

/* ---------------- Tables ---------------- */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--muted);
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}

th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--faint);
}

td.num, th.num { text-align: right; }

td strong { color: var(--text); font-weight: 600; }

tr.highlight td { background: rgba(52, 211, 153, 0.06); color: var(--text); }

/* ---------------- KPI stats ---------------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.kpi {
  background: var(--panel);
  padding: 22px 24px;
}

.kpi strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent-bright);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.kpi span { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------------- Notices / disclaimers ---------------- */

.notice {
  border: 1px solid rgba(244, 199, 125, 0.25);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  background: rgba(244, 199, 125, 0.05);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.notice strong { color: var(--amber); font-weight: 600; }

/* ---------------- Steps ---------------- */

.steps { display: grid; gap: 12px; counter-reset: step; }

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px 22px 22px 76px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}

/* ---------------- Footer ---------------- */

.footer {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.footer h3 { font-size: 17px; }

.footer p { font-size: 14px; margin-bottom: 8px; }

.footer a { color: var(--accent-bright); text-decoration: none; }

.footer a:hover { text-decoration: underline; }

.footer-meta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---------------- Lead capture form ---------------- */

.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.lead-form input[type="email"],
.lead-form input[type="text"]:not(.lf-hp) {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 13, 11, 0.6);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

.lead-form input:focus { border-color: var(--accent); }

.lead-form input::placeholder { color: var(--faint); }

.lead-form button { flex: 0 0 auto; border: 0; cursor: pointer; font-family: var(--font-ui); }

.lead-form button:disabled { opacity: 0.6; cursor: default; transform: none; }

.lead-form .lf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-form .lf-msg {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.lead-form .lf-msg.ok { color: var(--accent-bright); }

.lead-form .lf-msg.err { color: var(--red); }

.lead-form .lf-msg a { color: var(--accent-bright); }

.lead-form.sent input, .lead-form.sent button { display: none; }

.lead-form.sent .lf-msg.ok { font-size: 16px; }

/* ---------------- Reveal motion ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
}

/* ---------------- Print ---------------- */
/* Evidence pages get printed for meetings — make paper look deliberate. */

@media print {
  body { background: #fff; color: #111; }
  body::before { display: none; }

  .nav-wrap, .nav-toggle, .button, .button-secondary, .actions, .footer-meta { display: none !important; }

  .shell { width: 100%; }

  h1, h2, h3, p, .lead, .kpi span, td, th { color: #111 !important; }
  .eyebrow, .label, .card .label { color: #555 !important; }
  .kpi strong, .card .big { color: #0a7a52 !important; }

  .panel, .card, .kpi, .kpis, .notice, .step {
    background: #fff !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  table { color: #111; }
  th, td { border-bottom-color: #ccc; }
  tr.highlight td { background: #f0f7f3 !important; }

  .reveal { opacity: 1 !important; transform: none !important; }

  a { color: #0a7a52; text-decoration: none; }

  .footer { border-top-color: #ccc; }
}

/* ============================================================
   Beauty layer — ambient depth, light, and motion
   (aurora backdrop, film grain, scroll progress, card spotlight,
   hero word reveal, ticker, button sheen, footer watermark)
   ============================================================ */

/* ---- Aurora backdrop: two slow-drifting light fields ---- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  will-change: transform;
}

.aurora::before {
  top: -55vmax;
  right: -30vmax;
  background: radial-gradient(circle at center,
    rgba(52, 211, 153, 0.11), rgba(52, 211, 153, 0.045) 38%, transparent 62%);
  animation: aurora-a 46s ease-in-out infinite alternate;
}

.aurora::after {
  bottom: -60vmax;
  left: -35vmax;
  background: radial-gradient(circle at center,
    rgba(244, 199, 125, 0.05), rgba(56, 189, 248, 0.03) 40%, transparent 62%);
  animation: aurora-b 58s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-14vmax, 10vmax) scale(1.15); }
}

@keyframes aurora-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(12vmax, -9vmax) scale(0.95); }
}

/* ---- Film grain: a whisper of texture over everything ---- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---- Scroll progress hairline ---- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 0;
  pointer-events: none;
}

/* ---- Cursor spotlight on surfaces ---- */

.card, .kpi, .step, .panel, .lab {
  position: relative;
}

.card::after, .kpi::after, .step::after, .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(125, 240, 195, 0.075), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::after, .kpi:hover::after, .step:hover::after, .panel:hover::after {
  opacity: 1;
}

/* ---- Top-edge hairline shine on cards ---- */

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 240, 195, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before { opacity: 1; }

/* ---- Emphasis glow in display headings ---- */

h1 em, h2 em {
  text-shadow: 0 0 34px rgba(52, 211, 153, 0.38);
}

/* ---- Hero word-by-word reveal (spans injected by site.js) ---- */

.wr {
  display: inline-block;
  animation: wr-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--wi) * 75ms);
}

@keyframes wr-in {
  from { opacity: 0; transform: translateY(0.55em); filter: blur(8px); }
}

/* ---- Button sheen + primary glow ---- */

.button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  transition: transform 0.15s, background 0.15s, box-shadow 0.25s;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.button:hover { box-shadow: 0 6px 28px rgba(52, 211, 153, 0.28); }

.button:hover::after { left: 130%; }

/* ---- Data ticker ---- */

.ticker-wrap {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: ticker-roll 46s linear infinite;
}

.ticker-wrap:hover .ticker { animation-play-state: paused; }

.ticker span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

.ticker span b { color: var(--muted); font-weight: 500; }

.ticker .tick-gem {
  color: var(--accent);
  font-size: 8px;
}

@keyframes ticker-roll {
  to { transform: translateX(-50%); }
}

/* ---- hr ornament ---- */

.hr {
  position: relative;
}

.hr::after {
  content: "◆";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(52, 211, 153, 0.55);
  background: var(--bg0);
  padding: 0 14px;
  line-height: 1;
}

/* ---- Footer watermark ---- */

.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "ARASENSE";
  position: absolute;
  right: -0.04em;
  bottom: -0.34em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(100px, 17vw, 230px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(110, 231, 183, 0.09);
  pointer-events: none;
  user-select: none;
}

.footer-grid, .footer-meta { position: relative; z-index: 1; }

/* ---- Media polish ---- */

.console-shot { transition: border-color 0.25s, box-shadow 0.25s; }

.console-shot:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* ---- Top-tier pass: transitions, type light, tactile surfaces ---- */

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.22s; }

::selection { background: rgba(52, 211, 153, 0.32); color: #f2fbf7; }

h1 em, h2 em {
  background: linear-gradient(100deg, #7df0c3, #34d399 35%, #c8f8e2 50%, #34d399 65%, #7df0c3);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 26px rgba(52, 211, 153, 0.28));
  animation: em-sheen 7s linear infinite;
}

@keyframes em-sheen {
  to { background-position: -220% 0; }
}

.card, .panel, .kpi, .step, .lab, .console {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nav-wrap { transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }

.nav-wrap.scrolled {
  background: rgba(5, 13, 11, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 { will-change: transform; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- Editorial pass: chapter rail, ghost numerals, deep shadows ---- */

.rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.22);
  position: relative;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.rail a:hover { background: var(--accent-bright); }

.rail a.on {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.rail a span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: #0a1a15;
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.rail a:hover span { opacity: 1; }

@media (max-width: 1250px) { .rail { display: none; } }

body { counter-reset: chapter; }

.section[data-chapter] { counter-increment: chapter; }

.section[data-chapter] > .section-head { position: relative; }

.section[data-chapter] > .section-head::before {
  content: counter(chapter, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: -30px;
  font-family: var(--font-display);
  font-size: clamp(84px, 10vw, 148px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(110, 231, 183, 0.13);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 920px) {
  .section[data-chapter] > .section-head::before { display: none; }
}

.lab, .console, .panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035),
              0 34px 90px -42px rgba(0, 0, 0, 0.65);
}

/* ---- Photo bands: imagery under brand-tint overlays ----
   contours.jpg is generated in-house; europe-night.jpg is NASA Black
   Marble (public domain), cropped to Europe. Set the image per element
   with --pb: url('bg/....jpg'). */

.photo-band {
  position: relative;
  border-color: var(--line-strong);
  background-image:
    radial-gradient(760px 380px at 82% 18%, rgba(52, 211, 153, 0.14), transparent 62%),
    linear-gradient(160deg, rgba(5, 13, 11, 0.88) 0%, rgba(6, 18, 14, 0.66) 55%, rgba(5, 13, 11, 0.9) 100%),
    var(--pb);
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, center;
  background-repeat: no-repeat;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(110, 231, 183, 0.16) 1.2px, transparent 1.2px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(640px 340px at 78% 38%, #000, transparent 75%);
  mask-image: radial-gradient(640px 340px at 78% 38%, #000, transparent 75%);
  pointer-events: none;
  opacity: 1;
}

/* ---- Trust command palette (Ctrl/Cmd+K) ---- */

.pal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 10, 8, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: none;
}

.pal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}

.pal {
  width: 100%;
  max-width: 640px;
  background: #0a1a15;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: pal-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pal-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); }
}

.pal input {
  width: 100%;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15.5px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.pal input::placeholder { color: var(--faint); }

.pal-list {
  max-height: 46vh;
  overflow-y: auto;
  padding: 8px;
}

.pal-group {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 12px 12px 5px;
}

.pal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
}

.pal-item.sel { background: rgba(52, 211, 153, 0.09); color: var(--text); }

.pal-item .pdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.pal-item .pdot.m { background: var(--amber); }
.pal-item .pdot.w { background: var(--red); }
.pal-item .pdot.page { background: rgba(110, 231, 183, 0.35); }

.pal-item .meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bright);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pal-item .meta.neg { color: var(--amber); }
.pal-item .meta.dim { color: var(--faint); }

.pal-empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}

.pal-hint {
  display: flex;
  gap: 18px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

.pal-hint b { color: var(--muted); font-weight: 500; }

.nav-k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.nav-k:hover { color: var(--text); border-color: var(--line-strong); }

@media (max-width: 920px) {
  .nav-k { display: none; }
  .pal-overlay.open { padding-top: 8vh; }
}

/* ---- Evidence receipts ---- */

.receipt-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: super;
  width: 19px;
  height: 19px;
  margin-left: 6px;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.08);
  border: 1px dashed rgba(52, 211, 153, 0.45);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}

.receipt-tag:hover, .receipt-tag.on {
  color: var(--ink);
  background: var(--accent);
  border-color: transparent;
  transform: scale(1.12);
}

.receipt {
  position: absolute;
  z-index: 70;
  width: 330px;
  padding: 20px 20px 0;
  background: #0c211a;
  border: 1px solid var(--line-strong);
  border-radius: 12px 12px 0 0;
  font-family: var(--font-mono);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) rotate(-0.6deg);
  transition: opacity 0.25s, transform 0.25s;
}

.receipt.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.receipt::after {
  content: "";
  display: block;
  height: 9px;
  margin: 0 -20px;
  background:
    linear-gradient(45deg, transparent 66%, #0c211a 67%),
    linear-gradient(-45deg, transparent 66%, #0c211a 67%);
  background-size: 14px 18px;
  background-position: 0 9px;
}

.rc-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.rc-close:hover { color: var(--text); }

.rc-brand {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text);
}

.rc-kind {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 5px;
}

.rc-rule {
  border-top: 1px dashed rgba(110, 231, 183, 0.28);
  margin: 12px 0;
}

.rc-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.rc-value {
  font-size: 19px;
  color: var(--accent-bright);
  margin-top: 4px;
}

.receipt table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.receipt td {
  padding: 3px 0;
  color: var(--faint);
}

.receipt td + td {
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rc-chain {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.rc-settings {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--faint);
}

.rc-caveat {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.rc-src {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  text-decoration: none;
  border: 1px dashed rgba(110, 231, 183, 0.35);
  border-radius: 8px;
  padding: 9px 11px;
  overflow-wrap: anywhere;
}

.rc-src:hover { background: rgba(52, 211, 153, 0.08); }

.rc-bar {
  height: 26px;
  margin-top: 14px;
  background: repeating-linear-gradient(90deg,
    rgba(234, 246, 240, 0.55) 0 2px, transparent 2px 4px,
    rgba(234, 246, 240, 0.55) 4px 5px, transparent 5px 9px,
    rgba(234, 246, 240, 0.55) 9px 12px, transparent 12px 14px);
  opacity: 0.5;
}

.rc-foot {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding: 8px 0 10px;
}

@media (max-width: 640px) {
  .receipt { width: min(330px, calc(100vw - 24px)); }
}

@media print {
  .receipt, .receipt-tag { display: none !important; }
}

/* ---- Scrollbar & focus ---- */

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb {
  background: #16352a;
  border-radius: 8px;
  border: 3px solid var(--bg0);
}
::-webkit-scrollbar-thumb:hover { background: #1e4636; }

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

@media (prefers-reduced-motion: reduce) {
  .wr { opacity: 1; transform: none; filter: none; animation: none; }
  .ticker { animation: none; }
  .aurora::before, .aurora::after { animation: none; }
}

@media print {
  .aurora, .progress, .ticker-wrap { display: none !important; }
  body::after { display: none; }
  .footer::before { display: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 920px) {
  .grid-2, .grid-3, .kpis, .footer-grid { grid-template-columns: 1fr; }

  .section { padding-top: 60px; }
  .hr { margin-top: 60px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 13, 11, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px; }

  .nav-links a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  th, td { white-space: normal; }
}


/* ============================================================
   Atmosphere layer — cursor aura, hero signal-rain, micro-details
   ============================================================ */

/* Cursor aura: a soft floor-light that follows the pointer */
.aura {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.075), transparent 62%);
  opacity: 0;
  transition: opacity 0.8s;
  will-change: transform;
}

.aura.live { opacity: 1; }

/* Hero signal-rain: faint diagonal streaks drifting down */
.hero { position: relative; }

.hero::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -6%;
  right: -6%;
  height: 480px;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 48.2%, rgba(110, 231, 183, 0.05) 49.8%,
      rgba(110, 231, 183, 0.05) 50.2%, transparent 51.8%) 0 0 / 150px 460px,
    linear-gradient(100deg, transparent 48.8%, rgba(110, 231, 183, 0.03) 50%,
      transparent 51.2%) 60px 120px / 220px 560px;
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,0.85) 18%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,0.85) 18%, transparent 82%);
  animation: signal-rain 18s linear infinite;
}

@keyframes signal-rain {
  to { background-position: -150px 920px, -220px 1120px; }
}

/* Micro-details */
tbody tr { transition: background 0.15s; }
tbody tr:hover td { background: rgba(110, 231, 183, 0.035); }

[id] { scroll-margin-top: 96px; }

.button:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 28px rgba(52, 211, 153, 0.28);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .aura { display: none; }
  .hero::before { animation: none; opacity: 0.5; }
}

@media print {
  .aura { display: none !important; }
  .hero::before { display: none; }
}
