/* Friday - warm graphite + copper on near-black.
   Cabinet Grotesk for headlines, Satoshi for body, JetBrains Mono for
   anything technical. Copper accent; rust reserved for vulnerable. */

:root {
  --bg: #0b0b0d;
  --bg-lift: #101014;
  --rule: #1e1e23;
  --rule-strong: #2c2c33;
  --ink: #e8e5de;
  --ink-dim: #96938b;
  --ink-faint: #605e58;
  --copper: #c98f4f;
  --copper-bright: #e2ab66;
  --rust: #c25b3a;
  --display: "Clash Grotesk", "Avenir Next", sans-serif;
  --body: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
}

h1 { font-size: clamp(2.8rem, 7.5vw, 5.8rem); line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 36px; }

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

p { margin: 0 0 18px; }

a { color: inherit; }

::selection { background: rgba(201, 143, 79, 0.28); }

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { width: 26px; height: 26px; display: block; }

.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lm-line { stroke: var(--ink-faint); stroke-width: 1.6; }
.lm-node { fill: var(--ink); }
.lm-node-accent { fill: var(--copper); }

/* Nav */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.nav.is-scrolled {
  background: rgba(11, 11, 13, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link {
  font-size: 0.8125rem;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-link:hover { color: var(--copper-bright); border-color: var(--copper); }

/* Hero */

.hero { position: relative; }

.hero-viewport {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-canvas,
.hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-fallback-img { object-fit: cover; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.25) 34%, rgba(11, 11, 13, 0) 55%),
    linear-gradient(to bottom, rgba(11, 11, 13, 0.55) 0%, rgba(11, 11, 13, 0) 22%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 64px;
}

.hero-line {
  font-size: 0.875rem;
  color: var(--ink-dim);
  margin: 20px 0 28px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--bg);
  background: var(--copper);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  padding: 15px 34px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hero-cta:hover { background: var(--copper-bright); transform: translateY(-1px); }

/* Scroll hint */

.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 400ms ease;
}

.scroll-hint.is-hidden { opacity: 0; }

.scroll-hint .mono {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}

.scroll-hint-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--copper), transparent);
}

/* Provenance strip */

.provenance {
  border-top: 1px solid var(--rule);
  padding: 56px 0;
}

.provenance-line {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin: 0 0 32px;
}

.logo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.logo-row img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.92);
  opacity: 0.45;
  transition: opacity 200ms ease;
}

.logo-row img.logo-tall { height: 34px; }

.logo-row li:hover img { opacity: 0.9; }

/* Sections */

.section {
  padding: 130px 0;
  border-top: 1px solid var(--rule);
}

.lede { font-size: 1.15rem; color: var(--ink); }

/* Threat */

.threat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.threat-copy p { color: var(--ink-dim); max-width: 52ch; text-wrap: pretty; }
.threat-copy .lede { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Intercept log: a blueprint-grid readout whose payloads are redacted */
/* today and "declassify" as the section scrolls into view.            */
/* ------------------------------------------------------------------ */

.capture {
  --redact: #17161a;
  position: relative;
  margin: 0;
  padding: 30px 34px 26px;
  /* Faint engineering grid, drawn only inside the frame. */
  background-image:
    linear-gradient(rgba(232, 229, 222, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 229, 222, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center;
}

/* Corner "+" markers instead of a boxed border */
.capture-corner {
  position: absolute;
  width: 11px;
  height: 11px;
}
.capture-corner::before,
.capture-corner::after {
  content: "";
  position: absolute;
  background: var(--copper);
  opacity: 0.7;
}
.capture-corner::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.capture-corner::after  { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.capture-corner-tl { top: 10px; left: 12px; }
.capture-corner-tr { top: 10px; right: 12px; }
.capture-corner-bl { bottom: 10px; left: 12px; }
.capture-corner-br { bottom: 10px; right: 12px; }

.capture-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.capture-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.capture-meta {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.capture-rows { display: block; }

.capture-row {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  column-gap: 20px;
  padding: 15px 0;
  white-space: nowrap;
}
.capture-row + .capture-row { border-top: 1px solid rgba(232, 229, 222, 0.06); }

.cx-time {
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.cx-proto {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}

.cx-size {
  justify-self: end;
  font-size: 0.72rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

/* Payload: real ciphertext under a sliding redaction bar */
.cx-payload {
  position: relative;
  display: inline-block;
  justify-self: start;
}

.cx-cipher {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--copper-bright);
}

.cx-redact {
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 15px;
  transform: translateY(-50%);
  background: var(--redact);
  /* Full-width bar today; wipes away left-to-right when declassified. */
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.1, 1);
}

/* When the section is in view, each row's bar wipes off in sequence,
   revealing the ciphertext beneath. */
.capture.is-declassified .cx-redact { clip-path: inset(0 0 0 100%); }
.capture.is-declassified .capture-row:nth-child(1) .cx-redact { transition-delay: 0.15s; }
.capture.is-declassified .capture-row:nth-child(2) .cx-redact { transition-delay: 0.32s; }
.capture.is-declassified .capture-row:nth-child(3) .cx-redact { transition-delay: 0.49s; }
.capture.is-declassified .capture-row:nth-child(4) .cx-redact { transition-delay: 0.66s; }

.capture-note {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}

/* No JS / reduced motion: show the data plainly, no hidden content. */
@media (prefers-reduced-motion: reduce) {
  .cx-redact { display: none; }
}

/* Board scene */

.scene {
  border-top: 1px solid var(--rule);
  position: relative;
}

.scene-viewport {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.scene-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.scene-rail { position: relative; min-height: 340px; }

.scene-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--copper);
  margin: 0 0 18px;
}

.scene-step h2 { margin-bottom: 20px; }
.scene-step p { color: var(--ink-dim); max-width: 44ch; margin: 0; }

/* Board stage: scroll-scrubbed video (frame sequence on canvas) */

.scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}

.board-canvas,
.board-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.board-fallback-img { object-fit: cover; }

/* Static (no-JS / reduced motion / mobile) scene layout */

.scene.is-static .scene-viewport {
  height: auto;
  display: block;
  padding: 100px 0;
}

.scene.is-static .scene-inner { display: block; }

.scene.is-static .scene-rail { min-height: 0; margin-bottom: 56px; }

.scene.is-static .scene-step {
  position: static;
  margin-bottom: 48px;
}

/* Who */

.who-title { max-width: 22ch; }

.who-rows { margin-top: 24px; }

.who-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.who-row:last-child { border-bottom: none; }

.who-tag {
  font-size: 0.75rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-top: 9px;
}

.who-row p { color: var(--ink-dim); margin: 0; max-width: 58ch; }

/* Standards */

#standards { padding: 72px 0; }

.standards-lede {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin: 0 0 20px;
}

.standards-line {
  font-size: 0.9375rem;
  color: var(--ink);
  margin: 0;
  line-height: 2.1;
}

/* CTA */

.cta h2 { margin-bottom: 40px; }

.btn-ink {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  padding: 15px 34px;
  transition: background-color 160ms ease;
}

.btn-ink:hover { background: var(--copper-bright); }

/* Footer */

.footer {
  border-top: 1px solid var(--rule);
  padding: 52px 0 60px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.footer-contact {
  font-size: 0.8125rem;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-contact:hover { color: var(--copper-bright); border-color: var(--copper); }

.footer-disclaimer {
  color: var(--ink-faint);
  font-size: 0.8125rem;
  max-width: 62ch;
  margin: 0;
}

/* Contact page */

.contact-page { min-height: 100vh; display: flex; flex-direction: column; }

.contact-main {
  flex: 1;
  padding: 190px 0 120px;
}

.contact-lede {
  font-size: 1.1rem;
  color: var(--ink-dim);
  max-width: 52ch;
  margin: 28px 0 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--copper);
  margin: 0 0 14px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.form-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}

.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
  font-family: var(--body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg-lift);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--copper);
}

.contact-form ::placeholder { color: var(--ink-faint); }

.contact-form .hero-cta { margin-top: 4px; }

.contact-form .hero-cta:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  font-size: 0.9375rem;
  margin: 2px 0 0;
}

.form-status.is-ok { color: var(--copper-bright); }
.form-status.is-err { color: var(--rust); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-dim);
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list li:last-child { border-bottom: none; }

/* Reveal: applied via JS only, skipped under reduced motion */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .threat-grid { grid-template-columns: 1fr; gap: 44px; }
  .scene-inner { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 88px 0; }
  .logo-row { gap: 36px; }
  .who-row { grid-template-columns: 1fr; gap: 8px; }
  .who-tag { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-main { padding: 150px 0 90px; }
}

@media (max-width: 767px) {
  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .logo-row img { height: 18px; }
  .logo-row img.logo-tall { height: 28px; }
  .capture { padding: 26px 22px 22px; }
  .capture-row { column-gap: 14px; grid-template-columns: auto 1fr auto; }
  .capture-row .cx-size { display: none; }
  .hero-copy { padding-bottom: 48px; }
}
