/* Tatale Sanguli District Assembly — GENERATED FILE. Edit src/ and run tools/build.py. */
/* ===== base/tokens.css ===== */
/* ==========================================================================
   Tatale Sanguli District Assembly — design system
   Author: redesign build. Single stylesheet, no dependencies.
   Sections: 1 tokens · 2 reset · 3 typography · 4 layout · 5 header/nav
             6 hero · 7 components · 8 footer · 9 utilities · 10 motion
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — drawn from the national colours, muted for long-form reading */
  --green-900: #052a1a;
  --green-800: #083d26;
  --green-700: #0b5233;
  --green-600: #0f6b43;
  --green-500: #158455;
  --green-100: #e6f2ec;
  --green-050: #f3f8f5;

  --gold-700: #8a6300;
  --gold-500: #d29b06;
  --gold-300: #f2c94c;
  --gold-100: #fdf3d8;

  --red-700:  #8f1015;
  --red-600:  #b4121b;
  --red-100:  #fbe9ea;

  --blue-700: #0d4a72;   /* links inside body copy, distinct from brand green */
  --blue-100: #e7f0f7;

  /* Neutrals */
  --ink:      #111a16;
  --ink-soft: #33403a;
  --slate:    #5b6661;
  --slate-600:#4e5a55;
  --slate-500:#5a6560;
  --line:     #dde3e0;
  --line-soft:#eceff0;
  --bg:       #ffffff;
  --bg-alt:   #f6f8f7;
  --bg-dark:  var(--green-900);

  /* Type */
  --font-display: "Outfit", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1:  clamp(1.16rem, 1.10rem + 0.30vw, 1.32rem);
  --step-2:  clamp(1.38rem, 1.26rem + 0.55vw, 1.70rem);
  --step-3:  clamp(1.64rem, 1.43rem + 0.95vw, 2.20rem);
  --step-4:  clamp(1.95rem, 1.60rem + 1.60vw, 2.90rem);
  --step-5:  clamp(2.30rem, 1.75rem + 2.60vw, 3.75rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-1: 0 1px 2px rgba(9, 30, 20, .06), 0 1px 3px rgba(9, 30, 20, .08);
  --shadow-2: 0 4px 12px rgba(9, 30, 20, .08), 0 2px 4px rgba(9, 30, 20, .06);
  --shadow-3: 0 12px 32px rgba(9, 30, 20, .12);

  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--gold-500);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;
}

/* ===== base/reset.css ===== */
/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: inline-block; vertical-align: middle; }
ul, ol { padding-left: 1.15em; }
button { font: inherit; color: inherit; }
:where(a) { color: var(--blue-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(a:hover) { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }
[id] { scroll-margin-top: clamp(80px, 11vh, 140px); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

::selection { background: var(--gold-300); color: var(--green-900); }
img { height: auto; }

/* ===== base/typography.css ===== */
/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--green-900); margin: 0 0 var(--sp-3); letter-spacing: -0.01em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 var(--sp-4); max-width: 68ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.eyebrow {
  font: 700 var(--step--1)/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.eyebrow::after { content: ""; flex: 0 0 34px; height: 2px; background: var(--gold-500); }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-300); }
small, .fine { font-size: var(--step--1); color: var(--slate-500); }

/* ===== base/layout.css ===== */
/* ---------- 4. Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--alt { background: var(--bg-alt); }
.section--green { background: var(--green-050); }
.section--dark { background: var(--bg-dark); color: #e8efe9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #cbd9cf; }
.section-head { margin-bottom: var(--sp-6); }
.section-head--center { text-align: center; margin-inline: auto; max-width: 62ch; }
.section-head--center p { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--sp-5); }
.grid > * { min-width: 0; }
@media (min-width: 620px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px)  { .grid--sidebar { grid-template-columns: minmax(0,1fr) 320px; gap: var(--sp-7); } }
@media (min-width: 900px)  { .grid--split { grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; } }

/* ===== layout/header.css ===== */
/* ---------- 5. Header & navigation ---------- */
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--gold-300); color: var(--green-900); font-weight: 700;
  padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

.flagline { height: 4px; background: linear-gradient(90deg, var(--red-600) 0 33.3%, var(--gold-300) 33.3% 66.6%, var(--green-600) 66.6% 100%); }

.utilbar { background: var(--green-900); color: #cfe0d5; font-size: var(--step--1); }
.utilbar__in { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; justify-content: space-between; min-height: 38px; padding-block: 6px; }
.utilbar__gov { display: flex; align-items: center; gap: var(--sp-2); letter-spacing: .02em; }
.utilbar__gov svg { flex: none; }
.utilbar__links { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.utilbar a { color: #cfe0d5; text-decoration: none; }
.utilbar a:hover { color: #fff; text-decoration: underline; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.masthead.is-stuck { box-shadow: var(--shadow-2); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) 0; }
.brand { display: flex; align-items: center; gap: var(--sp-4); text-decoration: none; color: inherit; }
.brand__crest { width: 66px; height: 66px; flex: none; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--green-800); line-height: 1.15; display: block; }
.brand__sub { font-size: var(--step--1); color: var(--slate-600); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 520px) {
  .brand__crest { width: 50px; height: 50px; }
  .brand__name { font-size: 1rem; }
  .utilbar__gov .utilbar__gov-long { display: none; }
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--green-700); color: #fff; border: 0; border-radius: var(--radius);
  padding: 10px var(--sp-4); font-weight: 600; cursor: pointer;
}
.nav-toggle:hover { background: var(--green-800); }
.nav-toggle__bars { width: 20px; height: 20px; position: relative; flex: none; }
.nav-toggle__bars span { position: absolute; left: 1px; right: 1px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transform-origin: 50% 50%; transition: transform 300ms var(--ease-out), opacity 200ms var(--ease); }
.nav-toggle__bars span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle__bars span:nth-child(3) { transform: translateY(6px); }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: rotate(-45deg); }

.mainnav { border-top: 1px solid var(--line-soft); }
.mainnav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: var(--sp-1); }
.mainnav__link {
  display: block; padding: var(--sp-3) var(--sp-4); text-decoration: none;
  color: var(--ink-soft); font-weight: 600; font-size: 0.97rem;
  border-bottom: 3px solid transparent; transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mainnav__link:not([aria-current]):hover { border-bottom-color: var(--green-100); }
.mainnav__link:hover { color: var(--green-700); background: var(--green-050); }
.mainnav__link[aria-current="page"] { color: var(--green-800); border-bottom-color: var(--gold-500); }
.mainnav__cta { margin-left: auto; align-self: center; }

@media (max-width: 899px) {
  .utilbar__links { display: none; }
  .mainnav { border-top: 0; }
  /* Grid-row trick: animates 0fr -> 1fr so the panel slides open to its real height. */
  .mainnav__panel {
    display: grid; grid-template-rows: 0fr; visibility: hidden;
    border-top: 1px solid transparent;
    transition: grid-template-rows 320ms var(--ease), visibility 0s linear 320ms, border-color 320ms var(--ease);
  }
  .mainnav__panel.is-open { grid-template-rows: 1fr; visibility: visible; border-top-color: var(--line); transition-delay: 0s; }
  .mainnav__list { flex-direction: column; flex-wrap: nowrap; gap: 0; min-height: 0; overflow: hidden; padding-bottom: 0; }
  .mainnav__panel.is-open .mainnav__list { overflow-y: auto; max-height: min(80vh, 660px); padding-bottom: var(--sp-4); }
  .mainnav__list > li { opacity: 0; transform: translateY(-6px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
  .mainnav__panel.is-open .mainnav__list > li { opacity: 1; transform: none; }
  .mainnav__panel.is-open .mainnav__list > li:nth-child(1) { transition-delay: 40ms; }
  .mainnav__panel.is-open .mainnav__list > li:nth-child(2) { transition-delay: 70ms; }
  .mainnav__panel.is-open .mainnav__list > li:nth-child(3) { transition-delay: 100ms; }
  .mainnav__panel.is-open .mainnav__list > li:nth-child(4) { transition-delay: 130ms; }
  .mainnav__panel.is-open .mainnav__list > li:nth-child(5) { transition-delay: 160ms; }
  .mainnav__panel.is-open .mainnav__list > li:nth-child(6) { transition-delay: 190ms; }
  .mainnav__panel.is-open .mainnav__list > li:nth-child(n+7) { transition-delay: 220ms; }
  .mainnav__link { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); border-left: 3px solid transparent; padding-left: var(--sp-3); }
  .mainnav__link[aria-current="page"] { border-bottom-color: var(--line-soft); border-left-color: var(--gold-500); background: var(--green-050); }
  .mainnav__cta { margin: var(--sp-4) 0 0; align-self: stretch; }
  .mainnav__cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 900px) and (max-width: 1139px) { .mainnav__link { padding-inline: var(--sp-3); font-size: .92rem; } }
/* Nine links leave no room for the CTA on mid-width screens; the utility bar already links to it. */
@media (min-width: 900px) and (max-width: 1399px) { .mainnav__cta { display: none; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .mainnav__panel { display: block !important; }
}

/* ===== layout/hero.css ===== */
/* ---------- 6. Hero ---------- */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 480px at 12% -10%, rgba(21,132,85,.55), transparent 62%),
    radial-gradient(760px 420px at 92% 108%, rgba(210,155,6,.24), transparent 60%),
    url("../img/pattern.svg") right bottom / 520px auto no-repeat;
  opacity: .95;
}
.hero__in { position: relative; padding: var(--sp-9) 0 var(--sp-8); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero__sub { font-size: var(--step-1); color: #cfe0d5; max-width: 52ch; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.hero__meta { margin-top: var(--sp-7); display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7); border-top: 1px solid rgba(255,255,255,.16); padding-top: var(--sp-5); }
.hero__fact strong { display: block; font-family: var(--font-display); font-size: var(--step-3); color: var(--gold-300); line-height: 1.1; }
.hero__fact span { font-size: var(--step--1); color: #b9ccbf; text-transform: uppercase; letter-spacing: .1em; }

/* Page header (interior pages) */
.pagehead { background: var(--green-800); color: #fff; position: relative; overflow: hidden; }
.pagehead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 340px at 88% -30%, rgba(21,132,85,.7), transparent 62%), url("../img/pattern.svg") right -60px bottom -40px / 380px auto no-repeat; opacity: .85; }
.pagehead__in { position: relative; padding: var(--sp-7) 0 var(--sp-7); }
.pagehead h1 { color: #fff; font-size: var(--step-4); max-width: 26ch; }
.pagehead p { color: #cfe0d5; max-width: 62ch; margin-bottom: 0; }

.breadcrumb { font-size: var(--step--1); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: rgba(255,255,255,.5); }
.breadcrumb a { color: #d8e6dc; }
.breadcrumb [aria-current="page"] { color: var(--gold-300); }

/* ===== components/buttons.css ===== */
/* ---------- 7. Components ---------- */
.btn {
  --btn-bg: var(--green-600); --btn-fg: #fff; --btn-bd: var(--green-600);
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  padding: 12px var(--sp-5); border-radius: var(--radius);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { --btn-bg: var(--green-700); --btn-bd: var(--green-700); }
.btn svg { flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --btn-bg: var(--gold-300); --btn-fg: var(--green-900); --btn-bd: var(--gold-300); }
.btn--gold:hover { --btn-bg: #ffd76a; --btn-bd: #ffd76a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--green-700); --btn-bd: var(--green-600); }
.btn--outline:hover { --btn-bg: var(--green-050); --btn-fg: var(--green-800); }
.btn--sm { padding: 8px var(--sp-4); font-size: var(--step--1); }

.link-more { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; text-decoration: none; color: var(--green-700); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more svg { transition: transform var(--dur) var(--ease); }
.link-more:hover svg { transform: translateX(3px); }

.btn { white-space: nowrap; }
@media (max-width: 600px) { .hero__actions .btn { width: 100%; justify-content: center; } }

/* ===== components/alert.css ===== */
/* Alert / announcement bar */
.alert {
  background: var(--gold-100); border-top: 1px solid #e9d9a6; border-bottom: 1px solid #e9d9a6;
}
.alert__in { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4) 0; }
.alert__tag {
  flex: none; background: var(--red-600); color: #fff; font-size: var(--step--1);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.alert p { margin: 0; color: #4a3a05; font-size: 0.97rem; }
.alert a { color: var(--gold-700); font-weight: 700; }

/* ===== components/cards.css ===== */
/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.card p { font-size: 0.97rem; color: var(--slate-600); margin-bottom: var(--sp-4); }
.card > :last-child { margin-top: auto; margin-bottom: 0; }
a.card, .card--link { text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover { border-color: var(--green-500); box-shadow: var(--shadow-3); transform: translateY(-4px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--green-100);
  color: var(--green-700); display: grid; place-items: center; margin-bottom: var(--sp-4);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.card:hover .card__icon { background: var(--green-600); color: #fff; }
.card--flush { padding: 0; overflow: hidden; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }

.card__thumb { aspect-ratio: 16 / 9; background: var(--green-100); position: relative; display: grid; place-items: center; }
.card__thumb::after {
  content: attr(data-label); position: absolute; inset: auto var(--sp-3) var(--sp-3) var(--sp-3);
  font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700);
  text-align: center;
}

/* ===== components/tiles.css ===== */
/* Service tiles (compact) */
.tile {
  display: flex; gap: var(--sp-4); align-items: flex-start; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-500);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  transition: box-shadow var(--dur) var(--ease), border-left-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile:hover { box-shadow: var(--shadow-2); border-left-color: var(--gold-500); transform: translateX(4px); }
.tile__ic { color: var(--green-600); flex: none; margin-top: 3px; }
.tile strong { display: block; font-family: var(--font-display); font-size: var(--step-1); color: var(--green-900); font-weight: 600; }
.tile span { font-size: 0.92rem; color: var(--slate-600); }

/* ===== components/stats.css ===== */
/* Stat band */
.stats { display: grid; gap: var(--sp-5); }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 3px solid var(--gold-500); padding-left: var(--sp-4); }
.stat__n { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; line-height: 1; color: var(--green-800); display: block; }
.section--dark .stat__n { color: var(--gold-300); }
.stat__l { font-size: 0.95rem; color: var(--slate-600); }
.section--dark .stat__l { color: #c2d4c8; }
.stat__src { display: block; font-size: 0.78rem; color: var(--slate-500); margin-top: 4px; }
.section--dark .stat__src { color: #93aa9b; }

/* ===== components/news.css ===== */
/* News list */
.newsitem { display: grid; gap: var(--sp-2) var(--sp-5); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .newsitem { grid-template-columns: 132px 1fr; } }
.newsitem:first-of-type { border-top: 1px solid var(--line); }
.newsitem__date { font-size: 0.88rem; color: var(--slate-500); font-variant-numeric: tabular-nums; }
.newsitem h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.newsitem h3 a { color: var(--green-900); text-decoration: none; }
.newsitem h3 a:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 4px; }
.newsitem p { margin-bottom: var(--sp-3); font-size: 0.97rem; color: var(--slate-600); }

.pill {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px;
  background: var(--green-100); color: var(--green-800);
}
.pill--gold { background: var(--gold-100); color: var(--gold-700); }
.pill--red { background: var(--red-100); color: var(--red-700); }
.pill--blue { background: var(--blue-100); color: var(--blue-700); }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }

/* ===== widgets/filters.css ===== */
/* Filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.filters button {
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px var(--sp-4); font-size: 0.9rem; font-weight: 600; color: var(--slate-600); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filters button:hover { border-color: var(--green-500); color: var(--green-700); }
.filters button[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.searchfield { position: relative; margin-bottom: var(--sp-4); max-width: 420px; }
.searchfield input {
  width: 100%; padding: 11px var(--sp-4) 11px 40px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.searchfield input:focus-visible { border-color: var(--green-500); }
.searchfield svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate-500); }
.is-hidden { display: none !important; }
.empty-note { padding: var(--sp-5); background: var(--bg-alt); border-radius: var(--radius); color: var(--slate-600); }

/* ===== widgets/accordion.css ===== */
/* Accordion */
.acc { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__btn {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  background: #fff; padding: var(--sp-4) var(--sp-5); cursor: pointer;
  list-style: none; transition: background var(--dur) var(--ease);
}
.acc__btn::-webkit-details-marker { display: none; }
.acc__btn::marker { content: ""; }
.acc__btn h3 {
  margin: 0; font-size: var(--step-1); font-weight: 600; color: var(--green-900);
}
.acc__btn:hover { background: var(--green-050); }
.acc__btn:hover h3 { color: var(--green-700); }
.acc__btn svg { flex: none; color: var(--green-600); transition: transform var(--dur) var(--ease); }
details[open] > .acc__btn svg { transform: rotate(45deg); }
details[open] > .acc__btn { background: var(--green-050); }
.acc__panel { padding: var(--sp-2) var(--sp-5) var(--sp-5); }
.acc__panel > :last-child { margin-bottom: 0; }

/* ===== components/tables.css ===== */
/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 460px; }
table.data caption { text-align: left; padding: var(--sp-4) var(--sp-5) 0; font-size: var(--step--1); color: var(--slate-500); caption-side: bottom; }
table.data th, table.data td { padding: var(--sp-3) var(--sp-5); text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data thead th { background: var(--green-050); color: var(--green-800); font-family: var(--font-body); font-weight: 700; font-size: 0.88rem; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--green-100); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--green-050); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== components/content-blocks.css ===== */
/* Definition list / profile facts */
.factlist { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.factlist > div { display: grid; gap: var(--sp-1); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .factlist > div { grid-template-columns: 220px 1fr; gap: var(--sp-5); } }
.factlist dt { font-weight: 700; color: var(--green-800); }
.factlist dd { margin: 0; color: var(--ink-soft); }

/* Callout */
.callout { border-left: 4px solid var(--green-500); background: var(--green-050); padding: var(--sp-5); border-radius: 0 var(--radius) var(--radius) 0; }
.callout--gold { border-left-color: var(--gold-500); background: var(--gold-100); }
.callout--red { border-left-color: var(--red-600); background: var(--red-100); }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { font-size: var(--step-1); }

/* Sidebar boxes */
.side { position: sticky; top: 128px; display: grid; gap: var(--sp-5); align-content: start; }
.side__box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.side__box h3 { font-size: var(--step-1); }
.side__box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.side__box li { padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.side__box li:last-child { border-bottom: 0; padding-bottom: 0; }
.side__box a { color: var(--green-700); font-weight: 600; text-decoration: none; }
.side__box a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* People / leadership */
.person { display: flex; gap: var(--sp-4); align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.person__ph { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.person h3 { font-size: var(--step-1); margin-bottom: 2px; }
.person .role { font-size: 0.9rem; color: var(--green-700); font-weight: 700; margin-bottom: var(--sp-2); }
.person p { font-size: 0.93rem; color: var(--slate-600); margin: 0; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
.steps li { counter-increment: s; position: relative; padding-left: 56px; min-height: 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-700); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
}
.steps h4 { margin-bottom: var(--sp-1); }
.steps p { margin-bottom: 0; font-size: 0.97rem; color: var(--slate-600); }

/* ===== components/cta-band.css ===== */
/* CTA band */
.cta-band { background: var(--green-700); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-7); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") right -40px center / 300px auto no-repeat; opacity: .35; }
.cta-band__in { position: relative; display: grid; gap: var(--sp-5); }
@media (min-width: 860px) { .cta-band__in { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-band p { color: #cfe0d5; margin: 0; }

@media (max-width: 600px) { .cta-band { padding: var(--sp-6) var(--sp-5); } .cta-band .btn { width: 100%; justify-content: center; } }

/* ===== components/map.css ===== */
/* Map placeholder */
.mapbox { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--green-050); }
.mapbox iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ===== components/forms.css ===== */
/* Form */
.form { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--green-900); }
.field .hint { font-size: 0.85rem; color: var(--slate-500); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px var(--sp-4); border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--green-500); }
.field textarea { min-height: 150px; resize: vertical; }
.req { color: var(--red-600); }

/* ===== components/markers.css ===== */
/* Placeholder marker — remove the rule to hide all markers at once */
.ph { color: var(--slate-600); }
.footer .ph, .section--dark .ph, .hero .ph, .pagehead .ph { color: inherit; opacity: .9; }

/* ===== layout/footer.css ===== */
/* ---------- 8. Footer ---------- */
.footer { background: var(--green-900); color: #b9cdc0; margin-top: var(--sp-6); }
.footer__main { padding: var(--sp-8) 0 var(--sp-7); display: grid; gap: var(--sp-6); }
@media (min-width: 760px)  { .footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-7); } }
.footer h2, .footer h3 { color: #fff; font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer a { color: #cfe0d5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__brand { display: flex; gap: var(--sp-4); align-items: center; margin-bottom: var(--sp-4); }
.footer__brand img, .footer__brand svg { width: 88px; height: 88px; flex: none; object-fit: contain; }
.footer__brand strong { color: #fff; font-family: var(--font-display); font-size: var(--step-1); display: block; line-height: 1.2; }
.footer__brand span > span { color: var(--gold-300); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: 4px; }
.footer__bar p { margin: 0; }
.footer .fine, .footer .fine a { color: #b9cdc0; }
.footer li svg { margin-right: 6px; color: var(--gold-300); }
.footer .btn { color: var(--btn-fg); text-decoration: none; }
.footer .btn--gold { color: var(--green-900); }
.footer .btn--gold:hover { color: var(--green-900); text-decoration: none; }

/* ===== widgets/to-top.css ===== */
.to-top {
  position: fixed; right: var(--sp-5); bottom: 5.5rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--green-700); box-shadow: var(--shadow-2);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur), background var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-050); }

@media (max-width: 600px) { .to-top { width: 40px; height: 40px; } }

/* ===== base/utilities.css ===== */
/* ---------- 9. Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.flow > * + * { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0 !important; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.center { text-align: center; }
.list-check { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.list-check li { position: relative; padding-left: 30px; font-size: 0.97rem; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f6b43' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.notice-print { display: none; }

/* ===== motion/core.css ===== */
/* ---------- 10. Motion (compositor-only: transform + opacity) ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); will-change: opacity, transform; }
.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }
.reveal-delay-1 { transition-delay: 60ms; }
.reveal-delay-2 { transition-delay: 120ms; }
.reveal-delay-3 { transition-delay: 180ms; }
/* Cards revealed by scroll must still lift on hover without the stagger delay. */
.js a.card.reveal.is-in, .js .tile.is-in { transition: opacity 650ms var(--ease-out), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }

/* Hero entrance: staggered rise on first paint */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .hero__in > *, .js .pagehead__in > * { animation: rise 800ms var(--ease-out) both; }
.js .hero__in > :nth-child(1), .js .pagehead__in > :nth-child(1) { animation-delay: 60ms; }
.js .hero__in > :nth-child(2), .js .pagehead__in > :nth-child(2) { animation-delay: 140ms; }
.js .hero__in > :nth-child(3), .js .pagehead__in > :nth-child(3) { animation-delay: 220ms; }
.js .hero__in > :nth-child(4) { animation-delay: 300ms; }
.js .hero__in > :nth-child(5) { animation-delay: 400ms; }

/* Hero ambient glow drifts slowly (transform only, never repaints text) */
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
.hero::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(242, 201, 76, .16), transparent 70%);
  pointer-events: none; animation: drift 18s ease-in-out infinite alternate; will-change: transform;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 300;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; will-change: transform;
}

/* Buttons: tactile press */
.btn { box-shadow: 0 0 0 rgba(9, 30, 20, 0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(9, 30, 20, .18); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: 80ms; }
.btn.is-done { --btn-bg: var(--green-700); }
.nav-toggle { transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.nav-toggle:active { transform: scale(.96); }
.filters button { transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.filters button:active { transform: scale(.95); }
.to-top:hover { transform: translateY(-3px); }

/* Filtered items fade back in */
@keyframes itemIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.is-filtered-in { animation: itemIn 360ms var(--ease-out) both; }

/* Accordion: animate open/close where the browser can (JS covers the rest) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details.acc__item::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size 300ms var(--ease-out), opacity 300ms var(--ease), content-visibility 300ms allow-discrete;
  }
  details.acc__item[open]::details-content { block-size: auto; opacity: 1; }
}
.acc__btn svg { transition: transform 300ms var(--ease-out); }

/* Cross-page transitions: header stays put, content cross-fades */
@view-transition { navigation: auto; }
.masthead { view-transition-name: masthead; }
::view-transition-old(root) { animation: 180ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Smooth font swap + image fade-in */
img { transition: opacity 400ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero::after, .scroll-progress { display: none; }
}

/* ===== widgets/social-share.css ===== */
/* ---------- 11. Added scope: gallery, departments, social, share, chat ---------- */

/* Social + share */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0 0; padding: 0; }
.footer .social { display: flex; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .09); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer .social a:hover { background: var(--gold-300); color: var(--green-900); transform: translateY(-3px); text-decoration: none; }
.social--light a { background: var(--green-100); color: var(--green-700); border-color: transparent; }
.social--light a:hover { background: var(--green-600); color: #fff; }
.social-title { margin: var(--sp-5) 0 0; }

.share { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.share__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); margin-right: var(--sp-1); }
.share a {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--green-700);
  background: var(--green-050); border: 1px solid var(--line);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.share a:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }

/* ===== components/leader-feature.css ===== */
/* District Chief Executive feature */
.dce { display: grid; gap: var(--sp-5); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-6); box-shadow: var(--shadow-1); }
@media (min-width: 700px) { .dce { grid-template-columns: 340px 1fr; gap: var(--sp-7); padding: var(--sp-6); } }
.dce__photo { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.dce__frame { max-width: 380px; justify-self: center; position: relative; }
.dce__frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold-500); border-radius: var(--radius-lg); z-index: -1; }
.dce h3 { font-size: var(--step-3); margin-bottom: var(--sp-1); }
.dce .role { color: var(--green-700); font-weight: 700; }

/* Two portraits of the DCE, overlapped */
.dce-pair { position: relative; width: 100%; aspect-ratio: 1 / 1.14; }
.dce-pair img { position: absolute; object-fit: cover; object-position: top; border: 4px solid #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.dce-pair img:first-child { left: 0; top: 0; width: 64%; height: 86%; }
.dce-pair img:last-child { right: 0; bottom: 0; width: 56%; height: 72%; }
.dce__frame { max-width: 440px; width: 100%; }

/* ===== widgets/departments.css ===== */
/* Departments */
.dept__services { margin: 0 0 var(--sp-4); gap: var(--sp-2); }
.dept__services li { font-size: .9rem; }
.dept__contact { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: .88rem; padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.dept__contact a { color: var(--green-700); font-weight: 600; }
.dept:target { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100), var(--shadow-2); }

/* ===== widgets/gallery.css ===== */
/* Gallery */
.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.shot { margin: 0; }
.shot__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--green-100); isolation: isolate;
  box-shadow: var(--shadow-1); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease-out);
}
.shot__btn:hover, .shot__btn:focus-visible { box-shadow: var(--shadow-3); transform: translateY(-4px); }
.shot__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.shot__btn:hover img { transform: scale(1.07); }
.shot__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); transition: transform 700ms var(--ease-out); }
.shot__btn:hover .shot__ph { transform: scale(1.07); }
.shot__ph--0 { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.shot__ph--1 { background: linear-gradient(135deg, var(--green-800), var(--gold-700)); }
.shot__ph--2 { background: linear-gradient(135deg, var(--green-600), #3d9a6e); }
.shot__ph--3 { background: linear-gradient(135deg, #0d4a72, var(--green-600)); }
.shot__ph--4 { background: linear-gradient(135deg, var(--gold-700), var(--green-700)); }
.shot__cap {
  position: absolute; inset: auto 0 0 0; padding: var(--sp-6) var(--sp-4) var(--sp-4); text-align: left; color: #fff;
  background: linear-gradient(to top, rgba(5, 42, 26, .88), transparent);
  transform: translateY(35%); opacity: 0; transition: transform 350ms var(--ease-out), opacity 300ms var(--ease);
}
.shot__cap strong { display: block; font-family: var(--font-display); font-size: var(--step-0); }
.shot__cap span { font-size: .84rem; opacity: .9; }
.shot__btn:hover .shot__cap, .shot__btn:focus-visible .shot__cap { transform: none; opacity: 1; }
@media (hover: none) { .shot__cap { transform: none; opacity: 1; } }
.gallery--preview { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.lightbox {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: var(--sp-5);
  background: rgba(5, 20, 12, .0); backdrop-filter: blur(0); opacity: 0;
  transition: opacity 240ms var(--ease), background 240ms var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; background: rgba(5, 20, 12, .88); }
.lightbox__fig { margin: 0; max-width: min(960px, 100%); transform: scale(.94); transition: transform 320ms var(--ease-out); }
.lightbox.is-open .lightbox__fig { transform: none; }
.lightbox__media img, .lightbox__ph { display: block; max-height: 72vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius-lg); }
.lightbox__ph { position: relative; width: min(80vw, 640px); height: min(56vh, 480px); }
.lightbox figcaption { color: #e8efe9; text-align: center; margin-top: var(--sp-4); }
.lightbox figcaption .fine { color: #9fb5a7; }
.lightbox button { padding: 0; color: #fff; background: rgba(255, 255, 255, .12); border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.lightbox button:hover { background: rgba(255, 255, 255, .26); transform: scale(1.08); }
.lightbox__close { position: absolute; top: var(--sp-4); right: var(--sp-4); }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: var(--sp-4); }
.lightbox__nav--next { right: var(--sp-4); }
html.is-locked { overflow: hidden; }

/* ===== components/form-states.css ===== */
/* Form polish */
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-600); background: #fffafa; }
.field__error { color: var(--red-700); font-size: .86rem; font-weight: 600; animation: rise 240ms var(--ease-out) both; }
.field input, .field select, .field textarea { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
[data-form-note]:not([hidden]) { animation: rise 420ms var(--ease-out) both; }

/* ===== widgets/chat.css ===== */
/* Chat assistant */
.chat { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 120; }
.chat__launcher {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(5, 42, 26, .35);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.chat__launcher:hover { background: var(--green-800); transform: translateY(-3px) scale(1.04); }
.chat__launcher:active { transform: scale(.95); }
.chat__launcher::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-300); animation: ring 2.4s var(--ease-out) 1.5s 3; pointer-events: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.chat__ic { position: absolute; display: grid; place-items: center; transition: transform 300ms var(--ease-out), opacity 200ms var(--ease); }
.chat__ic--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat.is-open .chat__ic--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat__ic--close { opacity: 1; transform: none; }
.chat.is-open .chat__launcher::after { display: none; }

.chat__panel {
  position: absolute; right: 0; bottom: 70px; width: min(380px, calc(100vw - 2rem)); height: min(540px, calc(100dvh - 8rem));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(5, 42, 26, .28);
  opacity: 0; transform: translateY(14px) scale(.94); transform-origin: 100% 100%;
  transition: opacity 240ms var(--ease), transform 320ms var(--ease-out);
}
.chat__panel[hidden] { display: none; }
.chat.is-open .chat__panel { opacity: 1; transform: none; }
.chat__head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); background: var(--green-800); color: #fff; }
.chat__head strong { display: block; font-family: var(--font-display); }
.chat__head span:not(.chat__avatar) { font-size: .78rem; color: #b9ccbf; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-300); color: var(--green-900); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.chat__log { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); background: var(--bg-alt); scroll-behavior: smooth; overscroll-behavior: contain; }
.chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .93rem; line-height: 1.5; animation: msgIn 320ms var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat__msg--user { align-self: flex-end; background: var(--green-700); color: #fff; border-bottom-right-radius: 4px; }
.chat__links { display: flex; flex-direction: column; gap: 4px; margin-top: var(--sp-2); }
.chat__links a { font-weight: 700; font-size: .88rem; color: var(--green-700); text-decoration: none; }
.chat__links a:hover { text-decoration: underline; }
.chat__typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); animation: bounce 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat__chips { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips:empty { display: none; }
.chat__chips button { flex: none; white-space: nowrap; background: #fff; border: 1px solid var(--green-500); color: var(--green-700); font-size: .83rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.chat__chips button:hover { background: var(--green-700); color: #fff; transform: translateY(-1px); }
.chat__form { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) var(--sp-4); background: var(--bg-alt); }
.chat__form input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 100px; background: #fff; }
.chat__form input:focus-visible { border-color: var(--green-500); }
.chat__form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--green-700); color: #fff; display: grid; place-items: center; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.chat__form button:hover { background: var(--green-800); transform: scale(1.06); }
@media (max-width: 480px) { .chat { right: var(--sp-4); bottom: var(--sp-4); } .to-top { right: var(--sp-4); bottom: 5rem; } }
@media print { .chat, .scroll-progress, .lightbox { display: none !important; } }

/* ===== base/print.css ===== */
/* ---------- Print ---------- */
@media print {
  .utilbar, .nav-toggle, .mainnav, .to-top, .hero::before, .pagehead::before, .filters, .searchfield { display: none !important; }
  .masthead { position: static; }
  body { color: #000; font-size: 11pt; }
  .hero, .pagehead, .section--dark, .footer { background: #fff !important; color: #000 !important; }
  .hero h1, .pagehead h1, .footer h3 { color: #000 !important; }
  .notice-print { display: block; margin-top: 1rem; font-size: 10pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ===== motion/extras.css ===== */
/* ---------- 12. Extra motion ---------- */
/* Hero title: words rise out of a mask */
.js .hero__in > h1.is-split, .js .pagehead__in > h1.is-split { animation: none; }
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.is-split .w > span { display: inline-block; transform: translateY(110%); animation: wordUp 900ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 75ms); }
@keyframes wordUp { to { transform: none; } }

/* Parallax: background drifts slower than content, hero fades as you leave it */
.hero::before, .pagehead::before { inset: -15% 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero__in, .pagehead__in { transform: translate3d(0, calc(var(--py, 0px) * .35), 0); opacity: calc(1 - var(--pf, 0) * .85); will-change: transform, opacity; }

/* Split sections slide in from opposite sides on wide screens */
@media (min-width: 900px) {
  .js .grid--split > .reveal:first-child { transform: translateX(-48px); }
  .js .grid--split > .reveal:last-child:not(:first-child) { transform: translateX(48px); }
  .js .grid--split > .reveal.is-in { transform: none; }
}

/* Gold rule beside eyebrows draws in */
.js .eyebrow::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 900ms var(--ease-out) 150ms; }
.js .eyebrow.is-in::after { transform: none; }

/* Header settles into a compact bar once you scroll */
.masthead__in { transition: padding var(--dur) var(--ease); }
.brand__crest { transition: width 300ms var(--ease-out), height 300ms var(--ease-out); }
.masthead.is-stuck .masthead__in { padding: 8px 0; }
@media (min-width: 521px) { .masthead.is-stuck .brand__crest { width: 46px; height: 46px; } }



/* Stat figures glow in */
.stat { transition: transform 300ms var(--ease-out), border-color 300ms var(--ease); }
.stat:hover { transform: translateY(-4px); border-left-color: var(--gold-300); }

/* ===== motion/links.css ===== */
/* Animated link underline */
.link-more, .side__box a:not(.btn) { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-size: 0 2px; background-repeat: no-repeat; transition: background-size 300ms var(--ease-out); padding-bottom: 2px; }
.link-more:hover, .side__box a:not(.btn):hover { background-size: 100% 2px; text-decoration: none; }
.footer a:not(.btn):not(.social a) { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-size: 0 1px; background-repeat: no-repeat; transition: background-size 250ms var(--ease-out), color var(--dur) var(--ease); }
.footer a:not(.btn):hover { background-size: 100% 1px; text-decoration: none; }

/* ===== widgets/floaters.css ===== */
/* ---------- 13. Floating icons & images (uses the `translate` property so it never fights reveal/hover transforms) ---------- */
@keyframes bob { from { translate: 0 0; rotate: -2deg; } to { translate: 0 -16px; rotate: 3deg; } }
@keyframes bobSoft { from { translate: 0 0; } to { translate: 0 -8px; } }

.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floater {
  position: absolute; width: 44px; height: 44px; color: rgba(255, 255, 255, .22);
  translate: calc(var(--mx, 0) * var(--z, 1) * -34px) calc(var(--my, 0) * var(--z, 1) * -26px);
  transition: translate 600ms var(--ease-out);
}
.floater svg { display: block; width: 100%; height: 100%; animation: bob var(--t, 8s) ease-in-out var(--d, 0s) infinite alternate; }
.floaters--hero .floater { width: 56px; height: 56px; color: rgba(255, 255, 255, .17); }
.floater--1 { left: 5%;  top: 16%; }
.floater--2 { left: 38%; top: 8%;  width: 34px; height: 34px; }
.floater--3 { right: 6%; top: 58%; }
.floater--4 { left: 16%; bottom: 10%; width: 36px; height: 36px; }
.floater--5 { right: 30%; bottom: 14%; }
.floater--6 { left: 58%; top: 56%; width: 30px; height: 30px; }
.floater--7 { right: 44%; top: 20%; width: 26px; height: 26px; }
.floater--1 svg, .floater--4 svg { color: var(--gold-300); opacity: .55; }
@media (max-width: 700px) { .floater--5, .floater--6, .floater--7 { display: none; } }
.hero__in, .pagehead__in, .section--dark > .wrap, .cta-band__in { position: relative; z-index: 1; }

/* ===== components/hero-card.css ===== */
/* Floating glass card in the hero (wide screens only) */
.hero__float { display: none; }
@media (min-width: 1040px) {
  .hero__float { display: block; position: absolute; right: 0; top: 4rem; width: 270px; height: 420px; z-index: 1; }
  .hero h1 { max-width: 14ch; }
}
.fcard {
  position: absolute; right: 0; top: 0; margin: 0; width: 230px; padding: 10px 10px 0; border-radius: 22px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  animation: bobSoft 6s ease-in-out infinite alternate;
  translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 10px);
}
.fcard img { width: 100%; height: 270px; object-fit: cover; object-position: top; border-radius: 14px; }
.fcard figcaption { padding: 12px 6px 14px; color: #fff; }
.fcard figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.fcard figcaption span { font-size: .8rem; color: var(--gold-300); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.fchip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 100px; color: #fff; font-size: .85rem; white-space: nowrap;
  background: rgba(8, 61, 38, .72); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.fchip svg { color: var(--gold-300); flex: none; }
.fchip strong { color: var(--gold-300); }
.fchip--a { left: -92px; top: 215px; animation: bob 7s ease-in-out -2s infinite alternate; }
.fchip--b { left: -30px; top: 372px; animation: bob 8.5s ease-in-out -4s infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .floater svg, .fcard, .fchip, .card__icon, .tile__ic, .person__ph, .shot__btn { animation: none !important; }
  .floater { translate: none; }
}

/* Floating hero icons: four, kept clear of the headline */
.floaters--hero .floater--1 { left: auto; right: 4%;  top: 10%; }
.floaters--hero .floater--2 { left: auto; right: 36%; top: 7%; }
.floaters--hero .floater--3 { right: 5%;  top: auto; bottom: 12%; }
.floaters--hero .floater--4 { left: auto; right: 22%; bottom: 9%; }
/* Hero chips share one left edge */
.fchip--a { left: -64px; top: 236px; }
.fchip--b { left: -64px; top: 292px; }
.fchip { width: max-content; }
.lightbox figcaption > .fine { display: block; margin-top: 4px; }

/* ===== widgets/photo-credits.css ===== */
/* Photo credits */
.lightbox__credit { display: block; margin-top: 6px; font-size: .78rem; color: #9fb5a7; }
.lightbox__credit a { color: var(--gold-300); }
.credits { columns: 2 320px; column-gap: var(--sp-6); font-size: .88rem; color: var(--slate-600); padding-left: 1.1em; }
.credits li { break-inside: avoid; margin-bottom: var(--sp-2); }
.photo-frame { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.photo-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-frame figcaption { position: absolute; inset: auto 0 0 0; padding: var(--sp-5) var(--sp-4) var(--sp-3); font-size: .78rem; color: #fff; background: linear-gradient(to top, rgba(5,42,26,.8), transparent); }
.photo-frame figcaption a { color: var(--gold-300); }
.card__thumb { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: rgba(255,255,255,.85); }
.card__thumb::after { color: rgba(255,255,255,.9); }
