/* ═══════════════════════════════════════════════════════════════
   VERIDOM — v3
   Design language: archival hallmark. Warm near-black, aged gold,
   institutional green for established states only.
   Canonical palette + type per 02_BRAND/VERIDOM Visual Brand System.
   Visual idea: a line of work that reaches a visible end.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* corporate palette — canonical */
  --vault:      #08090B;
  --deep:       #0E1015;
  --surface:    #141720;
  --card:       #1A1E28;
  --border:     #262C3A;
  --rail:       #323A4E;

  --gold:       #B8892A;
  --gold-lt:    #D4A84B;
  --gold-dim:   #7A5A1A;
  --parchment:  #F5EED8;
  --cream:      #F0EDE6;
  --silver:     #9A9285;
  --muted:      #6B655D;

  /* semantic product states */
  --established: #3D9E6A;
  --established-deep: #2A6B47;
  --blocked:    #C0392B;
  --blocked-deep: #8B2020;
  --waiting:    #B8892A;
  --superseded: #5C6270;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body:  'Lora', Georgia, serif;
  --sans:  'Jost', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--vault);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* archival grain — restrained */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(184,137,42,.32); color: var(--parchment); }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--gold); color: var(--vault); padding: 12px 20px; font-weight: 500;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(76px, 10vw, 148px) 0; position: relative; }
.section--surface { background: var(--surface); }
.section--deep { background: var(--deep); }
.hairline { border-top: 1px solid var(--border); }

/* ── type scale ───────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 400; line-height: 1.12; letter-spacing: -.015em; }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.35rem, 6.2vw, 4.6rem); line-height: 1.06; letter-spacing: -.025em;
  color: var(--parchment);
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.85rem, 3.9vw, 3rem); line-height: 1.12; letter-spacing: -.02em;
  color: var(--parchment);
}
.h3 {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.3; color: var(--cream);
}
.lede {
  font-family: var(--body); font-size: clamp(1.05rem, 1.55vw, 1.24rem);
  line-height: 1.68; color: var(--silver); max-width: 62ch;
}
p { max-width: 68ch; }
.prose p + p { margin-top: 1.15em; }
.prose { color: var(--silver); font-family: var(--body); line-height: 1.75; }
.prose strong { color: var(--cream); font-weight: 600; }
.emph { color: var(--cream); }

.eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.eyebrow::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, var(--gold-dim), transparent); max-width: 180px; }

blockquote.pull {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.7vw, 2rem); line-height: 1.32;
  color: var(--parchment); border-left: 2px solid var(--gold); padding-left: clamp(20px, 3vw, 40px);
  margin: clamp(36px, 5vw, 60px) 0; max-width: 30ch;
}

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  padding: 15px 26px; border: 1px solid var(--gold); border-radius: 2px;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--vault); }
.btn--primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-1px); }
.btn--ghost { color: var(--parchment); border-color: var(--rail); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn .arw { transition: transform .28s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--gold-dim); padding-bottom: 4px;
  transition: color .24s, border-color .24s;
}
.tlink:hover { color: var(--gold-lt); border-color: var(--gold-lt); }

/* ── nav ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; gap: 32px;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, padding .35s, transform .45s var(--ease);
}
.nav.is-stuck {
  background: rgba(8,9,11,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border); padding-top: 12px; padding-bottom: 12px;
}
.nav.is-hidden { transform: translateY(-105%); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { width: 24px; height: 27px; }
.brand-word {
  font-family: var(--serif); font-weight: 700; letter-spacing: .16em; font-size: 15.5px;
  color: var(--parchment);
}
.nav-links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 13.5px; letter-spacing: .04em; color: var(--silver);
  transition: color .24s; position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--parchment); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold);
}
.nav-cta { margin-left: 8px; }

/* products dropdown */
.nav-item { position: relative; }
.nav-item > button {
  font-size: 13.5px; letter-spacing: .04em; color: var(--silver);
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; transition: color .24s;
}
.nav-item > button::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); transition: transform .25s var(--ease); }
.nav-item:hover > button, .nav-item.open > button { color: var(--parchment); }
.nav-item.open > button::after { transform: rotate(225deg) translate(-2px,-2px); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 260px;
  background: rgba(14,16,21,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 3px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9);
}
.nav-item:hover .nav-menu, .nav-item.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 11px 14px; border-radius: 2px; transition: background .2s, color .2s; }
.nav-menu a:hover { background: rgba(184,137,42,.09); color: var(--parchment); }
.nav-menu .nm-t { font-size: 14px; color: var(--cream); display: block; }
.nav-menu .nm-d { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.45; }
.nav-menu a:hover .nm-t { color: var(--gold-lt); }
.drawer .dsub { font-family: var(--sans); font-size: 15px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; padding: 18px 0 4px; }
.drawer .dsub-a { font-size: clamp(1.35rem,5.5vw,1.8rem) !important; padding: 6px 0 !important; }

/* proof strip inside a beat */
.proof {
  border: 1px solid var(--border); background: var(--card); border-radius: 3px; overflow: hidden;
  position: relative;
}
.proof::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.proof-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: rgba(8,9,11,.45); font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.proof-bar b { color: var(--gold); font-weight: 400; letter-spacing: .14em; }
.proof-body { padding: 20px 18px; }

.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--parchment); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 1px; background: var(--parchment); transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 999; background: var(--vault);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a { font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 2.8rem); color: var(--parchment); padding: 10px 0; }
.drawer a:hover { color: var(--gold-lt); }

/* ── hero ─────────────────────────────────────────────────────── */
.hero { padding: clamp(140px, 19vh, 190px) 0 clamp(70px, 9vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -20%; right: -12%; width: 55vw; height: 55vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(184,137,42,.075), transparent 66%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(40px, 5vw, 76px); align-items: center; position: relative; }
.hero .display { max-width: 15ch; }
.hero .lede { margin-top: 28px; }

/* ── case file panel ──────────────────────────────────────────── */
.casefile {
  background: linear-gradient(180deg, var(--card), var(--surface));
  border: 1px solid var(--border); border-radius: 3px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.85);
  overflow: hidden;
  position: relative;
}
.casefile::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.casefile-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--border); background: rgba(8,9,11,.45);
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.casefile-id { color: var(--gold); letter-spacing: .14em; }
.casefile-body { padding: 22px 18px 20px; }

.ledger { display: flex; flex-direction: column; }
.ledger-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid rgba(38,44,58,.6);
  font-size: 14px; color: #B4ADA1;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-day { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.ledger-txt { line-height: 1.5; max-width: none; }
.ledger-row.is-live { color: var(--cream); }
.ledger-row.is-live .ledger-day { color: var(--gold); }

.chip {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; border: 1px solid; white-space: nowrap;
}
.chip--wait   { color: var(--waiting); border-color: rgba(184,137,42,.45); background: rgba(184,137,42,.07); }
.chip--block  { color: var(--blocked); border-color: rgba(192,57,43,.45); background: rgba(192,57,43,.07); }
.chip--ok     { color: var(--established); border-color: rgba(61,158,106,.45); background: rgba(61,158,106,.07); }
.chip--neutral{ color: var(--superseded); border-color: var(--border); }

.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); margin-top: 20px;
}
.stat-strip > div { background: var(--surface); padding: 14px 16px; }
.stat-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat-v { font-family: var(--serif); font-size: 1.5rem; color: var(--parchment); margin-top: 5px; line-height: 1; }
.stat-v.is-red { color: var(--blocked); }
.stat-v.is-green { color: var(--established); }

/* ── generic grids ────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (min-width: 1001px) {
  .split > :first-child { position: sticky; top: 118px; }
}
.cards { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cardx { background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.cardx .num { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }
.cardx h3 { margin: 14px 0 12px; font-family: var(--sans); font-weight: 400; font-size: 1.12rem; color: var(--cream); line-height: 1.3; }
.cardx p { font-size: 14.5px; color: var(--silver); line-height: 1.66; }

/* capability list */
.caps { list-style: none; margin-top: 30px; border-top: 1px solid var(--border); }
.caps li {
  display: grid; grid-template-columns: 20px 1fr; gap: 16px; align-items: start;
  padding: 17px 0; border-bottom: 1px solid var(--border); color: var(--cream); font-size: 15.5px; line-height: 1.6;
}
.caps li::before { content: ''; width: 7px; height: 7px; margin-top: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* refusal records */
.record {
  background: var(--vault); border: 1px solid var(--border); border-left: 2px solid var(--blocked-deep);
  padding: 22px 24px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--silver);
}
.record + .record { margin-top: 14px; }
.record .k { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 10px; display: block; margin-bottom: 6px; }
.record .say { color: var(--parchment); font-family: var(--body); font-size: 15px; line-height: 1.6; display: block; margin-bottom: 12px; }
.record--wait { border-left-color: var(--gold-dim); }
.record--stale { border-left-color: var(--superseded); }

/* questions ledger */
.qa { border-top: 1px solid var(--border); }
.qa-item { border-bottom: 1px solid var(--border); padding: clamp(22px, 3vw, 32px) 0; display: grid; grid-template-columns: 46px 1fr; gap: clamp(16px,2.5vw,32px); }
.qa-n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--gold); padding-top: 6px; }
.qa-q { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.62rem); color: var(--parchment); line-height: 1.2; margin-bottom: 12px; }
.qa-a { font-size: 15px; color: var(--silver); line-height: 1.7; }

/* three facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.fact { background: var(--card); padding: 26px; }
.fact-k { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.fact-vals { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 14px; }
.fact p { font-size: 14px; color: var(--silver); line-height: 1.62; }

/* pilot block */
.pilot { border: 1px solid var(--border); background: var(--surface); padding: clamp(28px, 4vw, 52px); }
.pilot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); margin-top: 30px; }
.pilot-cell { background: var(--surface); padding: 20px 18px; }
.pilot-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pilot-v { font-family: var(--serif); font-size: 1.28rem; color: var(--parchment); margin-top: 8px; line-height: 1.2; }
.pilot-n { font-size: 13px; color: var(--silver); margin-top: 8px; line-height: 1.55; }

/* two doors */
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.door { background: var(--surface); padding: clamp(30px, 4vw, 48px); display: flex; flex-direction: column; }
.door-k { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.door h3 { font-family: var(--serif); font-size: clamp(1.5rem,2.6vw,2rem); color: var(--parchment); margin: 16px 0 14px; font-weight: 400; }
.door p { font-size: 15px; color: var(--silver); flex: 1; }
.door .btn { margin-top: 28px; align-self: flex-start; }

/* diagram */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 44px; }
.flow-node {
  border: 1px solid var(--border); background: var(--card); padding: 15px 28px; border-radius: 2px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); text-align: center;
}
.flow-node.is-key { border-color: var(--gold); color: var(--gold-lt); background: rgba(184,137,42,.06); }
.flow-arm { width: 1px; height: 30px; background: linear-gradient(180deg, var(--rail), var(--gold-dim)); }
.flow-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* footer */
.foot { background: var(--deep); border-top: 1px solid var(--border); padding: clamp(52px,6vw,80px) 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 400; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot a { font-size: 14px; color: var(--silver); transition: color .22s; }
.foot a:hover { color: var(--gold-lt); }
.foot-base { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* the legal line carries the one address a visitor may need to keep */
.foot-base a { color: var(--silver); text-decoration: none; border-bottom: 1px solid var(--border); }
.foot-base a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ── responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero .display { max-width: 18ch; }
  .cards--3, .facts, .pilot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .cards--3, .cards--2, .facts, .doors, .pilot-grid, .stat-strip { grid-template-columns: 1fr; }
  .qa-item { grid-template-columns: 1fr; gap: 10px; }
  .qa-n { padding-top: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .ledger-row { grid-template-columns: 44px 1fr; }
  .ledger-row .chip { grid-column: 2; justify-self: start; margin-top: 6px; }
  blockquote.pull { max-width: none; }
}
