/* ==========================================================================
   The Orion Companies — design system
   Built from docs/ART_DIRECTION.md (Muse) — Direction A "Night Sky / Orion"
   active by default; palette swap = change the six token lines below.

   Palette: deep navy #0B1220 · starlight gold #F3C969 · steel blue #7FB4FF
   Fonts: IBM Plex Serif (headings) · DM Sans (body) · DM Mono (proof)
   Self-hosted WOFF2 (latin subset) in assets/fonts/ — zero external requests.
   Accessible: WCAG AA on all text pairs, skip link, semantic landmarks,
   keyboard nav, prefers-reduced-motion respected as law.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibmplexserif-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibmplexserif-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibmplexserif-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dmsans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dmmono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dmmono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Direction A active by default until the founder picks. Swap these six
     value lines to flip the whole palette (see docs/ART_DIRECTION.md §3). */
  --bg: #0B1220;
  --surface: #101B2E;
  --surface-2: #16233C;
  --text: #F4F1EA;
  --text-muted: #C4CDE0;
  --accent: #F3C969;
  --accent-strong: #E0A93C;
  --accent-blue: #7FB4FF;
  --border: rgba(243, 201, 105, 0.22);
  --btn-ink: #0B1220;

  --font-display: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  --glow: 0 0 0 1px var(--border), 0 14px 44px rgba(243, 201, 105, 0.05);
  --maxw: 1120px;
  --focus: var(--accent);

  /* Larder warm micro palette (products split, Larder card only) */
  --larder-bg: #FAF6EE;
  --larder-paper: #FFFFFF;
  --larder-cream: #F5EBDC;
  --larder-terracotta: #C66B3D;
  --larder-ink: #3A2E2A;
  --larder-ink-soft: #6B4A3A;
  --larder-line: #E7D9C3;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.9vw, 3.9rem); font-weight: 500; letter-spacing: 0.015em; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 500; line-height: 1.12; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; color: inherit; }
em { font-style: italic; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: middle; }

/* Proof language: numbers, prices, model names, benchmarks in mono. */
.mono, .price, .num, .stat-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--bg { background: var(--bg); }

/* ---------- Eyebrow / lede / section heads ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  display: block;
}
.lede { font-size: 1.18rem; line-height: 1.6; color: var(--text-muted); max-width: 46em; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Header / nav (ART_DIRECTION §7.5) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; width: 100%; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}
.nav-wrap { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--surface-2); }
.nav-cta-li { margin-left: 10px; }
.nav-cta-li .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform 0.15s ease, opacity 0.15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav--products { border-bottom: 1px solid var(--border); }

/* ---------- Buttons (ART_DIRECTION §7.2) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  line-height: 1.2;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--btn-ink) !important; }
.btn--primary:hover { background: var(--accent-strong); box-shadow: var(--glow); }
.btn--primary:focus-visible { outline-color: var(--btn-ink); }
.btn--secondary { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--accent); }
.btn--small { padding: 10px 18px; font-size: 0.95rem; border-radius: 10px; }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }

/* Ghost / inline link */
.link-ghost { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link-ghost:hover { color: var(--accent-strong); }

/* Price chip: the published rate, first class, never buried (ART_DIRECTION §6) */
.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  line-height: 1.1;
  box-shadow: var(--glow);
}
.price-chip .price-freq { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Cards (ART_DIRECTION §7.3) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--glow); }
.card h3 { margin-bottom: 0.5em; font-size: 1.24rem; }
.card p { color: var(--text-muted); font-size: 0.99rem; }
.icon-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 16px;
}
.icon-chip svg { width: 22px; height: 22px; }
.card .mono-proof {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* Feature grid (ART_DIRECTION §7.8) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Hero (ART_DIRECTION §6) ---------- */
.hero { padding: 88px 0 76px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 0.35em; }
.hero .subhead { font-size: 1.18rem; color: var(--text-muted); line-height: 1.6; max-width: 30em; margin-bottom: 1.5em; }
.hero .tagline { font-size: 1.28rem; color: var(--accent); font-weight: 500; margin-bottom: 0.7em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4em 0 1.2em; }
.hero-note { font-size: 0.92rem; color: var(--text-muted); max-width: 34em; }

.hero-proof { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; gap: 10px; }
.hero-proof li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.98rem; }
.hero-proof .p-ic {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--accent);
}
.hero-proof svg { width: 20px; height: 20px; }

/* hero art */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* staggered hero reveal (fades + translates only, <300ms, off under reduced motion) */
.hr-fade { opacity: 0; transform: translateY(12px); animation: hero-in 0.26s ease forwards; }
.hr-fade--1 { animation-delay: 0.05s; }
.hr-fade--2 { animation-delay: 0.13s; }
.hr-fade--3 { animation-delay: 0.21s; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
.hero-const { animation: drift 30s linear infinite; transform-origin: 50% 50%; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6px, 5px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ---------- Home-specific ---------- */
.who-for { max-width: 46em; }
.who-for h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.3em; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise-num { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5em; }

/* expertise chips */
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.chip h3 { font-size: 1.08rem; margin-bottom: 0.35em; }
.chip p { font-size: 0.94rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- Process / ledger (services) ---------- */
.vert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.vert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.vert h3 { font-size: 1.12rem; margin-bottom: 0.35em; }
.vert p { font-size: 0.96rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.ledger {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 10px;
  font-family: var(--font-mono);
  box-shadow: var(--glow);
}
.ledger h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.ledger-row:first-of-type { border-top: 0; }
.ledger-row b { color: var(--text); font-weight: 500; white-space: nowrap; }
.ledger-row .ln { color: var(--accent-strong); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step .icon-chip { margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.step p { font-size: 0.97rem; color: var(--text-muted); margin: 0; }

/* ---------- Products split hero / cards ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split .card { display: flex; flex-direction: column; padding: 30px; }
.split .card h2 { font-size: 1.7rem; }
.card--tuner { border-color: rgba(127, 180, 255, 0.35); }
.card--tuner .icon-chip { color: var(--accent-blue); }
.card--tuner .mono-proof { color: var(--accent-blue); }
.card--larder { background: var(--larder-bg); border-color: var(--larder-line); color: var(--larder-ink); }
.card--larder h2, .card--larder h3 { color: var(--larder-ink); }
.card--larder p { color: var(--larder-ink-soft); }
.card--larder .icon-chip { background: var(--larder-cream); color: var(--larder-terracotta); }
.card--larder .mono-proof { color: var(--larder-terracotta); }
.card--larder .btn--primary { background: var(--larder-terracotta); color: #FFFFFF !important; }
.card--larder .btn--primary:hover { background: var(--larder-terracotta); }

.product-proof { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.product-proof li { padding-left: 22px; position: relative; color: var(--text-muted); font-size: 0.99rem; }
.card--tuner .product-proof li { color: var(--text-muted); }
.card--larder .product-proof li { color: var(--larder-ink-soft); }
.product-proof li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.card--larder .product-proof li::before { color: var(--larder-terracotta); }

.building-strip { max-width: 46em; }
.building-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.building-strip li { display: flex; align-items: baseline; gap: 12px; }
.building-strip li .item { font-weight: 600; color: var(--text); }
.building-strip li .note { color: var(--text-muted); font-size: 0.95rem; }

/* Engineering trust stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.stat .stat-num { font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--accent); line-height: 1.1; display: block; margin-bottom: 6px; }
.stat .stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- CTA band (ART_DIRECTION §7.7) ---------- */
.cta-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 76px 0; text-align: center; }
.cta-band h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.cta-band .lede { margin-left: auto; margin-right: auto; margin-bottom: 1.6em; max-width: 40em; }
.cta-band .btn-row { justify-content: center; }
.cta-address { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); margin-top: 18px; }
.cta-address a { color: var(--accent); }
.contact-email {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  color: var(--accent);
  line-height: 1.15;
  word-break: break-all;
  display: inline-block;
}

/* ---------- FAQ (details) ---------- */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
  color: var(--text);
  font-family: var(--font-display);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
}
details.faq[open] summary::after { content: "\2013"; }
details.faq .faq-body { padding: 0 20px 20px; color: var(--text-muted); font-size: 1rem; }
details.faq .faq-body p { margin-bottom: 0.8em; }
details.faq .faq-body p:last-child { margin-bottom: 0; }
details.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius-sm); }

/* ---------- The "Building now" badge (ART_DIRECTION §7.9) ---------- */
/* Hidden until the data attribute is present. Flip to shipped: remove data-status. */
.badge-building-now { display: none; }
.badge-building-now[data-status="building-now"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-building-now[data-status="building-now"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  flex: 0 0 auto;
}

/* ---------- Product status tags (about / products) ---------- */
.status-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  padding: 4px 10px;
  border: 1px solid rgba(127, 180, 255, 0.35);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.status-early {
  color: var(--text-muted);
  border-color: var(--border);
}
.status-line { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin: 0 0 1.1em; }

/* ---------- 404 ---------- */
.p404 { text-align: center; padding: 120px 0 140px; }
.p404 .p404-code { font-family: var(--font-mono); color: var(--accent); font-size: clamp(3rem, 9vw, 6rem); font-weight: 500; line-height: 1; margin-bottom: 0.2em; }
.p404 h1 { margin-bottom: 0.4em; }
.p404 .lede { margin: 0 auto 1.6em; }
.p404 .p404-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-bottom: 2em; }

/* ---------- Stub / foundation note ---------- */
.foundation-note {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 46em;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.foundation-note code { font-family: var(--font-mono); color: var(--accent); }

/* ---------- Footer (ART_DIRECTION §7.6) ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 0.92rem; color: var(--text-muted); }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1fr; gap: 30px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-name { font-size: 1.22rem; }
.footer-tagline { font-family: var(--font-display); font-weight: 500; color: var(--text); font-size: 1.05rem; margin: 0 0 6px; }
.footer-oneliner { margin: 0 0 18px; font-size: 0.9rem; }
.footer-col h2 { color: var(--text); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col li { font-size: 0.94rem; }
.footer-mail { font-family: var(--font-mono); font-size: 0.92rem; }
.footer-legal { border-top: 1px solid rgba(243, 201, 105, 0.18); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.footer-legal .legal-note { font-size: 0.82rem; opacity: 0.7; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.maxw-narrow { max-width: 720px; }
.maxw-none { max-width: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--btn-ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Product local subnav + breadcrumb (product subsites, STRATEGY §3.3/§3.4) ---------- */
.nav--products { border-bottom: 1px solid var(--border); background: rgba(16, 27, 46, 0.72); }
.product-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 12px 0; }
.product-nav-back {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-right: auto;
}
.product-nav-back:hover { color: var(--accent); }
.product-nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.product-nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-muted);
}
.product-nav-links a:hover { color: var(--text); background: var(--surface-2); }
.product-nav-links a[aria-current="page"] { color: var(--accent); background: var(--surface-2); }

.crumb { margin: 26px 0 0; }
.crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.crumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumb a { color: var(--text-muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb [aria-current="page"] { color: var(--accent); }

/* ---------- Feature item (tuner features page) ---------- */
.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-item h2 { font-size: 1.22rem; font-weight: 600; margin-bottom: 0.45em; }
.feature-item h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.45em; }
.feature-item p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 0.6em; }
.feature-item p:last-child { margin-bottom: 0; }
.feature-item .why {
  border-top: 1px solid var(--border);
  padding-top: 13px;
  margin-top: 15px;
  font-size: 0.95rem;
}
.feature-item .why strong { color: var(--accent); font-weight: 600; }

/* Larder subsite: own-data footnote line under each feature pillar */
.own-data {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 46em;
}

/* Larder pricing cards: annual is the lead, monthly is the convenience */
.card--annual { border-color: var(--accent); box-shadow: var(--glow); }
.card--annual .status-tag { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.card--monthly { border-color: var(--border); }
.card--monthly .status-tag { background: var(--surface-2); }

/* Larder hero art: warm, rounded product logo on the dark ground */
.hero-art img { width: 100%; height: auto; max-width: 420px; display: block; margin: 0 auto; }

/* ---------- Responsive (ART_DIRECTION §10) ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-wrap { position: absolute; top: 68px; left: 0; right: 0; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 9px; font-size: 1.06rem; }
  .nav-cta-li { margin: 8px 0 0; }
  .nav-cta-li .btn { width: 100%; }
  .brand-name { font-size: 1rem; }
  .hero { padding: 52px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 520px; }
  .promises, .chip-grid, .steps, .split, .stats, .vert-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .feature-grid, .feature-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .price-chip { font-size: 1.25rem; }
  /* status pills must wrap instead of overflowing on narrow viewports (T9 gate: 154px overflow at 390px) */
  .status-tag { white-space: normal; width: 100%; text-align: left; }
}

/* ---------- Founder profile pages (jeromy-sjolseth, cheryl-sjolseth) ---------- */
/* Portrait slot: renders the monogram fallback immediately; when a founder
   photo arrives it replaces the monogram span (see [PHOTO] comment in pages). */
.founder-portrait {
  align-self: center;
  justify-self: center;
  width: min(320px, 80%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-portrait .founder-monogram {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.founder-portrait .founder-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.founder-timeline { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; }
.founder-timeline td { overflow-wrap: anywhere; }
.founder-timeline col.tl-years { width: 16%; }
.founder-timeline col.tl-role { width: 24%; }
.founder-timeline col.tl-employer { width: 24%; }
.founder-timeline col.tl-why { width: 36%; }
.founder-timeline th,
.founder-timeline td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.founder-timeline thead th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 0;
}
.founder-timeline td:nth-child(2) { color: var(--text); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 560px) {
  .founder-portrait { width: min(240px, 70%); }
  .founder-portrait .founder-monogram { font-size: 3.6rem; }
}

/* ---------- Reduced motion (law, ART_DIRECTION §9) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hr-fade { opacity: 1; transform: none; }
  .hero-const { animation: none; }
}
