/* ============================================================
   Peregrine — Dry-Fire Laser Trainer
   ============================================================ */

:root {
  /* palette (from the app) */
  --ink: #0a0a0c;
  --ink-2: #0d0d11;
  --surface: #14141a;
  --surface-2: #1b1b22;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --laser: #ff3a23;
  --laser-soft: #ff6a4d;
  --amber: #e6a063;
  --gold: #f4d49a;
  --recon: #8abce0;
  --green: #63c178;

  --bone: #f3efe6;
  --mute: #9a958c;
  --mute-2: #6f6b64;

  /* type */
  --f-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --f-tech: "Chakra Petch", "Courier New", monospace;
  --f-body: "Archivo", system-ui, sans-serif;
  /* the app logo wordmark — intentionally NOT tied to --f-display so the
     Customize "display font" picker can never change the brand mark */
  --f-logo: "Saira Condensed", "Arial Narrow", sans-serif;

  /* metrics */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 86, 56, 0.72) #0a0a0c;
}
html::-webkit-scrollbar { width: 13px; }
html::-webkit-scrollbar-track { background: #0a0a0c; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 86, 56, 0.82), rgba(138, 188, 224, 0.5));
  border: 3px solid #0a0a0c;
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--laser-soft), rgba(138, 188, 224, 0.72)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  position: relative; /* containing block for #pageFx (full-document fx layer) */
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden) avoids breaking position:fixed in Safari */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--laser); color: #fff; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--laser); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-family: var(--f-tech); font-size: 14px;
}
.skip-link:focus { left: 12px; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--f-tech);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--recon);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tick {
  width: 22px; height: 1px; background: var(--laser);
  display: inline-block; position: relative;
}
.tick::after {
  content: ""; position: absolute; right: -1px; top: -2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--laser);
  box-shadow: 0 0 8px var(--laser);
}

.btn {
  font-family: var(--f-tech);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--solid {
  background: var(--laser);
  color: #1a0703;
  padding: 0 26px;
  height: 52px;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(255, 58, 35, 0.32);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(255, 58, 35, 0.45); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--bone);
  padding: 0 18px;
  height: 40px;
  font-size: 13.5px;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.btn .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--laser);
  box-shadow: 0 0 8px var(--laser);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- brand mark (logo wordmark + reticle) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
/* metallic Peregrine wordmark image in the fixed nav (sits right of the reticle) */
.brand__logo { display: block; height: 30px; width: auto; }
/* metallic logo wordmark — mirrors the AppIcon "Peregrine" lettering:
   bright white crown, warm gold core, deep bronze foot, dark contour + glow */
.brand__word {
  position: relative;
  font-family: var(--f-logo);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.006em;
  font-size: 25px;
  line-height: 1;
  color: #f6c874;            /* fallback if background-clip unsupported */
  /* gold crown -> bright specular horizon -> saturated orange -> bronze foot */
  background: linear-gradient(
    177deg,
    #d69a41 0%,
    #eec173 24%,
    #fbe6b8 41%,
    #fff2d4 47%,
    #ffcf78 54%,
    #ff8c1f 70%,
    #d35f18 85%,
    #6d3210 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* dark contour + drop bevel + warm halo = the 3D metal look of the icon */
  -webkit-text-stroke: 0.4px rgba(40, 16, 4, 0.6);
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 12px rgba(255, 120, 40, 0.34));
  padding-right: 2px;
}
/* crisp specular streak across the middle — the glossy chrome "horizon" */
.brand__word::after {
  content: attr(data-word);
  position: absolute; left: 0; top: 0; padding-right: 2px;
  background: linear-gradient(
    177deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.92) 47%,
    rgba(255, 255, 255, 0.98) 49%,
    rgba(255, 255, 255, 0) 57%
  );
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}
/* red scope-reticle brand mark. Nav uses the raster reticle-mark.png; the
   footer still uses an inline SVG whose stroke is currentColor, so keep color. */
.brand__reticle {
  width: 28px; height: 28px; flex: none;
  object-fit: contain;
  color: var(--laser);
  filter: drop-shadow(0 0 5px rgba(255, 58, 35, 0.55));
}
.footer__brand .brand__reticle { width: 24px; height: 24px; }
.footer__brand .brand__word { font-size: 22px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.nav__links {
  margin-left: auto;
  display: flex; gap: 30px;
  font-family: var(--f-tech); font-size: 14px; letter-spacing: 0.02em;
}
.nav__links a { color: var(--mute); transition: color .2s ease; position: relative; }
.nav__links a:hover { color: var(--bone); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--laser); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav__toggle span { width: 18px; height: 2px; background: var(--bone); transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad) 22px;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-tech);
}
.nav__mobile a { padding: 14px 2px; color: var(--mute); border-bottom: 1px solid var(--line-soft); }
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile-cta { color: var(--laser) !important; }
.nav.open .nav__mobile { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
/* The old empty <span id="top"> anchor made WebKit/Safari reserve a line box,
   printing a blank strip above the hero. The span is gone (#top now lives on
   <body>), so nothing may size or hide #top here. */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px var(--pad) 70px;
  overflow: hidden;
  cursor: crosshair;
}
.hero .signup, .hero a, .hero button, .hero input { cursor: auto; }
.hero a, .hero button { cursor: pointer; }

/* click-to-dry-fire laser ping */
.laser-ping {
  position: absolute; z-index: 6; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--laser); pointer-events: none;
  box-shadow: 0 0 12px 4px rgba(255, 58, 35, 0.85);
  animation: laserDot 1.6s ease-out forwards;
}
.laser-ping::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(255, 58, 35, 0.8); animation: laserRing 0.7s ease-out forwards;
}
.laser-ping::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 16, 12, 0.9), transparent 70%);
  opacity: 0; animation: laserScorch 1.6s ease-in 0.25s forwards;
}
.laser-ping--static { animation: none; opacity: 0.9; }
.laser-ping--static::before, .laser-ping--static::after { animation: none; }
@keyframes laserDot {
  0% { opacity: 1; transform: scale(1.35); }
  20% { transform: scale(1); }
  70% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(0.6); }
}
@keyframes laserRing { from { transform: scale(0.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
@keyframes laserScorch { from { opacity: 0.75; } to { opacity: 0; } }
.laser-score {
  position: absolute; z-index: 6; pointer-events: none;
  font-family: var(--f-tech); font-weight: 700; font-size: 15px; color: var(--gold);
  text-shadow: 0 0 10px rgba(244, 212, 154, 0.6);
  animation: scorePop 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes scorePop {
  0% { opacity: 0; transform: translateY(4px) scale(0.8); }
  25% { opacity: 1; transform: translateY(-6px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}
.hero__bg {
  /* -2 keeps the ember backdrop beneath #pageFx (-1) so the reticle and
     laser still render over it in the hero */
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 64% 46%, rgba(255, 110, 60, 0.30), rgba(255, 90, 45, 0.10) 38%, transparent 66%),
    radial-gradient(42% 40% at 64% 46%, rgba(255, 200, 120, 0.22), transparent 60%),
    radial-gradient(90% 70% at 14% 88%, rgba(138, 188, 224, 0.08), transparent 60%),
    url("assets/web/ember-bg.jpg") 64% 40% / 115% auto no-repeat,
    var(--ink);
  opacity: 0.95;
}
/* mirrored ember layer for a fuller, radial cosmos burst */
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/web/ember-bg.jpg") 36% 40% / 115% auto no-repeat;
  transform: scaleX(-1);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.30) 0%, rgba(10,10,12,0.55) 58%, var(--ink) 100%);
}

/* page-wide fx layer: spans the whole document behind section content.
   z-index -1 paints it beneath every block's background, text, and imagery
   (only the body ink and .hero__bg at -2 sit further back), so the laser,
   reticle, and embers never overlay content. */
#pageFx {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}

/* drifting ember particle field — viewport-fixed canvas, document-space sim */
.cosmos {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}

/* full-document vertical laser. Solid down to the crosshair pin point
   (--pe-laser-fade, set by script.js), then fades linearly to nothing at
   the bottom of the document. */
.pagefx__laser {
  position: absolute; left: 64%; top: 0; bottom: 0; width: 1.5px;
  background: var(--laser); opacity: 0.55;
  box-shadow: 0 0 12px 1px rgba(255, 58, 35, 0.7);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 var(--pe-laser-fade, 100%), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 var(--pe-laser-fade, 100%), transparent 100%);
  transform: scaleY(0); transform-origin: top;
  animation: sweepV 1.1s cubic-bezier(.2,.7,.2,1) .15s forwards;
}

/* signature crosshair — a zero-height rail translated down the page by JS */
.crosshair {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  pointer-events: none; will-change: transform;
}
.crosshair::before {
  content: "";
  position: absolute; left: 64%; top: 0;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid rgba(255, 58, 35, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 58, 35, 0.28) inset, 0 0 18px rgba(255, 58, 35, 0.32);
  opacity: 0; transform: scale(0.64);
  animation: ringPop 0.8s cubic-bezier(.2,.7,.2,1) 0.95s forwards;
}
.crosshair__h {
  position: absolute; background: var(--laser); opacity: 0.55;
  top: 0; left: 0; right: 0; height: 1.5px;
  box-shadow: 0 0 12px 1px rgba(255, 58, 35, 0.7);
  transform: scaleX(0); transform-origin: left;
  animation: sweepH 1.1s cubic-bezier(.2,.7,.2,1) .35s forwards;
}
.crosshair__ring {
  position: absolute; left: 64%; top: 0;
  width: 230px; height: 230px; margin: -115px 0 0 -115px;
  border: 1.5px solid rgba(255, 58, 35, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 58, 35, 0.25) inset, 0 0 24px rgba(255, 58, 35, 0.2);
  opacity: 0; transform: scale(0.6);
  animation: ringPop 0.9s cubic-bezier(.2,.7,.2,1) 1.05s forwards;
}
@keyframes sweepV { to { transform: scaleY(1); } }
@keyframes sweepH { to { transform: scaleX(1); } }
@keyframes ringPop {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 0.9; transform: scale(1.06); }
  100% { opacity: 0.5; transform: scale(1); }
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.hero__title-accent {
  background: linear-gradient(180deg, var(--gold) 0%, var(--amber) 70%, var(--laser) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: #cfcabf;
  max-width: 38ch;
  margin: 0 0 32px;
}

/* signup */
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__input {
  flex: 1 1 220px;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--bone);
  font-family: var(--f-tech);
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.signup__input::placeholder { color: var(--mute-2); }
.signup__input:focus { outline: none; border-color: var(--recon); background: rgba(255,255,255,0.06); }
.signup__note { font-family: var(--f-tech); font-size: 12.5px; color: var(--mute-2); margin: 14px 0 0; letter-spacing: 0.02em; }
.signup__ok {
  font-family: var(--f-tech); font-size: 14px; color: var(--recon); margin: 14px 0 0;
  display: inline-flex; align-items: center; gap: 9px; letter-spacing: 0.02em;
}
.signup__ok[hidden] { display: none; }
.signup__ok::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--recon);
  box-shadow: 0 0 10px var(--recon);
}
.signup--center { max-width: 480px; margin: 0 auto; text-align: left; }
.signup--center .signup__note, .signup--center .signup__ok { text-align: center; width: 100%; justify-content: center; }

/* device frame */
/* iPhone frame. All chrome (island, status bar, buttons) is sized in cqw so
   it scales with the frame — a 200px carousel phone gets proportionally
   smaller icons instead of the island crowding the cell bars. */
.device {
  position: relative;
  container-type: inline-size; /* children size their chrome in cqw */
  width: 100%; max-width: 340px;
  margin: 0 auto;
  /* NOTE: the frame's own box props can't use cqw (an element's container
     units query its ANCESTOR container, not itself) — keep these in px */
  border-radius: 46px;
  padding: 40px 9px 9px;
  background: linear-gradient(155deg, #2a2a31 0%, #0c0c10 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 2px #33333b,          /* titanium rail */
    0 0 0 3px rgba(0, 0, 0, 0.55),
    0 40px 90px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
/* side buttons: volume pair (left, second via box-shadow copy) + power (right) */
.device::before {
  content: ""; position: absolute;
  left: -4px; top: 22cqw;
  width: 3px; height: 7.5cqw;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #45454e, #26262c);
  box-shadow: 0 10.5cqw 0 0 #33333b;
}
.device::after {
  content: ""; position: absolute;
  right: -4px; top: 27cqw;
  width: 3px; height: 13cqw;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(270deg, #45454e, #26262c);
}
.device__screen {
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  border-radius: 0 0 38px 38px;
  background: #050507;
}
.device__screen img {
  width: 100%;
  height: auto;
  border-radius: 0;
}
.device > img { border-radius: 0 0 38px 38px; width: 100%; height: auto; }
.device__island {
  position: absolute; z-index: 2;
  top: 5.6cqw; left: 50%; transform: translateX(-50%);
  width: 26cqw; height: 7cqw; border-radius: 3.6cqw;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.device__status {
  position: absolute; z-index: 4;
  top: 4.7cqw; left: 9cqw; right: 7.4cqw;
  display: flex; align-items: center; justify-content: space-between;
  height: 6.5cqw;
  color: #f7f7f5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  font-size: 3.55cqw; font-weight: 700; line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}
.device__status-left,
.device__status-right,
.device__indicators { display: inline-flex; align-items: center; }
.device__status-left { min-width: 14cqw; justify-content: flex-start; }
.device__status-right,
.device__indicators { min-width: 20cqw; justify-content: flex-end; gap: 1.7cqw; margin-left: auto; }
.device__cell {
  display: inline-flex; align-items: flex-end; gap: 0.6cqw;
  height: 3.3cqw;
}
.device__cell span {
  display: block; width: 0.9cqw; border-radius: 0.55cqw;
  background: #f7f7f5;
}
.device__cell span:nth-child(1) { height: 1.2cqw; }
.device__cell span:nth-child(2) { height: 1.75cqw; }
.device__cell span:nth-child(3) { height: 2.6cqw; }
.device__cell span:nth-child(4) { height: 3.2cqw; }
.device__wifi {
  width: 4.8cqw; height: 3.7cqw;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cg fill='none' stroke='%23f7f7f5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 5.2C5.9 1.7 12.1 1.7 16 5.2'/%3E%3Cpath d='M5 8.1c2.2-1.9 5.8-1.9 8 0'/%3E%3Cpath d='M8.1 10.9c.5-.4 1.3-.4 1.8 0'/%3E%3C/g%3E%3C/svg%3E");
}
.device__wifi svg { display: block; width: 100%; height: 100%; }
.device__wifi svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.device__battery {
  position: relative;
  width: 6.9cqw; height: 3.4cqw;
  border: 0.5cqw solid #f7f7f5;
  border-radius: 0.9cqw;
  box-sizing: border-box;
}
.device__battery::after {
  content: "";
  position: absolute; right: -1.1cqw; top: 0.85cqw;
  width: 0.55cqw; height: 1.45cqw; border-radius: 0 0.55cqw 0.55cqw 0;
  background: #f7f7f5;
}
.device__battery span {
  display: block;
  width: 4.5cqw; height: 1.7cqw;
  margin: 0.35cqw;
  border-radius: 0.45cqw;
  background: #f7f7f5;
}
.device--hero {
  box-shadow:
    0 0 0 0.55cqw #33333b,
    0 0 0 0.85cqw rgba(0, 0, 0, 0.55),
    0 50px 110px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(255, 58, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ============================================================
   STAT BAND
   ============================================================ */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.band__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px var(--pad);
  display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap;
}
.band__label {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); margin: 0; color: var(--bone);
  flex: none;
}
.band__chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; margin-left: auto;
}
.band__chips li { display: flex; flex-direction: column; gap: 2px; }
.chip__num {
  font-family: var(--f-tech); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px);
  color: var(--amber); line-height: 1;
}
.chip__num small { font-size: 0.55em; color: var(--mute); }
.chip__cap {
  font-family: var(--f-tech); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute-2);
}

/* ============================================================
   SECTIONS / FEATURES
   ============================================================ */
.section {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--pad);
  position: relative; overflow: hidden;
}
.has-pe-media-bg { position: relative; overflow: hidden; }
.pe-bg-video {
  position: absolute; top: 50%; left: 50%; z-index: 0;
  width: 100%; height: 100%; max-width: 1280px; max-height: 720px;
  transform: translate(-50%, -50%);
  object-fit: contain; pointer-events: none;
  opacity: 0.68; filter: saturate(1.05) contrast(1.08) brightness(0.62);
}
.has-pe-media-bg > :not(.pe-bg-video):not(.hero__bg):not(.cta__bg) { position: relative; z-index: 1; }
.hero.has-pe-media-bg .hero__bg,
.cta.has-pe-media-bg .cta__bg { opacity: 0; }
.pe-motion-block {
  max-width: none;
  padding-top: clamp(14px, 3vw, 40px);
  padding-bottom: clamp(14px, 3vw, 40px);
}
.pe-motion-stage {
  width: min(100%, 1280px);
  height: var(--pe-motion-height, 360px);
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  background: transparent;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.pe-motion-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.48;
  filter: saturate(0.95) contrast(1.08) brightness(0.7);
}
.section__head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 84px); }
.section__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.0; letter-spacing: -0.005em;
  margin: 0 0 16px;
}
.section__sub { color: var(--mute); font-size: clamp(15px, 1.2vw, 18px); margin: 0; max-width: 46ch; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

.feature {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(26px, 4vw, 60px);
  background: linear-gradient(165deg, rgba(27, 27, 34, 0.65), rgba(13, 13, 17, 0.45));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.feature + .feature { margin-top: clamp(18px, 2.4vw, 28px); }
.feature--rev .feature__media { order: 2; }
.feature__media { display: flex; justify-content: center; }
.feature__media .device { max-width: 266px; }
#targets {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
}
#targets .feature__media { min-width: 0; width: 100%; }
#targets .carousel--cards { max-width: min(760px, 100%); }
.target-loop { width: 100%; max-width: min(760px, 100%); }

.feature__kicker {
  font-family: var(--f-tech); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--laser-soft); margin: 0 0 16px;
}
.feature__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.02; letter-spacing: -0.005em;
  margin: 0 0 18px;
}
.feature__text { color: #c4bfb5; margin: 0 0 26px; max-width: 46ch; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li {
  position: relative; padding-left: 26px;
  font-family: var(--f-tech); font-size: 14.5px; line-height: 1.55; color: var(--bone);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: calc(0.775em - 4px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--laser); box-shadow: 0 0 9px rgba(255, 58, 35, 0.7);
}

/* divider */
.divider {
  position: relative; height: 1px; background: var(--line);
  margin-top: var(--divider-offset, 0px);
  margin-bottom: clamp(48px, 7vw, 80px);
}
.divider__tick {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: var(--divider-red-length, 132px); height: 2px; background: var(--laser); box-shadow: 0 0 12px var(--laser);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section--how { padding-top: 0; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  background: linear-gradient(170deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 46px;
  background: var(--laser); box-shadow: 0 0 14px var(--laser);
}
.step__no {
  font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px rgba(230, 160, 99, 0.55);
  display: block; margin-bottom: 18px;
}
.step__title { font-family: var(--f-display); text-transform: uppercase; font-weight: 700; font-size: 22px; letter-spacing: 0.01em; margin: 0 0 10px; }
.step__text { color: var(--mute); font-size: 15px; margin: 0; }

/* ============================================================
   WHAT YOU NEED (gear)
   ============================================================ */
.section--kit { padding-top: 0; }
.kit-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px;
}
.kit-card {
  background: linear-gradient(170deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  position: relative; overflow: hidden;
}
.kit-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 40px;
  background: var(--laser); box-shadow: 0 0 12px var(--laser); opacity: 0.85;
}
.kit-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.kit-card__title {
  font-family: var(--f-display); text-transform: uppercase; font-weight: 700;
  font-size: 21px; letter-spacing: 0.01em; margin: 0;
}
.kit-card__text { color: var(--mute); font-size: 14.5px; margin: 0; }

.chip {
  font-family: var(--f-tech); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  border: 1px solid currentColor;
}
.chip--req { color: var(--amber); background: rgba(230, 160, 99, 0.1); }
.chip--rec { color: var(--recon); background: rgba(138, 188, 224, 0.1); }
.chip--nice { color: var(--green); background: rgba(99, 193, 120, 0.1); }

/* ============================================================
   WALKTHROUGH VIDEO (portrait)
   ============================================================ */
.section--video { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 56px); }
.video-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
/* walkthrough phone: same device chrome as the rest, plus a home-indicator
   chin so the 9:16 video sits in iPhone-shaped hardware without cropping */
.device--video {
  max-width: 360px;
  padding-bottom: 30px;
  cursor: pointer;
  box-shadow:
    0 0 0 2px #33333b,
    0 0 0 3px rgba(0, 0, 0, 0.55),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 58, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.device__home {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 4px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.32);
}
.video-el {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  border-radius: 0 0 8px 8px; background: #000; object-fit: cover;
}
.video-cap {
  font-family: var(--f-tech); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute); margin: 0;
}
.video-err {
  max-width: 360px; text-align: center; margin: 4px 0 0;
  font-family: var(--f-tech); font-size: 12.5px; line-height: 1.6; color: var(--amber);
}
.video-err code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 5px; color: var(--bone); }
.video-err a { color: var(--recon); text-decoration: underline; }

/* ============================================================
   CTA / COMING SOON
   ============================================================ */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) var(--pad); text-align: center; cursor: crosshair; }
.cta a, .cta button, .cta input, .cta .signup { cursor: auto; }
.cta a, .cta button { cursor: pointer; }
.cta__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 92, 50, 0.22), transparent 60%),
    url("assets/web/ember-bg.jpg") center / cover no-repeat,
    var(--ink);
  opacity: 0.85;
}
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0.55), var(--ink)); }
.cta__video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.16; pointer-events: none;
  filter: saturate(0.7) brightness(0.8);
}
.cta__scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 90% at 50% 45%, rgba(10, 10, 12, 0.35), rgba(10, 10, 12, 0.92));
}
.cta__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta__lockup { width: min(340px, 76%); height: auto; margin: 0 auto 26px; mix-blend-mode: screen; }
.cta__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 6vw, 64px); line-height: 0.98; margin: 0 0 16px;
}
.cta__sub { color: #cfcabf; font-size: clamp(15px, 1.3vw, 18px); margin: 0 auto 34px; max-width: 44ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 44px var(--pad);
  display: grid; gap: 18px;
  grid-template-columns: auto 1fr; align-items: center;
}
.footer__brand { display: inline-flex; align-items: center; gap: 11px; }
.footer__links {
  display: flex; gap: 26px; justify-content: flex-end; flex-wrap: wrap;
  font-family: var(--f-tech); font-size: 14px; color: var(--mute);
}
.footer__links a:hover { color: var(--bone); }
.footer__safety {
  grid-column: 1 / -1; color: var(--mute-2); font-size: 13px; margin: 8px 0 0;
  padding-top: 18px; border-top: 1px solid var(--line-soft); max-width: 60ch;
}
.footer__copy { grid-column: 1 / -1; color: var(--mute-2); font-family: var(--f-tech); font-size: 12.5px; margin: 0; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* per-section entrance effects (applied via the Customize panel; baked into
   exported HTML — animated by script.js so they work without the editor) */
[data-pe-anim] { opacity: 0; will-change: transform, opacity; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
[data-pe-anim].pe-in { opacity: 1; transform: none; }
[data-pe-anim="rise"] { transform: translateY(44px); }
[data-pe-anim="fade"] { transform: none; }
[data-pe-anim="zoom"] { transform: scale(0.9); }
[data-pe-anim="slideL"] { transform: translateX(-52px); }
[data-pe-anim="slideR"] { transform: translateX(52px); }
.pe-glow { box-shadow: 0 0 0 1px rgba(255, 58, 35, 0.35), 0 0 46px rgba(255, 58, 35, 0.16); border-radius: 18px; }
@media (prefers-reduced-motion: reduce) {
  [data-pe-anim] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Webflow-inspired custom interactions from the Customize panel */
[data-pe-interaction] {
  --pe-ix-duration: 600ms;
  --pe-ix-delay: 0ms;
  --pe-ix-ease: cubic-bezier(.2,.7,.2,1);
  transform-origin: center;
}
.pe-ix-pending {
  opacity: 0;
  transition:
    opacity var(--pe-ix-duration) var(--pe-ix-ease) var(--pe-ix-delay),
    transform var(--pe-ix-duration) var(--pe-ix-ease) var(--pe-ix-delay),
    filter var(--pe-ix-duration) var(--pe-ix-ease) var(--pe-ix-delay);
}
.pe-ix-pending[data-pe-ix-effect="fade"] { transform: none; }
.pe-ix-pending[data-pe-ix-effect="slide-up"] { transform: translateY(36px); }
.pe-ix-pending[data-pe-ix-effect="slide-down"] { transform: translateY(-36px); }
.pe-ix-pending[data-pe-ix-effect="slide-left"] { transform: translateX(42px); }
.pe-ix-pending[data-pe-ix-effect="slide-right"] { transform: translateX(-42px); }
.pe-ix-pending[data-pe-ix-effect="scale"] { transform: scale(0.88); }
.pe-ix-pending[data-pe-ix-effect="rotate"] { transform: rotate(-4deg) scale(0.94); }
.pe-ix-pending[data-pe-ix-effect="blur"] { filter: blur(12px); transform: scale(0.98); }
.pe-ix-in {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Both classes stay on the element while it's in view, so this must outrank the
   .pe-ix-pending[data-pe-ix-effect="…"] resting offsets (equal specificity → win
   on source order). Without it, slide/scale/rotate/blur never resolve. */
.pe-ix-pending.pe-ix-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.pe-ix-run {
  animation-duration: var(--pe-ix-duration);
  animation-delay: var(--pe-ix-delay);
  animation-timing-function: var(--pe-ix-ease);
  animation-fill-mode: both;
}
.pe-ix-run[data-pe-ix-effect="fade"] { animation-name: peIxFade; }
.pe-ix-run[data-pe-ix-effect="slide-up"] { animation-name: peIxSlideUp; }
.pe-ix-run[data-pe-ix-effect="slide-down"] { animation-name: peIxSlideDown; }
.pe-ix-run[data-pe-ix-effect="slide-left"] { animation-name: peIxSlideLeft; }
.pe-ix-run[data-pe-ix-effect="slide-right"] { animation-name: peIxSlideRight; }
.pe-ix-run[data-pe-ix-effect="scale"] { animation-name: peIxScale; }
.pe-ix-run[data-pe-ix-effect="rotate"] { animation-name: peIxRotate; }
.pe-ix-run[data-pe-ix-effect="blur"] { animation-name: peIxBlur; }
.pe-ix-run[data-pe-ix-effect="pulse"] { animation-name: peIxPulse; }
@keyframes peIxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes peIxSlideUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes peIxSlideDown { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
@keyframes peIxSlideLeft { from { opacity: 0; transform: translateX(42px); } to { opacity: 1; transform: none; } }
@keyframes peIxSlideRight { from { opacity: 0; transform: translateX(-42px); } to { opacity: 1; transform: none; } }
@keyframes peIxScale { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes peIxRotate { from { opacity: 0; transform: rotate(-4deg) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes peIxBlur { from { opacity: 0; filter: blur(12px); transform: scale(0.98); } to { opacity: 1; filter: none; transform: none; } }
@keyframes peIxPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); filter: brightness(1.15); }
  100% { transform: scale(1); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-pe-interaction],
  .pe-ix-pending,
  .pe-ix-in,
  .pe-ix-run {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding-top: 116px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__device { order: -1; }
  .device--hero { max-width: 280px; }
  .hero__lede { max-width: 100%; }

  .band__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .band__chips { margin-left: 0; }

  .feature { grid-template-columns: 1fr; gap: 36px; }
  #targets { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .feature__media .device { max-width: 260px; }

  .steps { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .signup__row { flex-direction: column; }
  .signup__input, .btn--solid { width: 100%; }
  .band__chips { gap: 18px 28px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .pagefx__laser { animation: none; transform: scaleY(1); }
  .crosshair__h { animation: none; transform: scaleX(1); }
  .crosshair::before { animation: none; opacity: 0.5; transform: scale(1); }
  .crosshair__ring { animation: none; opacity: 0.5; transform: scale(1); }
  .btn .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .carousel__track { scroll-behavior: auto; }
}

/* ============================================================
   GEAR ICONS (What you need)
   ============================================================ */
.kit-card__icon {
  width: 66px; height: 66px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: radial-gradient(circle at 50% 36%, rgba(176, 198, 222, 0.24), rgba(255, 255, 255, 0.05) 62%, transparent 82%);
  border: 1px solid var(--line);
}
.kit-card__icon img {
  width: 80%; height: 80%; object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

/* ============================================================
   CAROUSEL (drills + targets)
   ============================================================ */
.carousel { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.carousel--cards { max-width: min(520px, 100%); }
.carousel__viewport { overflow: hidden; border-radius: 8px; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; justify-content: center;
  padding: 8px 2px 16px;
}
.carousel--phone-fixed .carousel__track {
  display: grid;
  overflow: hidden;
  scroll-snap-type: none;
}
.carousel--phone-fixed .carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.carousel--phone-fixed .carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel .device { max-width: 254px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.06); }
.pe-carousel-image {
  margin: 0; width: 100%; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(12, 12, 15, 0.88);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
}
.pe-carousel-image img { width: 100%; display: block; }
.pe-force-media-stretch > img,
.pe-force-media-stretch figure > img,
.pe-force-media-stretch .pe-carousel-image > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.pe-force-media-stretch .carousel__viewport,
.pe-force-media-stretch .carousel__track,
.pe-force-media-stretch .carousel__slide,
.pe-force-media-stretch .pe-carousel-image {
  height: 100%;
}
.tcard {
  margin: 0; width: 100%; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
  align-self: center;
  background: rgba(12, 12, 15, 0.88);
}
/* target sheets are white paper — pull the brightness down so they don't
   glare against the dark theme */
.tcard img,
.tcard--video video { filter: brightness(0.78) contrast(1.03); }
.tcard img { width: 100%; display: block; }
.tcard--video video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.tcard--target-loop { cursor: default; }
.tcard__label {
  display: grid;
  gap: 4px;
  padding: 12px 14px 13px;
  border-top: 1px solid var(--line-soft);
  color: var(--bone);
  font-family: var(--f-tech);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: none;
}
.tcard__eyebrow {
  color: var(--mute-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tcard__target-name { font-size: 15px; color: var(--recon); }

.carousel__arrow {
  position: absolute; top: 46%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(18, 18, 24, 0.82); border: 1px solid var(--line);
  color: var(--bone); font-size: 22px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; z-index: 4;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.carousel__arrow:hover { border-color: var(--laser); color: var(--laser); background: rgba(18,18,24,0.95); }
.carousel__arrow--prev { left: -8px; }
.carousel__arrow--next { right: -8px; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.carousel__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, 0.22); cursor: pointer; transition: all .25s ease;
}
.carousel__dots button.is-active { background: var(--laser); box-shadow: 0 0 8px var(--laser); width: 22px; border-radius: 4px; }

/* ============================================================
   DRIFT DIAGNOSIS
   ============================================================ */
.section--drift { padding-top: 0; }
.drift {
  display: grid; grid-template-columns: minmax(340px, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 84px); align-items: start;
}
.drift__visual { display: flex; flex-direction: column; align-items: center; gap: 40px; min-width: 0; }
.drift em { font-style: normal; color: var(--laser-soft); }
.drift__lede { color: #c4bfb5; font-size: clamp(15px, 1.2vw, 18px); margin: 0 0 26px; max-width: 50ch; }
.drift__note {
  margin: 28px 0 0; font-family: var(--f-tech); color: var(--mute);
  font-size: 14px; line-height: 1.6; border-left: 2px solid var(--laser);
  padding-left: 16px;
}
.drift__wheel { margin: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
.drift__wheel svg { width: 100%; max-width: 400px; height: auto; display: block; flex-shrink: 0; }
.dw-ring { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1.2; stroke-dasharray: 2 2.3; }
.dw-sector { cursor: pointer; outline: none; }
.dw-sector path { opacity: 0.5; transition: opacity .35s ease, filter .35s ease; }
.dw-sector.is-active path, .dw-sector:hover path, .dw-sector:focus-visible path {
  opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}
.dw-hour { fill: var(--mute); font-family: var(--f-tech); font-size: 13px;
  text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.dw-sector.is-active .dw-hour { fill: var(--bone); }
.dw-aim-ring {
  fill: none;
  stroke: rgba(255, 250, 238, 0.96);
  stroke-width: 2.3;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(255, 38, 0, 0.6));
  pointer-events: none;
}
.dw-dot {
  fill: var(--laser);
  stroke: var(--laser);
  stroke-width: 1.1;
  filter: url(#dwLaserBloom) drop-shadow(0 0 8px rgba(255, 38, 0, 0.95));
  transform-box: fill-box;
  transform-origin: center;
}
.dw-callout-arrow {
  stroke: rgba(255, 250, 238, 0.96);
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.44)) drop-shadow(0 0 10px rgba(255, 38, 0, 0.5));
  pointer-events: none;
}
.dw-arrow-head {
  fill: rgba(255, 250, 238, 0.96);
}
.dw-dot.is-hit { animation: dwDotStrobe .28s steps(2, end) .3s both; }
.dw-flash {
  fill: none;
  stroke: rgba(255, 245, 225, 0.95);
  stroke-width: 2;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 38, 0, 0.95));
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
}
.dw-flash.is-flashing { animation: dwImpactFlash .46s ease-out .3s both; }
.dw-tracer,
.dw-tracer-pulse {
  stroke: var(--laser);
  stroke-linecap: round;
  pointer-events: none;
}
.dw-tracer {
  stroke-width: 2;
  opacity: 0;
  stroke-dasharray: 3.5 6.2;
  filter: drop-shadow(0 0 5px rgba(255, 38, 0, 0.75));
  transition: opacity .4s ease;
}
.dw-tracer.is-live { opacity: 0.78; }
.dw-tracer-pulse {
  stroke: #fff1dc;
  stroke-width: 3.1;
  opacity: 0;
  /* one bright bolt (~18% of the line) with a trailing gap — it launches
     from the center ring and races out to the dot */
  stroke-dasharray: 18 100;
  stroke-dashoffset: 18;
  filter: drop-shadow(0 0 6px rgba(255, 245, 225, 0.9)) drop-shadow(0 0 14px rgba(255, 38, 0, 0.85));
}
.dw-tracer-pulse.is-live { animation: dwTracerPulse .3s cubic-bezier(.4, 0, .9, .6) both; }
@keyframes dwTracerPulse {
  0% { opacity: 0; stroke-dashoffset: 18; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -100; }
}
@keyframes dwDotStrobe {
  0%, 100% { fill: var(--laser); stroke: var(--laser); }
  50% { fill: #ffffff; stroke: #fff4e8; filter: url(#dwLaserBloom) drop-shadow(0 0 12px rgba(255, 245, 225, 0.96)); }
}
@keyframes dwImpactFlash {
  0% { opacity: 0; transform: scale(.28); stroke-width: 2.4; }
  28% { opacity: 1; }
  100% { opacity: 0; transform: scale(2.45); stroke-width: .45; }
}
.dw-hand {
  display: inline-flex; gap: 0; margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.dw-hand button {
  border: 0; background: transparent; color: var(--mute); cursor: pointer;
  font-family: var(--f-tech); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 7px 16px; border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.dw-hand button.is-on { background: var(--laser); color: #fff; }
.dw-cause { margin: 0 0 8px; color: #c4bfb5; font-size: 14.5px; line-height: 1.55; }
.dw-fix { margin: 0; color: var(--gold); font-family: var(--f-tech); font-size: 13px; line-height: 1.55; }
.drift__readout .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.drift__readout {
  margin-top: 24px; width: 100%; max-width: 380px;
  background: linear-gradient(170deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
}
.drift__readout-label {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px;
  font-family: var(--f-tech); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--recon);
}
.drift__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.drift__legend li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; font-family: var(--f-tech); font-size: 13.5px; line-height: 1.3;
}
.drift__legend li + li { border-top: 1px solid var(--line-soft); padding-top: 11px; }
.drift__legend .swatch {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.drift__legend .label { color: #c4bfb5; }
.drift__legend .label em { font-style: normal; color: var(--mute-2); }
.drift__legend .pct {
  font-variant-numeric: tabular-nums; font-weight: 600;
  letter-spacing: 0.02em; color: var(--bone);
}
.drift__shots {
  margin: 0;
  width: min(100%, 430px);
  justify-self: center;
}
.carousel--drift {
  max-width: min(300px, 100%);
}
.carousel--drift .device { width: 100%; }
.carousel--drift .carousel__viewport {
  border-radius: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.carousel--drift .carousel__slide {
  padding: 8px;
}
.drift__shot-caption {
  /* Clears the red carousel dots, which overflow the phone-fixed carousel's
     box; a smaller margin lets the caption collide with them. */
  margin-top: 30px;
  color: var(--mute);
  font-family: var(--f-tech);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .drift { grid-template-columns: 1fr; gap: 40px; }
  .drift__visual { order: -1; }
  .drift__shots { width: min(100%, 360px); }
}
