/* ---- tokens ---- */
:root {
  --ink:        #10160f;
  --ink-soft:   #46503f;
  --paper:      #ffffff;
  --paper-alt:  #f4f6f1;
  --line:       #dfe4d8;
  --accent:     #3f7a2e;
  --accent-dk:  #2c5a1f;
  --radius:     14px;
  --wrap:       1120px;
  --font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p  { margin: 0 0 1rem; text-align: justify;}
a  { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  margin: 0 0 .8rem;
}
.eyebrow.dark { color: var(--accent); }

.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-lead {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-bottom: 2.6rem;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: .82rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 1.22rem; color: #fff; letter-spacing: -.02em; }
.logo span { color: #9ccf87; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { color: rgba(255,255,255,.88); font-size: .94rem; font-weight: 500; }
.nav nav a:hover { color: #fff; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.45);
  padding: .45rem 1.05rem;
  border-radius: 999px;
}
.img-black-filter{filter: brightness(0) invert(100%) saturate(100%); display: block; margin: 34px auto -34px auto; max-height: 30vh; width: 45%; height: auto;}
.img-green-filter{filter: brightness(0) saturate(100%) invert(38%) sepia(86%) saturate(391%) hue-rotate(61deg) brightness(86%) contrast(81%); align-items: flex-end; background-color: #000; margin: 0 auto; max-height: 30%; width: 40%; justify-content: flex-end;}

/* hamburger — only shown on narrow screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.nav.solid .nav-toggle span { background: var(--ink); }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* active section — set by the scrollspy in main.js */
.nav nav a.active { color: #fff; }
.nav nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: #9ccf87;
}
.nav.solid nav a.active { color: var(--accent-dk); }
.nav.solid nav a.active::after { background: var(--accent); }
.nav nav a.nav-cta.active::after { display: none; }

/* scrolled state — set by main.js */
.nav.solid { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.solid .logo { color: var(--ink); }
.nav.solid .logo span { color: var(--accent); }
.nav.solid nav a { color: var(--ink-soft); }
.nav.solid nav a:hover { color: var(--ink); }
.nav.solid .nav-cta { border-color: var(--line); color: var(--accent); }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* fallback if the video file is missing */
  background: linear-gradient(140deg, #23301d 0%, #38512b 55%, #22301c 100%);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,18,8,.86) 0%, rgba(10,18,8,.55) 55%, rgba(10,18,8,.30) 100%);
}
.hero-content { position: relative; padding-top: 72px; padding-bottom: 40px; color: #fff; }
.hero-content .lead {
  max-width: 56ch;
  font-size: 1.14rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- proof strip ---- */
.strip { background: var(--ink); color: #fff; padding: 34px 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.strip-grid div { display: flex; flex-direction: column; gap: 2px; }
.strip-grid strong { font-size: 1rem; font-weight: 650; }
.strip-grid span { font-size: .86rem; color: rgba(255,255,255,.62); line-height: 1.45; }

/* ---- cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.section-alt .card { background: var(--paper); }
/* Four cards under auto-fit land 3+1 and the orphan reads as a mistake, so the
   four-card grid is pinned to 2x2. */
.cards-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards-4 { grid-template-columns: 1fr; } }

/* ---- video grid ----
   Fixed 2-up rather than auto-fit: with four clips, auto-fit lands 3+1 at this
   wrap width and the orphan reads as a mistake. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.video-card { margin: 0; }
.video-card video,
.video-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #1a231a;
  border: 1px solid var(--line);
}
.video-card figcaption {
  margin-top: .7rem;
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink-soft);
}

/* ---- content images ----
   Every slot is a real file in media/. Swap the file, keep the name — no markup
   changes needed. Cropping is handled here, so source aspect need not be exact. */
.split img {
  width: 100%;
  /* height:auto is required — the width/height attributes on <img> otherwise
     pin a fixed height and aspect-ratio below is ignored. */
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--paper-alt);
}

/* ---- split block (image + text, breaks the card-grid rhythm) ---- */
.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 46px;
}
.split img { margin: 0; }
.split-text .section-lead { margin-bottom: 0; max-width: none; }

/* ---- full-bleed band ---- */
.band { padding: 0; }
.band .band-img {
  width: 100%;
  height: clamp(260px, 38vw, 480px);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  aspect-ratio: auto;
}
.band .band-img { object-fit: cover; display: block; }

/* ---- verticals (image cards) ---- */
.verticals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 30px;
}
.vertical { margin: 0; }
.vertical img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-alt);
  transition: transform .3s ease;
}
.vertical:hover img { transform: scale(1.015); }
.vertical figcaption { padding-top: 1rem; }
.vertical h3 { margin-bottom: .3rem; color: var(--accent-dk); }
.vertical p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---- supporting figures ----
   Evidence attached to a claim in the section above it, not a section of its
   own. Both sit below a card grid, hence the top margin. */
.figure-pair,
.figure-wide { margin: 46px 0 0; }

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.figure-pair img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-alt);
}
.figure-pair figcaption { grid-column: 1 / -1; }

.figure-wide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
/* The mission-planner screenshot is near-square; full-bleed it would tower over
   everything around it. Capped and centred instead. */
.figure-tall { max-width: 640px; }

.figure-pair figcaption,
.figure-wide figcaption {
  margin-top: 1rem;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.6;
}

/* Honest-scope note under the capability grid — quieter than body copy, and
   set off by a rule so it reads as a caveat rather than a claim. */
.note {
  margin: 34px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: .92rem;
}

/* ---- steps ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
}
/* connector between cards on wide screens */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -23px;
  width: 22px;
  height: 1px;
  background: var(--line);
}
.step img { margin-bottom: 18px; }
.step-no {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  opacity: .6;
  margin-bottom: .35rem;
}
.step-body h3 { margin-bottom: .45rem; }
.step-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- contact ---- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; font-size: .96rem; }
.contact-list span { color: var(--ink-soft); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.contact-list a { color: var(--accent-dk); font-weight: 550; }

.contact-form {
  display: grid;
  gap: 14px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: .88rem;
  font-weight: 550;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form button { justify-self: start; cursor: pointer; }

/* ---- footer ---- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 30px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  /* The 2-up grids are fixed-column on desktop, so they need explicit collapse */
  .video-grid,
  .verticals,
  .figure-pair { grid-template-columns: 1fr; }
  .figure-pair,
  .figure-wide { margin-top: 34px; }

  /* nav collapses into a dropdown panel behind the hamburger */
  .nav-toggle { display: flex; }
  .nav nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 22, 15, .12);
    /* collapsed by default; .nav.open reveals it */
    display: none;
  }
  .nav.open nav { display: flex; }
  .nav nav a,
  .nav.solid nav a {
    color: var(--ink);
    padding: 13px 24px;
    font-size: 1rem;
  }
  .nav nav a.active,
  .nav.solid nav a.active { color: var(--accent-dk); }
  .nav nav a.active::after,
  .nav.solid nav a.active::after {
    width: 22px;
    background: var(--accent);
  }
  .nav-cta {
    border: 0;
    border-radius: 0;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }
  .nav.solid .nav-cta { border-color: var(--line); }
}
@media (max-width: 560px) {
  .strip-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
