/*
Theme Name: BASE Tactical
Theme URI: https://basetactical.com/
Author: BASE Tactical
Description: Custom theme for basetactical.com, built from the approved 2026 redesign. A light sibling of the BT Data Base site: white pages, black header and footer, red accents, Inter type.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: base-tactical
*/

/* Layout: light sibling of the BT Data Base system — white ground and black ink,
   same hard-edged 1240px grid, Inter display, red mono eyebrows and red accent.
   Black is kept for the hero, founder portrait and footer as the family tie. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f4f3;
  --panel: #fafaf9;
  --border: #e2e0de;
  --fg: #0b0b0b;
  --muted: #55585c;
  --accent: #ec1c24;
  --accent-hover: #c4141b;
  --accent-text: #cf1219;
  --on-accent: #ffffff;
  --night: #0b0b0b;
  --night-line: #262626;
  --on-night: #ffffff;
  --on-night-muted: #b9bbbe;
  --accent-on-night: #ff4a50;
  --glow: rgba(236, 28, 36, 0.16);
  --glow-soft: rgba(236, 28, 36, 0.06);
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* labels use Inter too — one typeface site-wide */
  --wrap: 1240px;
  --header-h: 92px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 520px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* type */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 18px;
}
.eyebrow, .hero-tags, .case-type, .svc .tag, .feat .k, .def dt small, .info dt, .timeline .yr, .stat-label, .textlink, .chip, .sig span, form.msg label, .ledger th { font-weight: 700; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--accent); flex-shrink: 0; }
.h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.02; margin: 0; text-wrap: balance;
}
.h-xl { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem); }
.h-lg { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
.h-md { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.08; }
.h-sm { font-size: 1.15rem; letter-spacing: -0.005em; line-height: 1.2; }
.red { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0; }
.prose { color: var(--muted); max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--fg); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 17px 32px; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn .arr { font-family: var(--mono); font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.textlink {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg); text-decoration: none; display: inline-flex; gap: 10px; align-items: center;
}
.textlink:hover { color: var(--accent-text); }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--night); color: var(--on-night);
  border-bottom: 1px solid var(--night-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 68px; width: auto; }
.logo-mark {
  display: grid; width: 46px; height: 46px; background: var(--fg); color: var(--bg);
  place-content: center; text-align: center; font-weight: 900; font-size: 14px; line-height: 1; letter-spacing: -.01em;
}
.logo-mark span { display: block; margin-top: 3px; background: var(--accent); color: var(--on-accent); font-size: 6.5px; letter-spacing: .08em; padding: 2px 3px; }
.logo-word { font-weight: 900; font-size: 19px; letter-spacing: -.01em; text-transform: uppercase; line-height: 1; }
.logo-word small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--on-night); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; white-space: nowrap; }
.nav a:hover { color: var(--accent-on-night); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-cta { padding: 13px 22px; font-size: 13px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--night-line); color: var(--on-night); width: 46px; height: 46px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
@media (max-width: 1140px) and (min-width: 881px) {
  .site-header .wrap { gap: 20px; }
  .nav { gap: 14px; }
  .nav a { font-size: 12px; letter-spacing: .04em; }
  .nav .nav-cta { padding: 11px 16px; font-size: 12px; }
}
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--night-line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--night-line); font-size: 16px; }
  .nav a[aria-current="page"] { color: var(--accent-on-night); border-bottom-color: var(--night-line); }
  .nav .nav-cta { margin-top: 18px; justify-content: center; border-bottom: 0; }
}

/* sections */
.band { padding-block: clamp(48px, 5.5vw, 80px); position: relative; }
.band.alt { background: var(--surface); }
.band.tight { padding-block: clamp(36px, 4vw, 52px); }
.band + .band:not(.alt) { border-top: 1px solid var(--border); }
.glow-top { background-image: radial-gradient(ellipse 95% 58% at 50% 0%, var(--glow) 0%, var(--glow-soft) 38%, transparent 72%); }
.glow-bottom { background-image: radial-gradient(ellipse 95% 58% at 50% 100%, var(--glow) 0%, var(--glow-soft) 38%, transparent 72%); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 3vw, 40px); max-width: 860px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 40%; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--night) 0%, rgba(11,11,11,.72) 45%, rgba(11,11,11,.25) 100%),
  radial-gradient(ellipse 80% 70% at 15% 110%, rgba(236,28,36,.42) 0%, transparent 65%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(60px, 8vw, 104px) clamp(48px, 6vw, 76px); }
.hero .h-xl { max-width: 15ch; margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; color: var(--on-night-muted); }
.hero .btn-ghost { border-color: var(--on-night); color: var(--on-night); }
.hero .btn-ghost:hover { background: var(--on-night); color: var(--night); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-night); }
.hero-tags li + li::before { content: "·"; margin-right: 22px; color: var(--on-night-muted); }
.page-hero { border-top: 4px solid var(--accent); }

.page-hero { border-bottom: 1px solid var(--border); }
.page-hero .wrap { padding-block: clamp(48px, 6vw, 80px) clamp(36px, 4.5vw, 56px); display: grid; gap: 18px; }
.page-hero .h-xl { max-width: 18ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.28); border: 1px solid var(--accent); color: var(--on-accent); }
.stat { background: var(--accent); }
.stat { padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 10px; align-content: start; }
.stat-num { font-weight: 900; font-size: clamp(3rem, 2rem + 3.4vw, 5rem); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-num .u { color: var(--night); }
.stat-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-accent); font-weight: 600; }
.stat p { margin: 0; color: rgba(255,255,255,.88); font-size: 15px; }
.stats.n1 { --n: 1; } .stats.n2 { --n: 2; } .stats.n3 { --n: 3; } .stats.n4 { --n: 4; }
@media (max-width: 1000px) { .stats.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stats, .stats.n4 { grid-template-columns: 1fr; } }

/* service rows */
.services { border-top: 3px solid var(--accent); }
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: clamp(20px, 4vw, 64px); align-items: start;
  padding-block: clamp(22px, 2.6vw, 32px); border-bottom: 1px solid var(--border); text-decoration: none; transition: background .25s; }
.svc:hover { background: linear-gradient(90deg, rgba(236,28,36,.08), transparent 60%); }
.svc:hover .h-md { color: var(--accent); }
.svc .h-md { transition: color .25s; }
.svc p { margin: 0; color: var(--muted); }
.svc .go { font-family: var(--mono); font-size: 22px; color: var(--accent-text); padding-top: 4px; }
.svc .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); display: block; margin-bottom: 12px; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 14px; } .svc .go { display: none; } }

/* case cards */
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.cases.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case { background: var(--bg); text-decoration: none; display: grid; grid-template-rows: auto 1fr; transition: background .25s, box-shadow .25s; box-shadow: inset 0 -3px 0 transparent; }
.case:hover { box-shadow: inset 0 -3px 0 var(--accent); }
.case:hover { background: var(--surface); }
.case-img { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--surface); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover .case-img img { transform: scale(1.03); }
.case-body { padding: 22px 22px 26px; display: grid; gap: 10px; align-content: start; }
.case-type { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.case-client { font-weight: 800; font-size: 17px; line-height: 1.25; text-transform: uppercase; letter-spacing: -.005em; }
.case-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
@media (max-width: 1080px) { .cases, .cases.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cases, .cases.three { grid-template-columns: 1fr; } }

/* case study list (stories page) */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(26px, 3vw, 38px); border-bottom: 1px solid var(--border); align-items: start; }
.story:first-child { border-top: 1px solid var(--border); }
.story > * { min-width: 0; }
.story .case-img { aspect-ratio: 16 / 10; }
.story-body { display: grid; gap: 14px; align-content: start; }
.story-body p { margin: 0; color: var(--muted); max-width: 64ch; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: none; color: var(--muted); border: 1px solid var(--border); padding: 10px 14px; cursor: pointer; }
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }


/* case study detail */
.cs-hero { border-top: 4px solid var(--accent); }
.cs-hero .wrap { padding-block: clamp(32px, 4vw, 52px) clamp(28px, 3.5vw, 44px); display: grid; gap: 16px; }
.cs-hero .h-xl { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.25rem); max-width: 20ch; }
.cs-back { margin-bottom: 8px; }
.cs-photo { aspect-ratio: 21 / 9; max-width: 100%; overflow: hidden; background: var(--surface); border-bottom: 4px solid var(--accent); }
.cs-photo img { width: 100%; height: 100%; object-fit: cover; }
.cs-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.cs-body > * { min-width: 0; }
.cs-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 0; }
.cs-aside .checks li { font-size: 15px; }
.cs-aside-cta { margin-top: 24px; justify-self: start; }
.cs-intro p { margin: 0 0 1.1em; color: var(--muted); max-width: 68ch; font-size: 17px; }
.cs-intro p:first-child { color: var(--fg); font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; font-weight: 500; }
.cs-phases-label { margin-top: 28px; }
.phases { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--accent); }
.phase { padding-block: 22px; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.phase-n { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.phase p { margin: 0; color: var(--muted); max-width: 68ch; }
.cs-quote { margin: 32px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 600; line-height: 1.45; max-width: 60ch; }
.cs-more-head { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.story > .case-img { display: block; }
@media (max-width: 900px) { .cs-body { grid-template-columns: 1fr; } .cs-aside { position: static; order: 2; } .cs-photo { aspect-ratio: 16 / 9; } }

/* founder */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1px solid var(--border); border-bottom: 4px solid var(--accent); background: var(--panel); }
.founder > * { min-width: 0; }
.founder-img { background: var(--night); aspect-ratio: 851 / 885; max-width: 100%; }
.founder-img img { width: 100%; height: 100%; object-fit: cover; }
.founder-body { padding: clamp(24px, 3.2vw, 48px); display: grid; gap: 20px; align-content: center; border-left: 1px solid var(--border); }
.founder blockquote { margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); line-height: 1.5; font-weight: 500; letter-spacing: -.005em; }
.founder blockquote::before { content: "“"; display: block; font-weight: 900; font-size: 4.5rem; line-height: .6; color: var(--accent); margin-bottom: 14px; }
.sig { display: grid; gap: 4px; }
.sig b { font-weight: 900; text-transform: uppercase; font-size: 18px; }
.sig span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder-body { border-left: 0; border-top: 1px solid var(--border); } .founder-img { aspect-ratio: 1 / 1; } }

/* feature grid */
.grid-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid-feat.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat { background: var(--bg); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; }
.band.alt .feat { background: var(--surface); }
.feat p { margin: 0; color: var(--muted); }
.feat { border-top: 3px solid var(--accent); }
.feat .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.feat.wide { grid-column: span 2; }
@media (max-width: 900px) { .grid-feat, .grid-feat.two { grid-template-columns: 1fr; } .feat.wide { grid-column: auto; } }

/* definition list (FEMA opportunities) */
.defs { border-top: 3px solid var(--accent); margin: 0; }
.def { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 40px); padding-block: 18px; border-bottom: 1px solid var(--border); }
.def dt { font-weight: 800; text-transform: uppercase; font-size: 17px; letter-spacing: -.005em; }
.def dt small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; color: var(--accent-text); margin-bottom: 6px; }
.def dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .def { grid-template-columns: 1fr; gap: 8px; } }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 3px solid var(--accent); }
.checks li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--border); position: relative; color: var(--fg); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 2px; background: var(--accent); }

/* outcomes ledger */
.ledger-wrap { overflow-x: auto; border: 1px solid var(--border); border-top: 3px solid var(--accent); background: var(--panel); }
.ledger { width: 100%; border-collapse: collapse; min-width: 640px; }
.ledger th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.ledger td { padding: 16px 22px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); font-size: 15px; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.loss { color: var(--fg); font-weight: 700; text-transform: uppercase; font-size: 15px; width: 30%; }
.ledger td.amt { text-align: right; font-weight: 900; font-size: 22px; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.ledger td.amt small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .1em; color: var(--accent-text); text-transform: uppercase; }
.ledger th:last-child { text-align: right; }

/* pillars (wet building) */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pillar { border-top: 3px solid var(--accent) !important; background: var(--bg); padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 10px; align-content: start; border-top: 3px solid transparent; transition: border-color .25s; }
.pillar:hover { border-top-color: var(--accent); }
.pillar p { margin: 0; color: var(--muted); }
.pillar.wide { grid-column: span 2; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } .pillar.wide { grid-column: auto; } }

/* timeline (about) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--accent); display: grid; gap: 22px; }
.timeline li { padding-left: 28px; position: relative; display: grid; gap: 8px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--accent); }
.timeline .yr { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--accent-text); }
.timeline b { font-weight: 800; text-transform: uppercase; font-size: 17px; }
.timeline p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band .eyebrow { color: var(--on-accent); }
.cta-band .eyebrow::before { background: var(--on-accent); }
.cta-band .btn-primary { background: var(--night); }
.cta-band .btn-primary:hover { background: #2a2a2a; }
.cta-band .wrap { padding-block: clamp(44px, 5.5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; align-items: start; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 860px); }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info { display: grid; gap: 0; border-top: 1px solid var(--border); }
.info div { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; gap: 6px; }
.info dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.info dd { margin: 0; font-size: 18px; font-weight: 600; user-select: text; }
form.msg { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--panel); border: 1px solid var(--border); padding: clamp(22px, 3vw, 40px); }
form.msg .full { grid-column: 1 / -1; }
form.msg label { display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
form.msg input, form.msg select, form.msg textarea {
  font: inherit; font-family: var(--body); font-size: 16px; letter-spacing: 0; text-transform: none;
  color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 0; padding: 14px 16px; width: 100%;
}
form.msg input:focus, form.msg select:focus, form.msg textarea:focus { outline: none; border-color: var(--accent); }
form.msg textarea { min-height: 140px; resize: vertical; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; align-self: center; }
.form-note.ok { color: var(--accent-text); }
@media (max-width: 560px) { form.msg { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--night); color: var(--on-night); border-top: 4px solid var(--accent); }
.site-footer h6 { color: var(--accent-on-night); }
.site-footer .foot-big .red { color: var(--accent); }
.site-footer .wrap { padding-block: clamp(40px, 4.5vw, 60px) 32px; display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.site-footer h6 { margin: 0 0 14px; font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; overflow-wrap: anywhere; }
.site-footer a { text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot-big { font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 18px; }
.foot-small { margin: 0; max-width: 40ch; opacity: .92; }
.subfooter { background: var(--night); color: var(--on-night-muted); font-size: 13px; }
.subfooter .wrap { border-top: 1px solid var(--night-line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.subfooter a { text-decoration: none; }
.subfooter a:hover { color: var(--on-night); }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* sister product strip */
.sister { border: 1px solid var(--border); background: var(--panel); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.sister::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 120% at 100% 50%, var(--glow-soft), transparent 70%); pointer-events: none; }
.sister > * { position: relative; }
.bt-word { font-weight: 900; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 8px; }
.sister p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .sister { grid-template-columns: 1fr; } }

/* motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Final photo treatment (chosen 2026-11-08): B&W hero and cards, color on hover; case study detail photos stay full color */
.hero-img { filter: grayscale(1) contrast(1.5) brightness(1.05); opacity: .62; }
.case-img img { filter: grayscale(1) contrast(1.45) brightness(1.04); transition: filter .35s ease, transform .6s; }
.case:hover .case-img img, .case:focus-visible .case-img img, .story:hover .case-img img, .story:focus-within .case-img img { filter: none; }
.cs-photo img { filter: none; }

/* WordPress integration */
body { margin: 0; }
.u-mt24 { margin: 24px 0 0; }
.u-m0 { margin: 0; }
.u-mb10 { margin-bottom: 10px; }
.u-mt20 { margin-top: 20px; }
.u-mb22 { margin: 0 0 22px; }
.u-aic { align-items: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--bg); color: var(--fg); padding: 10px 14px; }
.bt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 0; } }
.entry-plain .wrap { padding-block: clamp(48px, 5.5vw, 80px); }
.entry-plain h1 { margin-bottom: 24px; }
/* four-figure strips: keep wide figures such as $20M+ inside their box */
.stats.n4 .stat-num { font-size: clamp(2.6rem, 1.8rem + 2.2vw, 4rem); }

