/* REC: TACTICAL — home page */

/* ================= HERO ================= */
/*
  Composition follows the original first screen: a right-anchored scene, the bodycam viewfinder over
  the right ~60% of the screen and the media strip at the bottom edge. Everything is laid out from the
  layout itself (content column, header, media strip) instead of the image's cover-crop, so it reads the
  same on 16:10, 16:9, 21:9 and 4K screens.
*/
.hero {
  --title-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  --hero-min: 820px;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--bg);
}
.hero__screen {
  position: relative; display: flex; flex-direction: column;
  min-height: calc(max(100svh, var(--hero-min)) - 28px);
  padding-top: var(--header-h);
}
.hero__stage {
  position: absolute; inset: -30px -36px; z-index: -1; pointer-events: none;
  container-type: size;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 88%);
}
/* cover the stage, anchored right like the original; zoom is capped on ultra-wide screens and the free
   area on the left fades into the page instead of upscaling the picture */
.hero__plate {
  position: absolute; right: 24px; top: 50%; translate: 0 -50%;
  width: min(max(100cqw, 177.7cqh), 213cqh); aspect-ratio: 1672 / 941;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
  mask-image: linear-gradient(to right, transparent 0, #000 24%);
}
.hero__bg { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, 0.96) 0%, rgba(7, 9, 11, 0.85) 36%, rgba(10, 13, 16, 0.25) 68%, rgba(6, 7, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.88) 0%, rgba(5, 6, 8, 0.05) 22%, rgba(5, 6, 8, 0.35) 72%, rgba(5, 6, 8, 0.96) 100%);
}
.hero__operators {
  --operators-height: clamp(371px, 96%, 640px);
  position: absolute; bottom: -90px;
  /* The rightmost sprite has 111 transparent pixels (18.5% of its source height). */
  right: calc(var(--operators-height) * -.185 - clamp(12px, 1.6vw, 30px));
  display: flex; align-items: flex-end; gap: 4px;
  height: var(--operators-height); pointer-events: none;
}
.hero__operator {
  display: block; width: auto; height: 100%;
  filter: brightness(1.15) drop-shadow(0 5px 8px rgba(2, 4, 7, .55));
}
.hero__operator--far { height: 83%; margin: 0 clamp(-130px, -8vw, -70px) 5px 0; }
.hero__inner {
  /* left edge of the content column, also used to keep the viewfinder clear of it */
  --content-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  --frame-right: clamp(24px, 2.2vw, 64px);
  --frame-top: clamp(14px, 2.4vh, 32px);
  position: relative; flex: 1; display: flex; align-items: center;
  padding: 28px 0;
}
.hero__inner::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  inset: auto 0 -90px; height: clamp(144px, 21vh, 190px);
  background: linear-gradient(to bottom, transparent, rgba(7, 8, 10, .66) 72%, var(--bg));
}
.hero__body { position: relative; z-index: 4; }
.hero__content { max-width: 560px; }
.hero__title { margin: 0; }
.hero__logo { display: block; width: min(410px, 78vw); height: auto; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6)); }
.hero__desc { max-width: 540px; margin-top: 22px; color: #a9b1ba; text-shadow: var(--text-shadow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.stats { display: flex; flex-wrap: nowrap; gap: 30px; margin: 26px 0 0; }
.stat { display: grid; grid-template-columns: auto auto; column-gap: 11px; align-items: start; justify-content: start; }
.stat > .icon { width: 17px; height: 17px; color: #8d949e; margin-top: 3px; }
.stat dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: #e6e9ed; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.stat dt { grid-column: 2; order: 2; font-size: 12px; color: #6d747e; margin-top: 2px; white-space: nowrap; }

/* viewfinder: between the header and the media strip, always right of the content column
   (the one-row stats are the widest line, ~520px) */
.hero__cam {
  container-type: size;
  top: var(--frame-top); bottom: 14px;
  left: max(40.5%, calc(var(--content-left) + 548px));
  right: var(--frame-right);
  will-change: transform;
}
/* OSD scales with the frame instead of the window */
.hero__cam .cam__c { width: clamp(26px, 4.6cqw, 44px); height: clamp(26px, 4.6cqw, 44px); }
.hero__cam .cam__rec { top: clamp(12px, 2.1cqw, 20px); left: clamp(14px, 2.3cqw, 22px); font-size: clamp(16px, 2.3cqw, 22px); }
.hero__cam .cam__rec .dot { width: clamp(10px, 1.35cqw, 13px); height: clamp(10px, 1.35cqw, 13px); }
.hero__cam .cam__meta { top: clamp(9px, 1.25cqw, 12px); right: clamp(64px, 10cqw, 96px); font-size: clamp(13px, 2.1cqw, 20px); }
.hero__cam .cam__bat { top: clamp(13px, 2.3cqw, 22px); right: clamp(14px, 2.3cqw, 22px); width: clamp(32px, 4.6cqw, 44px); height: clamp(16px, 2.3cqw, 22px); }
.hero__cam .cam__tc, .hero__cam .cam__mode { bottom: clamp(10px, 1.9cqw, 18px); font-size: clamp(12px, 1.7cqw, 16px); }
.hero__cam .cam__tc { left: clamp(14px, 2.3cqw, 22px); } .hero__cam .cam__mode { right: clamp(14px, 2.3cqw, 22px); }

/* Keep the logo and spacing compact on short desktop windows. */
@media (min-width: 1101px) and (max-height: 900px) {
  .hero { --hero-min: 640px; }
  .hero__logo { width: clamp(300px, 44svh, 410px); }
  .hero__desc { margin-top: 18px; }
  .hero__actions { margin-top: 22px; }
  .stats { margin-top: 22px; }
  .hero__inner { padding: 20px 0; }
}

/* media strip */
.hero__media { position: relative; z-index: 5; padding-bottom: 24px; scroll-margin-top: 12px; /* + html scroll-padding (header + 12px) */ }
.media-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.media-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

.mcard {
  position: relative; display: block; width: 100%; height: 140px; padding: 0; text-align: left;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.09); background: #0d1014;
  transition: border-color var(--t) ease;
}
.mcard:focus-visible { border-color: transparent; }
@media (hover: hover) { .mcard:hover { border-color: transparent; } }
.mcard:focus-visible { outline: none; }
.mcard__img { position: absolute; inset: 0; border-radius: 7px; overflow: hidden; }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.86) saturate(.92); transition: filter .3s ease; }
@media (hover: hover) { .mcard:hover .mcard__img img { filter: brightness(1) saturate(1); } }
.mcard__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(5, 6, 8, 0.9)); }
.mcard__title { position: absolute; left: 10px; right: 10px; bottom: 9px; font-size: 13.5px; font-weight: 500; color: #eef0f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* ================= SPLIT SECTIONS (about / visuals) ================= */
.split {
  --title-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 760px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--bg-section);
  border-top: 1px solid var(--line);
}
.split__parallax { position: absolute; inset: -6% 0; }
.split__still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .65s ease;
  filter: brightness(.72) contrast(1.1);
}
.split__still.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .split__still { transition: none; } }
.split__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--bg-section) 0%, rgba(8, 10, 12, 0) 18%, rgba(8, 10, 12, 0) 78%, var(--bg-section) 100%),
    linear-gradient(90deg, rgba(8, 10, 13, 0.66) 0%, rgba(8, 10, 13, 0.3) 38%, transparent 62%),
    linear-gradient(270deg, rgba(8, 10, 13, 0.66) 0%, rgba(8, 10, 13, 0.42) 18%, rgba(8, 10, 13, 0.12) 30%, transparent 38%), /* keeps the tab captions readable over bright spots */
    radial-gradient(ellipse at 60% 50%, transparent 40%, rgba(5, 6, 8, 0.55) 100%);
}
.split__inner { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.split__text { width: min(640px, 100%); }
.split__slides { display: grid; margin-top: 24px; }
.split__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.split__slide.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease .12s, visibility 0s; }
.split__slide .text { margin-top: 22px; max-width: 390px; text-shadow: var(--text-shadow); }
.split__slide .text + .text { margin-top: 16px; }

.split__tabs { display: flex; flex-direction: column; gap: 20px; width: 190px; flex: none; }
.vtab { display: grid; gap: 7px; text-align: left; opacity: .78; transition: opacity var(--t) ease; text-shadow: 0 0 2px rgba(0, 0, 0, 0.9), 0 1px 10px rgba(0, 0, 0, 0.85); }
@media (hover: hover) { .vtab:hover { opacity: .92; } }
.vtab__thumb { position: relative; width: 128px; height: 72px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; transition: border-color var(--t) ease; }
.vtab__thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.92) contrast(1.06); transition: filter var(--t) ease; }
.vtab__title { font-family: var(--font-osd); font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: #9da6b4; line-height: 1.1; margin-top: 2px; }
.vtab__sub { font-size: 12px; line-height: 1.4; color: #858d98; }
.vtab[aria-selected="true"] { opacity: 1; }
.vtab[aria-selected="true"] .vtab__thumb { border-color: #fff; }
.vtab[aria-selected="true"] .vtab__thumb img { filter: none; }
.vtab[aria-selected="true"] .vtab__title { color: #fff; }
.vtab[aria-selected="true"] .vtab__sub { color: #b4bac2; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .split__parallax { animation: split-parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes split-parallax { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
  }
}

/* ================= NEWS (latest) ================= */
.updates { background: var(--bg); border-top: 1px solid var(--line); }

/* ================= HOW TO START ================= */
.htp { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); background: var(--bg-section); }
.htp__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(20px) brightness(.27); transform: scale(1.1); }
.htp__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg-section) 0%, transparent 22%, transparent 70%, var(--bg-section) 100%), radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(5,6,8,.6) 100%); }
.htp .container { position: relative; z-index: 2; }
.htp__status { margin-top: 18px; }

/* ================= FAQ ================= */
.faq { background: var(--bg); border-top: 1px solid var(--line); }
.faq__title { font-size: clamp(28px, 3.2vw, 48px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; margin-top: 40px; align-items: start; }
.faq__more { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 22px 24px; border-radius: var(--r-4); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.faq__more b { display: block; font-weight: 600; color: var(--text); }
.faq__more p { color: var(--text-3); font-size: 14px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* stacked hero: the viewfinder sits on top, the text below it */
  .hero { --cam-h: clamp(210px, 34vh, 420px); --cam-h: clamp(210px, 34svh, 420px); }
  .hero__screen { min-height: 0; }
  .hero__stage {
    container-type: normal;
    inset: -10px 0 auto; height: calc(var(--header-h) + var(--cam-h) + 240px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  }
  .hero__plate {
    position: absolute; inset: 0; right: 0; left: 0; top: 0;
    width: 100%; height: 100%;
    translate: none; aspect-ratio: auto;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__bg { object-fit: cover; object-position: 60% center; }
  .hero__shade { background: linear-gradient(to bottom, rgba(6, 7, 9, 0.42) 0%, rgba(6, 7, 9, 0.1) 18%, rgba(6, 7, 9, 0.22) 42%, rgba(6, 7, 9, 0.84) 66%, var(--bg) 88%); }
  .hero__inner {
    --frame-top: 14px; --frame-right: var(--gutter);
    display: block; padding: calc(var(--cam-h) + 40px) 0 12px;
  }
  .hero__cam { bottom: auto; left: var(--gutter); height: var(--cam-h); }
  .hero__operators {
    --operators-height: calc(var(--cam-h) * 1.01);
    top: calc(var(--frame-top) + var(--cam-h) - var(--operators-height) + 30px);
    bottom: auto;
  }
  .hero__operator--far { margin-right: clamp(-64px, -11vw, -34px); }
  .hero__inner::after {
    top: calc(var(--frame-top) + var(--cam-h) - 32px);
    bottom: 0; height: auto;
    background: linear-gradient(to bottom, transparent, rgba(7, 8, 10, .66) 56px, var(--bg) 78px);
  }
  .hero__content { max-width: 640px; }
}
@media (max-width: 1000px) {
  .split { min-height: 0; padding: 96px 0 88px; }
  .split__inner { flex-direction: column; align-items: stretch; gap: 36px; }
  .split__text { width: 100%; max-width: 620px; }
  .split__tabs { flex-direction: row; width: auto; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .split__tabs::-webkit-scrollbar { display: none; }
  .vtab { width: 132px; flex: none; }
  .vtab__sub { display: none; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero { --cam-h: clamp(190px, 30vh, 300px); --cam-h: clamp(190px, 30svh, 300px); }
  .hero__inner { --frame-top: 12px; padding-top: calc(var(--cam-h) + 32px); }
  .hero__content { max-width: none; }
  .hero__logo { width: min(300px, 74vw); }
  .hero__desc { font-size: 15.5px; }
  .hero__desc br { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { gap: 12px 24px; }
  .media-head { flex-wrap: wrap; }
  .media-grid--scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 2px; margin-top: -2px; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .media-grid--scroll::-webkit-scrollbar { display: none; }
  .media-grid--scroll .mcard { scroll-snap-align: start; height: 150px; }
  .faq__more .btn { width: 100%; }
}
@media (max-width: 480px) {
  /* phones: the three numbers stay on one line — the labels carry the meaning, the icons step aside */
  .stats { justify-content: space-between; gap: 12px; }
  .stat { grid-template-columns: auto; }
  .stat > .icon { display: none; }
  .stat dt { grid-column: 1; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .step { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 10px; border-radius: var(--r-4); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
  .step__media { grid-row: 1 / span 2; }
  .step__frame { border-radius: 6px; }
  .step__head { margin-top: 0; align-self: end; font-size: 12.5px; }
  .step__text { margin-top: 0; max-width: none; align-self: start; font-size: 12.5px; line-height: 1.45; }
  .step:has(.step__dl) .step__media { grid-row: 1 / span 3; }
  .step__dl { grid-column: 2; margin-top: 4px; font-size: 12.5px; gap: 2px 6px; }
}
