/* ================================================================
   AKIHARU SCIENTIFIC AND ENGINEERING
   Design System — v2 Upgraded
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ================================================================
   CSS VARIABLES
   ================================================================ */

:root {
  --navy:         #061A33;
  --navy-2:       #071B3A;
  --navy-3:       #0A2144;
  --navy-4:       #0D2850;
  --navy-deep:    #040F1D;
  --blue:         #0B4D8B;
  --blue-mid:     #1260A8;
  --blue-light:   #1A6BB8;
  --blue-pale:    #4A9FE0;
  --orange:       #FF7A1A;
  --orange-dark:  #E06510;
  --orange-dim:   rgba(255,122,26,0.12);
  --white:        #F5F7FA;
  --off-white:    #E8ECF0;
  --muted:        #AAB4C0;
  --muted-2:      #7A8A9A;
  --muted-3:      #526070;
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.12);
  --border-blue:  rgba(26,107,184,0.25);
  --glass:        rgba(255,255,255,0.035);
  --glass-2:      rgba(255,255,255,0.065);
  --glass-blue:   rgba(11,77,139,0.12);

  --font-h:    'Space Grotesk', system-ui, sans-serif;
  --font-b:    'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:   180ms;
  --dur-mid:    380ms;
  --dur-slow:   640ms;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-w:  1280px;
}

/* ================================================================
   RESET
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-b); border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }
::selection { background: rgba(255,122,26,0.22); color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ================================================================
   LAYOUT
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section-pad    { padding: clamp(6rem, 12vw, 12rem) 0; }
.section-pad-sm { padding: clamp(4rem, 8vw, 8rem) 0; }

/* ================================================================
   TYPOGRAPHY SCALE
   ================================================================ */

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.label--blue  { color: var(--blue-light); }
.label--muted { color: var(--muted-2); }

h1, .h1 {
  font-family: var(--font-h);
  font-size: clamp(2.6rem, 6.5vw, 5.75rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.028em;
}
h2, .h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
h3, .h3 {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
h4, .h4 {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.text-lead { font-size: clamp(1rem, 1.4vw, 1.175rem); line-height: 1.75; color: var(--muted); }
.text-body { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.text-sm   { font-size: 0.875rem; color: var(--muted-2); }

.text-accent { color: var(--orange); }
.text-blue   { color: var(--blue-light); }
.text-muted  { color: var(--muted); }

/* ================================================================
   SECTION HEADER
   ================================================================ */

.section-header { margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-header--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}
.section-header .label { margin-bottom: 1.25rem; }
.section-header h2     { margin-bottom: 1.25rem; }
.section-header p      { font-size: 1.0625rem; line-height: 1.8; color: var(--muted); }

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(255,122,26,0.22);
}
.btn--primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 8px 28px rgba(255,122,26,0.38);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--white);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.28);
  background: var(--glass);
  transform: translateY(-2px);
}

.btn__arrow { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.375rem 0;
  border-bottom: 1px solid transparent;
  transition: padding var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
}
.nav.scrolled {
  padding: 0.9rem 0;
  background: rgba(6,26,51,0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav__logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: 0.72;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 10px rgba(26,107,184,0.22));
}
.nav__logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav__logo-name {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  line-height: 1;
}
.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1;
}

.nav__links { display: flex; align-items: center; gap: 2.5rem; }
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color var(--dur-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width var(--dur-mid) var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
}
.nav__cta:hover {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 0 22px rgba(255,122,26,0.3);
}

/* Mobile nav toggle */
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 24px; padding: 4px; }
.nav__toggle span {
  display: block; width: 100%; height: 1.5px;
  background: var(--white);
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-fast);
  transform-origin: center;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed; inset: 0;
  background: rgba(6,26,51,0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease);
}
.nav__mobile.open { opacity: 1; pointer-events: all; }

.nav__mobile-link {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--muted);
  transition: color var(--dur-fast);
}
.nav__mobile-link:hover { color: var(--white); }

.nav__mobile-cta {
  margin-top: 0.5rem;
  padding: 13px 38px;
  background: var(--orange);
  color: var(--navy);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(8rem, 15vw, 12rem) 0 clamp(5rem, 8vw, 8rem);
}

/* ── Parallax background layers ── */
.hero__layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Extend vertically so layers don't clip when translated */
  top: -20%;
  height: 140%;
}

/* Scientific grid — faintest, slowest */
.hero__layer-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,107,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,107,184,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 55% 45%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 55% 45%, black 30%, transparent 100%);
}

/* Hero SVG geometry layers — derived from logo */
.hero-geo {
  position: absolute;
  pointer-events: none;
  opacity: 0; /* anime.js fades in */
  display: none;
}

.hero-brandmark {
  position: absolute;
  top: 8%;
  right: clamp(-15rem, -8vw, -4rem);
  width: clamp(36rem, 54vw, 58rem);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 1;
  transform-origin: 52% 52%;
  filter:
    drop-shadow(0 0 36px rgba(26,107,184,0.18))
    drop-shadow(0 0 72px rgba(255,122,26,0.08));
}
.hero-brandmark::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,184,0.15) 0%, transparent 68%);
  opacity: 0.65;
}
.hero-brandmark img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.46;
  mix-blend-mode: screen;
}

.hero-calibration {
  position: absolute;
  top: 20%;
  right: 2%;
  width: min(48vw, 740px);
  height: min(36vw, 520px);
  pointer-events: none;
  opacity: 0;
  overflow: visible;
}
.hero-calibration path,
.hero-calibration circle {
  fill: none;
  stroke: rgba(74,159,224,0.36);
  stroke-width: 1;
  stroke-dasharray: 8 16;
}
.hero-calibration path:nth-child(3) {
  stroke: rgba(255,122,26,0.32);
  stroke-dasharray: none;
}

/* Large orbital arc — background layer */
.hero__layer-orbital {
  top: -10%; right: -15%;
  width: 75vw;
  max-width: 1100px;
  min-width: 520px;
}

/* A structure ghost — midground */
.hero__layer-a {
  top: -5%;
  right: 0;
  width: 55vw;
  max-width: 820px;
  min-width: 380px;
}

/* Construction lines — near layer */
.hero__layer-lines {
  top: 15%; right: 5%;
  width: 35vw;
  max-width: 520px;
  min-width: 240px;
}

/* Deep glow blobs */
.hero__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.hero__glow-1 {
  top: 30%; right: 5%;
  width: 50vw; height: 50vw;
  max-width: 680px; max-height: 680px;
  background: radial-gradient(circle, rgba(11,77,139,0.18) 0%, transparent 65%);
}
.hero__glow-2 {
  top: 10%; left: -15%;
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(255,122,26,0.05) 0%, transparent 65%);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.hero__eyebrow-line {
  width: 30px; height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

.hero__title { margin-bottom: 1.5rem; }
.hero__title em { font-style: normal; color: var(--orange); }

.hero__subtitle {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 2.25rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  color: var(--muted-3);
}
.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--muted-3), transparent);
  animation: scroll-pulse 2.2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 0.9; transform: scaleY(0.6); }
}

/* Hero animate class — before anime.js fires */
.hero__animate {
  opacity: 0;
  transform: translateY(22px);
}

/* ================================================================
   PHILOSOPHY
   ================================================================ */

.philosophy { position: relative; overflow: hidden; }
.philosophy__bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 50%, var(--navy) 100%);
}

.wave-surface {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8%;
  height: min(48vw, 520px);
  min-height: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
}
.wave-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(26,107,184,0.18), transparent 62%),
    linear-gradient(to bottom, transparent, rgba(4,15,29,0.36));
}
.wave-surface__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Section background geometric decoration */
.section-geo-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.045;
}

.philosophy__content {
  position: relative; z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.philosophy__quote {
  font-family: var(--font-h);
  font-size: clamp(1.45rem, 3.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.018em;
  margin-bottom: 2.5rem;
}
.philosophy__quote em { font-style: normal; color: var(--orange); }
.philosophy__body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}
.philosophy__rule {
  width: 44px; height: 1px;
  background: linear-gradient(to right, transparent, var(--orange), transparent);
  margin: 2.25rem auto;
}

/* ================================================================
   SERVICES
   ================================================================ */

.services { position: relative; }

.services > .container {
  position: relative;
  z-index: 2;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.service-card {
  position: relative;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease),
              background  var(--dur-mid) var(--ease),
              transform   var(--dur-mid) var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}
.service-card:hover {
  border-color: rgba(255,122,26,0.18);
  background: var(--glass-2);
  transform: translateY(-5px);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon { width: 44px; height: 44px; margin-bottom: 1.5rem; color: var(--orange); }
.service-card__num {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.service-card__title {
  font-family: var(--font-h);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-card__items { display: flex; flex-direction: column; gap: 0.45rem; }
.service-card__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-2);
}
.service-card__item::before { content: '›'; color: var(--blue-light); font-size: 1rem; line-height: 1; }

/* ================================================================
   FEATURED SYSTEMS
   ================================================================ */

.systems {
  position: relative;
  overflow: visible;
  min-height: 100vh;
}

.orbital-trajectory {
  position: fixed;
  inset: -15rem 0 auto;
  height: min(60vw, 760px);
  min-height: 500px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  overflow: hidden;
  filter: blur(0.05px);
  will-change: transform, opacity, clip-path;
  transition: opacity 220ms ease;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 86%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 86%);
  -webkit-mask-composite: source-in;
}
.orbital-trajectory__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbital-trajectory__guide path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.orbital-trajectory__sphere,
.orbital-trajectory__trail span {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transform: translate3d(-999px, -999px, 0);
  will-change: transform, opacity;
}
.orbital-trajectory__sphere {
  background: rgba(248,250,252,0.98);
  border: 1px solid rgba(248,250,252,0.92);
  box-shadow:
    0 0 var(--orbit-glow-core, 10px) rgba(245,247,250,var(--orbit-glow-a, 0.2)),
    0 0 var(--orbit-glow-field, 22px) rgba(74,159,224,var(--orbit-field-a, 0.12));
  filter: blur(var(--orbit-blur, 0px));
  z-index: 2;
}
.orbital-trajectory__sphere::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(245,247,250,0.32);
  border-radius: 50%;
}
.orbital-trajectory__trail span {
  width: 7px;
  height: 7px;
  background: rgba(245,247,250,0.72);
  box-shadow: 0 0 var(--trail-glow, 8px) rgba(245,247,250,0.18);
  filter: blur(var(--trail-blur, 0px));
  z-index: 1;
}
.systems > .container {
  position: relative;
  z-index: 2;
}

.systems__bg-deco {
  position: absolute;
  left: -5%;
  top: 10%;
  width: 50%;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1;
}

.systems__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: clamp(3rem, 5vw, 5rem);
}

.system-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: default;
  transition: border-color var(--dur-mid) var(--ease),
              background   var(--dur-mid) var(--ease),
              transform    var(--dur-mid) var(--ease);
  /* Scan line var */
  --scan-y: 50%;
}
.system-card::before {
  /* Left accent bar */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--blue));
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}
/* Hover scan line effect */
.system-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent calc(var(--scan-y) - 60px),
    rgba(26,107,184,0.04) var(--scan-y),
    transparent calc(var(--scan-y) + 60px)
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.system-card:hover {
  background: var(--glass-2);
  border-color: rgba(11,77,139,0.35);
  transform: translateX(3px);
}
.system-card:hover::before  { opacity: 1; }
.system-card:hover::after   { opacity: 1; }

.system-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.system-card__tag {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: rgba(11,77,139,0.18);
  border: 1px solid var(--border-blue);
  color: var(--blue-light);
}
.system-card__tag--sci {
  background: rgba(255,122,26,0.09);
  border-color: rgba(255,122,26,0.2);
  color: var(--orange);
}
.system-card__num {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  letter-spacing: 0.12em;
  color: var(--muted-3);
}
.system-card__title {
  font-family: var(--font-h);
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.system-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 1rem;
}
.system-card__caps { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.6375rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--muted-2);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.system-card:hover .cap-tag { color: var(--muted); border-color: rgba(255,255,255,0.12); }

.system-card__arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-3);
  transition: all var(--dur-mid) var(--ease);
}
.system-card:hover .system-card__arrow {
  border-color: var(--orange);
  color: var(--orange);
  transform: rotate(45deg);
}

/* ================================================================
   EL SPOTLIGHT
   ================================================================ */

.el-spotlight {
  position: relative;
  overflow: hidden;
}
.el-spotlight__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-3) 60%, var(--navy-deep) 100%);
}
.el-spotlight__glow {
  position: absolute;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(255,122,26,0.07) 0%, rgba(11,77,139,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.el-spotlight__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.el-spotlight__label { margin-bottom: 1.25rem; }
.el-spotlight__title { margin-bottom: 1.5rem; }

.el-spotlight__body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.el-spotlight__body + .el-spotlight__body { margin-top: -0.5rem; }

/* EL capability grid */
.el-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 2rem;
}
.el-cap {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--border);
}
.el-cap__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.el-cap__text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* EL visual panel */
.el-spotlight__visual {
  position: relative;
}
.el-panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--border-blue);
  overflow: hidden;
  padding: 2.5rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.el-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange) 30%, var(--blue-light) 70%, transparent);
}
.el-panel__label {
  position: absolute;
  top: 1rem; left: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.el-panel__status {
  position: absolute;
  top: 1rem; right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.el-panel__status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: status-blink 2s ease infinite;
}
@keyframes status-blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ================================================================
   TEAM
   ================================================================ */

.team { position: relative; overflow: hidden; }
.team__bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 50%, var(--navy) 100%);
}

.team > .container {
  position: relative;
  z-index: 2;
}

.team .section-header {
  opacity: 1;
  transform: none;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: clamp(3rem, 5vw, 5rem);
}

.team-card {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--border);
  overflow: hidden;
  /* anime.js starts invisible */
  opacity: 0;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.team-card:nth-child(1)::before { background: linear-gradient(90deg, var(--orange), var(--blue-mid)); }
.team-card:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), var(--orange)); }
.team-card:nth-child(3)::before { background: linear-gradient(90deg, var(--blue-light), var(--orange)); }

.team-card__index {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 1.5rem;
}

/* Monogram circle */
.team-card__mono {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--blue));
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.team-card__name {
  font-family: var(--font-h);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
}
.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.team-card__bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-2);
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.team-tag {
  font-family: var(--font-mono);
  font-size: 0.5875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(11,77,139,0.1);
  border: 1px solid var(--border-blue);
  color: var(--muted);
}

/* ================================================================
   PROCESS
   ================================================================ */

.process { position: relative; }

.process__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  margin-top: clamp(3rem, 5vw, 5rem);
}

/* Connector line behind steps */
.process__connector {
  position: absolute;
  top: 27px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-blue), var(--blue-light), var(--border-blue), transparent);
  transform-origin: left;
  transform: scaleX(0);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
  opacity: 0; /* anime.js reveals */
}
.process-step__dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-blue);
  background: var(--navy-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  transition: all var(--dur-mid) var(--ease);
}
.process-step:hover .process-step__dot {
  background: var(--blue);
  border-color: var(--blue-light);
  color: var(--white);
  box-shadow: 0 0 18px rgba(11,77,139,0.4);
}
.process-step__title {
  font-family: var(--font-h);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.process-step__desc { font-size: 0.8rem; color: var(--muted-2); line-height: 1.6; }

/* ================================================================
   CONTACT
   ================================================================ */

.contact { position: relative; overflow: hidden; }
.contact__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-3) 100%);
}
.contact__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,122,26,0.055) 0%, transparent 70%);
  pointer-events: none;
}
.contact__inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.contact__inner .label { margin-bottom: 1.25rem; }
.contact__inner h2     { margin-bottom: 1.25rem; }
.contact__inner > p {
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.contact__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.contact__email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-2);
  transition: color var(--dur-fast);
}
.contact__email-link:hover { color: var(--white); }

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer__brand-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-2);
  margin-top: 1rem;
  max-width: 260px;
}
.footer__col-title {
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__link { font-size: 0.9rem; color: var(--muted-2); transition: color var(--dur-fast); }
.footer__link:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.footer__copy { font-size: 0.8rem; color: var(--muted-3); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.8rem; color: var(--muted-3); transition: color var(--dur-fast); }
.footer__legal a:hover { color: var(--white); }

/* ================================================================
   LEGAL PAGES
   ================================================================ */

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(26,107,184,0.14), transparent 34rem),
    radial-gradient(circle at 12% 28%, rgba(255,122,26,0.055), transparent 24rem),
    var(--navy);
}

.legal-page .nav {
  background: rgba(6,26,51,0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.025);
}

.legal-main {
  padding-top: clamp(8rem, 14vw, 11rem);
}

.legal-hero {
  max-width: 860px;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.legal-hero h1 {
  margin: 1rem 0 1.25rem;
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-updated {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.legal-content {
  max-width: 860px;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.035);
}

.legal-section + .legal-section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  margin-bottom: 0.85rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.85;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
  margin-top: 0.85rem;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal-section a {
  color: var(--off-white);
  border-bottom: 1px solid rgba(255,122,26,0.45);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.legal-section a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.legal-page .nav__logo,
.legal-page .footer .nav__logo {
  flex-shrink: 0;
}

/* ================================================================
   SCROLL REVEAL CLASSES
   ================================================================ */

.reveal, .reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal      { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right{ transform: translateX(28px); }
.reveal-up   { transform: translateY(40px); }

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }
.delay-6 { transition-delay: 0.60s; }

/* ================================================================
   ANIMATION FALLBACKS
   Ensure elements are visible if anime.js or JS hasn't fired.
   Using @media for the no-JS / slow-load case and explicit
   opacity fallbacks inside each breakpoint.
   ================================================================ */

/* Team cards — visible when anime.js hasn't triggered yet
   (anime sets opacity on scroll, so if section is off-screen
   on initial load they may stay hidden; JS handles it, but
   CSS fallback prevents invisible-on-slow-connection) */
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .process-step,
  .hero__animate { opacity: 1 !important; transform: none !important; }
}

/* ================================================================
   RESPONSIVE — 1280px (Laptop)
   ================================================================ */

@media (max-width: 1280px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
  }
  .footer__brand     { grid-column: 1 / -1; }
  .footer__brand-text { max-width: 100%; }
  .team__grid        { gap: 1rem; }
}

/* ================================================================
   RESPONSIVE — 1024px (Tablet landscape)
   ================================================================ */

@media (max-width: 1024px) {
  /* Hero brandmark — slightly smaller */
  .hero-brandmark {
    top: 8%;
    right: clamp(-16rem, -14vw, -4rem);
    width: clamp(32rem, 58vw, 48rem);
  }

  .el-spotlight__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .el-spotlight__visual { max-width: 560px; }
  .el-spotlight__inner  { align-items: start; }

  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 0;
  }
  .process__connector { display: none; }
  /* Show process steps regardless of anime.js */
  .process-step { opacity: 1; }

}

/* ================================================================
   RESPONSIVE — 768px (Tablet portrait)
   ================================================================ */

@media (max-width: 768px) {
  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__toggle  { display: flex; }
  .nav__mobile  { display: flex; }

  /* Hero background — scale down, prevent overflow */
  .hero-brandmark {
    top: 14%;
    bottom: auto;
    right: -42%;
    width: clamp(32rem, 118vw, 46rem);
  }
  .hero-brandmark img   { opacity: 0.5; }
  .hero-calibration {
    display: block;
    top: 26%;
    right: -22%;
    width: 86vw;
    height: 48vw;
    opacity: 0;
  }
  .wave-surface {
    bottom: -4%;
    height: 340px;
    min-height: 260px;
    opacity: 0.82;
  }
  .hero__layer-orbital,
  .hero__layer-a,
  .hero__layer-lines    { display: none; }
  .hero__glow-1         {
    width: 60vw; height: 60vw;
    top: 40%; right: -10%;
  }

  /* Restore anime.js-hidden elements on tablet */
  .process-step  { opacity: 1; }
  .team-card     { opacity: 1; }

  /* Grids */
  .services__grid { grid-template-columns: 1fr 1fr; }
  .team__grid     { grid-template-columns: 1fr 1fr; gap: 0.875rem; }
  .el-caps        { grid-template-columns: 1fr; }

  /* Process */
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 0;
  }

  /* System cards — no side arrow on small tap targets */
  .system-card          { grid-template-columns: 1fr; }
  .system-card__arrow   { display: none; }
  .orbital-trajectory {
    top: -7.5rem;
    height: 460px;
    min-height: 420px;
  }

  /* Stats bar — wrap */
  /* EL panel */
  .el-panel { aspect-ratio: 4/3; padding: 1.5rem; }

  /* Footer */
  .footer__inner  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand  { grid-column: 1 / -1; }
  .footer__brand-text { max-width: 100%; }
  .footer__bottom { flex-direction: column; gap: 0.875rem; text-align: center; }
  .footer__legal  { justify-content: center; }
}

/* ================================================================
   RESPONSIVE — 480px (Mobile)
   ================================================================ */

@media (max-width: 480px) {
  /* Typography */
  h1, .h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  h2, .h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }

  /* Hero */
  .hero {
    padding-top: clamp(6rem, 22vw, 8rem);
    padding-bottom: clamp(4rem, 12vw, 5rem);
    align-items: flex-start;
  }
  .hero-brandmark {
    top: 18%;
    right: -76%;
    width: clamp(28rem, 132vw, 36rem);
  }
  .hero-brandmark img { opacity: 0.44; }
  .hero-calibration {
    top: 30%;
    right: -42%;
    width: 120vw;
    height: 72vw;
  }
  .hero__glow-1, .hero__glow-2 { display: none; }
  .hero__scroll { display: none; }

  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats — single column */
  /* Services — single column */
  .services__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-card   { padding: 1.75rem 1.5rem; }

  /* Systems — tighter */
  .system-card { padding: 1.375rem 1.25rem; }
  .orbital-trajectory {
    top: -5rem;
    height: 380px;
    min-height: 360px;
  }
  .orbital-trajectory__sphere {
  width: 26px;
  height: 26px;
  }

  /* EL spotlight */
  .el-spotlight__inner { grid-template-columns: 1fr; gap: 2rem; }
  .el-caps { grid-template-columns: 1fr; gap: 0.5rem; }
  .el-panel { aspect-ratio: unset; min-height: 220px; padding: 1.25rem; }

  /* Team — single column */
  .team__grid  { grid-template-columns: 1fr; gap: 0.875rem; }
  .team-card   { padding: 1.75rem 1.5rem 1.5rem; opacity: 1; }

  /* Process — single column, horizontal layout */
  .process__steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    align-items: flex-start;
    opacity: 1;
  }
  .process-step__dot {
    flex-shrink: 0;
    width: 46px; height: 46px;
    margin-bottom: 0;
  }

  /* Contact */
  .contact__actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .contact__actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer__inner   { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom  {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .footer__legal   { justify-content: center; }

  /* Section geo backgrounds — hide on mobile to prevent overflow */
  .section-geo-bg  { display: none; }
}

/* ================================================================
   RESPONSIVE — 390px (Small mobile, e.g. iPhone 14)
   ================================================================ */

@media (max-width: 400px) {
  .container { padding: 0 1rem; }

  h1, .h1 { font-size: clamp(1.9rem, 9.5vw, 2.4rem); letter-spacing: -0.022em; }

  .hero-brandmark {
    display: block;
    top: 18%;
    right: -118%;
    width: 142vw;
  }
  .hero-brandmark img { opacity: 0.34; }
  .hero__eyebrow  { margin-bottom: 1.25rem; }
  .wave-surface {
    height: 280px;
    min-height: 240px;
    opacity: 0.72;
  }

  .nav { padding: 0.875rem 0; }
  .nav.scrolled { padding: 0.75rem 0; }

  .service-card__title { font-size: 1rem; }
  .service-card__desc  { font-size: 0.875rem; }
  .service-card__item  { font-size: 0.6875rem; }

  .team-card__name { font-size: 1.0625rem; }
  .team-card__bio  { font-size: 0.875rem; }

  .system-card__title { font-size: 1rem; }
  .system-card__desc  { font-size: 0.875rem; }

  .el-spotlight__body { font-size: 0.9375rem; }

  .btn { padding: 11px 22px; font-size: 0.875rem; }
  .nav__mobile-link { font-size: 1.75rem; }

}

/* ================================================================
   PREVENT HORIZONTAL OVERFLOW GLOBALLY
   ================================================================ */

html, body { max-width: 100%; overflow-x: hidden; }

/* Any absolutely positioned decoration must not leak outside
   sections that declare overflow:hidden */
.hero,
.philosophy,
.el-spotlight,
.team,
.contact { overflow: hidden; }

@media (max-width: 768px) {
  .legal-page .nav__inner {
    gap: 1rem;
    min-width: 0;
  }

  .legal-page .nav__links {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
  }

  .legal-page .nav__links::-webkit-scrollbar {
    display: none;
  }

  .legal-page .nav__link {
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .legal-page .nav__cta,
  .legal-page .nav__toggle,
  .legal-page .nav__mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .legal-page .nav__logo-text {
    display: none;
  }

  .legal-page .nav__logo {
    width: 38px;
    flex: 0 0 38px;
  }

  .legal-page .nav__links {
    gap: 0.75rem;
    padding-left: 0.25rem;
  }

  .legal-page .nav__link {
    font-size: 0.78rem;
  }

  .legal-content {
    padding: 1.5rem 1.25rem;
  }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================================
   PORTFOLIO ATTRIBUTION ELEMENTS
   ================================================================ */

.systems__attribution-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  line-height: 1.75;
  max-width: 680px;
}
.systems__attribution-note em {
  color: var(--orange);
  font-style: normal;
}

.footer__portfolio-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.6875rem;
  color: var(--muted-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.85;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
