/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: calc(var(--z-sticky) + 2);
  background: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* Force logo to white on dark header/footer backgrounds */
  filter: brightness(0) invert(1);
  transition: filter var(--dur) var(--ease);
}

.brand:hover .brand__mark {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--accent-glow));
}

.brand__name { line-height: 1; }
html[lang="he"] .brand__name { font-family: var(--font-he); font-weight: 800; letter-spacing: 0; }

.nav--desktop {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav--mobile {
  display: none;
}

.nav__link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
  position: relative;
  padding-block: 4px;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
}

.lang-switch__btn {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.lang-switch__btn.is-active {
  background: var(--accent);
  color: var(--bg-deep);
}

.lang-switch__btn:not(.is-active):hover { color: var(--text-primary); }

/* Mobile nav toggle — animated hamburger ↔ X */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(14, 17, 22, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-primary);
  position: relative;
  z-index: calc(var(--z-sticky) + 2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
}

.nav-toggle__box {
  position: relative;
  width: 20px;
  height: 14px;
  display: inline-block;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}

.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bar:nth-child(3) { top: 100%; transform: translateY(-100%); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ===== Mobile nav overlay ===== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav--desktop { display: none; }

  /* Compact lang-switch on mobile */
  .lang-switch__btn {
    padding: 5px 9px;
    font-size: 10px;
  }

  /* Full-screen tactical overlay nav */
  .nav--mobile {
    display: flex;
    position: fixed;
    top: 0;
    inset-inline: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + var(--sp-6)) var(--sp-6) var(--sp-8);
    background:
      radial-gradient(circle at 80% 10%, rgba(79, 179, 191, 0.12) 0%, transparent 45%),
      radial-gradient(circle at 20% 90%, rgba(79, 179, 191, 0.08) 0%, transparent 50%),
      linear-gradient(180deg, rgba(10, 13, 18, 0.97) 0%, rgba(14, 17, 22, 0.98) 100%);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    z-index: calc(var(--z-sticky) + 1);
    counter-reset: navcount;
  }

  .nav--mobile.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Decorative grid lines overlay */
  .nav--mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(79, 179, 191, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(79, 179, 191, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.6;
    mask-image: linear-gradient(180deg, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 80%);
  }

  .nav--mobile .nav__link {
    counter-increment: navcount;
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-3);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
    position: relative;
  }

  html[lang="he"] .nav--mobile .nav__link {
    font-family: var(--font-he);
    text-transform: none;
    font-size: clamp(1.375rem, 5vw, 1.875rem);
  }

  .nav--mobile .nav__link::before {
    content: counter(navcount, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.55em;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    opacity: 0.85;
    min-width: 2.5ch;
  }

  .nav--mobile .nav__link::after {
    content: "→";
    display: inline-block;
    margin-inline-start: auto;
    font-size: 0.7em;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    background: none;
    position: static;
    height: auto;
    inset: auto;
  }

  html[dir="rtl"] .nav--mobile .nav__link::after { content: "←"; transform: translateX(8px); }

  .nav--mobile .nav__link:hover,
  .nav--mobile .nav__link:active {
    color: var(--accent);
    background: rgba(79, 179, 191, 0.06);
  }
  .nav--mobile .nav__link:hover::after,
  .nav--mobile .nav__link:active::after {
    opacity: 1;
    transform: translateX(0);
  }

  .nav--mobile.is-open .nav__link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav--mobile.is-open .nav__link:nth-child(1) { transition-delay: 0.08s; }
  .nav--mobile.is-open .nav__link:nth-child(2) { transition-delay: 0.14s; }
  .nav--mobile.is-open .nav__link:nth-child(3) { transition-delay: 0.20s; }
  .nav--mobile.is-open .nav__link:nth-child(4) { transition-delay: 0.26s; }
  .nav--mobile.is-open .nav__link:nth-child(5) { transition-delay: 0.32s; }
  .nav--mobile.is-open .nav__link:nth-child(6) { transition-delay: 0.38s; }

  /* Tactical footer inside the overlay */
  .nav--mobile::after {
    content: "COUNTER-DRONE · NON-EXPLOSIVE · ZERO JAMMING";
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0.5;
    text-align: center;
    margin-top: auto;
    padding-top: var(--sp-6);
    background: none;
    position: static;
    inset: auto;
    height: auto;
    transform: none;
  }

  /* When nav open, lock scroll via body class */
  body.nav-open {
    overflow: hidden;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: var(--sp-8);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79, 179, 191, 0.15), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(79, 179, 191, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 179, 191, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 179, 191, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 75%);
}

.hero__scanline {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
  animation: scanline 8s linear infinite;
}

/* 3D drone canvas — layered between background grid and hero content */
.drone-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.drone-3d-canvas.is-loaded {
  opacity: 1;
}

/* On mobile, pin the canvas to the viewport so the drone stays visible
   while the user scrolls through the hero section. */
@media (max-width: 700px) {
  .drone-3d-canvas {
    position: fixed;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    z-index: 1;
    transition: opacity 0.4s var(--ease-out);
  }
  .drone-3d-canvas.is-loaded {
    opacity: 0;
  }
  .drone-3d-canvas.is-loaded.is-in-hero {
    opacity: 1;
  }

  /* Keep non-hero sections above the fixed canvas so the drone never
     overlaps body copy — it only flies over the hero. */
  main > section:not(#home) {
    position: relative;
    z-index: 2;
    background: var(--bg-deep);
  }
  main > section.section--surface {
    background: var(--bg-surface);
  }
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(26, 31, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, var(--fs-5xl));
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
}

html[lang="he"] .hero__title {
  font-family: var(--font-he);
  font-weight: 800;
  text-transform: none;
  letter-spacing: normal;
}

.hero__tagline {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
  color: var(--text-primary);
  max-width: 40ch;
  margin-bottom: var(--sp-5);
  line-height: var(--lh-snug);
  font-weight: 400;
}

.hero__subline {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-7);
}

.hero__cta-row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 2;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

html[dir="rtl"] .hero__scroll { transform: translateX(50%); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 28px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deep);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg-deep);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--ghost { background: rgba(26, 31, 43, 0.4); }
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

html[lang="he"] .btn { text-transform: none; letter-spacing: 0; font-weight: 700; }

/* ============ CARDS (Capabilities) ============ */
.cap-card {
  position: relative;
  padding: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}

.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.cap-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-glow);
}

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

.cap-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}

.cap-card__number {
  position: absolute;
  top: var(--sp-4);
  inset-inline-end: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: var(--ls-wide);
}

.cap-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
  font-weight: 600;
}

.cap-card__body {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

/* ============ PILLARS (About) ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.pillar {
  padding: var(--sp-5);
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: var(--sp-5);
}

.pillar__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.pillar__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.pillar__body { font-size: var(--fs-sm); color: var(--text-muted); }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============ SYSTEMS (Alternating layout) ============ */
.system {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--border);
}

.system:last-child { border-bottom: 0; }

.system__gallery {
  min-width: 0;
  margin: 0;
}

.system__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}

.system__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  box-shadow: inset 0 0 48px rgba(14, 17, 22, 0.2);
}

.system__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur-slow) var(--ease);
}

.system__gallery.is-loading .system__image {
  opacity: 0.5;
  transform: scale(1.012);
}

.system__image-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  padding: 32px var(--sp-4) var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: rgba(232, 230, 225, 0.78);
  background: linear-gradient(to top, rgba(14, 17, 22, 0.9), transparent);
  pointer-events: none;
}

.system__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.system__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.system__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--dur-fast) var(--ease);
}

.system__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(0.72);
  transition:
    opacity var(--dur-fast) var(--ease),
    filter var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease);
}

.system__thumb > span {
  position: absolute;
  inset-inline-end: 6px;
  bottom: 5px;
  z-index: 2;
  min-width: 26px;
  padding: 2px 5px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.4;
  letter-spacing: var(--ls-wide);
  color: rgba(232, 230, 225, 0.84);
  background: rgba(14, 17, 22, 0.78);
  border: 1px solid rgba(232, 230, 225, 0.12);
  border-radius: var(--radius-sm);
}

.system__thumb:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.system__thumb:hover img,
.system__thumb.is-active img {
  opacity: 1;
  filter: saturate(1);
  transform: scale(1.025);
}

.system__thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow-glow);
}

.system__thumb.is-active::after {
  border-color: rgba(79, 179, 191, 0.34);
}

.system__thumb:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.system__number {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--sp-3);
}

.system__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-tight);
}

.system__subtitle {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.system__body {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.system__tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .system, .system--flip { grid-template-columns: 1fr; gap: var(--sp-5); padding-block: var(--sp-6); }
  .system--flip .system__gallery { order: 1; }
  .system--flip .system__content { order: 2; }
  .system__title { font-size: var(--fs-2xl); }
}

/* ============ RAFAEL PARTNERSHIP SECTION ============ */
.partnership {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.partnership__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.partnership__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.partnership__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wider);
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.partnership__eyebrow::before,
.partnership__eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.partnership__title {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  margin-bottom: var(--sp-6);
  line-height: var(--lh-tight);
}

.partnership__body {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto var(--sp-9);
  line-height: var(--lh-relaxed);
}

.partnership__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.partnership__logo {
  position: relative;
  width: 240px;
  height: 160px;
  padding: var(--sp-3);
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--accent-glow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.partnership__logo:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--accent);
}

.partnership__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* The Take-Down lockup is landscape and the Rafael mark is square, so they are
   matched on height rather than area — and both stay inside the card padding. */
.partnership__logo--takedown img {
  max-height: 124px;
}

.partnership__logo--rafael img {
  max-height: 130px;
}

.partnership__connector {
  width: 180px;
  height: 40px;
  flex-shrink: 0;
}

.partnership__connector path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.3s;
}

.partnership.is-visible .partnership__connector path { stroke-dashoffset: 0; }

.partnership__connector circle {
  fill: var(--accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease) 1.4s;
}

.partnership.is-visible .partnership__connector circle { opacity: 1; }

@media (max-width: 768px) {
  .partnership__logos { flex-direction: column; gap: var(--sp-5); }
  .partnership__connector { width: 40px; height: 100px; transform: rotate(90deg); }
}

/* ============ TRAINING ============ */
.training__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
  align-items: start;
  margin-top: var(--sp-7);
}

.training__copy p { margin-bottom: var(--sp-4); font-size: var(--fs-lg); color: var(--text-muted); }

.audience-list {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.audience-list__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.audience-list li {
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-base);
}

.audience-list li:last-child { border-bottom: 0; }

.audience-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .training__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ============ CONTACT ============ */
.contact-card {
  max-width: 640px;
  margin: var(--sp-7) auto 0;
  padding: var(--sp-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.contact-card__role {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  position: relative;
}

.contact-card__name {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-6);
  position: relative;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  margin-top: var(--sp-5);
}

.contact-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--text-primary);
  transition: all var(--dur) var(--ease);
  direction: ltr;
}

.contact-method:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.contact-method svg { width: 18px; height: 18px; }

.contact-method--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  font-weight: 600;
}

.contact-method--signal:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
  color: #fff;
  box-shadow: 0 0 32px rgba(233, 75, 26, 0.35);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: var(--sp-8) 0 var(--sp-5);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.site-footer__brand { max-width: 32ch; }
.site-footer__brand p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-3); }

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.site-footer__links { display: grid; gap: var(--sp-2); }
.site-footer__links a { color: var(--text-muted); font-size: var(--fs-sm); }
.site-footer__links a:hover { color: var(--text-primary); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: var(--ls-wide);
}

.site-footer__disclaimer { max-width: 60ch; }

.site-footer__credit {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: var(--ls-wide);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.site-footer__credit-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--ls-wider);
  position: relative;
  padding-block: 2px;
  transition: color var(--dur) var(--ease);
}

.site-footer__credit-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.site-footer__credit-link:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 12px var(--accent-glow);
}

.site-footer__credit-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: var(--sp-5); }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}

/* ============ CALLOUT (Market gap / Vision / Modular architecture) ============ */
.callout {
  position: relative;
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  padding-inline-start: calc(var(--sp-6) + var(--sp-1));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.callout > * { position: relative; }

.callout--wide { padding: var(--sp-7) var(--sp-6); }

.callout__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.callout__title {
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-4);
  max-width: 44ch;
}

.callout__body {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: 78ch;
}

/* Signal variant — used to mark the market gap / the problem */
.callout--signal { border-inline-start-color: var(--signal); }
.callout--signal::before {
  background: radial-gradient(ellipse at top, rgba(233, 75, 26, 0.07), transparent 70%);
}
.callout--signal .callout__label { color: var(--signal); }

/* ============ SYSTEM SPEC POINTS ============ */
.system__points {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.system__points li {
  position: relative;
  padding-inline-start: var(--sp-5);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.system__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ============ TECHNOLOGY EDGE GRID ============ */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.edge {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.edge::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.edge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.edge__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.edge__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.edge__body {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .edge-grid { grid-template-columns: 1fr; }
}

/* ============ NEXT GENERATION (R&D: AI + anti-swarm) ============ */
.nextgen {
  position: relative;
  margin-top: var(--sp-8);
  padding: var(--sp-7) var(--sp-6);
  background:
    linear-gradient(135deg, rgba(79, 179, 191, 0.07) 0%, transparent 55%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.nextgen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 179, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 179, 191, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

.nextgen > * { position: relative; }

.nextgen__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 6px 14px;
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}

.nextgen__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s var(--ease) infinite;
}

.nextgen__title {
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-4);
  max-width: 24ch;
}

.nextgen__lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: 74ch;
}

.nextgen__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.nextgen__card {
  padding: var(--sp-5);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nextgen__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.nextgen__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.nextgen__card-title {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-3);
}

.nextgen__card-body {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .nextgen { padding: var(--sp-6) var(--sp-5); }
  .nextgen__grid { grid-template-columns: 1fr; }
  .nextgen__title { font-size: var(--fs-xl); }
}

/* ============ DEPLOYMENT ENVIRONMENTS ============ */
.sectors {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.sectors__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}

.sectors__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.sector {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.sector::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

.sector:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ============ SPECIAL PROJECTS (restricted) ============ */
.classified {
  position: relative;
  margin-top: var(--sp-7);
  padding: var(--sp-8) var(--sp-7) var(--sp-7);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 12px, transparent 12px 24px),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.classified::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 65%);
  pointer-events: none;
}

.classified::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 8px, transparent 8px 16px);
  opacity: 0.55;
}

.classified > * { position: relative; }

.classified__stamp {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-glow);
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: var(--sp-5);
}

.classified__stamp svg { width: 24px; height: 24px; }

.classified__lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.classified__body {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.classified__note {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-dim);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.classified__tags { margin-top: var(--sp-5); }
.classified__cta { margin-top: var(--sp-6); }

@media (max-width: 640px) {
  .classified { padding: var(--sp-6) var(--sp-5); }
}

/* ============ CONTACT LOCATION ============ */
.contact-card__location {
  position: relative;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.contact-card__location svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Static (non-link) items inside the footer link stacks */
.site-footer__links span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Stacked lead paragraphs under a section title */
.section__subtitle + .section__subtitle {
  margin-top: calc(var(--sp-4) - var(--sp-8));
}

/* ============ UTILITIES for lang transition ============ */
html.lang-switching * { transition: none !important; }
