/* ================================================================
   ECHELON INTELLIGENCE (ECHINT)
   Design: Precision Chrome
   Black void. Machined silver. Engineered geometry.
   Reference: Anduril · Apple · Palantir · Leica · SpaceX
   ================================================================ */

/* ──────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ────────────────────────────────────────────────────────────── */
:root {
  /* Depth scale — warm charcoal/graphite (matches business card) */
  --void:    #141414;
  --deep:    #191919;
  --surface: #1f1f1f;
  --raised:  #272727;

  /* Silver / chrome */
  --chrome:  #ebebeb;
  --silver:  #b8b8b8;
  --steel:   #888888;
  --dim:     #5a5a5a;
  --faint:   #333333;

  /* Text */
  --text:    #e8e8e8;
  --text-2:  #888888;
  --text-3:  #4a4a4a;

  /* Lines */
  --line:    rgba(255,255,255,0.07);
  --line-2:  rgba(255,255,255,0.12);
  --line-3:  rgba(255,255,255,0.20);

  /* Accent — terminal green, micro-interactions only */
  --green:   #00cc44;
  --green-d: rgba(0,204,68,0.10);

  /* Type */
  --f-head: "Orbitron", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "Share Tech Mono", ui-monospace, monospace;

  /* Layout */
  --maxw:  1240px;
  --gut:   clamp(24px, 6vw, 80px);
  --nav-h: 68px;

  /* Motion */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1.00, 0.30, 1);
}

/* ──────────────────────────────────────────────────────────────
   2. RESET
   ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--void);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--chrome); color: var(--void); }

/* ──────────────────────────────────────────────────────────────
   3. LAYOUT
   ────────────────────────────────────────────────────────────── */
.wrap   { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.split  { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(56px, 9vw, 112px); align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }

/* ──────────────────────────────────────────────────────────────
   4. TYPOGRAPHY
   ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--chrome);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.h-xl { font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.h-lg { font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; }
.h-md { font-size: clamp(1.05rem, 1.5vw, 1.45rem); }
.lead { font-size: clamp(0.9rem, 1.2vw, 1.05rem); color: var(--text-2); line-height: 1.78; max-width: 54ch; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--dim);
  flex: none;
}

/* Stroke / outline variant for hero H1 second line */
.stroke {
  display: block;
  -webkit-text-stroke: 1px rgba(255,255,255,0.20);
  color: transparent;
}

/* ──────────────────────────────────────────────────────────────
   5. NAVIGATION
   ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(2,2,8,0.78);
  backdrop-filter: blur(20px) saturate(0.8);
  -webkit-backdrop-filter: blur(20px) saturate(0.8);
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s;
}
.nav.scrolled      { background: rgba(2,2,8,0.97); border-bottom-color: var(--line-2); }
.nav.nav-hidden    { transform: translateY(-100%); }
.nav .wrap         { display: flex; align-items: center; justify-content: space-between; }

/* Brand */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 32px; height: 32px; flex: none; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.82;
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}
.brand:hover .brand-mark { opacity: 1; transform: scale(1.06); }
.brand-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-word { height: 13px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand-tag  { height:  6px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.42; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 10px 18px;
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--chrome); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 5px;
  height: 1px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 10px;
  border: 1px solid var(--line-2) !important;
  color: var(--silver) !important;
  border-radius: 1px;
  font-weight: 500;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: rgba(255,255,255,0.05) !important;
  color: var(--chrome) !important;
  border-color: var(--line-3) !important;
}

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1px; background: var(--steel); transition: 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ──────────────────────────────────────────────────────────────
   6. BUTTONS
   ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 1px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease), color 0.3s,
              border-color 0.3s, box-shadow 0.35s, transform 0.2s var(--ease);
}
.btn-primary {
  background: var(--chrome);
  color: var(--void);
  font-weight: 700;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 8px 40px -6px rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--steel);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  color: var(--chrome);
  border-color: var(--line-3);
  background: rgba(255,255,255,0.04);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
/* Shine sweep */
.btn::before {
  content: "";
  position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s var(--ease);
  pointer-events: none;
}
.btn:hover::before { left: 135%; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────────────────
   7. PANEL (form wrapper, info aside)
   ────────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: border-color 0.4s var(--ease), transform 0.22s var(--ease), box-shadow 0.4s;
}
.panel:hover {
  border-color: var(--line-2);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,1);
}

/* ──────────────────────────────────────────────────────────────
   8. HERO
   ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Large logo mark — foreground hero element, sits in front of the wire web */
.hero-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(56vw, 720px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: markIn 2.4s var(--ease-out) 0.4s forwards;
  /* Radial block so the wire web doesn't bleed through */
  background: radial-gradient(circle at center, var(--void) 38%, transparent 72%);
}
@keyframes markIn { to { opacity: 1; } }
.hero-mark-img {
  width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.28;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 9vw, 112px);
  max-width: 860px;
}
.hero h1         { margin: 22px 0 32px; opacity: 0; }
.hero .lead      { margin-bottom: 48px; }
.hero-meta       { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats */
.hero-stats {
  display: flex;
  gap: clamp(40px, 7vw, 80px);
  margin-top: clamp(64px, 9vw, 104px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat {}
.stat-num {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--chrome);
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
}

/* ──────────────────────────────────────────────────────────────
   9. STATUS READOUT STRIP
   ────────────────────────────────────────────────────────────── */
.readout {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.20em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}

/* ──────────────────────────────────────────────────────────────
   10. SECTIONS
   ────────────────────────────────────────────────────────────── */
.section         { padding: clamp(96px, 14vw, 172px) 0; position: relative; }
.section-head    { max-width: 660px; margin-bottom: clamp(56px, 8vw, 96px); }
.section-head .eyebrow { margin-bottom: 22px; }

/* ──────────────────────────────────────────────────────────────
   11. ABOUT — precision list layout
   ────────────────────────────────────────────────────────────── */
.about-list { display: flex; flex-direction: column; }
.about-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.about-item:first-child { border-top: 1px solid var(--line); }
.about-item:hover       { padding-left: 6px; }
.about-num {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--dim);
  flex: none;
  width: 26px;
  padding-top: 4px;
}
.about-title {
  font-family: var(--f-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--chrome);
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.about-desc { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; }

/* ──────────────────────────────────────────────────────────────
   12. CAPABILITY CARDS
   ────────────────────────────────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.cap {
  background: var(--surface);
  padding: clamp(36px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transform: perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: background 0.4s var(--ease), transform 0.12s var(--ease);
  overflow: hidden;
}
.cap::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 28px 28px;
  border-color: transparent transparent var(--line) transparent;
  transition: border-width 0.35s var(--ease), border-color 0.35s;
}
.cap:hover { background: var(--raised); }
.cap:hover::after { border-width: 0 0 40px 40px; border-bottom-color: var(--line-2); }
.cap-num {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  color: var(--dim);
}
.cap-icon { width: 26px; height: 26px; color: var(--steel); }
.cap h3 {
  font-family: var(--f-head);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  font-weight: 600;
  color: var(--chrome);
  letter-spacing: 0.02em;
}
.cap p { color: var(--text-2); font-size: 0.92rem; line-height: 1.72; flex: 1; }
.cap-link {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  transition: color 0.25s, gap 0.3s var(--ease);
}
.cap:hover .cap-link { color: var(--steel); gap: 14px; }

/* ──────────────────────────────────────────────────────────────
   13. MARQUEE
   ────────────────────────────────────────────────────────────── */
.marquee-band {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:         linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 55s linear infinite;
  will-change: transform;
}
.marquee-band:hover .marquee-inner { animation-play-state: paused; }
.marquee-item {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 32px;
}
.marquee-item::after { content: "·"; color: var(--faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ──────────────────────────────────────────────────────────────
   14. CTA BAND
   ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  background: var(--deep);
  border: 1px solid var(--line);
  padding: clamp(64px, 10vw, 120px) clamp(40px, 7vw, 96px);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(255,255,255,0.025), transparent 58%);
  pointer-events: none;
}
.cta-band h2     { margin-bottom: 18px; }
.cta-band .lead  { margin: 0 auto 40px; }
.cta-band .btn-row { justify-content: center; }

/* ──────────────────────────────────────────────────────────────
   15. SERVICES PAGE
   ────────────────────────────────────────────────────────────── */
.svc-list { display: flex; flex-direction: column; }
.svc-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
  cursor: default;
}
.svc-item:first-child { border-top: 1px solid var(--line); }
.svc-item:hover { padding-left: 10px; }
.svc-item:hover .svc-num  { color: var(--steel); }
.svc-item:hover .svc-name { color: var(--chrome); }
.svc-num {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--dim);
  flex: none;
  width: 30px;
}
.svc-name {
  font-family: var(--f-head);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Leadership quote */
.quote-block {
  border-left: 1px solid var(--line-2);
  padding-left: clamp(28px, 5vw, 56px);
  max-width: 820px;
}
.quote-block blockquote {
  font-family: var(--f-head);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.42;
}
.quote-block cite {
  display: block;
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  font-style: normal;
}

/* ──────────────────────────────────────────────────────────────
   16. CONTACT PAGE
   ────────────────────────────────────────────────────────────── */
.contact-grid  { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 80px); align-items: start; }
.contact-aside { display: flex; flex-direction: column; border: 1px solid var(--line); }
.info-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-ico   { width: 18px; height: 18px; color: var(--steel); flex: none; margin-top: 3px; }
.info-label { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.info-value { color: var(--text); font-size: 0.96rem; margin-top: 4px; }

.form-panel  { background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.field       { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.96rem;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--line-3);
  background: var(--surface);
}
.field textarea    { resize: vertical; min-height: 120px; }
.field-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note         { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--dim); margin-top: 6px; }
.form-status       { margin-top: 14px; font-family: var(--f-mono); font-size: 0.76rem; min-height: 1.2em; }
.form-status.ok    { color: var(--green); }
.form-status.err   { color: var(--chrome); }

/* ──────────────────────────────────────────────────────────────
   17. FOOTER
   ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-desc { color: var(--text-3); font-size: 0.88rem; line-height: 1.8; margin-top: 18px; max-width: 38ch; }
.footer h4 {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-links a { display: block; color: var(--text-3); font-size: 0.88rem; padding: 5px 0; transition: color 0.25s, padding-left 0.25s; }
.footer-links a:hover { color: var(--chrome); padding-left: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
}
.footer-bottom span { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--text-3); }

/* ──────────────────────────────────────────────────────────────
   18. JEFFERSON QUOTE
   ────────────────────────────────────────────────────────────── */
.quote-footer {
  padding: 48px 0 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.quote-minimal {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.78;
  color: var(--dim);
  max-width: 620px;
  margin: 0 auto;
}
.quote-minimal-cite {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-style: normal;
}

/* ──────────────────────────────────────────────────────────────
   19. BACKGROUND LAYERS
   ────────────────────────────────────────────────────────────── */
.persp-canvas  { position: fixed; inset: 0; z-index: -2; pointer-events: none; display: block; }
.bg-vignette   { position: fixed; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 0 300px 60px rgba(0,0,0,0.65); }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 1px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0.25), var(--chrome));
  z-index: 1001; pointer-events: none;
}
/* Film grain — subtle photographic texture */
body::after {
  content: "";
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 999; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grain 0.5s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-4%,-3%); }
  40%  { transform: translate(3%,4%); }
  60%  { transform: translate(-3%,3%); }
  80%  { transform: translate(4%,-4%); }
  100% { transform: translate(0,0); }
}

/* ──────────────────────────────────────────────────────────────
   20. SCROLL REVEAL
   ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.0s var(--ease-out), transform 1.0s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.18s; }
.reveal[data-d="3"] { transition-delay: 0.28s; }
.reveal[data-d="4"] { transition-delay: 0.38s; }

/* ──────────────────────────────────────────────────────────────
   21. HERO LETTER SCRAMBLE
   ────────────────────────────────────────────────────────────── */
.h-letter {
  display: inline-block;
  opacity: 0;
  animation: letterIn 0.4s var(--ease-out) forwards;
}
@keyframes letterIn { to { opacity: 1; } }

/* ──────────────────────────────────────────────────────────────
   22. RESPONSIVE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .split           { grid-template-columns: 1fr; }
  .cap-grid        { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(2,2,8,0.98);
    border-bottom: 1px solid var(--line-2);
    padding: 12px var(--gut) 28px;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    gap: 0;
  }
  .nav-links.open      { transform: translateY(0); }
  .nav-links a         { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a::after  { display: none; }
  .nav-cta             { margin: 16px 0 0; text-align: center; justify-content: center; }
  .nav-toggle          { display: block; }
  .hero-mark           { display: none; }
  .hero-stats          { flex-wrap: wrap; gap: 28px; }
  .field-row           { grid-template-columns: 1fr; gap: 0; }
  .footer-top          { grid-template-columns: 1fr; }
  /* mobile nav stagger */
  .nav-links.open a                   { animation: mobileNavIn 0.36s var(--ease) both; }
  .nav-links.open a:nth-child(1)      { animation-delay: 0.03s; }
  .nav-links.open a:nth-child(2)      { animation-delay: 0.09s; }
  .nav-links.open a:nth-child(3)      { animation-delay: 0.15s; }
  .nav-links.open a:nth-child(4)      { animation-delay: 0.21s; }
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────────────────────
   23. REDUCED MOTION
   ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal         { opacity: 1; transform: none; }
  .persp-canvas   { display: none; }
  body::after     { display: none; }
}
