/* ════════════════════════════════════════════════════════════════
   KAZROCK GLOBAL - Exploration Intelligence Engine
   Futuristic marketing site. Dark instrument aesthetic, ore-palette
   accents, mono numerics. Grounded in the KRG design system (§27).
   ════════════════════════════════════════════════════════════════ */

:root {
  /* ── Core dark field ── */
  --bg:          #07090C;
  --bg-1:        #0A0D11;
  --bg-2:        #0E1218;
  --bg-3:        #131922;
  --line:        #1E2630;
  --line-bright: #2B3744;
  --line-glow:   rgba(45,106,139,0.35);

  /* ── Text ── */
  --ink:         #F2F0EA;
  --ink-2:       #C2C7CE;
  --ink-3:       #8A929C;
  --ink-4:       #767E89;   /* fine print — raised to clear WCAG AA on the dark ground */

  /* ── Ore palette (KRG §27.2), brightened for dark ground ── */
  --copper:    #E07A3E;
  --copper-dim:#B5541E;
  --gold-ore:  #E8B04B;
  --ree:       #46A6D6;
  --green-ore: #4FB36B;
  --iron:      #C9633F;
  --graphite:  #6B7480;
  --lithium:   #9B7FD4;

  /* ── Jurisdiction colours ── */
  --jur-kz: #E07A3E;
  --jur-uz: #46A6D6;
  --jur-kg: #4FB36B;
  --jur-tj: #C9633F;
  --jur-mn: #E8B04B;
  --jur-ru: #7C8BA0;

  /* ── Confidence ── */
  --conf-high: #4FB36B;
  --conf-low:  #D85656;

  --accent:    var(--copper);
  --accent-2:  var(--ree);

  /* ── Type ── */
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Corner radii ── */
  --r:    14px;   /* cards, containers */
  --r-sm: 10px;   /* buttons, chips, small controls */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--copper); color: #0A0A0A; }

/* ── Texture overlays ───────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.035;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ── Section labels / kickers ──────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}
/* Kicker — clean SF-style label with a small numbered chip */
.kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--accent);
  margin-bottom: 22px;
}
.kicker__num {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0; color: var(--ink-3);
  border: 1px solid var(--line-bright); border-radius: var(--r-sm);
  padding: 3px 9px; line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(7,9,12,0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
}
.nav.is-stuck {
  background: rgba(8,10,14,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__mark { color: var(--copper); display: grid; place-items: center; transition: transform .6s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(120deg); }
.nav__word { font-weight: 600; font-size: 15px; letter-spacing: 0.12em; }
.nav__word-dim { color: var(--ink-3); }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; color: var(--ink-3); letter-spacing: 0.01em;
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-size: 13px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line-bright); padding: 9px 16px;
  border-radius: var(--r-sm);
  transition: border-color .25s, background .25s, color .25s;
}
.nav__cta:hover { border-color: var(--copper); background: var(--copper); color: #0A0A0A; }
.nav__cta span { transition: transform .25s; display: inline-block; }
.nav__cta:hover span { transform: translateX(3px); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border: 1px solid transparent; cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn span { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--copper); color: #0A0A0A; }
.btn--primary:hover { background: var(--gold-ore); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-bright); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); background: var(--bg-2); transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 15px; }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px clamp(20px, 5vw, 56px) 90px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 70%, var(--bg) 100%),
    radial-gradient(120% 80% at 80% 30%, transparent 40%, rgba(7,9,12,0.65) 100%);
}
/* radar scan sweep */
.hero__scan {
  position: absolute; top: 50%; left: 78%; z-index: 1; width: 1px; height: 1px;
  pointer-events: none; opacity: 0.5;
}
.hero__scan::before {
  content: ""; position: absolute; top: -340px; left: 0; width: 340px; height: 680px;
  transform-origin: 0 50%;
  background: conic-gradient(from -8deg at 0 50%, rgba(70,166,214,0.16), transparent 16%);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__title {
  font-size: clamp(40px, 7.2vw, 92px); line-height: 1.0; letter-spacing: -0.035em;
  max-width: 16ch; margin-bottom: 28px;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--copper) 10%, var(--gold-ore) 55%, var(--ree) 110%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lede {
  font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 60ch;
  line-height: 1.65; margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  max-width: 880px;
}
.stat { background: var(--bg-1); padding: 20px 22px; }
.stat dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; font-family: var(--mono); }
.stat dd { font-family: var(--mono); font-size: clamp(24px, 3vw, 34px); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.stat__unit { font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
@media (max-width: 760px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--ink-4);
}
.hero__scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--ink-4), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:""; position:absolute; top:-50%; left:0; width:1px; height:50%; background: var(--copper); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0%{ transform: translateY(0); opacity:1;} 100%{ transform: translateY(200%); opacity:0;} }

/* ════════════════════════════════════════════════════════════
   GENERIC SECTION
   ════════════════════════════════════════════════════════════ */
.section { position: relative; padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 56px); }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(28px, 4.4vw, 50px); letter-spacing: -0.03em; margin-bottom: 18px; }
.section__sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-2); line-height: 1.65; max-width: 62ch; }

/* hairline separators between sections */
.section + .section { border-top: 1px solid var(--line); }

/* ════════════════════════════════════════════════════════════
   THESIS
   ════════════════════════════════════════════════════════════ */
.legs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 900px) { .legs { grid-template-columns: 1fr; } }
.leg {
  position: relative; background: var(--bg-1); padding: 40px 34px 34px;
  transition: background .4s var(--ease);
  overflow: hidden;
}
.leg::before {
  content:""; position:absolute; left:0; top:0; height:2px; width:0; background: var(--accent);
  transition: width .5s var(--ease);
}
.leg:hover { background: var(--bg-2); }
.leg:hover::before { width: 100%; }
.leg__no { position: absolute; top: 24px; right: 28px; font-size: 12px; color: var(--ink-4); letter-spacing: 0.1em; }
.leg__icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 26px; }
.leg__icon svg { width: 100%; height: 100%; }
.leg h3 { font-size: 23px; margin-bottom: 14px; }
.leg p { color: var(--ink-2); font-size: 15px; line-height: 1.68; margin-bottom: 22px; }
.leg em { font-style: normal; color: var(--ink); }
.leg__tag { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; padding: 5px 11px; border: 1px solid var(--line-bright); border-radius: var(--r-sm); display: inline-block; }
.leg:nth-child(2) { --accent: var(--ree); }
.leg:nth-child(3) { --accent: var(--green-ore); }

.thesis__join {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px;
  margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line);
}
.join__node {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--ink-2);
  padding: 12px 20px; border: 1px solid var(--line-bright); background: var(--bg-1);
  border-radius: var(--r-sm);
}
.join__op { font-family: var(--mono); font-size: 20px; color: var(--ink-4); }
.join__eq { color: var(--copper); }
.join__node--score {
  color: #0A0A0A; border-color: transparent;
  background: linear-gradient(100deg, var(--copper), var(--gold-ore));
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   SCORE - centerpiece
   ════════════════════════════════════════════════════════════ */
.score { background:
  radial-gradient(90% 60% at 20% 0%, rgba(45,106,139,0.07), transparent 60%),
  var(--bg); }
.score__stage {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px);
  align-items: center; margin-bottom: 80px;
}
@media (max-width: 880px) { .score__stage { grid-template-columns: 1fr; gap: 56px; } }

.gauge { position: relative; width: min(360px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.gauge__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--bg-3); stroke-width: 10; }
.gauge__fill {
  fill: none; stroke: url(#gaugegrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 653; stroke-dashoffset: 653;
  transition: stroke-dashoffset 1.8s var(--ease);
  filter: drop-shadow(0 0 10px rgba(224,122,62,0.35));
  stroke: var(--copper);
}
.gauge.in .gauge__fill { stroke-dashoffset: var(--off, 85); }
.gauge::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,122,62,0.08), transparent 70%);
  pointer-events: none;
}
.gauge__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 6px;
}
.gauge__label { color: var(--ink-3); }
.gauge__value { font-size: clamp(56px, 11vw, 92px); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.04em; }
.gauge__meta { font-size: 11px; color: var(--ink-4); letter-spacing: 0.08em; }
.gauge__band {
  margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--green-ore); border: 1px solid rgba(79,179,107,0.4); padding: 5px 12px;
  background: rgba(79,179,107,0.06); border-radius: var(--r-sm);
}

.subs__intro { color: var(--ink-2); font-size: 16px; line-height: 1.65; margin-bottom: 30px; max-width: 52ch; }
.subs__list { display: flex; flex-direction: column; gap: 16px; }
.sub { display: grid; grid-template-columns: 52px 1fr 84px 44px; align-items: center; gap: 16px; }
.sub__key { font-size: 13px; color: var(--c); font-weight: 700; letter-spacing: 0.04em; }
.sub__name { font-size: 14px; color: var(--ink-2); }
.sub__bar { position: relative; height: 6px; background: var(--bg-3); overflow: hidden; }
.sub__bar i {
  position: absolute; inset: 0; width: 0; background: var(--c);
  transition: width 1.4s var(--ease); transition-delay: .2s;
}
.in .sub__bar i { width: calc(var(--v) * 10%); }
.sub__val { font-size: 15px; font-weight: 500; text-align: right; color: var(--ink); }
@media (max-width: 520px) {
  .sub { grid-template-columns: 46px 1fr 40px; }
  .sub__bar { display: none; }
}

.calib {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 22px; align-items: stretch;
  padding-top: 64px; border-top: 1px solid var(--line);
}
.calib__step { background: var(--bg-1); border: 1px solid var(--line); padding: 26px 24px; border-radius: var(--r); }
.calib__phase { font-size: 11px; letter-spacing: 0.18em; color: var(--accent-2); display: block; margin-bottom: 12px; }
.calib__step strong { display: block; font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.calib__step p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.calib__arrow { display: grid; place-items: center; color: var(--ink-4); font-size: 22px; }
.calib__note {
  grid-column: 1 / -1; margin-top: 8px; padding: 22px 26px;
  border: 1px solid var(--line-bright); border-left: 2px solid var(--copper);
  background: linear-gradient(100deg, rgba(224,122,62,0.05), transparent);
  color: var(--ink-2); font-size: 15px; line-height: 1.6;
  border-radius: var(--r);
}
@media (max-width: 860px) {
  .calib { grid-template-columns: 1fr; }
  .calib__arrow { transform: rotate(90deg); height: 24px; }
}

/* ════════════════════════════════════════════════════════════
   PLATFORM MODULES
   ════════════════════════════════════════════════════════════ */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 900px) { .modules { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }
.module {
  position: relative; background: var(--bg-1); padding: 32px 30px 36px; overflow: hidden;
  transition: background .35s var(--ease);
}
.module::after {
  content:""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--ree)); transform: scaleX(0);
  transform-origin: left; transition: transform .5s var(--ease);
}
.module:hover { background: var(--bg-2); }
.module:hover::after { transform: scaleX(1); }
.module__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.module__idx { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.module__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-bright); transition: background .3s, box-shadow .3s; }
.module:hover .module__dot { background: var(--copper); box-shadow: 0 0 10px var(--copper); }
.module h3 { font-size: 22px; margin-bottom: 12px; }
.module p { font-size: 14.5px; color: var(--ink-2); line-height: 1.66; }

/* ════════════════════════════════════════════════════════════
   PIPELINE
   ════════════════════════════════════════════════════════════ */
.pipeline { background: var(--bg-1); }
.pipeline__layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .pipeline__layout { grid-template-columns: 1fr; } }

.flow { display: flex; flex-direction: column; }
.flow__step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); position: relative; }
.flow__step:last-child { border-bottom: none; }
.flow__n {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-bright); font-size: 13px; color: var(--accent);
  background: var(--bg-2); border-radius: var(--r-sm); transition: border-color .3s, color .3s;
}
.flow__step:hover .flow__n { border-color: var(--copper); color: var(--gold-ore); }
.flow__step strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.flow__step span { font-size: 14px; color: var(--ink-3); line-height: 1.55; }

.terminal {
  background: #06080B; border: 1px solid var(--line-bright); overflow: hidden;
  border-radius: var(--r);
  position: sticky; top: 90px;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-bright); }
.terminal__dot:nth-child(1){ background: #C9633F; }
.terminal__dot:nth-child(2){ background: #E8B04B; }
.terminal__dot:nth-child(3){ background: #4FB36B; }
.terminal__title { margin-left: 8px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }
.terminal__body {
  padding: 22px 20px; font-size: 12.5px; line-height: 1.85; color: var(--ink-2);
  min-height: 340px; white-space: pre-wrap; word-break: break-word;
}
.terminal__body .t-dim { color: var(--ink-4); }
.terminal__body .t-ok { color: var(--green-ore); }
.terminal__body .t-acc { color: var(--ree); }
.terminal__body .t-warn { color: var(--gold-ore); }
.terminal__body .t-cu { color: var(--copper); }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--copper); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ════════════════════════════════════════════════════════════
   TERRITORY
   ════════════════════════════════════════════════════════════ */
.jur-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 760px) { .jur-grid { grid-template-columns: 1fr 1fr; } }
.jur {
  position: relative; background: var(--bg-1); border: none; cursor: pointer;
  padding: 30px 28px; text-align: left; font-family: var(--sans);
  display: flex; flex-direction: column; gap: 8px; color: var(--ink);
  transition: background .35s var(--ease);
  overflow: hidden;
}
.jur::before {
  content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.jur:hover { background: var(--bg-2); }
.jur:hover::before { transform: scaleY(1); }
.jur__code { font-size: 30px; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.jur__name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.jur__flag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--jur-ru); border: 1px solid var(--line-bright); padding: 2px 7px; border-radius: 6px;
}
.jur__meta { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }

.commodities { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.commodities__label { display: block; margin-bottom: 24px; color: var(--ink-3); }
.commodities ul { display: flex; flex-wrap: wrap; gap: 14px; }
.commodities li {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--c);
  padding: 12px 20px; border: 1px solid var(--line); background: var(--bg-1);
  border-radius: var(--r-sm);
  transition: transform .25s var(--ease), border-color .25s;
}
.commodities li:hover { transform: translateY(-3px); border-color: var(--c); }
.commodities em { font-style: normal; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink-3); }

/* ════════════════════════════════════════════════════════════
   PRINCIPLES
   ════════════════════════════════════════════════════════════ */
.principles { background: var(--bg-1); }
.principles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px; }
@media (max-width: 900px) { .principles__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .principles__grid { grid-template-columns: 1fr; } }
.principle__n { color: var(--copper); font-size: 18px; display: block; margin-bottom: 16px; }
.principle h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.25; }
.principle p { font-size: 14px; color: var(--ink-3); line-height: 1.62; }

/* ════════════════════════════════════════════════════════════
   CLOSING
   ════════════════════════════════════════════════════════════ */
.closing {
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(224,122,62,0.10), transparent 60%),
    radial-gradient(60% 50% at 50% 0%, rgba(45,106,139,0.08), transparent 60%),
    var(--bg);
}
.closing__inner { max-width: 880px; }
.closing__manifesto {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  font-family: var(--mono); font-size: clamp(13px, 1.6vw, 16px); letter-spacing: 0.04em;
  color: var(--ink-3); margin-bottom: 40px;
}
.closing__manifesto span { position: relative; }
.closing__manifesto span:nth-child(1) { color: var(--copper); }
.closing__manifesto span:nth-child(4) { color: var(--ree); }
.closing__title { font-size: clamp(30px, 5vw, 58px); letter-spacing: -0.03em; margin-bottom: 44px; line-height: 1.08; }
.closing__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.closing__fine { font-size: 12px; color: var(--ink-4); letter-spacing: 0.14em; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line); padding: 48px clamp(20px, 5vw, 56px);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--copper); font-weight: 600; letter-spacing: 0.12em; font-size: 14px; }
.footer__brand span:last-child { color: var(--ink); }
.footer__line { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.footer__fine { font-size: 12px; color: var(--ink-4); max-width: 60ch; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ════════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scan, .term-cursor, .hero__scroll-line::after { animation: none; }
  .mobile-menu, .nav__burger span { transition: none; }
}

/* ════════════════════════════════════════════════════════════
   KEYBOARD FOCUS  (visible ring for tab users; mouse clicks stay clean)
   ════════════════════════════════════════════════════════════ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible, .nav__cta:focus-visible, .jur:focus-visible { outline-offset: 4px; }

/* ════════════════════════════════════════════════════════════
   MOBILE NAV  (burger + overlay menu)
   ════════════════════════════════════════════════════════════ */
.nav__burger {
  display: none;
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line-bright); border-radius: var(--r-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color .25s;
}
.nav__burger:hover { border-color: var(--ink-3); }
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7,9,12,0.97);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(86vw, 360px); }
.mobile-menu a {
  font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); padding: 14px 0; width: 100%; text-align: center;
  border-bottom: 1px solid var(--line);
  transform: translateY(12px); opacity: 0; transition: color .2s, transform .5s var(--ease), opacity .5s var(--ease);
}
body.menu-open .mobile-menu a { transform: none; opacity: 1; }
.mobile-menu a:nth-child(1){ transition-delay: .06s; }
.mobile-menu a:nth-child(2){ transition-delay: .10s; }
.mobile-menu a:nth-child(3){ transition-delay: .14s; }
.mobile-menu a:nth-child(4){ transition-delay: .18s; }
.mobile-menu a:nth-child(5){ transition-delay: .22s; }
.mobile-menu a:active { color: var(--copper); }
.mobile-menu__cta {
  margin-top: 18px; border: 1px solid transparent !important;
  background: var(--copper); color: #0A0A0A !important; border-radius: var(--r-sm);
  font-size: 18px !important; padding: 16px 0 !important; transition-delay: .26s !important;
}

@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}

/* ════════════════════════════════════════════════════════════
   JURISDICTION DETAIL PANEL
   ════════════════════════════════════════════════════════════ */
.jur[aria-expanded="true"] { background: var(--bg-3); }
.jur[aria-expanded="true"]::before { transform: scaleY(1); }
.jur[aria-expanded="true"] .jur__code { color: var(--accent); }

.jur-detail {
  margin-top: 16px; border: 1px solid var(--line-bright); border-top: 2px solid var(--accent, var(--copper));
  border-radius: var(--r); background: var(--bg-1); overflow: hidden;
  animation: detailIn .4s var(--ease);
}
@keyframes detailIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jur-detail { animation: none; } }
.jur-detail__head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 24px 28px 18px; border-bottom: 1px solid var(--line);
}
.jur-detail__code { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--accent); }
.jur-detail__name { font-size: 20px; font-weight: 600; }
.jur-detail__note {
  margin-left: auto; font-size: 12px; color: var(--ink-3); max-width: 46ch;
  font-family: var(--mono); letter-spacing: 0.02em; line-height: 1.5;
}
.jur-detail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 720px) { .jur-detail__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .jur-detail__grid { grid-template-columns: 1fr; } }
.jur-detail__cell { background: var(--bg-1); padding: 18px 22px; }
.jur-detail__cell dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; font-family: var(--mono); }
.jur-detail__cell dd { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
