/* ============================================================
   DeltaTrace — Forensic Institutional Luxury
   Design mockup stylesheet
   ============================================================ */

:root {
  --ink: #071019;          /* Evidence Ink */
  --slate: #0E1924;        /* Midnight Slate */
  --ledger: #152332;       /* Ledger Blue */
  --line: #26384A;         /* Evidence Line */
  --bone: #F3F0E8;         /* Archive Bone */
  --fog: #B9C4CF;          /* Document Fog */
  --teal: #4ED6C4;         /* Trace Teal */
  --cobalt: #6F8CFF;       /* Signal Cobalt */
  --amber: #E1B765;        /* Evidence Amber */
  --red: #E27A7A;          /* Correction Red */
  --paper: #F5F2EB;        /* Paper Bone */
  --carbon: #0A1420;       /* Light ink */

  --sans: "Inter Tight", "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1240px;
  --ease: cubic-bezier(.22, .7, .24, 1);
  --dur: 5.4s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(78, 214, 196, .25); }

a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--teal); color: var(--ink);
  padding: 10px 18px; font: 500 14px var(--mono); z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(7, 16, 25, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 56, 74, .7);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex; align-items: center; gap: 32px;
}
.wordmark {
  display: flex; align-items: center; gap: 11px;
  color: var(--bone); font: 600 19px var(--sans);
  letter-spacing: -.01em; white-space: nowrap;
}
.wordmark:hover { color: var(--bone); }
.wordmark svg { display: block; }
.nav-links {
  display: flex; gap: 30px; margin-left: auto; align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--fog); font: 500 14.5px var(--sans);
  letter-spacing: .01em; padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  font: 600 14.5px var(--sans); letter-spacing: .01em;
  border-radius: 6px; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #06231f; border: 1px solid var(--teal); }
.btn-primary:hover { background: #6fe3d3; color: #06231f; }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-dark { background: var(--carbon); color: var(--bone); border: 1px solid var(--carbon); }
.btn-dark:hover { background: #16283a; color: var(--bone); }
.nav-cta { margin-left: 8px; min-height: 42px; }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 44px; height: 44px; cursor: pointer; color: var(--bone);
  font: 500 12px var(--mono); letter-spacing: .08em;
}

/* ---------- Shared type ---------- */

.eyebrow {
  font: 500 12.5px var(--mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--teal); }

h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }

.h-display { font-size: clamp(2.7rem, 5.6vw, 4.6rem); }
.h-xl { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.h-lg { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }

.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.7; color: var(--fog); max-width: 68ch; }
.muted { color: var(--fog); }
.mono { font-family: var(--mono); }

/* ---------- Hero ---------- */

.hero { padding: 172px 0 40px; position: relative; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 56, 74, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 56, 74, .16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero h1 { margin: 26px 0 24px; max-width: 15ch; }
.hero-actions { display: flex; gap: 14px; margin: 36px 0 26px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 10px 26px; flex-wrap: wrap;
  font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--fog);
}
.hero-meta span { display: flex; align-items: center; gap: 9px; }
.hero-meta i { width: 5px; height: 5px; background: var(--teal); display: inline-block; }

/* ---------- Evidence stage (hero figure) ---------- */

.stage {
  margin: 58px 0 0;
  background: linear-gradient(180deg, var(--slate), #0c1620);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 56, 74, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 56, 74, .22) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 40%, transparent 100%);
}
.stage-corner { position: absolute; width: 18px; height: 18px; border-color: var(--teal); border-style: solid; opacity: .8; z-index: 3; }
.stage-corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.stage-corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.stage-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.stage-corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.stage svg { display: block; width: 100%; height: auto; position: relative; z-index: 2; }
.stage svg.stage-mobile { display: none; }

.stage-cap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 14px 4px 0;
  font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(185, 196, 207, .65);
}

/* SVG animation primitives — base styles are the FINAL resolved frame.
   Keyframes only define the entry states, so with motion disabled the
   figure remains a complete, meaningful still. */
.kf { animation-duration: var(--dur); animation-timing-function: var(--ease); animation-fill-mode: both; animation-iteration-count: 1; }
.kf-frag   { animation-name: frag-settle; }
.kf-rail   { animation-name: rail-draw; }
.kf-node   { animation-name: node-pop; transform-box: fill-box; transform-origin: center; }
.kf-branch { animation-name: branch-in; }
.kf-chip   { animation-name: chip-rise; }
.kf-record { animation-name: record-rise; }
.kf-digest { animation-name: digest-lock; transform-box: fill-box; transform-origin: center; }

@keyframes frag-settle {
  0%   { opacity: 0; transform: var(--sc, translate(-26px, -18px) rotate(-6deg)); }
  10%  { opacity: 1; transform: var(--sc, translate(-26px, -18px) rotate(-6deg)); }
  27%  { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
@keyframes rail-draw {
  0%, 25% { opacity: 0; stroke-dashoffset: 1; }
  28%     { opacity: .9; }
  42%     { opacity: .9; stroke-dashoffset: 0; }
  100%    { opacity: .9; stroke-dashoffset: 0; }
}
@keyframes node-pop {
  0%, 38% { opacity: 0; transform: scale(.25); }
  48%     { opacity: 1; transform: scale(1.1); }
  54%     { opacity: 1; transform: scale(1); }
  100%    { opacity: 1; transform: none; }
}
@keyframes branch-in {
  0%, 52% { opacity: 0; }
  62%     { opacity: 1; }
  100%    { opacity: 1; }
}
@keyframes chip-rise {
  0%, 56% { opacity: 0; transform: translateY(16px); }
  68%     { opacity: 1; transform: none; }
  100%    { opacity: 1; transform: none; }
}
@keyframes record-rise {
  0%, 64% { opacity: 0; transform: translateY(22px) scale(.97); }
  78%     { opacity: 1; transform: none; }
  100%    { opacity: 1; transform: none; }
}
@keyframes digest-lock {
  0%, 78% { opacity: 0; transform: scale(.8); filter: drop-shadow(0 0 0 rgba(78,214,196,0)); }
  88%     { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(78,214,196,.55)); }
  94%     { transform: scale(1); filter: drop-shadow(0 0 7px rgba(78,214,196,.28)); }
  100%    { opacity: 1; transform: none; filter: drop-shadow(0 0 5px rgba(78,214,196,.22)); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(84px, 11vw, 132px) 0; position: relative; }
.section + .section { border-top: 1px solid rgba(38, 56, 74, .55); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head p { margin-top: 20px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: start; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.pill {
  font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fog); border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 16px; display: inline-flex; align-items: center; gap: 9px;
}
.pill i { width: 5px; height: 5px; background: var(--teal); }

/* Question cards */
.q-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.q-card {
  background: var(--ledger); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 24px 30px; position: relative; overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.q-card:hover { border-color: rgba(78, 214, 196, .45); transform: translateY(-3px); }
.q-card .num { font: 500 12px var(--mono); color: var(--teal); letter-spacing: .18em; }
.q-card h3 { font-size: 1.28rem; margin: 40px 0 12px; }
.q-card p { font-size: .94rem; color: var(--fog); line-height: 1.6; }
.q-card::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 46px; height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent 70%);
  opacity: .5;
}

/* Artifact cards */
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.a-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(21, 35, 50, .6), rgba(14, 25, 36, .6));
  display: flex; gap: 16px; align-items: flex-start;
}
.a-card .tick {
  flex: none; width: 30px; height: 30px; border: 1px solid var(--teal); border-radius: 6px;
  display: grid; place-items: center; color: var(--teal); font: 500 11px var(--mono);
}
.a-card h3 { font-size: 1.02rem; letter-spacing: -.01em; margin-bottom: 6px; }
.a-card p { font-size: .88rem; color: var(--fog); line-height: 1.55; }

/* Audience */
.aud-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.aud-list li {
  padding: 18px 0; border-bottom: 1px solid rgba(38, 56, 74, .7);
  display: flex; gap: 16px; align-items: baseline;
  color: var(--bone); font-size: 1.02rem; font-weight: 500;
}
.aud-list li span { font: 500 11px var(--mono); color: var(--teal); letter-spacing: .12em; flex: none; }

/* Boundary block */
.boundary {
  border: 1px solid rgba(225, 183, 101, .35); border-radius: 12px;
  background: linear-gradient(180deg, rgba(225, 183, 101, .05), rgba(225, 183, 101, .015));
  padding: clamp(30px, 4.5vw, 52px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px);
}
.boundary h3 { font-size: 1.35rem; margin-bottom: 16px; }
.boundary .tag {
  font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); display: block; margin-bottom: 18px;
}
.no-list { list-style: none; }
.no-list li {
  padding: 11px 0 11px 30px; position: relative; color: var(--fog); font-size: .97rem;
  border-bottom: 1px dashed rgba(38, 56, 74, .8);
}
.no-list li:last-child { border-bottom: 0; }
.no-list li::before {
  content: "—"; position: absolute; left: 2px; color: var(--amber); font-family: var(--mono);
}

/* CTA band */
.cta-band {
  border: 1px solid var(--line); border-radius: 14px;
  background:
    radial-gradient(ellipse 60% 120% at 85% 50%, rgba(78, 214, 196, .07), transparent 60%),
    linear-gradient(180deg, var(--slate), #0b1520);
  padding: clamp(40px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 22ch; }
.cta-band .scope-line {
  margin-top: 18px; font: 500 12px var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--fog);
  display: flex; gap: 8px 22px; flex-wrap: wrap;
}
.cta-band .scope-line b { color: var(--teal); font-weight: 500; }

/* ---------- Paper (document) pages ---------- */

.paper-zone { background: var(--paper); color: var(--carbon); }
.paper-zone ::selection { background: rgba(14, 25, 36, .18); }
.paper-zone .eyebrow { color: #0f6e63; }
.paper-zone .eyebrow::before { background: #0f6e63; }
.paper-zone .lead, .paper-zone .muted { color: #3d4c5c; }
.paper-panel { padding: clamp(72px, 9vw, 110px) 0; }
.paper-panel + .paper-panel { border-top: 1px solid #ddd6c8; }

.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-card {
  background: #fbf9f4; border: 1px solid #ddd6c8; border-radius: 10px; padding: 26px;
}
.doc-card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--carbon); }
.doc-card p, .doc-card li { font-size: .94rem; color: #3d4c5c; line-height: 1.62; }
.doc-card ul { padding-left: 18px; display: grid; gap: 6px; }
.doc-card .mono-label {
  font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: #0f6e63; display: block; margin-bottom: 14px;
}

.scope-table { width: 100%; border-collapse: collapse; }
.scope-table th, .scope-table td {
  text-align: left; padding: 15px 4px; border-bottom: 1px solid #ddd6c8;
  font-size: .98rem; vertical-align: top;
}
.scope-table th { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6b7684; width: 180px; padding-right: 20px; }
.scope-table td { color: var(--carbon); font-weight: 500; }

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step; padding: 24px 0 24px 74px; position: relative;
  border-bottom: 1px solid rgba(38, 56, 74, .55);
}
.paper-zone .step { border-bottom-color: #ddd6c8; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  width: 46px; height: 46px; border: 1px solid var(--teal); border-radius: 8px;
  display: grid; place-items: center;
  font: 500 13px var(--mono); color: var(--teal);
}
.paper-zone .step::before { border-color: #0f6e63; color: #0f6e63; }
.step h3 { font-size: 1.14rem; margin-bottom: 6px; }
.step p { font-size: .95rem; color: var(--fog); max-width: 62ch; }
.paper-zone .step p { color: #3d4c5c; }

/* ---------- Method visuals ---------- */

.lab-figure {
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, var(--slate), #0c1620);
  padding: clamp(22px, 3.5vw, 44px);
  overflow: hidden;
}
.lab-figure svg { width: 100%; height: auto; display: block; }
.fig-cap {
  margin-top: 16px; font: 500 11px var(--mono); letter-spacing: .16em;
  text-transform: uppercase; color: rgba(185, 196, 207, .6);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.role-chip {
  font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--bone); background: var(--ledger); border: 1px solid var(--line);
  border-radius: 100px; padding: 9px 17px;
}
.role-chip b { color: var(--teal); font-weight: 500; }

.principle { padding: 30px 0; border-bottom: 1px solid rgba(38, 56, 74, .6); display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.principle h3 { font-size: 1.22rem; }
.principle p { color: var(--fog); font-size: .98rem; max-width: 66ch; }
.principle .mono-label { font: 500 11px var(--mono); color: var(--teal); letter-spacing: .16em; display: block; margin-bottom: 10px; text-transform: uppercase; }

/* ---------- Form ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #44525f; }
.field label em { color: #a4444a; font-style: normal; }
.field input, .field select, .field textarea {
  font: 400 16px var(--sans); color: var(--carbon);
  background: #fbf9f4; border: 1px solid #cfc7b6; border-radius: 7px;
  padding: 13px 15px; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #0f6e63; box-shadow: 0 0 0 3px rgba(15, 110, 99, .14);
}
.check-field { display: flex; gap: 14px; align-items: flex-start; grid-column: 1 / -1; }
.check-field input { width: 20px; height: 20px; margin-top: 3px; accent-color: #0f6e63; flex: none; }
.check-field span { font-size: .93rem; color: #3d4c5c; line-height: 1.55; }
.form-note {
  font-size: .88rem; color: #6b7684; border: 1px dashed #cfc7b6; border-radius: 8px;
  padding: 14px 18px; grid-column: 1 / -1; line-height: 1.55;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-confirm {
  display: none; text-align: left; border: 1px solid #0f6e63; border-radius: 12px;
  background: #eef6f1; padding: clamp(30px, 5vw, 50px);
}
.form-confirm.show { display: block; }
.form-confirm h3 { color: #0c5a50; font-size: 1.4rem; margin-bottom: 12px; }
.form-confirm p { color: #33504a; }

/* FAQ */
details.faq { border-bottom: 1px solid rgba(38, 56, 74, .6); }
details.faq summary {
  cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.08rem;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font: 400 22px var(--mono); color: var(--teal); flex: none;
  transition: transform .2s var(--ease);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 0 24px; color: var(--fog); max-width: 68ch; font-size: .97rem; }
.paper-zone details.faq { border-bottom-color: #ddd6c8; }
.paper-zone details.faq p { color: #3d4c5c; }
.paper-zone details.faq summary::after { color: #0f6e63; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: #050c13; padding: 72px 0 44px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand .descriptor {
  font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin: 18px 0 12px;
}
.footer-brand p { font-size: .92rem; color: var(--fog); }
.footer-nav { display: flex; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; }
.footer-nav h4 { font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(185,196,207,.55); margin-bottom: 16px; }
.footer-nav ul { list-style: none; display: grid; gap: 11px; }
.footer-nav a { color: var(--fog); font-size: .94rem; }
.footer-nav a:hover { color: var(--teal); }
.footer-base {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(38, 56, 74, .5);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 400 12.5px var(--mono); color: rgba(185, 196, 207, .5);
}

/* ---------- Reveal (JS-gated so no-JS still shows content) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 168px 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { margin: 24px 0 22px; max-width: 19ch; }
.page-hero .hero-actions { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .q-grid { grid-template-columns: 1fr 1fr; }
  .a-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slate); border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .site-header.open .nav-links a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid rgba(38,56,74,.6); }
  .site-header.open .nav-cta {
    display: inline-flex; margin: 16px 24px 22px; position: relative;
  }
  .site-header.open { height: auto; }
  .site-header.open .header-inner { flex-wrap: wrap; }

  .hero { padding-top: 138px; }
  .stage svg.stage-desktop { display: none; }
  .stage svg.stage-mobile { display: block; }
  .stage * { animation: none !important; }  /* static final frame on small screens */

  .q-grid, .a-grid, .doc-grid, .form-grid { grid-template-columns: 1fr; }
  .aud-list { grid-template-columns: 1fr; }
  .boundary { grid-template-columns: 1fr; }
  .step { padding-left: 64px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage * { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .q-card:hover { transform: none; }
}

/* ============================================================
   v2.0 alignment patch — automation-first holding page
   ============================================================ */

/* Status note beside hero */
.status-note {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid rgba(225, 183, 101, .4); border-left-width: 3px;
  border-radius: 10px; background: rgba(225, 183, 101, .05);
  padding: 18px 20px; max-width: 640px; margin-top: 30px;
}
.status-note .dot { flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--amber); }
.status-note p { font-size: .92rem; color: var(--fog); line-height: 1.6; }
.status-note b { color: var(--amber); font-weight: 600; }

/* The Window — hero figure */
.window-stage {
  margin: 54px 0 0;
  background: linear-gradient(180deg, var(--slate), #0c1620);
  border: 1px solid var(--line); border-radius: 14px;
  position: relative; overflow: hidden;
}
.window-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 56, 74, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 56, 74, .2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 40%, transparent 100%);
}
.window-stage svg { display: block; width: 100%; height: auto; position: relative; z-index: 2; }
.window-stage svg.stage-mobile { display: none; }

/* window animation — base styles are the FINAL frame */
.w-frag   { animation: w-fade .9s var(--ease) both; }
.w-bracket{ animation: w-open 1.4s var(--ease) .5s both; }
.w-record { animation: w-record 1.2s var(--ease) 1.1s both; }
.w-end    { animation: w-fade .9s var(--ease) 1.9s both; }
@keyframes w-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes w-open {
  from { opacity: 0; transform: scaleX(.35); }
  to   { opacity: 1; transform: none; }
}
@keyframes w-record {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.w-bracket, .w-record { transform-box: fill-box; transform-origin: center; }

/* Product blocks */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-card {
  background: var(--ledger); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(26px, 3vw, 38px); position: relative;
}
.product-card.lead-card { border-color: rgba(78, 214, 196, .35); }
.product-card.secondary { grid-column: 1 / -1; background: linear-gradient(180deg, rgba(21,35,50,.55), rgba(14,25,36,.55)); }
.status-ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase;
  border-radius: 100px; padding: 7px 14px; margin-bottom: 20px;
}
.status-ribbon i { width: 6px; height: 6px; border-radius: 0; }
.status-ribbon.soon { color: var(--amber); border: 1px solid rgba(225, 183, 101, .45); }
.status-ribbon.soon i { background: var(--amber); }
.status-ribbon.partner { color: var(--teal); border: 1px solid rgba(78, 214, 196, .45); }
.status-ribbon.partner i { background: var(--teal); }
.status-ribbon.scope { color: var(--fog); border: 1px solid var(--line); }
.status-ribbon.scope i { background: var(--fog); }
.product-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 14px; letter-spacing: -.02em; }
.product-card > p { color: var(--fog); font-size: .98rem; max-width: 56ch; }
.feed-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.feed-stage {
  border: 1px solid var(--line); border-radius: 9px; padding: 18px 20px;
  background: rgba(7, 16, 25, .4);
}
.feed-stage span { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 8px; }
.feed-stage p { font-size: .9rem; color: var(--fog); line-height: 1.55; }
.product-note { margin-top: 20px; font: 400 12.5px var(--mono); color: rgba(185,196,207,.7); letter-spacing: .03em; }

/* Six compact artifact tiles */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px;
  background: rgba(21, 35, 50, .5);
  display: flex; flex-direction: column; gap: 8px;
}
.tile span { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.tile p { font-size: .9rem; color: var(--fog); line-height: 1.55; }

/* Hero two-column with figure beside copy on wide screens */
.hero-2col { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-2col .window-stage { margin-top: 0; }

@media (max-width: 1020px) {
  .hero-2col { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .feed-stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tile-grid, .feed-stages { grid-template-columns: 1fr; }
  .window-stage svg.stage-desktop { display: none; }
  .window-stage svg.stage-mobile { display: block; }
  .window-stage * { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .window-stage * { animation: none !important; }
}

/* ============================================================
   v1.1 patch — form preview honesty, version meta
   ============================================================ */

/* Form preview flag + validation errors */
.preview-flag {
  display: flex; align-items: center; gap: 10px;
  font: 500 11.5px var(--mono); letter-spacing: .08em;
  color: var(--amber); border: 1px dashed rgba(225, 183, 101, .5);
  border-radius: 8px; padding: 11px 15px; margin-bottom: 18px;
}
.preview-flag i { flex: none; width: 6px; height: 6px; background: var(--amber); }

.field input.field-error, .field textarea.field-error, .field select.field-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(226, 122, 122, .14);
}

/* Site version + operator settings line in footer */
.footer-meta {
  margin-top: 14px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font: 400 11px var(--mono); color: rgba(185, 196, 207, .45); letter-spacing: .04em;
}
.footer-meta .dim { color: rgba(185, 196, 207, .35); }
