/* ROC — Operational Intelligence Design System */
:root {
  --void: #0a0a09;
  --charcoal: #141412;
  --graphite: #2a2a27;
  --slate: #4a4a46;
  --stone: #8a8780;
  --ivory: #f4f0e6;
  --cream: #ebe6da;
  --paper: #faf8f3;
  --gold: #a8894f;
  --gold-muted: #c4a96a;
  --gold-ink: #7a6535;
  --signal: #3d6b4f;
  --signal-light: #e8f0eb;
  --alert: #8b3a3a;
  --alert-light: #f5ecec;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --line: rgba(20, 20, 18, 0.12);
  --line-light: rgba(244, 240, 230, 0.15);
  --container: min(1320px, 92vw);
  --section: clamp(5rem, 14vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; border: none; background: none; }

.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* Barcode motif */
.barcode {
  display: flex;
  gap: 2px;
  height: 28px;
  align-items: stretch;
}
.barcode span {
  background: var(--charcoal);
  width: var(--w, 2px);
  animation: barcode-pulse 3s ease-in-out infinite;
}
.barcode span:nth-child(odd) { --w: 1px; }
.barcode span:nth-child(3n) { --w: 3px; }
.barcode span:nth-child(5n) { --w: 2px; }
.barcode.light span { background: var(--ivory); }
@keyframes barcode-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Shelf line divider */
.shelf-line {
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0,
    var(--line) 8px,
    transparent 8px,
    transparent 16px
  );
}

/* Receipt paper */
.receipt {
  background: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--charcoal);
  padding: 1.5rem 1.25rem 2rem;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.12);
}
.receipt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--charcoal) 0 2px,
    transparent 2px 4px
  );
  opacity: 0.15;
}
.receipt::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(135deg, var(--ivory) 33.33%, transparent 33.33%) 0 0 / 12px 8px;
  transform: rotate(180deg);
}
.receipt-header {
  text-align: center;
  border-bottom: 1px dashed var(--stone);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.5s var(--ease);
}
.receipt-line.visible { opacity: 1; transform: translateX(0); }
.receipt-line.leak { color: var(--alert); }
.receipt-line.leak .receipt-amt { font-weight: 600; }
.receipt-total {
  border-top: 1px solid var(--charcoal);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.85rem;
}
.receipt-stamp {
  position: absolute;
  bottom: 2.5rem;
  right: 1rem;
  border: 2px solid var(--alert);
  color: var(--alert);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  transform: rotate(-12deg);
  opacity: 0;
  transition: opacity 0.6s 1.2s;
}
.receipt-stamp.visible { opacity: 0.85; }

/* Inventory tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--slate);
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 1px;
}
.tag.dark {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--graphite);
}

/* Audit stamp */
.stamp {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: 2px solid currentColor;
  display: inline-block;
  transform: rotate(-4deg);
  opacity: 0.7;
}

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
.display-xl { font-size: clamp(3rem, 8vw, 6.5rem); }
.display-lg { font-size: clamp(2.25rem, 5vw, 4rem); }
.display-md { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--slate);
  max-width: 38rem;
}
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--charcoal);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--gold-ink);
  border-color: var(--gold-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }
.btn-ivory {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
}
.btn-ivory:hover { background: var(--cream); }

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 1.25rem 0;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(250, 248, 243, 0.98);
  border-bottom-color: var(--line);
  padding: 0.85rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  flex-shrink: 0;
}
.logo sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.15rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  flex-wrap: nowrap;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--charcoal); }
.header-cta {
  flex-shrink: 0;
  padding: 0.75rem 1.35rem;
  font-size: 0.68rem;
}
.menu-btn { display: none; cursor: pointer; padding: 0.5rem; }

/* ===== HERO: Editorial Report Cover ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 20%, transparent 70%);
  opacity: 0.5;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}
.hero-editorial {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem, 12vw, 10rem) clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  border-right: 1px solid var(--line);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.hero-issue {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 2rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-ink);
}
.hero-deck {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: var(--slate);
  max-width: 32rem;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-footnote {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 28rem;
}

.hero-visual {
  background: var(--charcoal);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  contain: layout style;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1604719312566-8912a087ae1f?w=800&q=80') center/cover;
  opacity: 0.12;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero-visual-label {
  position: absolute;
  top: clamp(5.5rem, 9vw, 6.5rem);
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,240,230,0.4);
  z-index: 6;
}

/* ── Premium laser scanner (GPU / transform only) ── */
.scanner-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  isolation: isolate;
}

.scanner-ambient {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  background: radial-gradient(
    ellipse 100% 18% at 50% 0%,
    rgba(196, 169, 106, 0.14),
    transparent 72%
  );
  transform: translate3d(0, 0, 0);
}

.scanner-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.85;
}

.scanner-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--beam-h, 56px);
  z-index: 3;
  will-change: transform, opacity;
  transform: translate3d(0, calc(-1 * var(--beam-h, 56px)), 0);
  opacity: 0;
  backface-visibility: hidden;
}

.scanner-beam-core {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  transform: translate3d(0, -50%, 0);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 169, 106, 0.15) 12%,
    rgba(232, 213, 163, 0.95) 38%,
    #ffffff 50%,
    rgba(232, 213, 163, 0.95) 62%,
    rgba(196, 169, 106, 0.15) 88%,
    transparent 100%
  );
  box-shadow:
    0 0 6px rgba(232, 213, 163, 0.9),
    0 0 18px rgba(196, 169, 106, 0.55);
}

.scanner-beam-bloom {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 32px;
  transform: translate3d(0, -50%, 0);
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(196, 169, 106, 0.38) 0%,
    rgba(196, 169, 106, 0.12) 45%,
    transparent 72%
  );
  filter: blur(10px);
  opacity: 0.75;
}

.scanner-beam-highlight {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 50%;
  height: 1px;
  transform: translate3d(0, -50%, 0);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  opacity: 0;
  will-change: opacity;
}

.scanner-beam-flare {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(196, 169, 106, 0.08) 30%,
    transparent 65%
  );
  opacity: 0.5;
  will-change: opacity;
}

.hero-receipt-wrap {
  position: relative;
  z-index: 2;
  max-width: 280px;
  width: 100%;
  transform: rotate(1deg) translate3d(0, 0, 0);
  transition: transform 0.5s var(--ease);
  will-change: transform, filter;
  backface-visibility: hidden;
}
.hero-receipt-wrap:hover { transform: rotate(0deg) scale(1.02) translate3d(0, 0, 0); }

.hero-receipt-wrap .receipt {
  transition: box-shadow 0.15s linear;
}

.receipt-scan-reflection {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  will-change: opacity;
}

.receipt-scan-band {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 0;
  height: 36px;
  will-change: transform, opacity;
  transform: translate3d(0, -36px, 0);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 42%,
    rgba(196, 169, 106, 0.22) 50%,
    rgba(255, 255, 255, 0.18) 58%,
    transparent 100%
  );
  opacity: 0;
}

/* Chaos vs Clarity — field assessment report */
.contrast-section {
  position: relative;
  background: var(--paper);
}
.contrast-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.contrast-intro {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.contrast-report {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: var(--ivory);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 64px rgba(20, 20, 18, 0.06);
}
.contrast-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.85);
}
.contrast-meta-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.contrast-panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 28rem;
}
.contrast-panel {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.contrast-panel--chaos {
  background:
    linear-gradient(135deg, rgba(139, 58, 58, 0.04) 0%, transparent 42%),
    var(--paper);
  border-right: 1px solid var(--line);
}
.contrast-panel--control {
  background:
    linear-gradient(225deg, rgba(168, 137, 79, 0.08) 0%, transparent 45%),
    var(--charcoal);
  color: var(--ivory);
  border-left: 1px solid var(--graphite);
}
.contrast-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contrast-ref {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.contrast-panel--control .contrast-ref { color: rgba(244, 240, 230, 0.45); }
.contrast-stamp {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1.5px solid currentColor;
  transform: rotate(-3deg);
}
.contrast-stamp--alert { color: var(--alert); }
.contrast-stamp--signal { color: var(--gold-muted); }
.contrast-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alert);
  margin-bottom: 0.65rem;
}
.contrast-panel--control .contrast-kicker { color: var(--gold-muted); }
.contrast-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contrast-panel--control .contrast-title {
  color: var(--ivory);
  border-bottom-color: var(--line-light);
}
.contrast-findings {
  list-style: none;
  flex: 1;
}
.contrast-findings li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--line);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.contrast-panel--control .contrast-findings li {
  border-bottom-color: rgba(244, 240, 230, 0.1);
}
.contrast-findings li:last-child { border-bottom: none; }
.contrast-report.visible .contrast-findings li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.contrast-findings li:nth-child(1) { transition-delay: 0.08s; }
.contrast-findings li:nth-child(2) { transition-delay: 0.16s; }
.contrast-findings li:nth-child(3) { transition-delay: 0.24s; }
.contrast-findings li:nth-child(4) { transition-delay: 0.32s; }
.contrast-findings li:nth-child(5) { transition-delay: 0.40s; }
.cf-id {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.contrast-panel--control .cf-id { color: rgba(244, 240, 230, 0.35); }
.cf-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--graphite);
}
.contrast-panel--control .cf-text { color: rgba(244, 240, 230, 0.82); }
.cf-status {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.cf-status--gap { color: var(--alert); background: rgba(139, 58, 58, 0.06); }
.cf-status--ok { color: var(--gold-muted); background: rgba(196, 169, 106, 0.08); }
.contrast-spine {
  width: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--cream);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}
.contrast-spine::before,
.contrast-spine::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: calc(50% - 2.5rem);
  background: linear-gradient(180deg, transparent, var(--stone), transparent);
  transform: translateX(-50%);
  opacity: 0.35;
}
.contrast-spine::before { top: 1.5rem; }
.contrast-spine::after { bottom: 1.5rem; }
.contrast-spine-mark {
  font-size: 0.45rem;
  color: var(--gold);
  line-height: 1;
}
.contrast-spine-text {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  color: var(--stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Drift section */
.drift-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.drift-visual {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
}
.drift-calc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.drift-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--line);
}
.drift-row.total {
  border-bottom: none;
  border-top: 2px solid var(--charcoal);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.drift-row .amt { color: var(--alert); }

/* Diagnostic interface */
.diagnostic {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.diagnostic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.02) 2px,
    rgba(255,255,255,0.02) 4px
  );
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}
.diag-cell {
  background: var(--charcoal);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
}
.diag-cell:hover, .diag-cell.active {
  background: var(--graphite);
}
.diag-cell.active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-muted);
}
.diag-icon {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold-muted);
  margin-bottom: 0.75rem;
}
.diag-cell h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.diag-cell p { font-size: 0.8rem; color: rgba(244,240,230,0.55); line-height: 1.5; }
.diag-detail {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(244,240,230,0.05);
  border-left: 2px solid var(--gold-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(244,240,230,0.75);
  min-height: 5rem;
  position: relative;
  z-index: 1;
}

/* ROC Method — horizontal narrative */
.method-track {
  display: flex;
  gap: 0;
  margin-top: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}
.method-step {
  flex: 0 0 min(280px, 80vw);
  scroll-snap-align: start;
  padding: 2rem;
  border-left: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
}
.method-step:first-child { border-left: none; }
.method-step:hover { background: var(--ivory); }
.method-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.method-step:hover .method-num { color: var(--gold-muted); }
.method-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.method-step p { font-size: 0.875rem; color: var(--slate); line-height: 1.65; }

/* Founder — editorial profile */
.founder-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.founder-photo {
  aspect-ratio: 3/4;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.founder-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10,10,9,0.9), transparent 60%);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
.founder-field-notes {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--slate);
}
.founder-field-notes .note-date {
  color: var(--gold-ink);
  font-weight: 500;
}
.timeline {
  margin-top: 2rem;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}
.timeline-item {
  padding-bottom: 1.75rem;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem; top: 0.4rem;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-3px);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  margin-bottom: 0.25rem;
}

/* Services — strong list, not cards */
.services-list {
  margin-top: 3rem;
  border-top: 2px solid var(--charcoal);
}
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.35s var(--ease);
  cursor: default;
}
.service-row:hover {
  padding-left: 1rem;
  background: linear-gradient(90deg, var(--ivory), transparent);
}
.service-index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  line-height: 1;
  min-width: 2.5rem;
  transition: color 0.3s;
}
.service-row:hover .service-index { color: var(--gold-muted); }
.service-row h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.service-row p { font-size: 0.875rem; color: var(--slate); max-width: 36rem; }
.service-duration {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

/* Proof placeholder */
.proof-panel {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.proof-panel::before {
  content: "CONFIDENTIAL";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.2em;
  color: rgba(244,240,230,0.03);
  pointer-events: none;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
  margin-top: 2rem;
}
.proof-cell {
  background: var(--charcoal);
  padding: 2rem 1.5rem;
  text-align: center;
}
.proof-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-muted);
  margin-bottom: 0.35rem;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,240,230,0.45);
}

/* Calculator — POS terminal aesthetic */
.calc-terminal {
  border: 2px solid var(--charcoal);
  background: var(--ivory);
  margin-top: 2.5rem;
}
.calc-screen {
  background: var(--charcoal);
  color: var(--gold-muted);
  font-family: var(--font-mono);
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
}
.calc-screen-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,240,230,0.4);
  margin-bottom: 0.5rem;
}
.calc-screen-value {
  font-size: 2rem;
  font-weight: 500;
  color: var(--ivory);
}
.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.calc-inputs { padding: 2rem; border-right: 1px solid var(--line); }
.calc-results { padding: 2rem; background: var(--paper); }
.calc-field { margin-bottom: 1.5rem; }
.calc-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--charcoal);
}
.calc-field-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.25rem;
}
.result-line {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.875rem;
}
.result-line.highlight {
  border-bottom: none;
  border-top: 2px solid var(--charcoal);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.result-line.highlight .val { color: var(--alert); font-family: var(--font-mono); }

/* CTA — diagnostic booking */
.cta-diagnostic {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
}
.cta-diagnostic::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold-muted) 0 20px, transparent 20px 24px);
}
.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.cta-form {
  background: rgba(244,240,230,0.04);
  border: 1px solid var(--line-light);
  padding: 2rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,240,230,0.5);
  margin-bottom: 0.4rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-light);
  color: var(--ivory);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-bottom-color: var(--gold-muted);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--charcoal);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-ink); }
.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p {
  padding-bottom: 1.5rem;
  font-size: 0.925rem;
  color: var(--slate);
  line-height: 1.75;
  max-width: 40rem;
}

/* Footer */
.footer {
  background: var(--void);
  color: rgba(244,240,230,0.5);
  padding: 3rem 0 2rem;
  font-size: 0.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--graphite);
}
.footer-brand .logo { color: var(--ivory); margin-bottom: 1rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Section backgrounds */
.bg-ivory { background: var(--ivory); }
.bg-charcoal { background: var(--charcoal); color: var(--ivory); }
.bg-charcoal .eyebrow { color: var(--gold-muted); }
.bg-charcoal .display { color: var(--ivory); }
.bg-charcoal .lead { color: rgba(244,240,230,0.65); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-editorial { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-visual { min-height: 50vh; }
  .drift-layout, .founder-layout, .cta-layout, .calc-body { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--line); }
  .diagnostic-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .contrast-panels { grid-template-columns: 1fr; }
  .contrast-spine {
    width: 100%;
    height: 3rem;
    flex-direction: row;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .contrast-spine::before,
  .contrast-spine::after {
    width: calc(50% - 3rem);
    height: 1px;
    top: 50%;
    transform: translateY(-50%);
  }
  .contrast-spine::before { left: 1.5rem; }
  .contrast-spine::after { right: 1.5rem; left: auto; }
  .contrast-spine-text {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .contrast-panel--chaos { border-right: none; border-bottom: none; }
  .contrast-panel--control { border-left: none; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--paper);
    padding: 5rem 2rem;
    z-index: 199;
  }
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .diagnostic-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .contrast-findings li { opacity: 1; transform: none; transition: none; }
  .scanner-stage { display: none; }
}
