/* ============================================================
   Coosada 911 Communications District — 2026 site system
   ============================================================ */

:root {
  /* Type */
  --f-display: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Default: Red-primary palette (warm paper) */
  --ink: #0B0D10;
  --ink-2: #1C1F24;
  --muted: #5B5F67;
  --muted-2: #8B8F96;
  --paper: #FAF8F3;
  --paper-2: #F2EEE4;
  --paper-3: #EBE6D8;
  --hairline: #E2DCCB;
  --hairline-strong: #C8C0AB;
  --accent: oklch(0.52 0.19 27);        /* emergency red */
  --accent-hover: oklch(0.45 0.19 27);
  --accent-ink: #FFFFFF;
  --navy: #0F2540;
  --gold: oklch(0.72 0.10 75);
  --live: oklch(0.62 0.18 145);         /* operational green */
  --surface: #FFFFFF;
  --shadow-1: 0 1px 0 rgba(11,13,16,0.04), 0 1px 2px rgba(11,13,16,0.04);
  --shadow-2: 0 10px 30px -12px rgba(11,13,16,0.14), 0 2px 6px rgba(11,13,16,0.04);
}

/* Palette: Navy-primary (red reserved for emergency) */
html[data-palette="navy"] {
  --accent: #0F2540;
  --accent-hover: #091a2f;
  --accent-ink: #FFFFFF;
  --navy: #0F2540;
  --paper: #F7F6F2;
  --paper-2: #EFEEE9;
  --hairline: #DBD8CE;
}

/* Palette: Dark mode */
html[data-palette="dark"] {
  --ink: #F4F1E8;
  --ink-2: #D8D4C6;
  --muted: #9A9689;
  --muted-2: #6E6A5E;
  --paper: #0D0F12;
  --paper-2: #14171B;
  --paper-3: #1B1F25;
  --hairline: #262A31;
  --hairline-strong: #363B44;
  --accent: oklch(0.65 0.20 27);
  --accent-hover: oklch(0.72 0.20 27);
  --accent-ink: #0D0F12;
  --navy: #4A7FC4;
  --gold: oklch(0.80 0.12 75);
  --surface: #14171B;
  --shadow-1: 0 1px 0 rgba(0,0,0,0.3);
  --shadow-2: 0 10px 30px -12px rgba(0,0,0,0.5);
}

/* Typography: Editorial Newsreader alt */
html[data-type="editorial"] {
  --f-display: 'Newsreader', Georgia, serif;
  --f-body: 'Inter Tight', -apple-system, sans-serif;
}
/* Typography: Classic Libre Caslon alt */
html[data-type="classic"] {
  --f-display: 'Libre Caslon Text', 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, sans-serif;
}

/* ------- Reset ------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ------- Layout primitives ------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap, .wrap-narrow { padding: 0 20px; } }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.rule-strong { background: var(--hairline-strong); }

/* ------- Typography ------- */
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  font-feature-settings: "ss01", "liga";
}
.display em { font-style: italic; font-weight: 400; }
.display .accent { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; font-family: var(--f-body); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
p.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
p.dek { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 62ch; }

/* ------- Operations ribbon ------- */
.ops-ribbon {
  background: var(--ink);
  color: #E8E4D5;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-2);
}
.ops-ribbon .wrap { display: flex; gap: 28px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.ops-ribbon .ops-cell { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.ops-ribbon .ops-cell strong { color: #FAF8F3; font-weight: 600; }
.ops-ribbon .ops-right { display: flex; gap: 28px; align-items: center; }
.ops-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(90,210,150,0.6); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,210,150,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(90,210,150,0); }
}
.ops-emerg { color: #FF8A7A; }
.ops-emerg strong { color: #FFFFFF; background: var(--accent); padding: 3px 8px; border-radius: 3px; letter-spacing: 0.12em; }

@media (max-width: 780px) {
  .ops-ribbon { font-size: 10px; padding: 6px 0; }
  .ops-ribbon .wrap { gap: 10px; }
  .ops-ribbon .ops-right { gap: 10px; flex-wrap: nowrap; }
  .ops-cell-wide { display: none; }
  .ops-cell-dispatch { display: none; }
  .ops-cell[data-clock] { font-size: 9px; }
  .ops-emerg span { display: none; }
  .ops-emerg strong { padding: 2px 6px; font-size: 10px; }
}
@media (max-width: 440px) {
  .ops-cell[data-clock] { font-size: 8.5px; letter-spacing: 0.04em; }
}

/* ------- Navbar ------- */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; gap: 24px; min-height: 0; }
.nav-right { display: flex; gap: 16px; align-items: center; }
.nav-right .brand { margin-left: 0; order: 2; }
.nav-right .brand { margin-left: 8px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  width: 160px; height: 160px;
  display: grid; place-items: center;
  overflow: visible;
  flex: 0 0 160px;
  filter: drop-shadow(0 2px 6px rgba(11,13,16,0.12));
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

/* Larger footer brand */
.footer .brand-mark { width: 180px; height: 180px; flex: 0 0 180px; }

@media (max-width: 920px) {
  .brand-mark { width: 96px; height: 96px; flex: 0 0 96px; }
  .footer .brand-mark { width: 130px; height: 130px; flex: 0 0 130px; }
}

/* Nav row: CTA on left of brand */
.nav-right { display: flex; gap: 16px; align-items: center; }
.nav-cta-group { display: flex; gap: 12px; align-items: center; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.15s;
  position: relative;
}
.nav-link:hover { background: var(--paper-2); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1.5px; background: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,64,64,0.2); }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--hairline); align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ''; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--hairline); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .menu-btn { display: inline-flex; }
  .nav-cta { padding: 8px 12px; font-size: 11px; letter-spacing: 0.04em; gap: 6px; }
  .nav-cta-text { display: inline; font-size: 0; letter-spacing: 0; }
  .nav-cta-text::before { content: attr(data-short); font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; }
}
@media (max-width: 420px) {
  .nav .wrap { gap: 10px; }
  .nav-cta { padding: 7px 10px; gap: 5px; }
  .nav-cta .dot { width: 5px; height: 5px; }
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--f-body);
  letter-spacing: 0.01em;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--hairline-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-link { padding: 0; color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

.btn-large { padding: 18px 28px; font-size: 15px; }
.btn-arrow::after { content: '→'; font-family: var(--f-mono); transition: transform 0.15s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ------- Hero ------- */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.hero .eyebrow-row { display: flex; gap: 24px; align-items: center; margin-bottom: 36px; flex-wrap: wrap; }
.hero .eyebrow-row::before { content: ''; flex: 0 0 48px; height: 1px; background: var(--ink); }
.hero h1 {
  max-width: 16ch;
  margin-bottom: 48px;
  line-height: 1.08;
  padding-bottom: 0.04em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { max-width: 58ch; margin-bottom: 48px; color: var(--ink-2); font-size: 20px; line-height: 1.5; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Hero: Operations variant */
.hero-ops { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 980px) { .hero-ops { grid-template-columns: 1fr; gap: 48px; } }

.ops-panel {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow-1);
  font-family: var(--f-mono);
  font-size: 12px;
}
.ops-panel-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hairline); padding-bottom: 12px; margin-bottom: 16px; }
.ops-panel-head .title { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.ops-panel-head .status { display: inline-flex; align-items: center; gap: 8px; color: var(--live); font-weight: 500; }
.ops-metric { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--hairline); }
.ops-metric:last-child { border: 0; }
.ops-metric .k { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.ops-metric .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.district-svg {
  width: 100%; height: 280px;
  background: var(--paper-2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--hairline);
}
.district-svg svg { width: 100%; height: 100%; }

/* Hero: Editorial variant */
.hero-edit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
@media (max-width: 980px) { .hero-edit { grid-template-columns: 1fr; } }
.hero-edit h1 { font-size: clamp(56px, 8vw, 108px); letter-spacing: -0.035em; }
.hero-edit .photo-slab {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.hero-edit .photo-slab .ph-label { position: absolute; bottom: 16px; left: 16px; font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.hero-edit .photo-slab::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 10px, rgba(11,13,16,0.04) 10px, rgba(11,13,16,0.04) 11px);
}

/* ------- Stats strip ------- */
.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
}
.stat:last-child { border-right: 0; }
@media (max-width: 780px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--hairline); } }
.stat:first-child { padding-left: 0; }
.stat-v { font-family: var(--f-display); font-size: clamp(36px, 3.8vw, 52px); letter-spacing: -0.025em; color: var(--ink); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ------- Section ------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { margin-bottom: 56px; display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: baseline; }
@media (max-width: 780px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }
.section-head .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--ink); display: inline-block; }
.section-head h2 { max-width: 22ch; }
.section-head .dek { margin-top: 16px; }

/* ------- Service cards ------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.svc {
  padding: 40px 32px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background 0.2s;
}
.svc:last-child { border-right: 0; }
@media (max-width: 900px) { .svc { border-right: 0; } }
.svc:hover { background: var(--paper-2); }
.svc-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 40px; display: flex; justify-content: space-between; }
.svc-num .tag { color: var(--accent); }
.svc h3 { margin-bottom: 16px; }
.svc p { color: var(--muted); max-width: 32ch; }
.svc-more {
  position: absolute; bottom: 40px; right: 32px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.svc:hover .svc-more { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ------- When to call 911 ------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 40px 32px; background: var(--surface); }
.compare-col.emerg { background: var(--ink); color: var(--paper); }
.compare-col.emerg .k, .compare-col.emerg h3 { color: var(--paper); }
.compare-col.emerg .num { color: var(--accent); }
.compare-col .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.compare-col .num { font-family: var(--f-display); font-size: 56px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; font-weight: 500; }
.compare-col .when { font-family: var(--f-body); font-size: 13px; color: var(--muted); margin: 24px 0 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.compare-col.emerg .when { color: #9A968A; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col ul li { padding: 10px 0; border-bottom: 1px dashed var(--hairline); font-size: 15px; display: flex; gap: 10px; align-items: start; }
.compare-col.emerg ul li { border-color: #2A2D33; color: #D8D4C6; }
.compare-col ul li:last-child { border-bottom: 0; }
.compare-col ul li::before { content: '—'; color: var(--muted); flex: 0 0 auto; }

/* ------- About strip ------- */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .about-strip { grid-template-columns: 1fr; gap: 40px; } }
.about-strip .eyebrow { display: inline-block; padding-top: 12px; border-top: 1px solid var(--ink); }
.about-strip p { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.about-strip p + p { margin-top: 1.2em; }

/* ------- News / announcements ------- */
.news-list { border-top: 1px solid var(--ink); }
.news-item {
  display: grid;
  grid-template-columns: 100px 2fr 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  transition: padding 0.2s;
}
.news-item:hover { padding-left: 12px; }
@media (max-width: 780px) { .news-item { grid-template-columns: 80px 1fr; gap: 16px; } .news-item .news-tag, .news-item .news-arrow { display: none; } }
.news-date { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.news-title { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.news-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.news-arrow { font-family: var(--f-mono); color: var(--muted); }

/* ------- Careers call-out ------- */
.careers {
  padding: clamp(60px, 8vw, 96px) 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
}
.careers .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
@media (max-width: 780px) { .careers .wrap { grid-template-columns: 1fr; } }
.careers h2 { color: var(--paper); max-width: 18ch; }
.careers .eyebrow { color: var(--muted-2); }
.careers p { color: #C8C4B8; max-width: 48ch; margin-top: 24px; font-size: 18px; }

/* ------- Footer ------- */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer .wrap { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14px; transition: color 0.15s; }
.footer a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 36ch; margin-top: 20px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}

/* ------- Tweaks panel ------- */
.tweaks {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
  padding: 18px 20px;
  width: 280px;
  font-family: var(--f-body);
  display: none;
}
.tweaks.open { display: block; }
.tweaks h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; border-bottom: 1px solid var(--hairline); padding-bottom: 10px; }
.tweaks .tweak { margin-bottom: 14px; }
.tweaks .tweak > label { font-size: 11px; font-family: var(--f-mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 6px; }
.tweaks .seg { display: flex; gap: 4px; background: var(--paper-2); padding: 3px; border-radius: 5px; }
.tweaks .seg button { flex: 1; padding: 6px 8px; font-size: 11px; border-radius: 3px; color: var(--muted); font-weight: 500; }
.tweaks .seg button.on { background: var(--ink); color: var(--paper); }
.tweaks-close { position: absolute; top: 10px; right: 12px; color: var(--muted); font-size: 18px; }

/* ------- Inner page head ------- */
.page-head {
  padding: clamp(60px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--hairline);
}
.page-head .crumb { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 24px; }
.page-head .crumb a { color: var(--muted); }
.page-head .crumb a:hover { color: var(--ink); }
.page-head h1 { max-width: 16ch; margin-bottom: 24px; }
.page-head p.lead { max-width: 62ch; }

/* ------- Content blocks ------- */
.prose { max-width: 720px; }
.prose h3 { margin: 56px 0 20px; }
.prose h4 { margin: 32px 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose ul li { margin-bottom: 10px; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Two-column content */
.two-col { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.two-col .side { position: sticky; top: 120px; }
.two-col .side .mono { padding-top: 12px; border-top: 1px solid var(--ink); }

/* Partner cards */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
@media (max-width: 780px) { .partners { grid-template-columns: 1fr; } }
.partner { padding: 32px; border-right: 1px solid var(--hairline); background: var(--surface); }
.partner:last-child { border-right: 0; }
@media (max-width: 780px) { .partner { border-right: 0; border-bottom: 1px solid var(--hairline); } .partner:last-child { border-bottom: 0; } }
.partner .mono { margin-bottom: 20px; }
.partner h4 { font-family: var(--f-display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 12px; color: var(--ink); text-transform: none; }
.partner p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Timeline / call flow */
.callflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); margin-top: 32px; }
@media (max-width: 900px) { .callflow { grid-template-columns: 1fr 1fr; } }
.cf-step { padding: 32px 24px 24px 0; border-right: 1px solid var(--hairline); position: relative; }
.cf-step:last-child { border-right: 0; }
.cf-num { font-family: var(--f-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px; }
.cf-title { font-family: var(--f-display); font-size: 22px; margin-bottom: 10px; line-height: 1.2; }
.cf-body { color: var(--muted); font-size: 14px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.field { display: block; margin-bottom: 20px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font-family: var(--f-body); font-size: 15px;
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 4px; color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }

.contact-card {
  border: 1px solid var(--hairline); padding: 24px; border-radius: 6px; background: var(--surface);
  margin-bottom: 16px;
}
.contact-card .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.contact-card .v { font-family: var(--f-display); font-size: 28px; letter-spacing: -0.01em; color: var(--ink); }
.contact-card .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Map placeholder */
.map-ph { aspect-ratio: 16/10; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 6px; position: relative; overflow: hidden; }
.map-ph svg { width: 100%; height: 100%; }

/* Utilities */
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-48 { margin-bottom: 48px; }
.mt-48 { margin-top: 48px; }
.hide-md { display: block; }
@media (max-width: 780px) { .hide-md { display: none; } }

/* Subtle hero entrance */
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 0.8s cubic-bezier(.2,.6,.2,1) forwards; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.24s; }
.fade-up.d4 { animation-delay: 0.32s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ------- Google Map frame ------- */
.map-frame {
  position: relative;
  margin-top: 48px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-2);
  overflow: hidden;
}
.gmap { width: 100%; height: 560px; display: block; position: relative; }
@media (max-width: 780px) { .gmap { height: 400px; } }

/* ----- Address search ----- */
.gmap-search {
  position: absolute; top: 16px; left: 16px; right: 16px;
  z-index: 5; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.gmap-search-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--hairline-strong);
  padding: 10px 14px; max-width: 540px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.gmap-search-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase; white-space: nowrap;
  border-right: 1px solid var(--hairline); padding-right: 10px;
}
#gmap-search-input {
  flex: 1 1 auto; border: 0; outline: 0; background: transparent;
  font-family: var(--f-serif); font-size: 16px; color: var(--ink);
  padding: 4px 0;
}
#gmap-search-input::placeholder { color: var(--muted); font-style: italic; }
#gmap-search-clear {
  border: 0; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px;
}
#gmap-search-clear:hover { color: var(--ink); }
.gmap-search-result {
  pointer-events: auto; display: none;
  max-width: 540px; padding: 14px 16px; gap: 4px;
  background: var(--paper); border: 1px solid var(--hairline-strong);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  flex-direction: column;
}
.gmap-search-result.is-in, .gmap-search-result.is-out, .gmap-search-result.is-pending {
  display: flex;
}
.gmap-pill {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  padding: 4px 8px; text-transform: uppercase; font-weight: 600;
  margin-bottom: 4px;
}
.gmap-search-result.is-in .gmap-pill { background: var(--accent); color: var(--accent-ink); }
.gmap-search-result.is-out .gmap-pill { background: #2a2722; color: #f5f2ea; }
.gmap-search-result.is-pending .gmap-pill { background: var(--hairline-strong); color: var(--ink-2); }
.gmap-addr { font-family: var(--f-serif); font-size: 15px; color: var(--ink); line-height: 1.3; }
.gmap-sub { font-size: 13px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.gmap-sub strong { color: var(--accent); }

/* Google Places autocomplete dropdown — match palette */
.pac-container {
  font-family: var(--f-serif) !important;
  border: 1px solid var(--hairline-strong) !important;
  border-top: 0 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
  background: var(--paper) !important;
  border-radius: 0 !important;
  margin-top: 1px;
}
.pac-item { padding: 10px 14px !important; border-top: 1px solid var(--hairline) !important; font-size: 14px !important; cursor: pointer; }
.pac-item:first-child { border-top: 0 !important; }
.pac-item:hover, .pac-item-selected { background: var(--paper-2) !important; }
.pac-item-query { font-size: 14px !important; color: var(--ink) !important; }
.pac-matched { color: var(--accent) !important; }
.pac-icon { display: none !important; }

@media (max-width: 640px) {
  .gmap-search { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .gmap-search-inner { padding: 8px 10px; gap: 8px; }
  .gmap-search-label { font-size: 9px; padding-right: 8px; }
  #gmap-search-input { font-size: 14px; }
}
.gmap-missing {
  position: absolute; right: 16px; top: 16px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 12px 16px; gap: 6px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--hairline-strong);
  max-width: 320px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.gmap-missing .mono { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }
.gmap-missing p { max-width: 52ch; color: var(--ink-2); font-size: 12px; line-height: 1.45; margin: 0; }
.gmap-missing code { font-family: var(--f-mono); font-size: 11px; background: var(--paper-2); padding: 1px 5px; border: 1px solid var(--hairline); }
.gmap-svg-wrap { position: absolute; inset: 0; z-index: 1; opacity: 0.95; }

.map-legend {
  position: absolute; left: 20px; bottom: 20px; z-index: 3;
  background: var(--paper); border: 1px solid var(--hairline-strong);
  padding: 14px 18px; max-width: 360px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.map-legend-row { display: flex; gap: 14px; align-items: flex-start; }
.map-legend-row .swatch {
  width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 2px solid var(--accent);
}
.map-legend-row strong { display: block; font-family: var(--f-serif); font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.map-legend-row span { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ------- For Agencies page ------- */
.fa-hero { padding-bottom: 72px; }
.fa-hero-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; margin-top: 28px;
}
@media (max-width: 900px) { .fa-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.fa-eyebrow { display: inline-block; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 24px; }
.fa-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 28px; }
.fa-hero-card {
  border: 1px solid var(--hairline-strong); background: var(--paper);
  padding: 28px 28px 20px; position: sticky; top: 88px;
}
.fa-hero-card-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--hairline);
}
.fa-hero-card-row:last-child { border-bottom: 0; }
.fa-hero-card-row .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.fa-hero-card-row .v { font-family: var(--f-serif); font-size: 18px; color: var(--ink); font-weight: 500; text-align: right; }

/* Capabilities grid */
.fa-cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--hairline);
}
@media (max-width: 1000px) { .fa-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .fa-cap-grid { grid-template-columns: 1fr; } }
.fa-cap-card {
  padding: 32px 32px 36px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  transition: background 0.2s;
}
.fa-cap-card:hover { background: var(--paper-2); }
.fa-cap-num {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 20px;
}
.fa-cap-card h3 {
  font-size: 26px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 16px; color: var(--ink);
}
.fa-cap-card h3 .tag-inline {
  display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  background: var(--accent); color: var(--accent-ink);
  padding: 3px 8px; vertical-align: middle; margin-left: 6px; font-weight: 500; text-transform: uppercase;
}
.fa-cap-card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.fa-cap-card ul { list-style: none; padding: 0; margin: 0; }
.fa-cap-card ul li {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); padding: 8px 0 8px 18px; position: relative;
  border-top: 1px dashed var(--hairline);
}
.fa-cap-card ul li:first-child { border-top: 1px solid var(--hairline-strong); margin-top: 6px; }
.fa-cap-card ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 8px; height: 1px; background: var(--accent);
}

/* Why grid */
.fa-why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 48px; border-top: 1px solid var(--ink);
}
@media (max-width: 900px) { .fa-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fa-why-grid { grid-template-columns: 1fr; } }
.fa-why-col {
  padding: 32px 28px 40px;
  border-right: 1px solid var(--hairline);
}
.fa-why-col:last-child { border-right: 0; }
.fa-why-num {
  font-family: var(--f-mono); font-size: 44px; color: var(--accent);
  letter-spacing: -0.02em; margin-bottom: 20px; font-weight: 500;
  line-height: 1;
}
.fa-why-col h4 { font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; color: var(--ink); font-family: var(--f-serif); font-weight: 500; }
.fa-why-col p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* Selection */
::selection { background: var(--accent); color: var(--accent-ink); }

/* Hero rotator */
.hero-rotator { position: relative; }
.hero-rotator-dots {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.hero-rotator-dots .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.hero-rotator-dots .dots { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-rotator-dots .dots button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 20px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.hero-rotator-dots .dots button .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); transition: background 0.2s; }
.hero-rotator-dots .dots button:hover { color: var(--ink); }
.hero-rotator-dots .dots button.on { color: var(--ink); border-color: var(--hairline-strong); background: var(--paper-2); }
.hero-rotator-dots .dots button.on .pip { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hero-rotator-dots .rotator-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero-rotator-dots .rotator-toggle input { accent-color: var(--accent); }

.hero[data-hero] { transition: opacity 0.4s ease; }
.hero.fade-in { opacity: 1; }
.hero.fade-out { opacity: 0; }

.news-pinned { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.news-pinned .news-date { color: var(--accent); font-weight: 600; }
.news-pinned .news-tag { color: var(--accent); }
