/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero with pointer-driven flashlight ---------- */
.hero {
  /* where the drone sits in the hero — the beam rests here */
  --home-x: 0.5;
  --home-y: 0.3;
  --x: 50%;
  --y: 30%;
  --r: clamp(150px, 22vw, 320px);
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(4.5rem, 3rem + 5vw, 7rem);
  overflow: hidden;
  isolation: isolate;
  background: #000;
  touch-action: pan-y;
}

@media (max-width: 639px) {
  .hero { min-height: min(92svh, 760px); }
}

.hero__scene {
  position: absolute;
  inset: 0 0 34% 0;
  z-index: -1;
}

/* phones: scene sits above the text and fades into black */
.hero__scene::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, #000);
}

@media (min-width: 640px) {
  .hero { --home-y: 0.42; --y: 42%; }
  .hero__scene { inset: 0 0 12% 0; }
}

/* desktop: scene shifted right so the drone clears the headline */
@media (min-width: 1024px) {
  .hero { --home-x: 0.66; --home-y: 0.46; --x: 66%; --y: 46%; }
  .hero__scene { inset: 0 -14% 0 18%; }
  .hero__scene::after {
    inset: 0 auto 0 0;
    width: 30%;
    height: auto;
    background: linear-gradient(to right, #000, transparent);
  }
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* What you see without the light */
.hero__img--dark {
  filter: brightness(0.38) saturate(0.8);
}

/* What the beam reveals: brighter, warmer, sharper */
.hero__img--lit {
  filter: brightness(2.6) contrast(1.12) saturate(0.9) sepia(0.18);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.25) 62%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.25) 62%, transparent 100%);
}

/* Warm scatter in the air around the beam */
.hero__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle calc(var(--r) * 2.2) at var(--x) var(--y), rgba(255, 240, 200, 0.09), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Keep text legible over the scene */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 38%, transparent 62%),
    linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__content h1 {
  font-size: var(--fs-display);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero__content .lead {
  max-width: 50ch;
  color: rgba(241, 239, 232, 0.86);
}

.hero__content .btn-row { margin-top: 0.5rem; }

.hero__hud {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-faint);
  pointer-events: none;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--c-muted);
  transition: opacity 0.6s;
}

.hero__hint::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 10px var(--c-gold);
}

.hero.is-engaged .hero__hint { opacity: 0; }

@media (max-width: 639px) {
  .hero__hud { left: var(--gutter); right: auto; bottom: 1.1rem; }
  .hero__hud [data-hud] { display: none; }
}

/* ---------- Who we are ---------- */
.intro__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .intro__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    row-gap: 2rem;
  }

  .intro__grid > .label { grid-column: 1 / -1; }
  .intro__body { padding-top: 0.5rem; }
}

.intro__grid h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.divisions {
  list-style: none;
  padding: 0;
  display: grid;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--c-line);
}

@media (min-width: 900px) {
  .divisions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .division + .division { border-left: 1px solid var(--c-line); }
  .division { padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); }
  .division:first-child { padding-left: 0; }
  .division:last-child { padding-right: 0; }
}

.division {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.8rem;
  padding-block: 1.75rem 2rem;
  border-bottom: 1px solid var(--c-line);
}

@media (min-width: 900px) {
  .division { border-bottom: 0; }
}

.division h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 400; }
.division p { color: var(--c-muted); font-size: var(--fs-small); max-width: 40ch; }
.division .link-arrow,
.division .chip { margin-top: 0.4rem; }

/* ---------- Featured LΔSΞR ---------- */
.laser-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  background: #000;
}

.laser-feature__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.laser-feature__content {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding-block: 0 var(--section-y);
  margin-top: -2rem;
}

.laser-feature__title {
  font-size: clamp(3.4rem, 2rem + 7vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.laser-feature .lead { max-width: 44ch; color: var(--c-muted); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 520px;
  border-top: 1px solid var(--c-line);
  margin-block: 0.5rem;
}

@media (min-width: 480px) {
  .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat-row div {
  padding: 0.9rem 0.75rem 0.9rem 0;
  border-bottom: 1px solid var(--c-line);
}

.stat-row dt {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-faint);
}

.stat-row dd { font-size: 1.05rem; margin-top: 0.2rem; }

@media (min-width: 900px) {
  .laser-feature {
    min-height: min(88vh, 820px);
    align-items: center;
  }

  .laser-feature__media {
    position: absolute;
    inset: 0 0 0 30%;
  }

  .laser-feature__media video {
    height: 100%;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
    mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  }

  .laser-feature__content {
    margin-top: 0;
    padding-block: var(--section-y);
  }

  .laser-feature__content > * { max-width: 520px; }
}

/* ---------- Rifle teaser ---------- */
.rifle-teaser {
  display: block;
  position: relative;
  padding: clamp(1.25rem, 3vw, 3rem);
  background:
    linear-gradient(var(--c-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--c-surface);
  background-blend-mode: normal;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rifle-teaser.frame { --mark-c: var(--c-gold-line); }

.rifle-teaser__art {
  position: relative;
  display: block;
}

.rifle-teaser__art img {
  width: 100%;
  opacity: 0.75;
  transition: opacity 0.4s;
}

.rifle-teaser:hover .rifle-teaser__art img { opacity: 1; }

.rifle-teaser__dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2), 0 0 14px var(--c-gold);
}

.rifle-teaser__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--c-gold);
  box-shadow: 0 0 18px 4px rgba(255, 215, 0, 0.45);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .rifle-teaser__scan { animation: teaser-scan 5.5s var(--ease-out) infinite; }
  .rifle-teaser__dot { animation: dot-pulse 2.4s ease-in-out infinite; }
}

@keyframes teaser-scan {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  55% { left: 100%; opacity: 0.9; }
  60%, 100% { left: 100%; opacity: 0; }
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2), 0 0 14px var(--c-gold); }
  50% { box-shadow: 0 0 0 9px rgba(255, 215, 0, 0.06), 0 0 18px var(--c-gold); }
}

/* ---------- Skies ---------- */
.skies {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(90vh, 860px);
  overflow: hidden;
  border-top: 1px solid var(--c-line);
}

.skies__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

.skies::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 8%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.1) 75%);
}

.skies__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 1.1rem;
  padding-block: var(--section-y);
}

.skies__content h2 { max-width: 16ch; font-weight: 300; letter-spacing: -0.035em; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.8rem); }
.skies__content p { max-width: 50ch; color: rgba(241, 239, 232, 0.78); }

/* ---------- Newsletter (last section before the footer) ---------- */
.home-news__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .home-news__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}

.home-news__latest {
  display: grid;
  gap: 1.75rem;
}

.link-inline {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-gold-line);
}

.link-inline:hover { color: var(--c-gold); }
