/* ==========================================================================
   reconnaissance.services: site styles
   ========================================================================== */

:root {
  --bg: #0a0c0d;
  --bg-2: #101315;
  --bg-3: #161a1d;
  --line: rgba(233, 228, 218, 0.09);
  --line-strong: rgba(233, 228, 218, 0.18);
  --text: #ece8e0;
  --text-2: #a7a59e;
  --text-3: #6f6e69;
  --signal: #ff7a1f;
  --signal-2: #ffa262;
  --signal-soft: rgba(255, 122, 31, 0.12);
  --cool: #8fb3c4;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--signal); color: #000; padding: 8px 14px; font-weight: 600;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Type ---------------------------------------------------------------- */

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: "";
  width: 7px; height: 7px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 5.8rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 18px 0 18px; }
.section-head p { color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 60ch; }

.muted { color: var(--text-2); }
.em { color: var(--signal); }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-signal { background: var(--signal); color: #120800; }
.btn-signal:hover { background: var(--signal-2); }
.btn-line { border: 1px solid var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text-2); background: rgba(255,255,255,0.03); }

/* ---- Navigation ---------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 13, 0.84);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 28px; height: 28px; }
.brand span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.brand span b { color: var(--signal); font-weight: 500; }

.nav-links { display: none; gap: 2px; }
.nav-links a {
  font-size: 0.88rem;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { box-shadow: inset 0 -1px 0 var(--signal); border-radius: 0; }
.nav-cta { display: none; padding: 9px 16px; font-size: 0.85rem; }

.nav-toggle {
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(10, 12, 13, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.drawer.open { opacity: 1; transform: none; visibility: visible; }
.drawer a:not(.btn) {
  display: flex; justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 1.3rem; font-weight: 600; font-stretch: 88%;
}
.drawer a:not(.btn) small { font-family: var(--mono); font-size: 0.7rem; color: var(--text-3); align-self: center; }
.drawer .btn { margin-top: 20px; width: 100%; justify-content: center; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .drawer { display: none; }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,12,13,0.7) 0%, rgba(10,12,13,0.1) 28%, rgba(10,12,13,0.35) 58%, rgba(10,12,13,0.96) 100%),
    linear-gradient(90deg, rgba(10,12,13,0.75) 0%, rgba(10,12,13,0) 60%);
}

/* Viewfinder corners */
.finder { position: absolute; inset: calc(var(--nav-h) + 16px) var(--gutter) 24px; pointer-events: none; z-index: -1; }
.finder i { position: absolute; width: 22px; height: 22px; border-color: rgba(236,232,224,0.5); border-style: solid; border-width: 0; }
.finder i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.finder i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.finder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.finder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hero-body { padding-top: calc(var(--nav-h) + 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 13ch; margin: 22px 0 24px; }
.hero h1 .dim { color: var(--text-2); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d3cfc6; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hud {
  border-top: 1px solid var(--line-strong);
  background: rgba(10,12,13,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hud .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding-top: 14px; padding-bottom: 14px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2);
}
.hud b { color: var(--text); font-weight: 500; }
.hud .live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); margin-right: 8px; vertical-align: 1px;
  animation: blink 2s infinite;
}
.hud .hide-sm { display: none; }
@media (min-width: 720px) { .hud .hide-sm { display: inline; } }
.hud .reel-toggle { margin-left: auto; color: var(--text-2); letter-spacing: inherit; text-transform: inherit; font-size: inherit; font-family: inherit; }
.hud .reel-toggle:hover { color: var(--text); }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---- Sections ------------------------------------------------------------ */

section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, var(--bg) 75%);
}
.grid-bg > * { position: relative; }

/* Framed media */
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(var(--text), var(--text)) top left / 14px 1.5px,
    linear-gradient(var(--text), var(--text)) top left / 1.5px 14px,
    linear-gradient(var(--text), var(--text)) bottom right / 14px 1.5px,
    linear-gradient(var(--text), var(--text)) bottom right / 1.5px 14px;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(10,12,13,0.78); padding: 5px 9px; border-radius: 2px; color: var(--text);
}

/* ---- 01 Reconnaissance vs surveillance ---------------------------------- */

.versus { display: grid; gap: 28px; }
@media (min-width: 960px) { .versus { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

.switch {
  display: inline-grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 4px; position: relative;
  margin-bottom: 28px;
}
.switch button {
  position: relative; z-index: 1;
  padding: 10px 18px; font-weight: 600; font-size: 0.92rem; color: var(--text-2);
  transition: color 0.25s;
}
.switch button[aria-pressed="true"] { color: #120800; }
.switch .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--signal); border-radius: 2px;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.versus[data-mode="surv"] .switch .thumb { transform: translateX(100%); background: var(--text-2); }

.timeline {
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 18px; background: var(--bg);
}
.timeline-title { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.track { position: relative; height: 46px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 12)); border-bottom: 1px solid var(--line-strong); }
.bar {
  position: absolute; left: 0; top: 8px; height: 30px;
  display: flex; border-radius: 2px; overflow: hidden;
  width: 22%;
  transition: width 0.9s var(--ease);
}
.bar span {
  flex: 1; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.04em; color: #120800; font-weight: 500;
  background: var(--signal); border-right: 1px solid rgba(0,0,0,0.35);
  transition: opacity 0.4s, background 0.4s;
  white-space: nowrap; overflow: hidden;
}
.bar span:nth-child(2) { background: #ff8d3f; }
.bar span:nth-child(3) { background: #ffa262; }
.bar span:nth-child(4) { background: #ffb984; }
.bar span:nth-child(5) { background: #ffd0ab; border-right: 0; }
.bar .cont { display: none; }
.versus[data-mode="surv"] .bar { width: 100%; }
.versus[data-mode="surv"] .bar span { opacity: 0; flex: 0; }
.versus[data-mode="surv"] .bar .cont {
  display: grid; opacity: 1; flex: 1;
  background: repeating-linear-gradient(135deg, #5b5a56 0 8px, #4a4946 8px 16px);
  color: var(--text); font-size: 0.62rem;
}
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; color: var(--text-3); margin-top: 8px; }
.timeline-note { margin-top: 16px; font-size: 0.88rem; color: var(--text-2); min-height: 3em; }

.compare { border-top: 1px solid var(--line); }
.compare-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .compare-row { grid-template-columns: 150px 1fr; } }
.compare-row dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.compare-row dd { font-size: 1.02rem; }
.compare-row dd .s { display: none; color: var(--text-2); }
.versus[data-mode="surv"] .compare-row dd .r { display: none; }
.versus[data-mode="surv"] .compare-row dd .s { display: inline; }
.compare-row dd .r::first-line { color: var(--text); }

.overlap {
  margin-top: 28px; padding: 18px 20px;
  border-left: 2px solid var(--signal); background: var(--signal-soft);
  font-size: 0.95rem; color: #d7d2c8;
}

/* ---- 02 Mission sequence -------------------------------------------------- */

.mission { display: grid; gap: 28px; }
@media (min-width: 960px) { .mission { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; } }

.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step {
  display: block; width: 100%; text-align: left;
  padding: 18px 0 18px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.step-head { display: flex; align-items: baseline; gap: 16px; }
.step-num { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); transition: color 0.3s; min-width: 2ch; }
.step-name { font-family: var(--display); font-stretch: 88%; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--text-3); transition: color 0.3s; letter-spacing: -0.02em; }
.step-text {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
  color: var(--text-2); font-size: 0.97rem;
  padding-left: calc(2ch + 16px);
}
.step-text > span { overflow: hidden; display: block; }
.step[aria-selected="true"] .step-text { grid-template-rows: 1fr; }
.step[aria-selected="true"] .step-text > span { padding-top: 8px; }
.step[aria-selected="true"] .step-num { color: var(--signal); }
.step[aria-selected="true"] .step-name { color: var(--text); }
.step:hover .step-name { color: var(--text); }
.step .progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--signal);
}
.step[aria-selected="true"] .progress { animation: progress var(--step-ms, 6000ms) linear forwards; }
.mission.paused .step .progress { animation: none; width: 0; }
@keyframes progress { to { width: 100%; } }

.mission-media { aspect-ratio: 16 / 10; }
.mission-media > picture, .mission-media > .console {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.6s var(--ease);
}
.mission-media > picture img { width: 100%; height: 100%; object-fit: cover; }
.mission-media > .on { opacity: 1; transform: scale(1); }
.mission-media > .console { border: 0; border-radius: 0; }
.mission-media .tag { z-index: 2; }

/* ---- 03 Platforms -------------------------------------------------------- */

.platforms { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .platforms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .platforms { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; }
  .platforms .p-a { grid-column: span 4; grid-row: span 2; }
  .platforms .p-b { grid-column: span 2; }
  .platforms .p-c { grid-column: span 2; }
  .platforms .p-d, .platforms .p-e, .platforms .p-f { grid-column: span 2; }
}
.platform { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.platform img { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.platform:hover img { transform: scale(1.05); }
.platform::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,12,13,0) 35%, rgba(10,12,13,0.92) 100%);
}
.platform-body { position: relative; z-index: 2; padding: 22px; }
.platform-body .kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal-2); margin-bottom: 8px; }
.platform-body p { color: var(--text-2); font-size: 0.93rem; margin-top: 6px; max-width: 46ch; }
.p-a .platform-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* ---- 04 Hardware --------------------------------------------------------- */

.devices { display: grid; gap: 14px; }
@media (min-width: 760px) { .devices { grid-template-columns: repeat(3, 1fr); } }
.device { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.device figure {
  aspect-ratio: 1 / 1; overflow: hidden; position: relative;
  background:
    radial-gradient(ellipse 60% 14% at 50% 86%, rgba(0,0,0,0.55), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 38%, #2a2f33 0%, #15181a 60%, #0c0e0f 100%);
}
.device figure picture { position: absolute; inset: 10% 0 9%; display: flex; justify-content: center; }
.device figure img {
  height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,0.5));
  transition: transform 0.9s var(--ease);
}
.device:hover figure img { transform: translateY(-6px) scale(1.02); }
.device-body { padding: 22px; border-top: 1px solid var(--line); }
.device-body .kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.device-body p { color: var(--text-2); font-size: 0.94rem; margin-top: 8px; }

.features { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 24px 22px 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .feature { border-bottom: 0; padding-right: 28px; } .feature + .feature { border-left: 1px solid var(--line); padding-left: 24px; } }
.feature svg { width: 26px; height: 26px; color: var(--signal); margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 0.93rem; }
.maker { margin-top: 28px; font-size: 0.88rem; color: var(--text-3); }
.maker a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); }
.maker a:hover { color: var(--text); }

/* ---- 05 Scenarios -------------------------------------------------------- */

.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 22px; padding: 0 var(--gutter) 4px;
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--text); border-color: var(--text-3); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.panel { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.panel[hidden] { display: none; }
@media (min-width: 900px) { .panel { grid-template-columns: 6fr 5fr; min-height: 480px; } }
.panel .frame { border-radius: 0; min-height: 280px; }
.panel .frame img { position: absolute; inset: 0; animation: fade-in 0.6s ease; }
.panel-copy { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.panel-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 22px; }
.qar { display: grid; gap: 16px; }
.qar div { display: grid; grid-template-columns: 82px 1fr; gap: 14px; }
.qar dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); padding-top: 4px; }
.qar dd { color: var(--text-2); font-size: 0.97rem; }
.qar div:first-child dd { color: var(--text); font-size: 1.05rem; }
@keyframes fade-in { from { opacity: 0; } }
.users { margin-top: 26px; font-size: 0.9rem; color: var(--text-3); max-width: 80ch; }

/* ---- 06 Services --------------------------------------------------------- */

.services { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .service + .service { border-left: 1px solid var(--line); padding-left: 24px; } }
.service .n { font-family: var(--mono); font-size: 0.72rem; color: var(--signal); }
.service h3 { margin: 14px 0 10px; font-size: 1.6rem; }
.service p { color: var(--text-2); font-size: 0.95rem; }

.showcase { display: grid; gap: 28px; margin-top: clamp(56px, 8vw, 96px); align-items: center; }
@media (min-width: 960px) {
  .showcase { grid-template-columns: 7fr 5fr; gap: 56px; }
  .showcase.flip { grid-template-columns: 5fr 7fr; }
  .showcase.flip .showcase-media { order: 2; }
}
.showcase-media { display: grid; gap: 12px; }
.showcase-media.pair { grid-template-columns: 3fr 2fr; }
.showcase-media .frame { aspect-ratio: 16 / 10; }
.showcase-media .frame img { position: absolute; inset: 0; }
.showcase-media.pair .frame { aspect-ratio: auto; min-height: 220px; }
.showcase-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 16px 0 14px; }
.showcase-copy > p { color: var(--text-2); }
.points { margin-top: 20px; border-top: 1px solid var(--line); }
.points li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 0.95rem; }
.points li b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.caption { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--text-3); margin-top: 14px; }

/* ---- Contact ------------------------------------------------------------- */

.contact { overflow: hidden; isolation: isolate; text-align: left; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.45); }
.contact-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10,12,13,0.2) 30%, rgba(10,12,13,0.6) 70%, var(--bg) 100%),
              linear-gradient(90deg, rgba(10,12,13,0.85) 0%, rgba(10,12,13,0.2) 100%);
}
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; margin: 18px 0 22px; }
.contact p { color: #d3cfc6; max-width: 52ch; font-size: 1.08rem; }
.brief { margin: 26px 0 34px; display: grid; gap: 10px; max-width: 520px; }
.brief li { display: flex; gap: 14px; align-items: baseline; color: var(--text); }
.brief li span { font-family: var(--mono); font-size: 0.7rem; color: var(--signal); }
.mail { font-family: var(--mono); font-size: 0.85rem; color: var(--text-2); margin-top: 16px; display: block; }
.mail a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.mail a:hover { border-color: var(--signal); }
.copy-btn { font-family: var(--mono); font-size: 0.75rem; color: var(--text-2); margin-left: 10px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 2px; }
.copy-btn:hover { color: var(--text); }

/* ---- Footer -------------------------------------------------------------- */

footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; gap: 18px; align-items: center; max-width: 440px; }
.foot-brand img { width: 84px; height: 84px; flex: none; }
.foot-brand strong { display: block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; font-weight: 500; margin-bottom: 6px; }
.foot-brand p { color: var(--text-3); font-size: 0.88rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.foot-cols h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 12px; }
.foot-cols a { display: block; color: var(--text-2); font-size: 0.9rem; padding: 3px 0; }
.foot-cols a:hover { color: var(--text); }
.legal { display: grid; gap: 18px; padding-top: 28px; font-size: 0.8rem; color: var(--text-3); line-height: 1.6; }
@media (min-width: 860px) { .legal { grid-template-columns: 1fr auto; gap: 48px; } }
.legal p + p { margin-top: 10px; }
.legal strong { color: var(--text-2); font-weight: 500; }
.legal a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); }
.legal a:hover { color: var(--text); }
.flags { display: inline-flex; gap: 5px; vertical-align: middle; margin-left: 4px; }
.flag { width: 18px; height: 12px; border-radius: 1px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.flag svg { width: 100%; height: 100%; }
.copyright { white-space: nowrap; }

/* ---- Reveal -------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Map console (built in code; used in Integrate and mission "Report") -- */

.console {
  position: relative; overflow: hidden;
  background: #0b0f10; border: 1px solid var(--line-strong); border-radius: var(--r);
  font-family: var(--mono); color: var(--text-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.console-bar {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.console-title { color: var(--text); }
.console-meta .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5fd38a; margin-right: 6px; vertical-align: 1px; animation: blink 2s infinite; }
.console-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .console-body { grid-template-columns: 1fr 170px; } }
.console .map { width: 100%; height: 100%; min-height: 240px; display: block; aspect-ratio: 16 / 10; }
.console-mini .map { aspect-ratio: auto; height: 100%; }

.map .contour { fill: none; stroke: rgba(143,179,196,0.13); stroke-width: 1; }
.map .contour.major { stroke: rgba(143,179,196,0.24); }
.map .river { fill: none; stroke: rgba(110,160,190,0.55); stroke-width: 3; stroke-linecap: round; }
.map .route { fill: none; stroke: rgba(236,232,224,0.35); stroke-width: 1.2; stroke-dasharray: 4 5; }
.map .link { stroke: var(--signal); stroke-width: 1.2; opacity: 0.55; stroke-dasharray: 3 4; animation: flow 1.6s linear infinite; }
.map .node { cursor: pointer; }
.map .node circle.core { fill: #0b0f10; stroke: var(--text); stroke-width: 2; transition: stroke 0.2s; }
.map .node.team circle.core { stroke: var(--cool); }
.map .node text { fill: var(--text-2); font-size: 11px; font-family: var(--mono); letter-spacing: 0.04em; }
.map .node .halo { fill: var(--signal); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .node.sel circle.core { stroke: var(--signal); }
.map .node.sel .halo { animation: ping 2.2s ease-out infinite; }
.map .node:focus { outline: none; }
.map .node:focus-visible circle.core { stroke: var(--signal); stroke-width: 3; }
.map .grid { stroke: rgba(236,232,224,0.04); }
@keyframes flow { to { stroke-dashoffset: -14; } }
@keyframes ping { 0% { opacity: 0.45; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

.inspector { border-top: 1px solid var(--line); padding: 14px; font-size: 0.72rem; }
@media (min-width: 560px) { .inspector { border-top: 0; border-left: 1px solid var(--line); } }
.insp-label { letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-size: 0.62rem; }
.insp-id { color: var(--text); font-size: 1rem; margin: 2px 0 10px; }
.inspector dl { display: grid; gap: 6px; }
.inspector dl div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.inspector dt { color: var(--text-3); }
.inspector dd { color: var(--text); }
.spark { width: 100%; height: 36px; margin-top: 12px; }
.spark path { fill: none; stroke: var(--signal); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.insp-hint { margin-top: 10px; color: var(--text-3); font-size: 0.62rem; }

/* ---- Hero video & misc ---------------------------------------------------- */

.hero-media video { background: #0a0c0d; }
.hero-media video { object-position: 60% 50%; }
.hud .reel-toggle { cursor: pointer; }
.foot-cols h4:empty, .foot-cols h4 { min-height: 1em; }

/* ---- Fixes after visual review -------------------------------------------- */

/* Phase names live in a legend; the short bar only shows colour */
.bar span:not(.cont) { font-size: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); transition: opacity 0.3s; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--signal); }
.legend li:nth-child(2)::before { background: #ff8d3f; }
.legend li:nth-child(3)::before { background: #ffa262; }
.legend li:nth-child(4)::before { background: #ffb984; }
.legend li:nth-child(5)::before { background: #ffd0ab; }
.versus[data-mode="surv"] .legend { opacity: 0.25; }

/* On narrow screens show the mission image above the steps */
@media (max-width: 959px) { .mission-media { order: -1; } }

/* Device stages: wider on phones so each card is not a full screen */
@media (max-width: 759px) { .device figure { aspect-ratio: 16 / 10; } }
