:root {
  --bg: #07080C;
  --bg-2: #0C0E14;
  --bg-3: #11141C;
  --line: rgba(151, 162, 188, 0.12);
  --line-2: rgba(151, 162, 188, 0.22);
  --fg-1: #F2F4F9;
  --fg-2: #AEB6C7;
  --fg-3: #7E88A2; /* 5.8:1 on --bg — WCAG AA */
  --fg-4: #6F7890; /* 4.5:1 on --bg — WCAG AA */
  --gold: #ECBA4D;
  --gold-2: #F4CF78;
  --teal: #3CDCD2;
  --display: "Space Grotesk", sans-serif;
  --ui: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); color: var(--fg-1); letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
::selection { background: rgba(236, 186, 77, 0.3); color: var(--fg-1); }

.wrap { max-width: var(--w); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.overline {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 14px;
}
.overline::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.overline em { font-style: normal; color: var(--gold); }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: -60%;
  width: 220%; height: 220%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 40;
  animation: grain 9s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1.5%); }
  40% { transform: translate(1.5%, -2%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(2%, 1%); }
}
.aurora {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(236, 186, 77, 0.07), transparent 65%),
    radial-gradient(700px 700px at -10% 110%, rgba(60, 220, 210, 0.04), transparent 60%);
}

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(7, 8, 12, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 23px; height: 23px; display: block; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--fg-1); }
.wordmark em { font-style: normal; color: var(--gold); }
.brand:hover .wordmark { animation: wglitch 0.32s steps(1) 1; }
@keyframes wglitch {
  0% { text-shadow: 2px 0 rgba(0, 229, 255, 0.9), -2px 0 rgba(255, 43, 214, 0.9); }
  50% { text-shadow: -2px 0 rgba(0, 229, 255, 0.6), 2px 0 rgba(255, 43, 214, 0.6); }
  100% { text-shadow: none; }
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13.5px; color: var(--fg-3); transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--fg-1); }
.nav-est { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-4); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.beam {
  position: absolute; left: 0; right: 0; top: 0; height: 140px;
  pointer-events: none; z-index: 3; /* sweeps over the hero content, radar included */
  background: linear-gradient(to bottom, transparent, rgba(236, 186, 77, 0.05) 42%, rgba(236, 186, 77, 0.14) 50%, rgba(236, 186, 77, 0.05) 58%, transparent);
  animation: beam 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.beam::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(236, 186, 77, 0.5), transparent);
}
@keyframes beam {
  0% { transform: translateY(-160px); opacity: 0; }
  6% { opacity: 1; }
  82% { opacity: 1; }
  92%, 100% { transform: translateY(105vh); opacity: 0; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 70px; align-items: center;
  width: 100%; padding-top: 110px; padding-bottom: 80px;
  position: relative; z-index: 2;
}
.hero h1 {
  font-size: clamp(58px, 7.4vw, 104px);
  font-weight: 600;
  margin-top: 26px;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub { font-size: 19px; line-height: 1.7; max-width: 540px; margin-top: 28px; color: var(--fg-2); }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 42px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 30px;
  background: var(--gold); color: #141005;
  font-family: var(--ui); font-weight: 600; font-size: 15px;
  border-radius: 4px; border: none; cursor: pointer;
  transition: background 0.15s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 0 0 1px rgba(236, 186, 77, 0.55), 0 0 36px rgba(236, 186, 77, 0.22); }
.btn-gold:active { transform: translateY(1px); }
.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--fg-3);
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease);
}
.link-quiet:hover { color: var(--fg-1); }

/* hero radar */
.radar-wrap { position: relative; width: min(420px, 100%); margin: 0 auto; cursor: crosshair; }
.rdf-cap {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  font-family: var(--mono);
}
.rdf-live { font-size: 11.5px; letter-spacing: 0.16em; color: var(--gold); }
.rdf-note { font-size: 11px; letter-spacing: 0.07em; line-height: 1.8; color: var(--fg-4); }
#radar {
  aspect-ratio: 1;
  width: 100%; height: 100%; display: block;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #05060A;
  box-shadow: 0 0 90px rgba(236, 186, 77, 0.08), inset 0 0 60px rgba(0, 0, 0, 0.65);
}
.radar-wrap::after {
  content: ""; position: absolute; left: -7%; right: -7%; top: -7%; aspect-ratio: 1;
  border: 1px dashed rgba(151, 162, 188, 0.14);
  border-radius: 50%;
  animation: spin 70s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ambient threads */
#dust { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.9; }
.aurora { animation: aur 18s ease-in-out infinite alternate; }
@keyframes aur { to { transform: scale(1.06) translateY(-14px); } }

/* ---------- THE FOX MARK (inline svg, animated) ---------- */
.fox { width: 64%; height: auto; overflow: visible; }

/* scan: sweep down, lock on the eyes, release */
.fox .scan { animation: sweep 6.4s infinite; }
@keyframes sweep {
  0%   { transform: translateY(-15px); animation-timing-function: cubic-bezier(0.55, 0, 0.45, 1); }
  30%  { transform: translateY(0px); animation-timing-function: steps(1); }
  44%  { transform: translateY(0px); animation-timing-function: cubic-bezier(0.55, 0, 0.45, 1); }
  72%  { transform: translateY(17px); animation-timing-function: cubic-bezier(0.55, 0, 0.45, 1); }
  100% { transform: translateY(-15px); }
}

/* glitch bursts: synced to the scan lock (36–39%) + a stray at 80% */
.fox .face-wrap { animation: jolt 6.4s steps(1) infinite; }
/* jitter is motion-only: opacity stays constant so luminance never flashes
   faster than the WCAG 2.3.1 threshold (ghost layers carry a single soft pulse) */
@keyframes jolt {
  0%, 35.9%, 39.6%, 79.9%, 82.1%, 100% { transform: translate(0, 0); }
  36% { transform: translate(-2.6px, 0.6px); }
  37% { transform: translate(2.2px, -0.5px); }
  38% { transform: translate(-1.6px, 0.3px); }
  39% { transform: translate(2.8px, 0); }
  80% { transform: translate(2.4px, -0.4px); }
  81% { transform: translate(-2px, 0.5px); }
}
.fox .ghost { opacity: 0; mix-blend-mode: screen; }
.fox .ghost-c { animation: ghC 6.4s steps(1) infinite; }
.fox .ghost-m { animation: ghM 6.4s steps(1) infinite; }
.fox .ghost-gr { animation: ghGr 6.4s steps(1) infinite; }
/* ghost bursts decay monotonically — one rise + one fall per burst keeps each
   window at a single flash, with bursts spaced ~2.8s apart */
@keyframes ghC {
  0%, 35.9%, 39.6%, 79.9%, 82.1%, 100% { opacity: 0; transform: translate(0, 0); }
  36% { opacity: 0.9; transform: translate(3.8px, -0.6px); }
  37.5% { opacity: 0.6; transform: translate(-3px, 0.4px); }
  80% { opacity: 0.8; transform: translate(-3.6px, 0); }
  81% { opacity: 0.5; transform: translate(2.8px, -0.5px); }
}
@keyframes ghM {
  0%, 35.9%, 39.6%, 79.9%, 82.1%, 100% { opacity: 0; transform: translate(0, 0); }
  36% { opacity: 0.85; transform: translate(-3.8px, 0.6px); }
  37.5% { opacity: 0.55; transform: translate(3.2px, -0.4px); }
  80% { opacity: 0.75; transform: translate(3.6px, 0.4px); }
  81% { opacity: 0.5; transform: translate(-2.8px, -0.4px); }
}
@keyframes ghGr {
  0%, 35.9%, 39.6%, 79.9%, 82.1%, 100% { opacity: 0; transform: translate(0, 0); }
  36% { opacity: 0.55; transform: translate(0.8px, 2.4px); }
  37.5% { opacity: 0.4; transform: translate(-0.6px, -2.2px); }
  80.5% { opacity: 0.5; transform: translate(-0.7px, 2.2px); }
}
.fox .slices { animation: slice 6.4s steps(1) infinite; }
@keyframes slice {
  0%, 35.9%, 39.6%, 79.9%, 82.1%, 100% { opacity: 0; }
  36%, 37%, 38%, 39% { opacity: 1; }
  80%, 81% { opacity: 1; }
}

/* text glitch — synced to the same clock */
.glitch-text { animation: tglitch 9.7s steps(1) infinite; animation-delay: 2.3s; }
@keyframes tglitch {
  0%, 35.9%, 39.4%, 100% { text-shadow: none; transform: none; }
  36% { text-shadow: 2.5px 0 rgba(0, 229, 255, 0.85), -2.5px 0 rgba(255, 43, 214, 0.85); transform: translateX(1.5px); }
  37.5% { text-shadow: -1.5px 0 rgba(0, 229, 255, 0.5), 1.5px 0 rgba(255, 43, 214, 0.5); transform: translateX(-1px); }
}

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; z-index: 2; background: var(--bg); }
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: tick 36s linear infinite;
  padding: 13px 0;
}
.ticker span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-4); white-space: nowrap; padding-right: 56px;
}
.ticker span b { color: var(--gold); font-weight: 500; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; z-index: 2; }
.sec-pad { padding-top: 150px; padding-bottom: 150px; }

.manifesto p.big {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  max-width: 980px;
  margin-top: 40px;
}
.manifesto .gold { color: var(--gold); }
.manifesto .dim { color: var(--fg-3); }

/* principles */
.grid-principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: 56px;
}
.principle { background: var(--bg) ; padding: 46px 44px 52px; display: flex; flex-direction: column; gap: 16px; transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.principle:hover {
  background: radial-gradient(420px 220px at 50% 0%, rgba(236, 186, 77, 0.09), transparent 70%), var(--bg-2);
  box-shadow: 0 0 44px rgba(236, 186, 77, 0.06);
}
.principle .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }
.principle h3 { font-size: 26px; font-weight: 600; transition: color 0.2s var(--ease); }
.principle:hover h3 { color: var(--gold-2); }
.principle p { font-size: 15px; color: var(--fg-3); max-width: 380px; }

/* fox story */
.fox-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center; }
.fox-figure { margin: 0; min-width: 0; }
.fig-frame {
  display: block;
  border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
  background: var(--bg-3);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fig-frame img {
  display: block; width: 100%; height: auto;
  filter: saturate(0.82) contrast(1.05);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.fig-frame:hover { border-color: rgba(236, 186, 77, 0.45); box-shadow: 0 0 32px rgba(236, 186, 77, 0.1); }
.fig-frame:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.02); }
.fig-cap {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 3px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; line-height: 1.8;
  color: var(--fg-3);
}
.fig-cap a { color: var(--gold); }
.fig-cap a:hover { color: var(--gold-2); }
.fig-credit { color: var(--fg-4); font-size: 10.5px; letter-spacing: 0.06em; }
.story-copy h2 { font-size: clamp(36px, 4vw, 54px); font-weight: 600; margin-top: 26px; }
.story-copy p { font-size: 17px; margin-top: 26px; max-width: 560px; }
.story-traits { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.trait {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 18px;
  cursor: default;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.trait:hover {
  color: var(--gold);
  background: rgba(236, 186, 77, 0.08);
  box-shadow: 0 0 18px rgba(236, 186, 77, 0.15);
}

/* crawling-dash hover borders — same species as the background ghost foxes:
   two layers of soft-faded gold runners drifting at different speeds over a
   barely-there ring, so the outline shimmers instead of ticking */
@property --tr-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --tr-b { syntax: "<angle>"; inherits: false; initial-value: 180deg; }
.trait, .partner-tags span, .btn-line, .principle { position: relative; }
.trait::before, .partner-tags span::before, .btn-line::before, .principle::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background:
    repeating-conic-gradient(from var(--tr-a),
      transparent 0deg,
      rgba(236, 186, 77, 0.75) 11deg,
      transparent 22deg,
      transparent 67deg),
    repeating-conic-gradient(from var(--tr-b),
      transparent 0deg,
      rgba(244, 207, 120, 0.4) 16deg,
      transparent 32deg,
      transparent 103deg),
    linear-gradient(rgba(236, 186, 77, 0.13) 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.trait:hover::before, .partner-tags span:hover::before, .btn-line:hover::before, .principle:hover::before {
  opacity: 1;
  animation: traceRun 15s linear infinite;
}
@keyframes traceRun {
  from { --tr-a: 0deg; --tr-b: 180deg; }
  to { --tr-a: 360deg; --tr-b: -80deg; }
}

/* partnership */
.partner-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 90px; align-items: center; }
.partner-copy h2 { font-size: clamp(36px, 4vw, 54px); font-weight: 600; margin-top: 26px; }
.partner-copy > p { font-size: 17px; margin-top: 26px; max-width: 540px; }
.partner-quote {
  margin-top: 40px;
  font-family: var(--display);
  font-size: 23px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--fg-1);
  max-width: 480px;
}
.partner-quote::before { content: "“"; color: var(--gold); }
.partner-quote::after { content: "”"; color: var(--gold); }
.quote-by { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-4); margin-top: 14px; animation: rglitch 6.4s steps(1) infinite; }
@keyframes rglitch {
  0%, 55.9%, 58.4%, 100% { text-shadow: none; transform: none; }
  56% { text-shadow: 2.2px 0 rgba(230, 0, 24, 0.95), -2.2px 0 rgba(0, 229, 255, 0.5); transform: translateX(1px); }
  57.2% { text-shadow: -1.6px 0 rgba(230, 0, 24, 0.7); transform: translateX(-0.8px); }
}
.btn-line {
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 26px; margin-top: 38px;
  border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 14.5px; font-weight: 500; color: var(--fg-1);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.btn-line:hover { background: rgba(236, 186, 77, 0.07); }
.partner-card {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 56px 44px;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  position: relative; overflow: hidden;
}
.partner-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 240px at 50% 0%, rgba(230, 0, 24, 0.07), transparent 70%);
  pointer-events: none;
}
.logo-chip { background: #F2F4F9; border-radius: 6px; padding: 26px 38px; position: relative; }
.logo-chip img { width: 210px; height: auto; display: block; }
.partner-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.partner-tags span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--fg-3);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 15px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  cursor: default;
}
.partner-tags span:hover {
  color: var(--gold);
  background: rgba(236, 186, 77, 0.08);
  box-shadow: 0 0 18px rgba(236, 186, 77, 0.15);
}
.partner-cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #E60018; text-shadow: 0 0 14px rgba(230, 0, 24, 0.35); }

/* contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 600; margin-top: 26px; }
.contact .overline { justify-content: center; }
.contact .overline::before { display: none; }
.mail {
  display: inline-block; margin-top: 46px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 4.6vw, 60px); letter-spacing: -0.02em;
  color: var(--fg-1);
  position: relative;
  transition: color 0.2s var(--ease);
}
.mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.mail:hover { color: var(--gold-2); }
.mail:hover::after { transform: scaleX(1); }
.mail .mail-user { color: var(--gold-2); }
.contact-sub { margin-top: 30px; font-size: 15px; color: var(--fg-3); }

/* footer */
footer { border-top: 1px solid var(--line); position: relative; z-index: 2; }
.foot-in {
  padding-top: 30px; padding-bottom: 30px;
  display: flex; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--fg-4);
}
.foot-in .brand { gap: 8px; }
.foot-in .brand svg { width: 16px; height: 16px; }
.foot-in .wordmark { font-size: 14px; }
.foot-right { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.foot-right a { color: var(--fg-4); transition: color 0.15s var(--ease); }
.foot-right a:hover { color: var(--fg-2); }

/* ---------- scroll to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 49;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; color: var(--fg-2);
  background: rgba(12, 14, 20, 0.78);
  border: 1px solid var(--line-2); border-radius: 4px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s,
    color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  color: var(--gold);
  border-color: rgba(236, 186, 77, 0.55);
  box-shadow: 0 0 18px rgba(236, 186, 77, 0.15);
}

/* ---------- detail layers ---------- */
.scanlines {
  position: fixed; inset: 0; z-index: 39; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.gridbg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 162, 188, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 162, 188, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(720px 560px at 74% 44%, black, transparent 72%);
  mask-image: radial-gradient(720px 560px at 74% 44%, black, transparent 72%);
}
.caret {
  display: inline-block; width: 0.45em; height: 0.92em;
  background: var(--gold); margin-left: 12px; vertical-align: -0.08em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* principles hover marker */
.principle { position: relative; }
.principle::after {
  content: "+";
  position: absolute; top: 14px; right: 18px;
  font-family: var(--mono); font-size: 14px; color: var(--gold);
  opacity: 0; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  transform: rotate(-90deg);
}
.principle:hover::after { opacity: 1; transform: rotate(0deg); }

/* ---------- reveals (hidden only when JS is confirmed running) ---------- */
html.js [data-r] { opacity: 0; transform: translateY(26px); }
[data-r] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-r].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-r] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .radar-wrap { width: min(300px, 80%); }
  .grid-principles { grid-template-columns: 1fr; }
  .fox-grid { grid-template-columns: 1fr; gap: 48px; }
  .partner-grid { grid-template-columns: 1fr; gap: 56px; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .sec-pad { padding-top: 96px; padding-bottom: 96px; }
  .nav-links a:not(.keep) { display: none; }
}
