:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --surface-raised: #222222;
  --accent-pink: #ff0398;
  --accent-purple: #7b5cc9;
  --accent-amber: #d97a26;
  --text: #edeae0;
  --text-dim: #8a8a8a;
  --line: #2a2a2a;
  --evergreen: #2c5c48;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --display: 'Anton', ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Scanline overlay (after-dark / night-vision texture) ---------- */
.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  animation: scan-drift 9s linear infinite;
}
@keyframes scan-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 120px; }
}

/* ---------- Crop-mark motif ----------
   Printer's/darkroom registration marks: two thin perpendicular strokes set OUTSIDE
   each corner with a gap, never touching the frame. Deliberately not a gunsight
   reticle - the L-bracket hugging a corner is the visual signature of the tactical
   coffee category, and this brand does not sit in it. Reads as a contact sheet or a
   file photo waiting to be trimmed. */
.crop-mark {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.crop-mark::before,
.crop-mark::after {
  content: "";
  position: absolute;
  background: var(--text-dim);
  opacity: 0.55;
}
/* horizontal stroke */
.crop-mark::before { width: 14px; height: 1px; }
/* vertical stroke */
.crop-mark::after  { width: 1px; height: 14px; }

.crop-mark.tl { top: 0; left: 0; }
.crop-mark.tl::before { left: -18px; top: -1px; }
.crop-mark.tl::after  { top: -18px; left: -1px; }

.crop-mark.tr { top: 0; right: 0; }
.crop-mark.tr::before { right: -18px; top: -1px; }
.crop-mark.tr::after  { top: -18px; right: -1px; }

.crop-mark.bl { bottom: 0; left: 0; }
.crop-mark.bl::before { left: -18px; bottom: -1px; }
.crop-mark.bl::after  { bottom: -18px; left: -1px; }

.crop-mark.br { bottom: 0; right: 0; }
.crop-mark.br::before { right: -18px; bottom: -1px; }
.crop-mark.br::after  { bottom: -18px; right: -1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(ellipse at 50% 30%, #1c1420 0%, #0a0a0a 65%);
}
.corner-asset {
  position: absolute;
  bottom: 28px;
  right: 24px;
  width: min(18vw, 220px);
  height: auto;
  z-index: 1;
  opacity: 0.6;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6)) saturate(0.8);
}
@media (max-width: 760px) {
  .corner-asset { width: 30vw; bottom: 16px; right: 12px; opacity: 0.45; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.75) 55%, rgba(10,10,10,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}
.kicker-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-pink);
  text-transform: uppercase;
}

.engraved-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 140px;
  margin: 2px 0 4px;
}
.engraved-rule span { flex: 1; height: 1px; background: var(--accent-purple); }
.engraved-rule::before, .engraved-rule::after {
  content: "";
  width: 5px; height: 5px;
  border: 1px solid var(--accent-purple);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.wordmark-underlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 1100px);
  height: auto;
  transform: translate(-50%, -54%) rotate(-4deg);
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (max-width: 760px) {
  .wordmark-underlay { width: 115vw; opacity: 0.35; transform: translate(-50%, -52%) rotate(-5deg); }
}
.wordmark-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.motto {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-style: italic;
  margin-top: 10px;
}
.headline {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(255, 3, 152, 0.3);
}
.subhead {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 44ch;
  margin: 0;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}
.scroll-cue {
  position: relative;
  margin-top: 28px;
  padding: 14px 26px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.scroll-cue-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.scroll-cue-arrow {
  color: var(--accent-amber);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Ground Truth ----------
   The "why" section. Sits between hero and store, laid out as a row on desktop so it
   adds the least possible vertical distance between a cold visitor and the buy button. */
.ground-truth {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 24px 8px;
}
.gt-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 48px;
}
.gt-lede {
  max-width: 62ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.68;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}
.gt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .gt-grid { grid-template-columns: 1fr; gap: 30px; }
  .ground-truth { padding-top: 64px; }
}
.gt-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.gt-index {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--accent-purple);
}
.gt-item h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text);
}
.gt-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}
.gt-close {
  margin: 52px auto 0;
  max-width: 52ch;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

/* ---------- Store ---------- */
.store {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 76px 24px 64px;
}
.store-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
}
.store-header h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}
.store-intro {
  color: var(--text-dim);
  max-width: 56ch;
  font-size: 0.95rem;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.dossier-frame {
  position: relative;
  margin: 26px 26px 0;
}
.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
}
.product-image.redacted { position: relative; filter: brightness(0.6) contrast(1.1) saturate(0.7); }
.product-image.redacted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 38%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.85) 100%);
  mix-blend-mode: multiply;
}
.redacted-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000 0%, #000 18%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 100%);
  transition: clip-path 1.1s cubic-bezier(.77,0,.18,1);
  clip-path: inset(0 0 0 0);
}
.redacted-bar.revealed { clip-path: inset(0 0 72% 0); }

.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}
.status-badge.locked { border-color: var(--text-dim); color: var(--text-dim); }

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
}
.origin-flags {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
}
.origin-flags .flag-arrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.flag-swatch {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(237,234,224,0.18);
  vertical-align: middle;
  flex-shrink: 0;
}
.flag-co {
  background: linear-gradient(to bottom, #FCD116 0% 50%, #003893 50% 75%, #CE1126 75% 100%);
}
.flag-us {
  background: repeating-linear-gradient(to bottom, #B22234 0 2px, #fff 2px 4px);
}
.flag-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 54%;
  background: #3C3B6E;
}
.product-title {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0;
}
.product-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
  text-align: justify;
  hyphens: auto;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}
.price { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; }
.price-note { font-size: 0.78rem; color: var(--text-dim); }

.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row label { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }
.qty-select {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  padding: 8px 10px;
  flex: 1;
}

.countdown {
  border: 1px dashed var(--line);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.countdown-label { font-family: var(--mono); font-size: 9.5px; color: var(--text-dim); letter-spacing: 0.06em; }
.countdown-value { font-family: var(--mono); font-size: 0.95rem; color: var(--accent-amber); }

.btn-primary, .btn-secondary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 14px 18px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-primary { background: var(--accent-pink); color: #fff; }
.btn-primary:hover { background: #ff47ab; }
.btn-secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

.fine-print { font-size: 0.76rem; color: var(--text-dim); margin: 0; line-height: 1.55; text-align: justify; hyphens: auto; }
.fine-print a { color: var(--accent-pink); }

.notify-form { display: flex; gap: 8px; margin-top: 4px; }
.notify-form input {
  flex: 1;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--sans);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-logo { height: 22px; width: auto; filter: brightness(1.4); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 0.8rem; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--accent-pink); }
.footer-copy { font-size: 0.75rem; color: #555; font-family: var(--mono); }

/* ---------- Forms: trade enquiry + waitlist capture ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.trade {
  border-top: 1px solid var(--line);
  padding: 76px 24px 72px;
}
.trade-inner { max-width: 640px; margin: 0 auto; }
.trade-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 10px 0 14px;
}
.trade-intro {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 30px;
  text-align: justify;
  hyphens: auto;
}
.trade-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-row { display: flex; flex-direction: column; gap: 6px; }
.field-row.full { grid-column: 1 / -1; }
.field-row label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.field-row input,
.field-row select,
.field-row textarea {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
}
.trade-form .cf-turnstile,
.trade-form button,
.trade-form .form-status { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .trade-form { grid-template-columns: 1fr; }
}

.preorder-capture { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.preorder-capture .notify-form { margin: 0; }

.form-status {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 8px 0 0;
  min-height: 1em;
}
.form-status.ok { color: #6fcf97; }
.form-status.err { color: #ff6b6b; }
.form-status.pending { color: var(--text-dim); }

/* Focus is otherwise invisible on a near-black ground. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.capture-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  text-align: justify;
  hyphens: auto;
}
