:root {
  --bone: #FDFCFA;
  --bone-dim: #F7F4EC;
  --ink: #1A1815;
  --ink-soft: #4A453D;
  --grey: #6B6455;
  --rule: #D8D2C4;
  --rule-heavy: #1A1815;
  --bronze: #8A6D3B;
  --bronze-soft: rgba(138, 109, 59, 0.1);
  --bronze-line: rgba(138, 109, 59, 0.4);
}

* { box-sizing: border-box; }

html {
  font-family: 'Public Sans', 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bone);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

::selection { background: var(--bronze); color: var(--bone); }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bone-dim); }
::-webkit-scrollbar-thumb { background: var(--bronze); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ══════════ SCROLL REVEAL ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ══════════ UTILITY BAR ══════════
   .ub-wrap reuses the header's own Tailwind container classes
   (max-w-6xl mx-auto px-5 sm:px-8) directly in the markup so its
   edges always line up with the header/nav exactly, at every
   breakpoint, without duplicating Tailwind's box model in CSS. */
.utilitybar { background: var(--ink); color: rgba(253,252,250,0.72); font-size: 12.5px; }
.utilitybar .ub-wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 8px; padding-bottom: 8px;
}
.utilitybar a { color: rgba(253,252,250,0.9); text-decoration: none; }
.utilitybar a:hover { text-decoration: underline; }
.utilitybar .ub-links a + a { margin-left: 14px; }
@media (max-width: 640px) {
  .utilitybar .ub-loc { display: none; }
  .utilitybar .ub-wrap { justify-content: center; }
}

/* ══════════ BULLETIN BAR (admin-controlled announcement) ══════════ */
.bulletin-bar {
  background: var(--bronze-soft);
  border-bottom: 1px solid var(--bronze-line);
}
.bulletin-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 5px;
  position: relative;
}
.bulletin-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.bulletin-cta {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bronze);
  text-decoration: none;
  white-space: nowrap;
}
.bulletin-cta:hover { text-decoration: underline; }
.bulletin-close {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
}
.bulletin-close:hover { color: var(--ink); }
@media (max-width: 640px) {
  .bulletin-inner { padding-right: 34px; }
}

/* ══════════ NAVBAR ══════════ */
.nav-wrap {
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.nav-link {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom: 2px solid var(--bronze); padding-bottom: 4px; text-decoration: none; }

/* ══════════ BRAND LOCKUP (real logo mark + wordmark) ══════════ */
.brand-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-bn { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.brand-bs { font-size: 10.5px; color: var(--grey); letter-spacing: 0.12em; text-transform: uppercase; }
.header-cta {
  font-size: 13.5px; font-weight: 700; padding: 10px 20px; background: var(--ink); color: var(--bone);
  text-decoration: none; border-radius: 3px; white-space: nowrap;
}
.header-cta:hover { background: var(--bronze); }

/* ══════════ BUTTONS ══════════ */
.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid var(--ink);
  border-radius: 3px;
}
.btn-primary:hover { background: var(--bronze); border-color: var(--bronze); transform: translateY(-1px); }

.btn-outline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border-radius: 3px;
}
.btn-outline:hover { background: var(--ink); color: var(--bone); transform: translateY(-1px); }

.btn-bronze {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--bronze);
  color: var(--bone);
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid var(--bronze);
  border-radius: 3px;
}
.btn-bronze:hover { background: #715a30; transform: translateY(-1px); }

/* Guarantee breathing room between adjacent buttons no matter what gap
   utility (or lack of one) the container was given in markup. */
.btn-primary + .btn-primary,
.btn-primary + .btn-outline,
.btn-primary + .btn-bronze,
.btn-outline + .btn-primary,
.btn-outline + .btn-outline,
.btn-outline + .btn-bronze,
.btn-bronze + .btn-primary,
.btn-bronze + .btn-outline,
.btn-bronze + .btn-bronze {
  margin-left: 12px;
}
@media (max-width: 640px) {
  .btn-primary + .btn-primary,
  .btn-primary + .btn-outline,
  .btn-primary + .btn-bronze,
  .btn-outline + .btn-primary,
  .btn-outline + .btn-outline,
  .btn-outline + .btn-bronze,
  .btn-bronze + .btn-primary,
  .btn-bronze + .btn-outline,
  .btn-bronze + .btn-bronze {
    margin-left: 0;
    margin-top: 10px;
  }
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bronze-line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ══════════ LABELS ══════════ */
.kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--rule-heavy);
  padding: 4px 12px;
  color: var(--ink);
  background: var(--bone);
  border-radius: 2px;
}
.pill-bronze { border-color: var(--bronze-line); color: var(--bronze); background: var(--bronze-soft); }

/* ══════════ RULES & DIVIDERS ══════════ */
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.rule-heavy { border: none; border-top: 2px solid var(--ink); margin: 0; }
.rule-double { border: none; border-top: 3px double var(--ink); margin: 0; }
.rule-dashed { border: none; border-top: 1px dashed var(--rule); margin: 0; }

/* ══════════ CARDS ══════════ */
.card {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover {
  box-shadow: 0 10px 28px rgba(26, 24, 21, 0.08);
  transform: translateY(-2px);
  border-color: var(--bronze-line);
}
.card-framed {
  background: var(--bone);
  border: 1px solid var(--ink);
  border-radius: 4px;
  position: relative;
}
.card-dashed {
  background: transparent;
  border: 1px dashed var(--rule-heavy);
  border-radius: 4px;
}

/* ══════════ ICON CHIP ══════════ */
.icon-chip {
  width: 32px;
  height: 32px;
  border: 1px solid var(--bronze-line);
  background: var(--bronze-soft);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-chip svg { width: 15px; height: 15px; color: var(--bronze); }

/* ══════════ NUMBERED LIST (masthead-style TOC) ══════════ */
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.toc-list li:first-child { border-top: none; }
.toc-list .roman-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--bronze);
  width: 28px;
  flex-shrink: 0;
}

/* ══════════ MASTHEAD (page hero) ══════════ */
.masthead {
  text-align: center;
}
.masthead h1 {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 auto 20px;
  max-width: 30ch;
  text-align: center;
}
.masthead .dek {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.masthead h1 .accent { color: var(--bronze); }
#tw-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 2px;
  background: var(--bronze);
  vertical-align: middle;
  border-radius: 1px;
  animation: caret-blink 0.8s step-end infinite;
}
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ══════════ STAT STRIP (inline hero stats) ══════════ */
.stat-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-strip .stat {
  text-align: center;
  padding: 0 28px;
  border-left: 1px solid var(--rule);
}
.stat-strip .stat:first-child { border-left: none; }
.stat-strip .stat b {
  font-family: 'Space Grotesk', sans-serif;
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.stat-strip .stat span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}
@media (max-width: 640px) {
  .stat-strip { gap: 20px 0; }
  .stat-strip .stat { border-left: none; width: 50%; padding: 0; }
}

/* ══════════ NEWS POST BODY ══════════ */
.news-body {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.news-body > p { margin-bottom: 20px; }
.news-body > h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
}
.news-body > h2:first-child { margin-top: 0; }
.news-field-list {
  margin: 8px 0 24px;
  border: 1px solid var(--rule);
  background: var(--bone-dim);
}
.news-field-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule);
}
.news-field-row:last-child { border-bottom: none; }
.news-field-row dt { color: var(--grey); font-weight: 600; }
.news-field-row dd { color: var(--ink); text-align: right; }

/* ══════════ EYEBROW PILL ══════════ */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
  background: var(--bronze-soft);
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* ══════════ BUSINESS / PORTFOLIO CARDS ══════════ */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.biz-card {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.biz-card:hover {
  box-shadow: 0 10px 28px rgba(26, 24, 21, 0.08);
  transform: translateY(-2px);
  border-color: var(--bronze-line);
}
.biz-card .status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; flex-wrap: wrap; }
.status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.status-badge.active { background: #E8EFE4; color: #3F5A35; }
.status-badge.dev { background: #F3EAD9; color: #9C6B3E; }
.biz-card .cat-tag { font-size: 12px; color: var(--grey); font-weight: 600; }
.biz-card h3 { font-size: 22px; margin-bottom: 12px; }
.biz-card p { font-size: 14.5px; color: var(--grey); margin-bottom: 22px; flex: 1; }
.biz-card .cc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--rule); gap: 10px; flex-wrap: wrap; }
.biz-card .relationship { font-size: 12.5px; color: var(--grey); }
.biz-card a.visit { font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.biz-card a.visit:hover { color: var(--bronze); }
@media (max-width: 960px) {
  .biz-grid { grid-template-columns: 1fr; }
}

/* ══════════ PRINCIPLES GRID (numbered columns) ══════════ */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle-col { border-top: 3px solid var(--bronze); padding-top: 22px; }
.principle-col .p-num { font-family: 'Space Grotesk', sans-serif; color: var(--bronze); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.principle-col h3 { font-size: 18px; margin-bottom: 10px; }
.principle-col p { font-size: 14px; color: var(--grey); }
@media (max-width: 960px) {
  .principles-grid { grid-template-columns: 1fr; }
}

/* ══════════ FOOTER (4-column: brand, Company, Connect, Businesses) ══════════ */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .bn { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--grey); max-width: 32ch; }
.footer-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.footer-col li { font-size: 13.5px; }
.footer-col a { font-size: 13.5px; text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--grey); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { text-decoration: none; margin-left: 18px; color: var(--grey); }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════ MOBILE MENU ══════════ */
#mobileMenu { background: rgba(253, 252, 250, 0.98); border-top: 1px solid var(--rule); }

/* ══════════ RESPONSIVE: DESKTOP & LARGE SCREENS ══════════
   Tailwind's max-w-6xl is a fixed 1152px utility class with no built-in
   step past that, so it's widened here in stages — starting at ordinary
   1080p/1440p desktop widths, not just ultrawide/TV sizes — so the site
   doesn't look narrower on a desktop monitor than it does on a laptop. */
@media (min-width: 1280px) {
  .max-w-6xl { max-width: 1240px; }
}
@media (min-width: 1600px) {
  .max-w-6xl { max-width: 1440px; }
  html { font-size: 17px; }
}
@media (min-width: 2200px) {
  .max-w-6xl { max-width: 1720px; }
  html { font-size: 19px; }
}

/* ══════════ RESPONSIVE: COLUMN LAYOUTS COLLAPSE ══════════ */
@media (max-width: 640px) {
  .cols-3 { grid-template-columns: 1fr !important; }
  .cols-3 > div { border-right: none !important; border-bottom: 1px solid var(--rule); padding-bottom: 20px !important; }
  .cols-3 > div:last-child { border-bottom: none; }
}
