/* =========================================================
   Direction D chrome, shared by every marketing page (2026-12-01).
   Tokens, buttons, the sticky header (shared/_d_header) and the footer
   (shared/_d_footer). Loaded by both home_field_office and cinematic_page,
   before each page's own sheet, so a page sheet can still override.
   ========================================================= */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 500; font-display: swap; src: url("/fonts/zilla-slab-500.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap; src: url("/fonts/zilla-slab-600.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url("/fonts/zilla-slab-700.woff2") format("woff2"); }

:root {
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --bg: #FFFFFF; --surface: #F6F5F2; --surface-2: #ECEAE4;
  --ink: #14181C; --muted: #5B6570; --on-dark: #ECEAE4; --on-dark-2: #9AA6B2;
  --accent: #F0B100; --accent-hover: #FFBE1A; --accent-text: #8A6508; --accent-deep: #E9AC00;
  --ink-hover: #2B333C; --ink-raised: #1D2328;
  --step-xs: 0.875rem;
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --step-2: clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem);
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --max: 1360px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --chapter: clamp(3.5rem, 2rem + 4vw, 6rem);
  --h-chapter: clamp(2.5rem, 1rem + 4.6vw, 5.75rem);
  --radius: 4px;
}

/* ---------- Buttons: one shape ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.5rem; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--ink);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, transform .12s ease, color .18s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
.btn-gold { background: var(--accent); color: var(--ink); }
.btn-gold:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-quiet:hover { background: #E0DDD5; }
.btn-on-dark { background: var(--bg); color: var(--ink); }
.btn-on-dark:hover { background: var(--accent); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.link-arrow span { transition: transform .18s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: var(--surface);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  padding: 14px var(--edge); view-transition-name: site-header;
  font-family: var(--font-body); color: var(--ink);
}
.nav a { color: inherit; }
.nav-logo { display: inline-flex; }
.nav-logo img { width: 140px; height: auto; display: block; }
.nav-links { display: flex; gap: 1.75rem; justify-content: center; }
.nav-links a, .nav-signin { text-decoration: none; font-weight: 500; font-size: .9375rem; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.nav-links a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }
.nav-links a:hover, .nav-signin:hover { color: var(--accent-text); }
.nav-end { display: flex; align-items: center; gap: 1.25rem; }
.nav-end .btn { white-space: nowrap; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .9rem; font-weight: 600; border-radius: var(--radius); background: var(--surface-2); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-sheet { position: absolute; right: 0; top: calc(100% + 8px); width: min(80vw, 280px); background: var(--bg); padding: .5rem; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(20,24,28,.18); display: grid; z-index: 41; }
.nav-sheet a { min-height: 48px; display: flex; align-items: center; padding: 0 .9rem; text-decoration: none; font-weight: 600; border-radius: var(--radius); }
.nav-sheet a:hover, .nav-sheet a[aria-current="page"] { background: var(--surface); }
.nav-quick { display: none; }
.nav-quick a[aria-current="page"] { color: var(--accent-text); }
.nav a:focus-visible, .nav summary:focus-visible, .dfoot a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
html { scroll-padding-top: 84px; }

@media (max-width: 1000px) {
  .nav { grid-template-columns: auto auto; gap: 1rem; row-gap: .25rem; padding-bottom: 0; }
  .nav-links, .nav-signin { display: none; }
  .nav-menu { display: block; }
  .nav-end { justify-self: end; gap: .5rem; }
  .nav-quick {
    grid-column: 1 / -1; display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--edge) * -1); padding: 0 var(--edge); border-top: 1px solid rgba(20,24,28,.08);
  }
  .nav-quick::-webkit-scrollbar { display: none; }
  .nav-quick a { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
  .nav-quick a:hover { color: var(--accent-text); }
  .nav-sheet { position: fixed; top: 64px; left: auto; right: var(--gutter); width: min(calc(100vw - 2 * var(--gutter)), 320px); }
  html { scroll-padding-top: 112px; }
}
@media (max-width: 760px) { .nav-sheet { left: var(--gutter); width: auto; } }
/* Large text (WCAG 1.4.4, 1.4.10): at 200% on a phone, logo, Menu and the button
   no longer fit one row. The end group wraps under the logo instead of pushing
   the page sideways, and the quick-links row scrolls inside the header. */
@media (max-width: 1000px) {
  .nav { grid-template-columns: auto minmax(0, 1fr); }
  .nav-end { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
  .nav-quick { min-width: 0; }
}

/* ---------- Footer ---------- */
.dfoot { background: var(--surface); color: var(--muted); font-family: var(--font-body); padding: var(--chapter) var(--edge) 2rem; border-top: 4px solid var(--accent); }
.dfoot a { color: var(--ink); text-decoration: none; }
.dfoot a:hover { color: var(--accent-text); text-decoration: underline; }
.dfoot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 2.5rem var(--gutter); }
.dfoot-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.dfoot-brand img { width: 150px; height: auto; display: block; }
.dfoot-brand p { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.dfoot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.dfoot-cols h2 { font: 600 .8125rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.dfoot-cols a { display: flex; align-items: center; min-height: 40px; font-size: .9375rem; }
.dfoot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(20,24,28,.12); font-size: var(--step-xs); }
.dfoot-bot span:last-child { display: flex; gap: 1.25rem; }
.dfoot-bot a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1000px) { .dfoot-top { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .dfoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
