/* ==========================================================================
   SBO Consulting Group, LLC — production stylesheet (vanilla CSS, no framework)
   Engineering-consulting aesthetic: paper white, graphite ink, structural blue,
   signal-orange accent. Libre Caslon Display + Figtree + DM Mono.
   ========================================================================== */

:root {
  --paper: #f5f3ee;
  --paper-alt: #ece7dc;
  --ink: #14181c;
  --ink-soft: #454c54;
  --ink-faint: #767d84;
  --blue: #1b3358;
  --blue-deep: #0e1e35;
  --blue-tint: #e7ecf2;
  --line: #d9d3c4;
  --line-soft: #e3ded2;
  --accent: #d6572a;
  --white: #ffffff;

  --font-display: 'Libre Caslon Display', 'Iowan Old Style', serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--ink); }
p { margin: 0; }
svg { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.num {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- reveal (bulletproof: CSS-visible by default, JS opts elements
   into the pre-hidden state right before observing — see main.js) ---------- */
.reveal { }
.reveal.js-observe {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.js-observe.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal.js-observe { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Scroll progress "dimension line"
   ========================================================================== */
.dim-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 999;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.brand-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color 0.2s ease;
}
.main-nav a .num { font-size: 11px; color: var(--line); transition: color 0.2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover .num, .main-nav a.active .num { color: var(--accent); }
.main-nav a.active { position: relative; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 5px;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  margin-left: 10px;
  padding: 11px 22px !important;
  background: var(--ink);
  color: var(--paper) !important;
  font-family: var(--font-mono);
  font-size: 12.5px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--blue); color: var(--white) !important; }
.nav-cta .num { display: none; }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  margin-right: 6px;
}
.nav-phone svg { width: 15px; height: 15px; stroke: var(--blue); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: none;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 84px;
  background: var(--paper);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: 30px var(--gutter);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mobile-drawer a .num { font-family: var(--font-mono); font-size: 14px; }
.mobile-drawer .drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: block; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { border-color: rgba(245,243,238,0.4); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn svg { width: 14px; height: 14px; }

/* ==========================================================================
   Hero (asymmetric split — 45/55, not centered eyebrow+headline default)
   ========================================================================== */
.hero {
  padding: 0;
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: calc(100vh - 84px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--gutter);
  gap: 26px;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero-copy h1 em { font-style: italic; color: var(--blue); }
.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-diagram { width: 190px; opacity: 0.85; }

.hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(14,30,53,0.55), rgba(20,24,28,0.25) 55%, rgba(20,24,28,0.05));
  mix-blend-mode: multiply;
}
.hero-geo {
  position: absolute;
  left: 28px; bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(245,243,238,0.92);
  letter-spacing: 0.08em;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-geo::before {
  content: '';
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { height: 52vh; order: -1; }
  .hero-copy { padding: 44px var(--gutter) 56px; }
}

/* ==========================================================================
   Sections / layout rhythm
   ========================================================================== */
section { padding: 108px 0; }
.section-tight { padding: 76px 0; }
.section-alt { background: var(--paper-alt); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .eyebrow { color: #9db4d6; }
.section-ink h2, .section-ink h3 { color: var(--paper); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.section-ink .section-head { border-color: rgba(245,243,238,0.18); }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 14px; }
.section-head .section-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 32ch;
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head .section-note { text-align: left; }
}

/* ==========================================================================
   Credibility strip
   ========================================================================== */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px var(--gutter) 34px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num-big {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--blue);
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  margin-top: 6px;
}
@media (max-width: 820px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ==========================================================================
   Services — asymmetric bento (NOT uniform equal cards)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bento-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.bento-card .num { position: absolute; top: 26px; right: 28px; }
.bento-card h3 { font-size: 21px; line-height: 1.25; max-width: 22ch; }
.bento-card p { color: var(--ink-soft); font-size: 15px; }
.bento-card .tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento-card .tag svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.bento-card:hover .tag svg { transform: translateX(4px); }

.bento .c-wide { grid-column: span 3; }
.bento .c-narrow { grid-column: span 2; }
.bento .c-full { grid-column: span 6; }
.bento .c-photo {
  grid-column: span 3;
  padding: 0;
  overflow: hidden;
  min-height: 220px;
}
.bento .c-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .c-wide, .bento .c-narrow, .bento .c-full, .bento .c-photo { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento .c-wide, .bento .c-narrow, .bento .c-full, .bento .c-photo { grid-column: span 1; }
}

/* ==========================================================================
   Service detail rows (services.html) — alternating image/copy
   ========================================================================== */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: none; padding-top: 0; }
.svc-row.reverse .svc-media { order: 2; }
.svc-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .num-plate {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  letter-spacing: 0.08em;
}
.svc-copy h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.svc-copy p { color: var(--ink-soft); margin-bottom: 20px; }
.svc-list { display: flex; flex-direction: column; gap: 11px; }
.svc-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  align-items: flex-start;
}
.svc-list svg { width: 15px; height: 15px; margin-top: 3px; stroke: var(--accent); flex-shrink: 0; }

@media (max-width: 860px) {
  .svc-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .svc-row.reverse .svc-media { order: 0; }
}

/* ==========================================================================
   Process timeline (approach.html) — hand-built dimension-line SVG connectors
   ========================================================================== */
.timeline { position: relative; padding-left: 6px; }
.tl-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding-bottom: 64px;
  position: relative;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-marker { position: relative; display: flex; flex-direction: column; align-items: center; }
.tl-marker .dot {
  width: 13px; height: 13px;
  border: 2px solid var(--blue);
  background: var(--paper);
  border-radius: 50%;
  z-index: 2;
}
.tl-marker .line { flex: 1; width: 1px; background: var(--line); margin-top: 4px; }
.tl-step:last-child .tl-marker .line { display: none; }
.tl-index { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-bottom: 10px; }
.tl-body h3 { font-size: 24px; margin-bottom: 12px; }
.tl-body p { color: var(--ink-soft); max-width: 62ch; }
.tl-body .tl-deliverables {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-deliverables span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Cards: sectors / markets grid
   ========================================================================== */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector-card {
  background: var(--paper);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sector-card .num { color: var(--blue); }
.sector-card h3 { font-size: 20px; }
.sector-card p { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .sector-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .sector-grid { grid-template-columns: 1fr; } }

.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tags span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ==========================================================================
   About page
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-media .frame-mark {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245,243,238,0.55);
  pointer-events: none;
}
.about-copy p { color: var(--ink-soft); margin-bottom: 20px; font-size: 16.5px; line-height: 1.75; }
.about-copy p:first-of-type:first-letter {
  font-family: var(--font-display);
  font-size: 62px;
  float: left;
  line-height: 0.8;
  padding: 8px 10px 0 0;
  color: var(--blue);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  margin-top: 20px;
}
.value-item { border-top: 2px solid var(--blue); padding-top: 16px; }
.value-item h4 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.value-item p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } .values-grid { grid-template-columns: repeat(2,1fr); } }

.firm-facts {
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
}
.firm-facts .fact { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.firm-facts .fact:last-child { border-bottom: none; padding-bottom: 0; }
.firm-facts .fact .k { font-family: var(--font-mono); color: var(--ink-faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.firm-facts .fact .v { text-align: right; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 26px 0; }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 19px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--ink);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; stroke: var(--blue); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding-top: 16px; color: var(--ink-soft); max-width: 70ch; }
.faq-item.open .faq-a { max-height: 300px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-block { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: none; }
.contact-block .k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 10px; display: block; }
.contact-block .v { font-size: 18px; }
.contact-block a.v:hover { color: var(--blue); }
.map-embed { border: 1px solid var(--line); height: 260px; filter: grayscale(0.4) contrast(1.05); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 14px; }
.form-toast {
  display: none;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--blue);
  background: var(--blue-tint);
  color: var(--blue);
  padding: 16px 18px;
  font-size: 14px;
  margin-top: 20px;
}
.form-toast.show { display: flex; }
.form-toast svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   CTA band (asymmetric ink section, not a generic gradient band)
   ========================================================================== */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 2;
}
.cta-band h2 {
  color: var(--paper);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
}
.cta-band .cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-ruler {
  position: absolute;
  right: -60px; bottom: -40px;
  width: 420px;
  opacity: 0.14;
}
@media (max-width: 860px) {
  .cta-band .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer (asymmetric, not a plain 4-col link grid)
   ========================================================================== */
.site-footer {
  background: var(--blue-deep);
  color: rgba(245,243,238,0.82);
  padding: 88px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,243,238,0.14);
}
.footer-brand .brand-word { color: var(--paper); }
.footer-brand .brand-word small { color: rgba(245,243,238,0.5); }
.footer-brand p { margin-top: 18px; color: rgba(245,243,238,0.6); font-size: 14.5px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.42);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(245,243,238,0.82); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245,243,238,0.42);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; line-height: 1.1; }
.page-header .page-lede { margin-top: 20px; font-size: 17.5px; color: var(--ink-soft); max-width: 62ch; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--blue); }

/* ==========================================================================
   404
   ========================================================================== */
.error-page {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}
.error-page .container { text-align: left; }
.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--blue);
  margin-bottom: 20px;
}
.error-page h1 { font-size: clamp(40px, 7vw, 84px); }

/* Legal / privacy content */
.legal-body h2 { font-size: 22px; margin: 44px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: 14px; font-size: 15.5px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-bottom: 40px; }
