/* ==========================================================================
   CRUX — shared stylesheet
   Stationery navy / lime theme — Intelligence × Action = Impact
   ========================================================================== */

:root {
  /* Core navy scale — anchored to the stationery navy #010d21 */
  --navy-950: #010d21;
  --navy-900: #04132b;
  --navy-800: #081c39;
  --navy-700: #0e2749;
  --navy-600: #143156;

  /* Accent — the stationery green (the X) */
  --green: #9cbd33;
  --green-bright: #b5d84a;
  --green-deep: #7fa02a;
  /* legacy aliases kept so every component follows the new accent */
  --blue: var(--green);
  --blue-bright: var(--green-bright);
  --blue-deep: var(--green-deep);
  --cyan: var(--green);
  --glow: rgba(156, 189, 51, 0.32);

  /* Light band (stationery off-white) */
  --paper: #f7f7f7;
  --paper-line: rgba(1, 13, 33, 0.1);

  /* Type */
  --text: #e9eefb;
  --text-dim: #b3c1de;
  --muted: #7f90b4;
  --white: #ffffff;

  /* Lines & surfaces */
  --line: rgba(186, 205, 227, 0.14);
  --line-strong: rgba(186, 205, 227, 0.28);
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);

  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Michroma", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--green); color: var(--navy-950); }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; }
h3, h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.x { color: var(--green); font-style: normal; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.section-label::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-title {
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  margin-bottom: 1.1rem;
  color: var(--white);
}

.section-copy {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 58ch;
}
.section-copy + .section-copy { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: 0 10px 30px -12px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--glow); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--green); background: var(--surface-2); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(1, 13, 33, 0.8);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.6rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img {
  height: 1.5rem;
  width: auto;
  display: block;
}
.site-footer .logo img { height: 1.4rem; }
/* Standalone brain mark (used as a section flourish) */
.logo-mark { width: 2.1rem; height: 2.1rem; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-active:not(.nav-cta)::after { width: 100%; }
.nav-links a.is-active { color: var(--white); }
.nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--white) !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 22px -12px var(--glow);
  transition: transform 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero + background video
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-media video,
.hero-media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Canvas fallback animation sits underneath the video; video covers it once playing */
.hero-media canvas { position: absolute; inset: 0; }
/* Desaturated so the navy overlay does the colouring — keeps any footage on-brand */
.hero-media video {
  position: relative;
  opacity: 0;
  filter: grayscale(0.8) contrast(1.12) brightness(0.95);
  transition: opacity 1.4s var(--ease);
}
.hero-media video.is-ready { opacity: 1; }

/* ---- Overlay stack over the video -------------------------------------
   1. .hero-scrim   — flat navy tint + directional gradients (readability)
   2. .hero-mesh    — drifting dot grid + scan sweep (the "tech" layer)
   ------------------------------------------------------------------------ */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 13, 33, 0.92) 0%, rgba(1, 13, 33, 0.72) 42%, rgba(1, 13, 33, 0.3) 100%),
    linear-gradient(180deg, rgba(1, 13, 33, 0.86) 0%, transparent 36%, rgba(1, 13, 33, 0.95) 100%),
    rgba(0, 46, 92, 0.4);
}
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 75% 40%, rgba(156, 189, 51, 0.16), transparent 70%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* Dot grid — masked so it fades toward the text side */
  background-image: radial-gradient(rgba(200, 220, 150, 0.2) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(75% 70% at 78% 45%, #000 10%, transparent 72%);
  mask-image: radial-gradient(75% 70% at 78% 45%, #000 10%, transparent 72%);
  animation: mesh-drift 26s linear infinite;
}
@keyframes mesh-drift {
  from { background-position: 0 0; }
  to   { background-position: 34px 34px; }
}

/* Slow light sweep across the hero */
.hero-mesh::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -40%;
  width: 45%;
  height: 160%;
  background: linear-gradient(100deg, transparent, rgba(181, 216, 74, 0.08), transparent);
  transform: skewX(-14deg);
  animation: sweep 11s var(--ease) infinite;
}
@keyframes sweep {
  0%        { left: -40%; opacity: 0; }
  12%       { opacity: 1; }
  55%, 100% { left: 125%; opacity: 0; }
}

/* Fine horizontal scanlines — barely there, adds depth on video */
.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 4px
  );
}

.hero-content { position: relative; z-index: 1; max-width: 46rem; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}
.hero-eyebrow .dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(156, 189, 51, 0.2);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(156, 189, 51, 0.24); }
  50%      { box-shadow: 0 0 0 7px rgba(156, 189, 51, 0.05); }
}

.hero h1 {
  font-size: clamp(1.55rem, 3.9vw, 2.9rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--green); }
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-dim);
  max-width: 40rem;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3.5rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */
section { position: relative; }
.pad { padding: 6.5rem 0; }
.pad-sm { padding: 4.5rem 0; }

.band {
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(156, 189, 51, 0.06), transparent 65%),
    var(--navy-900);
  border-block: 1px solid var(--line);
}

.head-center { text-align: center; max-width: 46rem; margin: 0 auto 3.5rem; }
.head-center .section-copy { margin-inline: auto; }

/* Cards */
.card {
  position: relative;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(156, 189, 51, 0.06), transparent);
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.card p { color: var(--text-dim); font-size: 0.97rem; }

.card-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.point-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.point-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.point-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(156, 189, 51, 0.12);
}

/* Approach split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.terminal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar i {
  width: 0.62rem; height: 0.62rem;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.terminal-bar span {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.terminal-body {
  padding: 1.6rem 1.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.83rem;
  line-height: 2.05;
  color: var(--text-dim);
  overflow-x: auto;
}
.c-mute { color: var(--muted); }
.c-blue { color: var(--blue-bright); }
.c-cyan { color: var(--green); }

/* Why list */
.why-list { list-style: none; display: grid; gap: 1.4rem; }
.why-list li { display: flex; gap: 1.1rem; }
.why-icon {
  flex: none;
  width: 2.4rem; height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
}
.why-list strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.why-list span { color: var(--text-dim); font-size: 0.93rem; }

/* Affiliates */
.affiliate { display: block; }
.affiliate-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.affiliate-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-bright);
}

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 11rem 0 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 20% 0%, rgba(156, 189, 51, 0.12), transparent 65%),
    radial-gradient(50% 80% at 90% 20%, rgba(156, 189, 51, 0.07), transparent 70%),
    var(--navy-950);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }

.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.person {
  flex: 1 1 320px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.person:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.avatar {
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px -16px var(--glow);
  overflow: hidden;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: saturate(0.9) contrast(1.03);
  transition: filter 0.35s var(--ease);
}
.person:hover .avatar img { filter: saturate(1) contrast(1.06); }
.person h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.person .role {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}
.person p { color: var(--text-dim); font-size: 0.93rem; }
.person .tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.4rem;
}
.person .tags li {
  font-size: 0.73rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  padding: 3.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(156, 189, 51, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
}
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(156, 189, 51, 0.08);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(127, 144, 180, 0.7); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-note a { color: var(--blue-bright); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-950); padding: 3rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-panel { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.2rem; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 4.6rem; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(1, 13, 33, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { padding: 0.65rem 0; }
  .nav-cta { text-align: center; justify-content: center; display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pad { padding: 4.5rem 0; }
  .hero { padding-top: 7rem; }
  .hero-stats { gap: 1.75rem; }
  .scroll-cue { display: none; }
  .page-hero { padding-top: 8.5rem; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
/* Reversed rows swap the column widths too, so the screenshot keeps the wider side */
.product-grid.is-reversed { grid-template-columns: 1.15fr 1fr; }
.product-grid.is-reversed .product-body { order: 2; }
.product-grid.is-reversed .shot { order: 1; }

.product-num {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.product-num::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

/* Screenshot frame — also carries the placeholder until real images land */
.shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 34px 80px -46px rgba(0, 0, 0, 0.95);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.shot:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.shot > img {
  width: 100%;
  height: auto;
  display: block;
}
/* Brand glaze so screenshots of any hue still sit on the navy */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(156, 189, 51, 0.05), transparent 45%);
}

/* Placeholder: hidden once a real screenshot loads */
.shot-empty { display: none; }
.shot.is-empty .shot-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.9rem;
  aspect-ratio: 16 / 10;
  background-image: radial-gradient(rgba(90, 190, 240, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
}
.shot.is-empty .shot-empty img {
  width: 3.6rem;
  height: 3.6rem;
  opacity: 0.55;
}
.shot.is-empty .shot-empty span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .product-grid,
  .product-grid.is-reversed { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-grid.is-reversed .product-body,
  .product-grid.is-reversed .shot { order: 0; }
}

/* --------------------------------------------------------------------------
   Stacked product shot — two views of one run, layered instead of side by side
   -------------------------------------------------------------------------- */
.shot-stack { overflow: visible; background: none; border: none; box-shadow: none; }
.shot-stack:hover { transform: none; }
.shot-stack::after { content: none; }

.shot-stack .stack-map {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 34px 80px -46px rgba(0, 0, 0, 0.95);
  filter: saturate(0.82) contrast(1.06) brightness(0.9);
  transition: filter 0.4s var(--ease);
}
.shot-stack:hover .stack-map { filter: saturate(1) brightness(1); }

/* The console card floats in front, bottom-left — inputs over outcome */
.shot-stack .stack-panel {
  position: absolute;
  left: -5%;
  bottom: -7%;
  width: 50%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.shot-stack:hover .stack-panel {
  transform: translateY(-6px);
  box-shadow: 0 40px 74px -22px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(156, 189, 51, 0.3);
}

/* Run parameters as a glass chip on the map */
.stack-chip {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(1, 13, 33, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.stack-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2.4s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(156, 189, 51, 0.26); }
  50%      { box-shadow: 0 0 0 7px rgba(156, 189, 51, 0.04); }
}

/* Give the stacked row room for the overhang */
#simulation .product-grid { align-items: center; }
#simulation .shot-stack { margin-bottom: 2.5rem; }

@media (max-width: 900px) {
  .shot-stack .stack-panel { left: 0; bottom: -6%; width: 56%; }
  .stack-chip { top: 0.7rem; right: 0.7rem; font-size: 0.72rem; }
}

/* --------------------------------------------------------------------------
   Light band — the stationery's off-white panel ("The X is the crux")
   -------------------------------------------------------------------------- */
.band-light {
  background: var(--paper);
  color: var(--navy-950);
  border-block: 1px solid var(--paper-line);
}
.band-light .section-title { color: var(--navy-950); }
.band-light .section-copy { color: #3c4a5e; }
.band-light .section-label { color: var(--green-deep); }
.band-light .section-label::before { background: linear-gradient(90deg, var(--green-deep), transparent); }

/* Five meanings of the X — heading block left, glyph columns right, thin dividers */
.x-band {
  display: grid;
  grid-template-columns: 1.55fr repeat(5, 1fr);
  align-items: center;
}
.x-head { padding-right: 2rem; }
.x-head .section-title {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.x-head p { font-size: 0.92rem; color: #3c4a5e; line-height: 1.6; }
.x-head::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2px;
  margin-top: 1.2rem;
  background: var(--green);
}
.x-item {
  text-align: center;
  padding: 0.5rem 0.9rem;
  border-left: 1px solid var(--paper-line);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.x-item img {
  width: min(100%, 8.5rem);
  height: auto;
  margin: 0 auto 0.9rem;
}
.x-item h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-950);
  margin-bottom: 0.15rem;
}
.x-item .pair {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2c3a50;
  margin-bottom: 0.6rem;
}
.x-item p { font-size: 0.78rem; color: #7a8699; line-height: 1.5; }

@media (max-width: 1100px) {
  .x-band { grid-template-columns: repeat(5, 1fr); }
  .x-head { grid-column: 1 / -1; padding: 0 0 2.2rem; max-width: 34rem; }
}
@media (max-width: 900px) {
  .x-band { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .x-item { border-left: none; }
  .x-item:nth-of-type(odd) { border-left: 1px solid var(--paper-line); }
}
@media (max-width: 540px) {
  .x-band { grid-template-columns: 1fr; }
  .x-item, .x-item:nth-of-type(odd) { border-left: none; }
}

/* --------------------------------------------------------------------------
   Footer tagline
   -------------------------------------------------------------------------- */
.footer-brand { display: grid; gap: 0.55rem; justify-items: start; }
.footer-tagline {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-tagline .x { color: var(--green); }

/* CRUX SCP lockup on the products page */
.scp-lockup { height: 4.6rem; width: auto; margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   Contact form: honeypot + submit states
   -------------------------------------------------------------------------- */
/* Hidden from people without display:none, which some bots skip. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 1.4em;
  margin-top: -0.2rem;
}
.form-status.is-ok { color: var(--green-bright); }
.form-status.is-error { color: #ff8f8f; }

#contactSubmit[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
