/* =============================================================================
   styles.css - dark oak theme
   The whole palette lives in the :root block below, so the look swaps in one
   block. Everything under it is layout and components.

   This is the client firm's own brand, deliberately not Memento's. Warm
   near-black ground, bone type, brass accent, serif display. Memento's product
   surfaces are forest green with an amber accent; the two must not be confused.

   Contrast (measured, WCAG 2.1):
     ground #12100e     band #171512    card #1c1a16    inset #232019
     --text     #f0ece2  16.09 / 15.45 / 14.73 / 13.78
     --text-2   #cfc9bb  11.50 / 11.04 / 10.53 /  9.85
     --muted    #a09889   6.64 /  6.38 /  6.08 /  5.69
     --muted-2  #938b7d   5.63 /  5.40 /  5.15 /  4.82
     --accent   #c9a227   7.85 /  7.53 /  7.18 /  6.72  (ground on accent 7.85)
     --border-strong #7d7566  4.17 / 4.00 / 3.81 / 3.57  (UI borders, AA 3:1)

   The page is theme-locked: dark everywhere, no section inverts.
   ========================================================================== */

/* ------------------------------------------------------------------ Fonts -- */
/* Self-hosted, shared with the rest of the site. EB Garamond carries the firm
   wordmark and headings: a law firm's own site is one of the few briefs where
   a serif is the convention rather than decoration. Geist carries body copy. */
@font-face {
  font-family: "Geist";
  src: url("../../assets/fonts/geist-var.woff2") format("woff2-variations"),
       url("../../assets/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../../assets/fonts/eb-garamond-var.woff2") format("woff2-variations"),
       url("../../assets/fonts/eb-garamond-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette - dark oak ------------------------------------------------------ */
  --bg: #12100e;            /* warm near-black ground  */
  --bg-2: #171512;          /* band (alt sections)     */
  --surface: #1c1a16;       /* card                    */
  --surface-2: #232019;     /* inset pills / tags      */

  --border: #2a2620;        /* hairline, decorative    */
  --border-strong: #7d7566; /* interactive boundaries  */

  --text: #f0ece2;          /* bone                    */
  --text-2: #cfc9bb;
  --muted: #a09889;
  --muted-2: #938b7d;

  --accent: #c9a227;        /* brass - the only accent */
  --accent-ink: #12100e;    /* text on a brass field   */
  --accent-tint: #221d10;
  --accent-line: #8a7431;
  --accent-hi: #ddb843;    /* brass, raised state on a dark ground */

  /* Type */
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1080px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 18px 44px -24px rgba(0, 0, 0, 0.8);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root { color-scheme: dark; }

/* ------------------------------------------------------- Numbers band ---
   Out of the hero on purpose: the hero carries the name, this carries the
   facts. Hairline separation, no cards. */
.stats-band {
  padding: clamp(24px, 4vh, 38px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

/* ----------------------------------------------------------------- Reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ----------------------------------------------------------------- Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px clamp(20px, 5vw, 40px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: var(--accent);
}
.brand-mark.small { width: 28px; height: 28px; font-size: 0.78rem; border-radius: 7px; }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.nav-menu a.active { color: var(--text); }
.nav-menu a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-cta {
  color: var(--text) !important;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.nav-cta:hover { background: var(--surface-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero --- */
.hero {
  padding: clamp(64px, 11vh, 120px) 0 clamp(56px, 9vh, 96px);
}
/* .hero-inner keeps the shared .container width so the hero stays left-aligned
   with every section below it; individual lines set their own measure. */

.hero-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}

.hero-build {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  line-height: 1.4;
  margin: 16px 0 0;
  color: var(--muted);
}
.hero-rotator {
  color: var(--accent);
  transition: opacity 0.3s var(--ease);
}
.hero-rotator.swap { opacity: 0; }

.hero-tagline {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.03rem;
  color: var(--text-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary { color: var(--accent-ink); background: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

/* Lives in .stats-band now, so it carries no top rule or margin of its own. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--border-strong);
}
.hero-stats .stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--accent);
}
.hero-stats .stat-label { color: var(--muted-2); font-size: 0.85rem; }

/* -------------------------------------------------------------- Sections - */
.section { padding: clamp(64px, 10vh, 108px) 0; }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}
/* the one decorative flourish left: a short rule after the kicker */
.section-kicker::after {
  content: "";
  flex: none;
  width: 34px;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 14px 0 0;
  color: var(--text);
}
.section-lead { color: var(--muted); margin: 14px 0 0; font-size: 1.03rem; }

.section-note {
  margin: 30px 0 0;
  color: var(--muted-2);
  font-size: 0.87rem;
  max-width: 80ch;
}
.section-note code {
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

/* --------------------------------------------------------------- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.section-alt .card { border-color: #2f2a22; }

/* ------------------------------------------------------- Practice areas -- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 22px);
  align-items: start;
}

.skill-group {
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.skill-group:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.skill-group h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
.practice-blurb { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }

.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
ul.skill-list { margin: 0; padding: 0; list-style: none; }
.skill-pill {
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.section-alt .skill-pill { background: #252119; }

/* "See N matters" cross-filter link at the foot of a practice card */
.card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.6;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.card-action:hover { color: var(--accent-hi); border-bottom-color: var(--accent-hi); }
.card-action::after { content: "\2192"; }

/* ------------------------------------------------------------ Attorneys -- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 22px);
  align-items: start;
}
.person-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.person-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.person-card.is-open { border-color: var(--border-strong); }

.person-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
}
.person-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.person-role {
  margin: 5px 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted-2);
}
.person-bio { color: var(--muted); margin: 0 0 18px; font-size: 0.94rem; }

/* Disclosure button shared by attorney cards and matter cards */
.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 15px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.87rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s var(--ease);
}
.disclosure:hover { background: #242019; }
.disclosure-icon {
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
[aria-expanded="true"] .disclosure-icon { transform: translateY(1px) rotate(-135deg); }

.panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.panel p { margin: 0 0 14px; font-size: 0.94rem; color: var(--text-2); }
.panel p:last-child { margin-bottom: 0; }
.panel-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted-2);
  margin: 20px 0 10px;
}
.panel > .panel-title:first-child { margin-top: 0; }

/* Matter links inside an attorney panel */
.matter-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.matter-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0 0 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.matter-link:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.matter-link .matter-link-cat {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* --------------------------------------------------------- Matters ------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-chip:hover { color: var(--text); background: var(--surface-2); }
.filter-chip.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.filter-status {
  margin: 0 0 30px;
  font-size: 0.87rem;
  color: var(--muted-2);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 22px);
  align-items: start;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  scroll-margin-top: 90px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.project-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.project-card.is-open { border-color: var(--border-strong); }
.project-card.is-target { border-color: var(--accent); }

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.project-cat {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.project-meta { text-align: right; font-size: 0.79rem; color: var(--muted-2); white-space: nowrap; }
.project-role { display: block; color: var(--muted); font-weight: 600; }

.project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--text);
}

.project-blurb { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }

.project-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.project-highlights li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.project-highlights li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.project-team { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.team-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.team-link:hover {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}

.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.project-tag {
  font-size: 0.77rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 6px;
}

.project-card.hide { display: none; }

/* ------------------------------------------------------- How we work ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.accordion {
  border-top: 1px solid var(--border);
}
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-heading { margin: 0; font: inherit; font-weight: inherit; }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 2px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.accordion-trigger:hover { color: var(--accent); }
.accordion-panel { padding: 0 2px 22px; }
.accordion-panel p { margin: 0 0 14px; color: var(--text-2); font-size: 1rem; }
.accordion-panel p:last-child { margin-bottom: 0; }
.accordion-panel .skill-list { margin-top: 16px; }

.about-card { padding: 24px; }
.about-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--text);
}
.about-facts { margin: 0; display: grid; gap: 16px; }
.about-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted-2);
}
.about-facts dd { margin: 5px 0 0; font-weight: 600; color: var(--text); }

/* -------------------------------------------------------------- Contact -- */
.contact-card {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
}
.contact-card .section-kicker { justify-content: center; }
.contact-card .section-title { margin-top: 12px; }
.contact-lead { color: var(--muted); margin: 16px auto 28px; max-width: 52ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-btn:hover { background: var(--surface-2); }
.contact-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.contact-btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.contact-btn svg { width: 17px; height: 17px; display: block; }
.contact-location { margin-top: 22px; color: var(--muted-2); font-size: 0.88rem; }

/* -------------------------------------------------------------- Footer --- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.footer-note { color: var(--muted-2); font-size: 0.85rem; margin: 0; }
.footer-top { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.footer-top:hover { color: var(--accent); }

.footer-disclaimer {
  flex-basis: 100%;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.81rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------- Responsive ---- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 66px 14px auto 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { padding: 11px 13px; font-size: 1rem; }
  .nav-menu a.active::after { display: none; }
  .nav-cta { text-align: center; }

  .about-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  /* Facts band stacks rather than squeezing three columns. */
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-eyebrow { letter-spacing: 0.14em; }
  .hero-stats { gap: 22px; }
  .brand-name { font-size: 0.98rem; }
  .contact-actions { flex-direction: column; }
  .contact-btn { justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .project-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .project-meta { text-align: left; }
  .accordion-trigger { font-size: 1rem; }
}

@media (max-width: 360px) {
  .contact-card { padding: 22px; }
  .hero-stats { gap: 16px; }
  .project-card,
  .person-card,
  .skill-group,
  .about-card { padding: 20px; }
  .section-kicker::after { width: 22px; }
}
