:root {
  --bg: #ffffff; --paper: #0b0b0a; --paper-hover: #000000; --on-paper: #ffffff;
  --ink: #0b0b0a; --body: #3a3833; --muted: #7a7368; --dim: #d6d6d6;
  --panel: #efefef; --plate: #ffffff; --line: 11,11,10;
  --step-plate: #f8f8f8;
  --drawing-filter: grayscale(1) contrast(1.6); --drawing-blend: multiply;
  --badge-filter: invert(1); --lineart-filter: grayscale(1) contrast(1.6);
  --logo-filter: grayscale(1) contrast(1.1);
  --accent: #3ccf7a; --accent-rgb: 60,207,122;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0a; --paper: #e8e4dc; --paper-hover: #ffffff; --on-paper: #0b0b0a;
  --ink: #f2efe8; --body: #cfcac0; --muted: #8a8378; --dim: #3a3833;
  --panel: #111111; --plate: #000000; --line: 232,228,220;
  --step-plate: var(--bg);
  --drawing-filter: invert(1) grayscale(1) contrast(1.15) brightness(.92); --drawing-blend: screen;
  --badge-filter: none; --lineart-filter: invert(1);
  --logo-filter: grayscale(1) invert(1) brightness(1.15) contrast(1.1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--mono); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mb12 { margin-bottom: 12px; } .mb24 { margin-bottom: 24px; } .mb32 { margin-bottom: 32px; }
.mt40 { margin-top: 40px; } .mt80 { margin-top: 80px; }

/* ---------- Hero (always dark) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) saturate(0.8); }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%), linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.9)); }
.hero-frame { position: absolute; inset: 0; margin: 20px; border: 1px solid rgba(232,228,220,.25); pointer-events: none; }
.crosshair { position: absolute; left: 50%; top: 50%; background: rgba(232,228,220,.5); transform: translate(-50%,-50%); pointer-events: none; }
.crosshair.v { width: 1px; height: 28px; } .crosshair.h { width: 28px; height: 1px; }

.hero-nav { position: absolute; z-index: 2; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: stretch; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid rgba(232,228,220,.25); }
.brand { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-right: 1px solid rgba(232,228,220,.25); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .04em; line-height: 1; }
.brand:hover { color: #fff; }
.brand-icon { display: block; width: auto; height: 22px; }
.brand-rule { align-self: stretch; width: 1px; margin: -10px 2px; background: rgba(232,228,220,.25); }
.theme-toggle { padding: 12px 16px; border: 0; border-left: 1px solid rgba(232,228,220,.25); background: transparent; color: #cfcac0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.theme-toggle:hover { color: #fff; }
.theme-toggle { justify-content: center; padding: 12px 14px; }
.theme-toggle svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* moon in light mode (go dark), sun in dark mode (go light) */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .theme-toggle { display: flex; align-items: center; line-height: 1.4; }
.nav-links a { padding: 12px 16px; border-left: 1px solid rgba(232,228,220,.25); color: #e8e4dc; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta, .nav-links .nav-cta:hover { background: var(--accent); color: #0b0b0a; }
.nav-links .nav-cta:hover { filter: brightness(1.12); }

.hero-bottom { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,420px); align-items: end; gap: 32px; padding: 0 24px 28px; }
.hero h1 { min-width: 0; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9.5vw, 150px); line-height: .86; letter-spacing: -.01em; color: #f2efe8; text-transform: uppercase; text-wrap: balance; }
.hero h1 .amp { color: #8a8378; }
.hero-aside { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-aside p { font-size: 14px; line-height: 1.7; color: #cfcac0; text-wrap: pretty; }
.btn-light { display: inline-block; padding: 14px 22px; background: #e8e4dc; color: #0b0b0a; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.btn-light:hover { background: #fff; color: #0b0b0a; }

/* ---------- Shared section type ---------- */
.sec { position: relative; padding: 80px 44px; border-top: 1px solid rgba(var(--line),.18); }
.headline { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.5vw, 88px); line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.8vw, 56px); line-height: 1.1; color: var(--ink); text-wrap: pretty; }
.copy { font-size: 16px; line-height: 1.75; color: var(--body); max-width: 560px; text-wrap: pretty; }
.copy.sm { font-size: 15px; }
.card-title { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.caption { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ink { color: var(--ink); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.drawing { display: block; height: auto; flex: none; filter: var(--drawing-filter); mix-blend-mode: var(--drawing-blend); opacity: .85; }
.ruled-grid { display: grid; border-top: 1px solid rgba(var(--line),.18); border-left: 1px solid rgba(var(--line),.18); }
.ruled-grid > * { border-right: 1px solid rgba(var(--line),.18); border-bottom: 1px solid rgba(var(--line),.18); }

/* ---------- Value ---------- */
.value-headline { position: relative; max-width: 1100px; line-height: 1.32; text-wrap: balance; }
.value-headline .box { display: inline-block; padding: 0 .16em; line-height: 1; }
.value-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.value-notes { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 32px 64px; margin-top: 72px; }
.note { max-width: 360px; border-top: 1px solid rgba(var(--line),.18); padding-top: 16px; }
.note p { font-size: 14px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.note-right { justify-self: end; }

/* ---------- Schematic ---------- */
.schematic-scroll { overflow-x: auto; }
.schematic { position: relative; border: 1px solid rgba(var(--line),.3); background: var(--plate); padding: 40px 32px 32px; min-width: 860px; }
.schematic-grid { display: grid; grid-template-columns: 110px repeat(3, minmax(200px,1fr)); gap: 0 36px; align-items: stretch; }
.suite { grid-column: 2 / -1; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 18px 16px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.spacer { height: 16px; grid-column: 2 / -1; }
.row-label { display: flex; flex-direction: column; justify-content: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product { border: 1px solid var(--accent); background: var(--accent); color: #0b0b0a; padding: 18px 16px 16px; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; text-transform: uppercase; }
.action-cell { position: relative; display: flex; }
.sbox { position: relative; border: 1px solid rgba(var(--line),.4); padding: 18px 18px 16px; font-size: 15px; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--plate); }
.sbox-lg { width: 100%; font-size: 18px; line-height: 1.35; }
.sbox::before, .sbox::after { content: ''; position: absolute; width: 8px; height: 8px; }
.sbox::before { top: -1px; left: -1px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.sbox::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.flow { position: absolute; z-index: 1; right: -36px; top: 50%; width: 40px; height: 12px; transform: translateY(-50%); overflow: visible; }
.flow line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; animation: dashflow 1.2s linear infinite; }
.flow circle { fill: var(--ink); }
.flow path { fill: none; stroke: var(--ink); stroke-width: 1; }
.vlink { display: block; width: 12px; height: 28px; margin: 0 auto; overflow: visible; }
.vlink line { stroke: rgba(var(--line),.4); stroke-width: 1; }
.vlink circle { fill: none; stroke: var(--ink); stroke-width: 1; }
@keyframes dashflow { to { stroke-dashoffset: -12; } }

/* ---------- Use case ---------- */
.steps { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.step { background: var(--step-plate); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--muted); }
.step h3 { font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.step p, .opps p, .sec-card p { font-size: 14px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.plate { position: relative; border: 1px solid rgba(var(--line),.25); background: var(--plate); height: 290px; overflow: hidden; }
.opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 40px; border-top: 1px solid rgba(var(--line),.18); padding-top: 28px; }
.opps > div { display: flex; flex-direction: column; gap: 16px; }

/* Vignettes */
.vig { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 11px; line-height: 1.6; color: var(--body); }
.vig .lab { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vig .ink { color: var(--ink); text-wrap: pretty; }
.vig .cursor { display: inline-block; width: 6px; height: 11px; background: var(--ink); vertical-align: -1px; margin-left: 2px; opacity: 0; }
.vig-row { display: flex; align-items: center; gap: 10px; }
.vig-row .right { margin-left: auto; }
.rec-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--dim); }
.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 32px; border-top: 1px solid rgba(var(--line),.12); border-bottom: 1px solid rgba(var(--line),.12); padding: 0 2px; }
.wave div { width: 3px; height: 2px; background: var(--muted); transition: height 80ms linear; }
/* 01 is a real audio player: make it obviously clickable */
.plate-audio { cursor: pointer; }
.plate-audio .vig > .ink { flex: 1; min-height: 0; padding-bottom: 40px; }
.play-btn { position: absolute; left: 50%; top: 58%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid var(--accent); background: var(--plate); color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .2s; }
.play-btn:hover { background: rgba(var(--accent-rgb),.12); }
.play-icon { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent); }
.play-icon::before { content: ''; position: absolute; left: 14px; top: 11px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #0b0b0a; }
.play-icon::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
/* once started, the button tucks into the bottom-right corner so the transcript has room */
.plate-audio.is-started .play-btn { left: auto; right: 12px; top: auto; bottom: 12px; transform: none; padding: 6px 12px 6px 6px; gap: 8px; }
.plate-audio.is-started .play-icon { width: 22px; height: 22px; }
.plate-audio.is-started .play-icon::before { left: 8px; top: 6px; border-width: 5px 0 5px 8px; }
.plate-audio.is-started .play-icon::after { animation: none; opacity: 0; }
.plate-audio.is-playing .play-icon::before { left: 7px; top: 6px; width: 3px; height: 10px; border: 0; background: #0b0b0a; box-shadow: 5px 0 0 #0b0b0a; }
.win-bar { display: flex; align-items: center; gap: 6px; margin: -16px -16px 0; padding: 8px 12px; border-bottom: 1px solid rgba(var(--line),.18); background: var(--panel); }
.win-bar .dot { width: 7px; height: 7px; border-radius: 4px; border: 1px solid var(--muted); }
.wo-grid { display: grid; grid-template-columns: 84px 1fr; row-gap: 6px; column-gap: 12px; }
.wo-grid .lab { padding-top: 3px; }
.wo-val { color: var(--ink); border-bottom: 1px solid rgba(var(--line),.18); min-height: 18px; padding: 0 4px 2px; margin-left: -4px; }
.big-n { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--ink); vertical-align: -3px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--accent); background: rgba(var(--accent-rgb),.12); opacity: 0; }
.alert-icon { width: 18px; height: 18px; flex: none; border-radius: 9px; background: var(--accent); color: #0b0b0a; font-weight: 500; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.agent { display: flex; gap: 10px; margin-top: auto; opacity: 0; }
.agent img { width: 24px; height: 24px; flex: none; object-fit: contain; }
.agent-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agent-body .lab { color: var(--accent); }

/* ---------- Integrations ---------- */
.int-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 32px 48px; align-items: end; margin-bottom: 40px; }
.int-intro .statement { text-wrap: balance; }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); border: 1px solid rgba(var(--line),.18); }
.logos > div { border-right: 1px solid rgba(var(--line),.18); border-bottom: 1px solid rgba(var(--line),.18); padding: 28px 24px; display: flex; align-items: center; justify-content: center; min-height: 96px; }
.logos img { display: block; max-width: 120px; max-height: 32px; width: auto; height: auto; filter: var(--logo-filter); opacity: .85; }
.footnote { margin-top: 16px; font-size: 11px; letter-spacing: .08em; color: var(--muted); }

/* ---------- Mission ---------- */
.mission { border: 1px solid rgba(var(--line),.25); background: var(--plate); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 32px 48px; padding: 32px; }
.mission .col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.mission .statement { text-wrap: balance; }
.hl { background: rgba(var(--accent-rgb),.55); border-radius: .08em; padding: .04em .12em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); max-width: 560px; }
.stats > div { padding: 16px; }
.stat { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink); }
.stat span { font-size: 22px; color: var(--muted); }
.stat-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- Security ---------- */
.security { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.sec-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }
.badge { display: block; width: 72px; height: 72px; object-fit: contain; filter: var(--badge-filter); }

/* ---------- Contact ---------- */
.contact { padding: 96px 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 48px; align-items: end; }
.contact-title { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 10vw, 160px); line-height: .86; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.contact-side { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.lineart { display: block; width: 100%; height: auto; filter: var(--lineart-filter); mix-blend-mode: var(--drawing-blend); opacity: .85; }
.demo-form { display: flex; border: 1px solid rgba(var(--line),.35); }
.demo-form input { flex: 1; min-width: 0; padding: 18px 20px; background: transparent; border: 0; outline: none; color: var(--ink); font-family: var(--mono); font-size: 14px; }
.demo-form input::placeholder { color: var(--muted); }
.demo-form button { padding: 18px 24px; background: var(--paper); color: var(--on-paper); border: 0; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.demo-form button:hover { background: var(--paper-hover); }

/* ---------- Strip + footer ---------- */
.made-in, .footer { padding: 24px 44px; border-top: 1px solid rgba(var(--line),.18); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.made-in { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.made-in img { display: block; height: 18px; width: auto; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--body); }
.footer-links a:hover { color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .sec, .made-in, .footer { padding-left: 20px; padding-right: 20px; }
  .contact { padding: 72px 20px; grid-template-columns: minmax(0, 1fr); }
  .contact-title { font-size: clamp(48px, 15vw, 160px); }
  .contact-side { min-width: 0; }
  .hero-nav .nav-links a:not(.nav-cta) { display: none; }
  .hero-bottom { grid-template-columns: 1fr; padding: 0 12px 20px; gap: 24px; }
  .head-row .drawing { width: 96px; }
  .value-notes, .int-intro, .mission { grid-template-columns: 1fr; }
  .mission { padding: 20px; }
  .note-right { justify-self: start; }
  .value-overlay { display: none; }
  .value-headline { line-height: 1.2; }
  .value-headline .box { outline: 1.5px solid var(--accent); outline-offset: 4px; margin: 6px 0; }
  .value-notes { margin-top: 48px; }
  .steps, .opps, .security { grid-template-columns: minmax(0, 1fr); }
  /* What we do: stack each product's column vertically instead of scrolling sideways */
  .schematic-scroll { overflow-x: visible; }
  .schematic { min-width: 0; padding: 20px 16px; }
  .schematic-grid { display: flex; flex-direction: column; }
  .schematic-grid > :not(.suite):not(.col1):not(.col2):not(.col3) { display: none; }
  .suite { order: 0; font-size: 30px; padding: 14px 12px; }
  .product { font-size: 28px; padding: 14px 14px 12px; margin-top: 28px; }
  .col1.product { order: 1; margin-top: 16px; } .col1.action-cell { order: 2; } .col1.vlink { order: 3; } .col1.stack { order: 4; }
  .col2.product { order: 5; } .col2.action-cell { order: 6; } .col2.vlink { order: 7; } .col2.stack { order: 8; }
  .col3.product { order: 9; } .col3.action-cell { order: 10; } .col3.vlink { order: 11; } .col3.stack { order: 12; }
  .action-cell { margin-top: 8px; }
  .flow { display: none; }
  .sbox { font-size: 13px; padding: 14px 14px 12px; }
  .sbox-lg { font-size: 15px; }
  .vlink { height: 20px; }

  /* Integrations: a short list on phones */
  .logos { grid-template-columns: 1fr 1fr; }
  .logos .logo-extra { display: none; }
  .logos .logo-more { grid-column: 1 / -1; min-height: 64px; }

  .plate-audio { height: auto; }
  .plate-audio .vig { position: relative; min-height: 290px; }
}

@media (max-width: 400px) {
  .head-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow line { animation: none; }
}
