/* ==========================================================================
   Delvara — public website stylesheet
   Brand: navy #1C2840 · gold #C9A84C · paper #FAF9F6 · Lens green #1A6B43
   Type:  Playfair Display (principal headings) · DM Sans (body/interface)
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL Open Font Licence — see /assets/fonts) ---- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }

@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/space-mono-latin-400-normal.woff2") format("woff2"); }

/* ---- Tokens ---- */
:root {
  --navy: #1C2840;
  --navy-2: #232F4B;
  --navy-line: #36435F;
  --gold: #C9A84C;
  --gold-lt: #E0C680;
  --green: #1A6B43;
  --ink: #2A2E38;
  --muted: #6E7588;        /* brand Muted: rules, large/decorative text */
  --muted-text: #5E6576;   /* darker tint of brand Muted for small text (WCAG AA on Paper) */
  --muted-on-navy: #AEB5C6;
  --paper: #FAF9F6;
  --paper-2: #F3F1EB;
  --rule: #D8D5CC;
  --sev-high: #C0392B;  /* brand Red (critical findings) */
  --green-mark: #229957; /* brand Green, as in the Lens mark */
  --white: #FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --section: 128px;
  --radius: 2px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: 88px 0; }
.on-navy { background: var(--navy); color: var(--white); }
.on-paper-2 { background: var(--paper-2); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-text); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.on-navy .eyebrow { color: var(--gold-lt); }

.h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.375rem, 5.2vw, 3.75rem); line-height: 1.08; letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.75rem, 3.3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.005em;
  max-width: 22ch;
}
.h2--wide { max-width: 30ch; }
.lead { font-size: 1.1875rem; color: var(--muted-text); max-width: 62ch; margin-top: 20px; }
.on-navy .lead { color: var(--muted-on-navy); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.01em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: 700 0.9375rem/1.2 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-lt); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #2A385A; }
.btn--outline { border-color: var(--gold); color: var(--white); background: transparent; }
.btn--outline:hover { background: rgba(201,168,76,.12); }
.text-link {
  font-weight: 700; font-size: 0.9375rem; text-decoration: none; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.text-link:hover { color: var(--gold); }
.on-navy .text-link:hover { color: var(--gold-lt); }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .25s, color .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header--solid {
  background: rgba(250,249,246,.97); color: var(--navy); border-bottom-color: var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 30px; width: auto; }
.brand-word { font-weight: 700; font-size: 1rem; letter-spacing: 0.24em; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a.nav-link { font-size: 0.9375rem; font-weight: 500; text-decoration: none; opacity: .92; }
.site-nav a.nav-link:hover { opacity: 1; color: var(--gold); }
.site-header .btn { min-height: 42px; padding: 10px 18px; }
.site-header:not(.is-solid):not(.site-header--solid) .btn--nav { border-color: var(--gold); color: var(--white); background: transparent; }
.site-header.is-solid .btn--nav, .site-header--solid .btn--nav { background: var(--navy); color: var(--white); }
.menu-toggle {
  display: none; background: none; border: 1px solid currentColor; color: inherit;
  min-height: 42px; padding: 8px 14px; font: 700 0.875rem var(--sans); letter-spacing: .06em; border-radius: var(--radius);
}

/* ---- Hero ---- */
.hero { padding: 168px 0 112px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.hero .lead { font-size: 1.25rem; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.proof {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--navy-line); font-size: 0.9375rem; color: var(--muted-on-navy);
}
.proof li { display: flex; align-items: center; gap: 10px; }
.proof li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
.tagline { font-style: italic; color: var(--gold-lt); margin-top: 20px; font-size: 1rem; }

.chain { position: relative; padding-left: 28px; }
.chain::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--gold);
  transform-origin: top; transition: transform 1.4s ease;
}
.chain li { position: relative; padding: 9px 0; display: grid; grid-template-columns: 56px 1fr; align-items: baseline; }
.chain li::before {
  content: ""; position: absolute; left: -28px; top: 17px; width: 11px; height: 11px;
  background: var(--navy); border: 1px solid var(--gold); transform: rotate(45deg);
}
.chain li.chain-input::before { background: var(--gold); }
.chain li.chain-output::before { background: var(--gold-lt); border-color: var(--gold-lt); }
.chain .step { color: var(--gold-lt); }
.chain .label { font-size: 1rem; color: var(--white); }
.chain li.chain-input .label, .chain li.chain-input .step { color: var(--muted-on-navy); }
.chain-caption { margin-top: 20px; font-size: 0.875rem; color: var(--muted-on-navy); padding-left: 28px; }

/* ---- Approach rail ---- */
.section-head { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; margin-bottom: 72px; }
.section-head .lead { margin-top: 0; }
.rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; position: relative; padding-top: 34px; counter-reset: stage; }
.rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--gold);
  transform-origin: left; transition: transform 1.6s ease;
}
.rail li { position: relative; }
.rail li::before {
  content: ""; position: absolute; top: -34px; left: 0; width: 13px; height: 13px;
  background: var(--paper); border: 1px solid var(--navy); transform: rotate(45deg);
}
.rail li:last-child::before { background: var(--navy); }
.rail .step { display: block; color: var(--muted-text); margin-bottom: 8px; }
.rail h3 { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; color: var(--navy); margin-bottom: 10px; }
.rail p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink); margin: 0; }

/* ---- Evidence exhibit ---- */
.exhibit-head { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.exhibit {
  border: 1px solid var(--navy-line); background: var(--navy-2); border-radius: var(--radius);
}
.exhibit-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 16px 28px; border-bottom: 1px solid var(--navy-line);
}
.exhibit-flag {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy); background: var(--gold-lt); padding: 4px 10px;
}
.exhibit-meta { color: var(--muted-on-navy); }
.exhibit-body { display: grid; grid-template-columns: 7fr 5fr; }
.trace { padding: 32px 28px 36px; position: relative; }
.trace-step { position: relative; padding-left: 36px; padding-bottom: 28px; }
.trace-step:last-child { padding-bottom: 0; }
.trace-step::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 11px; height: 11px;
  border: 1px solid var(--gold); background: var(--navy-2); transform: rotate(45deg); z-index: 1;
}
.trace-step.is-finding::before { background: var(--gold); }
.trace-step:not(:last-child)::after {
  content: ""; position: absolute; left: 9px; top: 20px; bottom: -4px; width: 1px; background: var(--gold);
  transform-origin: top; transition: transform .9s ease;
}
.trace-label {
  display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 8px;
}
.trace-text { margin: 0; color: var(--white); font-size: 1.0625rem; line-height: 1.55; }
.trace-quote { font-family: var(--serif); font-size: 1.375rem; line-height: 1.35; }
.ref { display: block; margin-top: 8px; color: var(--muted-on-navy); }
.evidence-list li { padding: 10px 0; border-top: 1px solid var(--navy-line); }
.evidence-list li:first-child { border-top: 0; padding-top: 0; }
.evidence-list .ref { margin-top: 4px; }

.assessment { border-left: 1px solid var(--navy-line); padding: 32px 28px 36px; }
.assessment dl > div { padding: 14px 0; border-top: 1px solid var(--navy-line); }
.assessment dl > div:first-child { border-top: 0; padding-top: 0; }
.assessment dt {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-navy); margin-bottom: 6px;
}
.assessment dd { font-size: 0.9375rem; line-height: 1.55; color: var(--white); }
.severity {
  display: inline-flex; align-items: center; gap: 8px; background: var(--sev-high); color: var(--white);
  font-weight: 700; font-size: 0.875rem; letter-spacing: .04em; padding: 5px 12px; border-radius: var(--radius);
}
.severity::before { content: ""; width: 7px; height: 7px; background: var(--white); }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-lt);
}
.status::before { content: "\2713"; font-weight: 700; }
.exhibit-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center;
  padding: 16px 28px; border-top: 1px solid var(--navy-line); font-size: 0.875rem; color: var(--muted-on-navy);
}

/* ---- What we assess ---- */
.assess-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.workstreams > div { padding: 22px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.workstreams > div:last-child { border-bottom: 1px solid var(--rule); }
.workstreams dt { font-weight: 700; color: var(--navy); font-size: 1.0625rem; }
.workstreams dd { color: var(--ink); font-size: 1rem; }
.workstreams .scope-note { display: block; margin-top: 6px; color: var(--muted-text); font-size: 0.875rem; }
.aside-block + .aside-block { margin-top: 48px; }
.aside-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-text); margin-bottom: 16px; }
.sectors li { padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 500; color: var(--navy); }
.sectors li:last-child { border-bottom: 1px solid var(--rule); }
.boundary { border: 1px solid var(--rule); border-left: 3px solid var(--navy); padding: 22px 24px; background: var(--white); }
.boundary p { font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.boundary p + p { margin-top: 12px; }

/* ---- Method ---- */
.method-intro { max-width: 62ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--rule); }
.split > div { padding: 32px 40px 8px 0; }
.split > div + div { padding: 32px 0 8px 40px; border-left: 1px solid var(--rule); }
.split h3 { font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-text); margin-bottom: 18px; }
.split li { padding: 10px 0 10px 22px; position: relative; font-size: 1rem; }
.split li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 7px; border: 1px solid var(--navy); transform: rotate(45deg); }
.split .judgement li::before { background: var(--navy); }
.method-close { margin-top: 32px; font-family: var(--serif); font-size: 1.375rem; color: var(--navy); }

/* ---- Confidential band ---- */
.confidential { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.confidential p { max-width: 60ch; }
.notice { font-weight: 700; color: var(--navy); border-left: 3px solid var(--gold); padding-left: 16px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.profile { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: start; padding: 36px; background: var(--white); border: 1px solid var(--rule); }
.monogram {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-lt); font-family: var(--serif); font-size: 2rem; font-weight: 600;
  border: 1px solid var(--gold);
}
.profile-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.profile h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.profile .role { font-size: 0.8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-text); margin: 6px 0 14px; }
.profile p { font-size: 1rem; margin: 0; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.contact-note { font-size: 0.9375rem; color: var(--muted-text); margin-top: 24px; }
.email-fallback { margin-top: 28px; font-size: 1rem; }
.email-fallback a { font-weight: 700; color: var(--navy); }
.form-panel { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted-text); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid #BDB9AE; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.form-warning {
  grid-column: 1 / -1; font-size: 0.9375rem; background: var(--paper-2); border-left: 3px solid var(--sev-high);
  padding: 14px 16px; margin: 0; color: var(--ink);
}
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 4px; }
.form-help { font-size: 0.875rem; color: var(--muted-text); margin: 0; max-width: 46ch; }
.form-status { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--green); font-weight: 500; min-height: 1.4em; margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: var(--muted-on-navy); padding: 72px 0 40px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 48px; }
.site-footer .brand { color: var(--white); }
.footer-tagline { margin-top: 16px; font-style: italic; color: var(--gold-lt); }
.footer-title { font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-links li { padding: 4px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-lt); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 0.875rem; }
.entity-line { max-width: 70ch; }

/* ---- Legal pages & 404 ---- */
.page-hero { padding: 160px 0 64px; }
.legal { padding: 72px 0 120px; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin: 48px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 1.0625rem; }
.legal-body ul { list-style: none; margin: 0 0 1em; }
.legal-body ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.legal-body a { color: var(--navy); font-weight: 700; }
.legal-meta { color: var(--muted-on-navy); margin-top: 18px; font-size: 0.9375rem; }
.not-found { min-height: 100vh; display: flex; flex-direction: column; }
.not-found main { flex: 1; display: flex; align-items: center; padding: 140px 0 96px; }
.code-404 { font-family: var(--mono); color: var(--gold-lt); letter-spacing: .2em; margin-bottom: 18px; display: block; }

/* ---- Motion (only when JS adds .motion and the user has not asked for reduced motion) ---- */
.motion .rail:not(.in-view)::before { transform: scaleX(0); }
.motion .chain:not(.in-view)::before { transform: scaleY(0); }
.motion .trace:not(.in-view) .trace-step::after { transform: scaleY(0); }
.motion .trace.in-view .trace-step:nth-child(2)::after { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root { --section: 104px; }
  .hero-grid, .section-head, .exhibit-head, .assess-grid, .about-grid, .contact-grid, .confidential { grid-template-columns: 1fr; gap: 40px; }
  .rail { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .rail::before { display: none; }
  .rail li { border-top: 1px solid var(--gold); padding-top: 26px; }
  .rail li::before { top: -7px; }
  .rail { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--navy); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 24px; }
  .site-nav.is-open { display: flex; }
  .site-nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .site-nav .btn--nav { margin-top: 18px; background: var(--navy) !important; color: var(--white) !important; border-color: var(--navy) !important; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .hero-chain { display: none; }
  .exhibit-body { grid-template-columns: 1fr; }
  .assessment { border-left: 0; border-top: 1px solid var(--navy-line); }
  .workstreams > div { grid-template-columns: 1fr; gap: 6px; }
  .split { grid-template-columns: 1fr; }
  .split > div, .split > div + div { padding: 28px 0 8px; border-left: 0; }
  .split > div + div { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 72px; }
  body { font-size: 1.0625rem; }
  .section--tight { padding: 64px 0; }
  .hero { padding: 128px 0 72px; }
  .hero .lead { font-size: 1.125rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .text-link { align-self: flex-start; }
  .proof { flex-direction: column; margin-top: 44px; }
  .section-head, .exhibit-head { margin-bottom: 40px; }
  .rail { grid-template-columns: 1fr; row-gap: 0; }
  .rail li { border-top: 0; border-left: 1px solid var(--gold); padding: 0 0 32px 28px; }
  .rail li:last-child { padding-bottom: 0; }
  .rail li::before { top: 4px; left: -7px; }
  .exhibit-bar, .exhibit-foot { padding: 14px 20px; }
  .trace, .assessment { padding: 24px 20px 28px; }
  .trace-quote { font-size: 1.1875rem; }
  .profile { grid-template-columns: 1fr; padding: 28px; gap: 18px; }
  .form-panel { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-word { font-size: 0.9375rem; }
}
@media print {
  .site-header, .menu-toggle, .hero-actions, #contact form { display: none !important; }
  .on-navy, .site-footer { background: #fff !important; color: #000 !important; }
}

/* 404 page */
.not-found main { background: var(--navy); color: var(--white); }
.not-found main > section { width: 100%; }

/* Legal pages: align the text column with the page heading */
.legal .wrap.legal-body { max-width: var(--wrap); }
.legal-body > * { max-width: 72ch; }

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Official brand assets (logo, Lens mark, process icons)
   Images stay hidden until the official file has actually loaded (site.js
   adds the classes below). Until then the DELVARA wordmark is shown, so a
   missing file never appears as a broken image.
   ========================================================================== */
.brand-logo { display: none; height: 30px; width: auto; max-width: 180px; }
.site-header:not(.is-solid) .brand.has-light .brand-logo--light,
.site-header.is-solid .brand.has-dark .brand-logo--dark,
.site-footer .brand.has-light .brand-logo--light { display: block; }
.site-header:not(.is-solid) .brand.has-light .brand-word,
.site-header.is-solid .brand.has-dark .brand-word,
.site-footer .brand.has-light .brand-word { display: none; }
.site-footer .brand-logo { height: 34px; }

.footer-signature { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.footer-signature .footer-tagline { margin-top: 0; }
.lens-signature { display: none; height: 22px; width: auto; opacity: .9; }
.lens-signature.is-loaded { display: block; }

.process-strip {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 20px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}

.stage-icon { display: none; height: 28px; width: auto; margin-bottom: 12px; }
.stage-icon.is-loaded { display: block; }

/* Brand presence: Lens green on light-section eyebrows (6.2:1 on Paper, WCAG AA) */
.section:not(.on-navy) .eyebrow, .page-hero:not(.on-navy) .eyebrow { color: var(--green); }

/* Large, quiet Lens watermark in the hero (as on the Delvara document covers).
   Appears only when /assets/brand/delvara-lens.svg is present. */
.hero { overflow: hidden; }
.hero-lens { display: none; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(62vw, 760px); height: auto; opacity: .07; pointer-events: none; z-index: 0; }
.hero-lens.is-loaded { display: block; }
.hero .hero-grid { position: relative; z-index: 1; }
@media (max-width: 640px) { .hero-lens { width: 120vw; right: -40%; opacity: .05; } }

/* Official Delvara lockup: Lens mark + DELVARA wordmark in Playfair Display, uppercase, letter-spaced */
.brand-mark { height: 32px; width: 32px; flex: none; }
.brand-word { font-family: var(--serif); font-weight: 700; letter-spacing: .22em; font-size: 1.125rem; }
.site-footer .brand-mark { height: 38px; width: 38px; }
.site-footer .brand-word { font-size: 1.25rem; }
