/* AMMO marketing site — supplemental styles (cleaned-up rebuild) */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

section { position: relative; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Underline-on-hover link, accent ink */
.link-accent {
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: opacity var(--d-fast) var(--ease-out);
}
.link-accent:hover { opacity: 0.7; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 901px) {
  .show-mobile { display: none !important; }
}

/* Two-column layouts collapse on mobile */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
}

/* ============================================================
   "Why this exists" carousel — five-act memoir.
   Cousin to the manifesto. Cream ground, single accent (violet).
   ============================================================ */
.wte-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--pad-section) var(--gutter); }
.wte-inner { max-width: var(--max-w); margin: 0 auto; }
/* V5 Fix 4 (2026-05-08): removed the previous child max-width:760px cap
   on direct children of the carousel inner — it was visually orphaning
   the section vs Hero / BigMoment / Product. Memoir-intimate read still
   comes from per-element max-widths (.wte-headline 560px, .wte-body
   580px, .wte-kicker 540px) below. */
.wte-header { margin-bottom: 48px; max-width: 600px; }
.wte-intro { font-family: var(--font-sans); font-weight: 500; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); margin: 12px 0 0; }

/* Mono-caps connective tissue used across labels, captions, attrib, mobile-label */
.wte-tab, .wte-mobile-label, .wte-leak-cap, .wte-math-cap, .wte-built-cap, .wte-attrib,
.wte-email-frag, .wte-email-subj {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* Tab row */
.wte-tabs { position: relative; display: flex; width: 100%; border-bottom: 1px solid var(--line); }
.wte-tab { flex: 1; text-align: center; padding: 18px 4px; color: var(--ash); border: none; background: transparent; cursor: pointer; transition: color var(--d-fast) var(--ease-out); }
.wte-tab:hover { color: var(--ink-3); }
.wte-tab.is-active { color: var(--accent); }
.wte-tab-underline { position: absolute; bottom: -1px; height: 1px; width: 20%; background: var(--accent); transition: left var(--d-mid) var(--ease-spring); pointer-events: none; }

.wte-mobile-label { display: none; }

/* Content frame */
.wte-content { position: relative; padding: 56px 0 64px; min-height: 460px; touch-action: pan-y; }
.wte-panel { animation: wte-fade 300ms var(--ease-out); }
@keyframes wte-fade { from { opacity: 0; } to { opacity: 1; } }

.wte-headline { font-family: var(--font-sans); font-weight: 500; font-size: clamp(28px, 4.2vw, 38px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); max-width: 560px; text-wrap: balance; margin: 0 0 28px; }
.wte-body { font-family: var(--font-sans); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.65; letter-spacing: -0.005em; color: var(--ink-2); max-width: 580px; margin: 0 0 40px; }
.wte-kicker { font-family: var(--font-sans); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 20px; max-width: 540px; text-wrap: balance; margin: 40px 0 0; }

/* Tab 1 — redacted email fragment (top-right anchor) */
.wte-email-frag { float: right; width: min(280px, 100%); margin: 0 0 20px 24px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); }
.wte-email-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.wte-email-subj { color: var(--ink-2); margin-bottom: 14px; letter-spacing: 0.10em; word-break: break-all; }
.wte-email-bar { height: 8px; background: var(--ash); border-radius: 2px; margin-bottom: 6px; opacity: 0.55; }

/* Tab 2 — leak delta number */
.wte-leak-num { margin: 8px 0 36px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.wte-leak-digit, .wte-leak-unit, .wte-math-digit { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.wte-leak-digit { font-size: clamp(48px, 7vw, 72px); color: var(--accent); }
.wte-leak-unit { font-size: clamp(28px, 4vw, 40px); color: var(--accent); }
.wte-leak-cap { color: var(--ash); margin-left: 16px; align-self: center; }

/* Tab 3 — compounded math number */
.wte-math-num { margin: 8px 0 40px; }
.wte-math-digit { display: block; font-size: clamp(56px, 9vw, 96px); color: var(--ink); }
.wte-math-cap { display: block; color: var(--ash); margin-top: 12px; }

/* Tab 5 — mint built mark */
.wte-built-mark { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 32px; }
.wte-built-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--mint-ink); animation: wte-pulse 600ms var(--ease-spring); }
@keyframes wte-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.wte-built-cap { color: var(--mint-ink); }

/* Dot indicator */
.wte-dots { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 8px; }
.wte-dot { padding: 14px 8px; background: transparent; border: none; cursor: pointer; display: inline-flex; }
.wte-dot > span { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--ash); transition: background var(--d-fast) var(--ease-out), width var(--d-mid) var(--ease-spring); }
.wte-dot.is-active > span { background: var(--accent); width: 24px; }

.wte-attrib { margin-top: 28px; text-align: center; color: var(--ink-3); }

/* Mobile collapse */
@media (max-width: 768px) {
  .wte-tabs { display: none; }
  .wte-mobile-label { display: block; text-align: center; color: var(--accent); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .wte-content { padding: 40px 0 48px; min-height: 420px; touch-action: pan-x; }
  .wte-email-frag { float: none; width: 100%; margin: 0 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .wte-panel, .wte-built-dot { animation: none; }
  .wte-tab-underline, .wte-dot > span { transition: none; }
}

/* ============================================================
   Deep-dive product pages — /product/{slug}.
   Magazine register. Cream end-to-end. Phone mock at scale 0.82
   (0.65 mobile). Reading columns 720-840px (memoir, not dashboard).
   Spec: design/USEAMMO-PRODUCT-DEEPDIVE-TEMPLATE.md.
   No new CSS variables — every value below pulls from existing tokens.
   ============================================================ */

/* Section 1 — Hero band */
.dd-hero {
  padding-top: 72px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--line);
}
.dd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

/* Section 2 — Vignette. Reading column 720px, fragment top-right.
   The fragment is hidden ≤900px because mobile doesn't have the horizontal
   real estate to make a fragment feel like a fragment. */
.dd-vignette { position: relative; }
.dd-vignette-col { max-width: 720px; }
.dd-vignette-fragment {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  opacity: 0.95;
  pointer-events: none;
}
@media (max-width: 900px) {
  .dd-vignette-fragment { display: none; }
}

/* Vignette paragraph rhythm — multi-paragraph vignette body. The vignette
   is now 2-3 short paragraphs per page (locked in editorial V2). The first
   paragraph carries a subtle mono drop cap to mark the opening beat without
   tipping into serif drop-cap territory. */
.dd-vignette-body { /* container for paragraph stack — no own styles, hooks for future */ }
.dd-vignette-p {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 0 24px;
}
.dd-vignette-p:first-of-type { margin-top: 32px; }
.dd-vignette-p:last-child { margin-bottom: 0; }
.dd-vignette-p-first::first-letter {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.4em;
  line-height: 1;
  padding-right: 2px;
  color: var(--ink);
}

/* Section 3 — Steps. Mono number column on the left, body on the right.
   Numbers are violet (cross-page consistency rule — even on /product/aimy). */
.dd-steps {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 32px;
  row-gap: 48px;
  max-width: 840px;
}
.dd-step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .dd-steps { grid-template-columns: 1fr; row-gap: 36px; }
  .dd-step-num { font-size: clamp(40px, 12vw, 56px); }
}

/* Section 4 — Outcomes. 1px-gap-on-line-bg pattern, same as BigMomentSection. */
.dd-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dd-outcome-card {
  background: var(--cream);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
@media (max-width: 760px) {
  .dd-outcomes { grid-template-columns: 1fr; }
  .dd-outcome-card { min-height: auto; }
}

/* Section 5 — Differentiator. Reading column 720px, pull-quote with violet rule. */
.dd-diff-col { max-width: 720px; }
.dd-diff-quote {
  margin: 36px 0 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
}

/* Section 7 — Other instruments. 5-col grid, current page filtered out.
   Mobile: 2-col grid, 5th tile spans full width. */
.dd-other-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dd-other-tile {
  background: var(--cream);
  padding: 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--d-fast) var(--ease-out);
  text-decoration: none;
}
.dd-other-tile:hover,
.dd-other-tile:focus-visible {
  background: var(--accent-soft);
}
@media (max-width: 760px) {
  .dd-other-grid { grid-template-columns: 1fr 1fr; }
  .dd-other-tile:nth-child(5) { grid-column: 1 / -1; }
}

/* ============================================================
   V4 (2026-05-08) — useammo cinematic universe
   Cinemascope hero + cinematic intermission + page-dim primitive
   ============================================================ */

/* Cinemascope hero frame: 2.39:1 aspect lockup. Tightens on mobile. */
@media (max-width: 760px) {
  /* Mobile compression — relax aspect-ratio so the hero band doesn't
     get too short to hold the headline at narrow widths. */
  section#top > div > div[style*="aspect-ratio"] {
    aspect-ratio: 16 / 10 !important;
    min-height: 280px !important;
  }
}

/* Cinematic intermission — keeps motion at 60fps even on slower phones
   by relying on opacity + transform only. The block itself is a static
   strip; the intersection observer drives the fade. */
@media (prefers-reduced-motion: reduce) {
  /* Already handled by the global rule at the top, but keep this
     section explicit so the intent is documented. */
}

/* Page-dim primitive — used by AimyChatPanel to dim the page when
   AIMY's response renders. Scoped class for any caller that wants it
   without re-implementing the inline style. */
.ammo-page-dim {
  position: fixed; inset: 0;
  background: rgba(8,7,6,0.55);
  z-index: 80;
  pointer-events: none;
  transition: opacity 360ms var(--ease-out);
}
.ammo-page-dim[data-on="0"] { opacity: 0; }
.ammo-page-dim[data-on="1"] { opacity: 1; }

/* AIMY chat panel — pull-quote treatment. Most styling is inline in
   the component, but these rules tighten the cap on edge cases. */
@media (max-width: 760px) {
  /* On mobile, never auto-focus AIMY's input (component handles this,
     but reinforce here in case of stale builds). */
  /* No-op rule kept as a doc anchor. */
}

/* Cinematic-moment image stills — fall-back placeholder gradient when
   Higgsfield assets haven't landed yet. Image components own their own
   styles inline; this is the safety net so the page never flashes a
   broken-image icon during the asset rollout window. */
img[alt=""][src=""] { display: none; }

/* ============================================================
   Cinematic moment frames — shared overlay scaffold.
   Each section's overlay class layers ON TOP of `.ammo-cinematic-frame`
   using absolute positioning. Mobile breakpoints below 760px collapse
   absolute overlays into a stacked block beneath the still.
   ============================================================ */
.ammo-cinematic-frame {
  isolation: isolate;
  background: var(--bg, #14110D);
}
.ammo-cinematic-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none; /* image-first; overlays are decorative */
}

/* ── War Room: cursive pull-quote in violet ink ───────────── */
.ammo-cinematic-overlay-warroom {
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 8% 9%;
}
.ammo-warroom-quote {
  display: block;
  font-family: 'General Sans', var(--font-sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.55vw, 20px);
  line-height: 1.42;
  color: #7B61FF;
  text-align: center;
  text-wrap: balance;
  letter-spacing: -0.005em;
  /* faint paper-tinted glow so violet reads against any underlying ink */
  text-shadow: 0 1px 8px rgba(242, 238, 230, 0.55), 0 0 18px rgba(123, 97, 255, 0.18);
  max-width: 90%;
}
.ammo-warroom-seal {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #7B61FF;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(123, 97, 255, 0.45);
}
.ammo-warroom-seal span {
  width: 3px; height: 3px;
  background: #FFFFFF;
  border-radius: 50%;
}

/* ── AIMY: small chat panel in negative space ─────────────── */
.ammo-cinematic-overlay-aimy {
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: center;
  padding: 0 4% 0 0;
  gap: 8px;
}
.ammo-aimy-msg {
  pointer-events: auto;
  max-width: min(280px, 56%);
  padding: 12px 14px;
  border-radius: 12px;
  font-family: 'General Sans', var(--font-sans);
  font-size: 12px;
  line-height: 1.42;
  letter-spacing: -0.005em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ammo-aimy-msg--user {
  background: rgba(44, 41, 36, 0.88);
  color: #F5F0E8;
  font-style: italic;
  align-self: flex-end;
  border: 1px solid rgba(245, 240, 232, 0.08);
}
.ammo-aimy-msg--aimy {
  background: rgba(20, 17, 13, 0.9);
  color: #F5F0E8;
  border: 1px solid #38322A;
  align-self: flex-end;
}
.ammo-aimy-msg-body {
  font-style: italic;
  margin-bottom: 6px;
}
.ammo-aimy-msg-sig {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7B61FF;
  font-style: normal;
}
.ammo-aimy-msg-sig .ammo-aperture {
  color: #7B61FF;
  font-size: 11px;
  letter-spacing: 0;
}

/* ── Scout: 6 satellite role labels + center label ────────── */
.ammo-cinematic-overlay-scout {
  /* labels positioned absolutely as siblings */
}
.ammo-scout-scrim {
  position: absolute; inset: 0;
  background: rgba(8, 7, 6, 0.06);
  pointer-events: none;
}
.ammo-scout-title {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(10px, 1.05vw, 13px);
  letter-spacing: 0.18em;
  color: #14110D;
  background: rgba(242, 238, 230, 0.86);
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ammo-scout-label {
  position: absolute;
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(242, 238, 230, 0.92);
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid rgba(123, 97, 255, 0.35);
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ammo-scout-label-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(7.5px, 0.78vw, 10px);
  letter-spacing: 0.1em;
  color: #14110D;
  text-transform: uppercase;
}
.ammo-scout-label-pay {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: 0.02em;
  color: #7B61FF;
  margin-top: 2px;
}
/* constellation positions — tuned to shot-06b composition */
.ammo-scout-label--center      { top: 50%; left: 50%; }
.ammo-scout-label--top         { top: 18%; left: 50%; }
.ammo-scout-label--upper-left  { top: 30%; left: 22%; }
.ammo-scout-label--upper-right { top: 28%; left: 78%; }
.ammo-scout-label--right       { top: 55%; left: 82%; }
.ammo-scout-label--lower-right { top: 78%; left: 70%; }
.ammo-scout-label--left        { top: 60%; left: 18%; }

/* ── Mobile (≤760px) — stack overlays below image ─────────── */
@media (max-width: 760px) {
  .ammo-cinematic-frame {
    /* Allow overlay block to flow below image */
    overflow: visible;
  }

  /* War Room: drop quote below image */
  .ammo-cinematic-overlay-warroom {
    position: static;
    display: block;
    padding: 16px 4px 4px;
    text-align: center;
  }
  .ammo-warroom-quote {
    font-size: 14px;
    text-shadow: none;
    color: #7B61FF;
  }
  .ammo-warroom-seal { margin: 12px auto 0; }

  /* AIMY: drop chat panel below image, full width */
  .ammo-cinematic-overlay-aimy {
    position: static;
    padding: 14px 0 0;
    align-items: stretch;
  }
  .ammo-aimy-msg { max-width: 100%; align-self: stretch; }

  /* Scout: drop labels into a list below image */
  .ammo-cinematic-overlay-scout { position: static; padding: 14px 0 0; }
  .ammo-scout-scrim { display: none; }
  .ammo-scout-title {
    position: static; transform: none;
    display: inline-block;
    margin-bottom: 10px;
    background: transparent;
    color: var(--ink, #14110D);
  }
  .ammo-scout-label {
    position: static;
    display: flex; flex-direction: row; align-items: baseline; justify-content: space-between;
    transform: none;
    width: 100%;
    margin-bottom: 6px;
    text-align: left;
  }
  .ammo-scout-label-name { font-size: 10px; }
  .ammo-scout-label-pay { font-size: 13px; margin-top: 0; margin-left: 12px; }
}
