/* =========================================================
   Sonic Dynamics / Droonilabor — droonilabor.ee
   Deep-blue gradient theme:
     • fixed diagonal blue gradient across the whole page
     • light text (near-white / muted blue-grey) + champagne accent
     • 3-role type system: display / body / details
     • compact vertical rhythm
     • calm transform+opacity animations (see js/script.js)
   Plain static CSS. Mobile-first, responsive.

   Structure:
     1. Design tokens
     2. Base / reset / typography
     3. Layout helpers + section rhythm
     4. Header / nav
     5. Sections (hero, value, engineered, carousel, estonia, supported)
     5b. About — team grid
     6. Footer
     7. Reveal-on-scroll
     8. Accessibility + reduced motion
     9. Responsive
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Page gradient — sampled from the reference image (navy → sky-blue) */
  --grad-1: #080635;   /* 0%   near-black navy */
  --grad-2: #050634;   /* 22%  */
  --grad-3: #0B1D73;   /* 50%  deep blue */
  --grad-4: #1F7BE0;   /* 75%  */
  --grad-5: #12A8F4;   /* 100% bright sky-blue */

  /* Text colours for the bright bottom of the gradient (footer) */
  --ink-dark:   #0A1B2E;
  --slate-dark: #17304A;
  --brass-dark: #4A3105;

  /* Text + accents on the gradient */
  --color-ink:      #F3F6FB;             /* headings & primary text */
  --color-slate:    #C3D2E6;             /* secondary / body text */
  --color-accent:   #D3AE68;             /* champagne — small labels, hero rule, active dot */
  --color-marine:   #2E5A82;
  --color-steel:    #6E93B5;
  --color-sky:      #BFD2E2;

  --color-surface:  #FFFFFF;             /* WHITE plate — funder logos only */
  --color-panel:    rgba(255, 255, 255, .055);  /* translucent cards on the gradient */
  --color-hairline: rgba(174, 192, 214, .22);   /* dividers */
  --color-panel-edge: rgba(255, 255, 255, .14);

  /* ---- FONTS ----
     HEADER / DISPLAY:
     TODO: Montserrat is a STAND-IN for the real "SONIC DYNAMICS" logo wordmark
     typeface. When the actual font is known, change --font-display here and the
     Google Fonts <link> in index.html + about.html — nothing else needs editing. */
  --font-display: "Montserrat", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1200px;
  --gutter: 20px;
  --space-section: 56px;      /* compact */

  --transition-fast: 150ms ease;
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --dur: 620ms;
}

/* ---------- 2. Base / reset / typography ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--grad-3);   /* fallback / overscroll colour */
  font-size: 118.75%;   /* 16px -> 19px root: scales every rem/clamp size site-wide */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.12rem;   /* ~21px at the new root */
  line-height: 1.55;
  color: var(--color-slate);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;

  /* One smooth vertical blend across the whole page, fixed so it stays put
     while scrolling. Individual sections are transparent so this shows through. */
  background: linear-gradient(
    180deg,
    var(--grad-1) 0%,
    var(--grad-2) 22%,
    var(--grad-3) 50%,
    var(--grad-4) 75%,
    var(--grad-5) 100%
  ) fixed;
  background-color: var(--grad-3);   /* fallback */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Display headings — logo-style geometric sans, uppercase, tight tracking */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.16;
  margin: 0 0 .35em;
}
h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: .005em; }

p { margin: 0 0 .8em; }

/* DETAILS font — small uppercase labels / eyebrows / spec labels */
.carousel__label,
.spec-row dt {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .88rem;
}

/* ---------- 3. Layout helpers + section rhythm ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main > section { padding-block: var(--space-section); }
main > section + section { border-top: 1px solid var(--color-hairline); }

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-soft), border-color 300ms var(--ease-soft);
}
/* JS adds .is-scrolled once the page moves */
.site-header.is-scrolled {
  background: rgba(8, 18, 38, .78);
  border-bottom-color: var(--color-hairline);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 76px; width: auto; transform: translateY(-5px); }

.primary-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding-bottom: 4px;
  transition: color 200ms var(--ease-soft);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-soft);
}
.primary-nav a:hover { color: var(--color-accent); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--color-accent); }
.primary-nav a[aria-disabled="true"] { cursor: default; }

.nav-social a {
  color: var(--color-slate);
  display: inline-flex;
  padding-bottom: 0;
  transition: color 200ms var(--ease-soft);
}
.nav-social a::after { content: none; }
.nav-social a:hover { color: var(--color-accent); }
.icon-linkedin { display: block; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) 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) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Sections ---------- */

/* Hero */
.hero {
  padding-top: 44px;
  padding-bottom: var(--space-section);
  text-align: center;
}
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero-lead {
  max-width: 60ch;
  margin-top: .9rem;
  margin-inline: auto;
  font-size: 1.15rem;
  color: var(--color-slate);
}
.hero::after {
  content: "";
  display: block;
  margin-top: 26px;
  margin-inline: auto;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-steel));
}

/* Load-intro states — only while JS has flagged .is-animating, so the hero
   is fully visible if JS never runs. */
.hero.is-animating h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  transition: opacity 620ms var(--ease-soft), transform 620ms var(--ease-soft);
}
.hero.is-animating .hero-lead {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--ease-soft), transform 620ms var(--ease-soft);
}
.hero.is-animating::after {
  width: 0;
  transition: width 900ms var(--ease-soft) 350ms;
}
.hero.is-animating.is-loaded h1 .word { opacity: 1; transform: none; }
.hero.is-animating.is-loaded .hero-lead { opacity: 1; transform: none; transition-delay: 420ms; }
.hero.is-animating.is-loaded::after { width: 140px; }

/* "Why" band (AIR DEFENCE NEEDS REALISTIC TARGETS) */
.why h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}
.why p {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--color-slate);
}

/* First-flight video — full-bleed ambient band under the hero */
.flight-video { padding-block: 0; }        /* sits flush, like the carousel */
.flight-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--grad-1);
}
.flight-video__el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .flight-video__frame { aspect-ratio: 4 / 5; }
}
/* Reduced motion: JS stops autoplay and turns on controls; give it room to show them */
@media (prefers-reduced-motion: reduce) {
  .flight-video__el { object-fit: contain; }
}

/* Value strip */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.value-item h2 { font-size: 1.55rem; }
.value-item p {
  max-width: 44ch;
  font-size: 1.08rem;
  color: var(--color-slate);
  margin: 0;
}

/* Engineered for realistic threats */
.section-lead {
  font-size: 1.1rem;
  color: var(--color-slate);
  max-width: 62ch;
  margin-bottom: 0;
}
.engineered-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}
.drone-figure {
  margin: 0;
  background: var(--color-panel);
  border: 1px solid var(--color-panel-edge);
  padding: 24px;
}
.drone-img {
  max-width: 300px;
  margin-inline: auto;
  color: var(--color-ink);
}

.spec-list { margin: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-hairline);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  margin: 0;
  align-self: center;
  color: var(--color-accent);
}
.spec-row dd {
  margin: 0;
  font-size: 1.3rem;
  color: var(--color-ink);
}

.estonia h2,
.supported h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

/* ---- Carousel — blends into the gradient ---- */
.uses { padding-block: 0; }   /* carousel is full-bleed — no top/bottom space */

.carousel {
  position: relative;
  width: 100%;
  background: transparent;
  overflow: hidden;
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.6 / 1;
  touch-action: pan-y;
}

.carousel__track { position: absolute; inset: 0; }

/* Slides stack and crossfade */
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease-soft);
}
.carousel__slide.is-active { opacity: 1; }
.carousel__slide[hidden] { display: none; }

/* Image layer — carries the photo (via --bg) and the slow Ken-Burns zoom,
   kept separate so the overlay text is never scaled. */
.carousel__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bg, none);
  background-color: #0C2138;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7000ms ease-out;
}
.carousel__slide.is-active::before { transform: scale(1.13); }

/* Placeholder tints until real photos are dropped in (data-bg wins) */
.carousel__slide:nth-child(1)::before { background-color: #0E2A47; }

.carousel__slide:nth-child(2)::before { background-color: #123B63; }
.carousel__slide:nth-child(3)::before { background-color: #10314F; }

/* Navy scrim so overlaid text stays legible on any photo */
.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 15, 30, .84) 0%, rgba(6, 15, 30, .38) 46%, rgba(6, 15, 30, 0) 78%),
    linear-gradient(0deg, rgba(6, 15, 30, .7) 0%, rgba(6, 15, 30, 0) 44%);
}

/* Per-slide text overlay, lower-left — rises gently when its slide activates */
.carousel__overlay {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(28px, 6vw, 60px);
  max-width: 46ch;
  color: var(--color-ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-soft);
}
.carousel__slide.is-active .carousel__overlay {
  opacity: 1;
  transform: none;
  transition-delay: 160ms;
}
.carousel__label {
  color: var(--color-accent);
  margin: 0 0 .6em;
}
.carousel__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  font-size: clamp(1.5rem, 3.3vw, 2.3rem);
  margin: 0 0 .35em;
}
.carousel__text {
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0;
  color: var(--color-slate);
}

/* Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: opacity var(--transition-fast), transform 200ms var(--ease-soft);
}
.carousel__arrow:hover { opacity: .75; }
.carousel__arrow--prev { left: clamp(4px, 1.5vw, 20px); }
.carousel__arrow--next { right: clamp(4px, 1.5vw, 20px); }
.carousel__arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.carousel__arrow--next:hover { transform: translateY(-50%) translateX(3px); }

/* Dots — active dot in champagne */
.carousel__dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 246, 251, .4);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.carousel__dot:hover { background: rgba(243, 246, 251, .72); }
.carousel__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .carousel__viewport { aspect-ratio: 3 / 4; }
}

/* Developed in Estonia */
.estonia p {
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--color-slate);
  margin-bottom: 0;
}

/* Supported by — funder logos stay on a WHITE plate so they remain legible */
.funder-plate {
  background: var(--color-surface);
  border: 1px solid var(--color-panel-edge);
  padding: 20px 26px;
  display: inline-block;
  margin: 4px 0 24px;
}
.funder-plate img { max-height: 84px; width: auto; }

.funding-text { max-width: 72ch; }
.funding-text p,
.funding-text li { font-size: 1.05rem; color: var(--color-slate); }
.funding-text ol { margin: 0 0 .8em; padding-left: 1.4em; }
.funding-text li { margin-bottom: .3em; }
.funding-text li::marker { color: var(--color-accent); }

/* ---------- 5b. About — team grid ---------- */
.team__heading {
  text-align: center;
  margin-bottom: 36px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 740px;
  margin-inline: auto;
}

.team-card {
  margin: 0;
  background: var(--color-panel);
  border: 1px solid var(--color-panel-edge);
  padding: 16px;
  text-align: center;
  transition:
    transform 280ms var(--ease-soft),
    border-color 280ms var(--ease-soft),
    box-shadow 280ms var(--ease-soft);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 34px rgba(4, 10, 22, .38);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255, 255, 255, .08);
  display: block;
}
.team-card__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-ink);
  margin: 14px 0 3px;
}
.team-card__role {
  color: var(--color-slate);
  font-size: 1.05rem;
  margin: 0;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 5c. Sections are transparent — the page gradient shows through ---------- */
.uses,
.estonia,
.supported {
  background: transparent;
}

/* Footer keeps the light text set (white / light blue-grey) like the rest
   of the page — a translucent white panel behind it lifts contrast over the
   bright bottom of the gradient. */
.site-footer {
  --color-hairline: rgba(243, 246, 251, .28);
  color: var(--color-slate);
  background: rgba(6, 8, 40, .55);
}

/* ---------- 5d. Drone page ---------- */
.drone-page__heading {
  text-align: center;
  margin-bottom: 32px;
}
.drone-photo {
  margin: 56px auto 0;   /* space between the delta figure/specs and the launch-rail photo */
  max-width: 820px;
}
.drone-photo img {
  width: 100%;
  height: auto;
}

/* Homepage: drone.svg now stands alone (heading/specs moved to drone.html) */
.drone-figure--solo {
  max-width: 420px;
  margin-inline: auto;
}

/* drone.html: give the moved "Engineered" block some breathing room under the photo */
.drone-page .engineered-body { margin-top: 32px; }
.drone-page > .container > h2 {
  margin-top: 40px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);   /* same size as the ".why" heading */
}

.iteration h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}
.iteration .section-lead {
  margin-bottom: 40px;
}

.iteration-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.iteration-step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-panel);
  border: 1px solid var(--color-panel-edge);
  padding: 18px;
}
.iteration-step h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.iteration-step > p {
  margin: 0 0 14px;
  font-size: .95rem;
  color: var(--color-slate);
}
.iteration-step figure {
  margin: auto 0 0;
  background: rgba(8, 22, 45, .5);
  border: 1px solid var(--color-panel-edge);
}
.iteration-step figure img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

@media (min-width: 780px) {
  .iteration-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
  }
  /* arrow between the cards */
  .iteration-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -23px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--color-slate);
    border-right: 2px solid var(--color-slate);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- 6. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-hairline);
  padding-block: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.footer-col p { font-size: 1rem; margin: 0 0 .3em; color: var(--color-slate); }
.footer-col .footer-name {
  font-weight: 600;
  color: var(--color-ink);
}
/* DETAILS font on the bank line under "LHV PANK" */
.footer-col .footer-name + p {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  font-size: .95rem;
}
.footer-col a {
  text-decoration: none;
  transition: color 200ms var(--ease-soft);
}
.footer-col a:hover { color: var(--color-accent); }

.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  background: transparent;
  transition: background 200ms var(--ease-soft), color 200ms var(--ease-soft);
}
.btn:hover {
  background: var(--color-accent);
  color: var(--grad-1);
}

/* ---------- 7. Reveal-on-scroll (JS adds .js-reveal, then .is-visible) ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease-soft), transform var(--dur) var(--ease-soft);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 8. Accessibility + reduced motion ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--grad-1);
  font-weight: 600;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

a:focus-visible,
button:focus-visible,
.carousel__arrow:focus-visible,
.carousel__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  /* Everything visible and static */
  .js-reveal { opacity: 1 !important; transform: none !important; }
  .hero.is-animating h1 .word,
  .hero.is-animating .hero-lead { opacity: 1 !important; transform: none !important; }
  .hero.is-animating::after,
  .hero.is-animating.is-loaded::after { width: 140px; }
  .carousel__slide::before { transform: none !important; }
  .carousel__overlay { opacity: 1 !important; transform: none !important; }
}

/* ---------- 9. Responsive ---------- */

/* Small screens: collapse nav into a dropdown panel */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    inset: 96px 0 auto 0;
    background: rgba(8, 18, 38, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-hairline);
    display: none;
  }
  .primary-nav.is-open { display: block; }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px var(--gutter) 14px;
  }
  .primary-nav .nav-list li { width: 100%; }
  .primary-nav .nav-list a {
    display: block;
    padding: 11px 0;
    width: 100%;
  }
  .primary-nav a::after { display: none; }
}

/* Larger screens */
@media (min-width: 768px) {
  :root { --space-section: 72px; }

  .value-grid { grid-template-columns: 1fr 1fr; gap: 48px; }

  .engineered-body { grid-template-columns: 1fr 1fr; gap: 40px; }
  .drone-img { margin-inline: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero h1 { max-width: 18ch; }
}
