/*
Theme Name: Bart Basi — Midnight Gold
Theme URI: https://bartbasi.com
Author: Bart A. Basi III
Description: Classic, Customizer-driven personal executive theme for Bart A. Basi III. Midnight Gold design — deep navy, champagne gold, Playfair Display + Inter. No page builder, no build step. Every visible string is editable under Appearance → Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bartbasi
*/

/* ============================================================
   1. DESIGN TOKENS (Midnight Gold — locked palette)
   Dark is the default; [data-theme="light"] overrides.
   ============================================================ */
:root {
  --navy-deep: #0B1A33;
  --navy-mid: #122546;
  --navy-rich: #1B3A6B;
  --ink: #070D1A;          /* near-black sections */
  --ink-soft: #0A1322;
  --gold: #D4A017;
  --gold-soft: #E3BC55;
  --gold-dim: rgba(212, 160, 23, 0.35);

  --bg: var(--navy-deep);
  --bg-alt: var(--ink);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-solid: #0E2040;
  --border: rgba(212, 160, 23, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);

  --text: #C7D1E0;          /* light-gray body on dark */
  --text-strong: #F4F6FA;
  --text-muted: #8FA0B8;
  --gold-text: #E3BC55;     /* gold that passes AA on dark */
  --link: var(--gold-soft);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 4px;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #F7F5EF;
  --bg-alt: #FFFFFF;
  --bg-card: rgba(11, 26, 51, 0.04);
  --bg-card-solid: #FFFFFF;
  --border: rgba(150, 110, 12, 0.25);
  --border-soft: rgba(11, 26, 51, 0.10);

  --text: #36435A;
  --text-strong: #0B1A33;
  --text-muted: #5C6B83;
  --gold-text: #8E6B0B;     /* darker gold for AA on light */
  --link: #8E6B0B;
  --shadow-card: 0 18px 50px rgba(11, 26, 51, 0.10);
}

/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.18;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.35rem; }

a { color: var(--link); text-decoration: none; transition: color 0.25s ease, opacity 0.25s ease; }
a:hover { opacity: 0.85; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: #081120;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

/* Gold italic accent inside display headings */
.accent {
  font-style: italic;
  color: var(--gold-text);
}

/* Small-caps gold eyebrow label above sections */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: #081120;
}
.btn--gold:hover { background: var(--gold-soft); box-shadow: 0 10px 28px var(--gold-dim); }

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

.btn .btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   4. HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile-nav overlay. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 var(--border-soft);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-strong);
  white-space: nowrap;
}
.site-brand .accent { font-style: normal; color: var(--gold-text); }
.site-brand img { max-height: 52px; width: auto; }

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0;
}
.site-nav a:hover { color: var(--gold-text); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; position: relative; z-index: 2; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-text); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  width: 46px;
  height: 42px;
  cursor: pointer;
  color: var(--text-strong);
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--bg) 97%, black);
    display: grid;
    place-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.6rem; }
  .site-nav a { font-size: 1rem; }
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 85% 10%, rgba(27, 58, 107, 0.55), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(212, 160, 23, 0.06), transparent 55%),
    var(--bg);
  overflow: hidden;
  padding: 7.5rem 0 4rem;
}
[data-theme="light"] .hero {
  background:
    radial-gradient(1100px 600px at 85% 10%, rgba(27, 58, 107, 0.10), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(212, 160, 23, 0.10), transparent 55%),
    var(--bg);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3rem;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 2rem;
}
.hero-eyebrow .sep { color: var(--text-muted); }

.hero-title { margin-bottom: 1.8rem; }
.hero-title span { display: block; }

.hero-subhead {
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 2.6rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-figure {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 430px);
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 1.6rem -1.6rem -1.6rem 1.6rem;
  border: 1px solid var(--border);
  z-index: 0;
  pointer-events: none;
}
.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 11 / 16;
  object-fit: cover;
  object-position: 50% 0;
  box-shadow: var(--shadow-card);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(var(--gold), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 900px) {
  .hero { padding-top: 6.5rem; }
  .hero .container { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-figure { justify-self: center; width: min(100%, 360px); }
  /* Mobile art direction: keep the face in frame */
  .hero-figure img { aspect-ratio: 4 / 5; object-position: 50% 12%; }
  .hero-scroll { display: none; }
}

/* ============================================================
   6. SECTIONS — shared rhythm
   ============================================================ */
.section { padding: var(--section-pad) 0; position: relative; }
.section--ink { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 3.2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 0.12s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.36s; }

/* ============================================================
   7. EXECUTIVE PROFILE
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.profile-figure { position: relative; margin: 0; }
.profile-figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.profile-figure::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--border);
  pointer-events: none;
}
.profile-quote-mark {
  position: absolute;
  top: -3.5rem;
  left: -1rem;
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: rgba(212, 160, 23, 0.10);
  pointer-events: none;
  user-select: none;
}
.profile-body { font-size: 1.12rem; }
.profile-body strong { color: var(--gold-text); font-weight: 600; }

.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
}
.veteran-badge svg { color: var(--gold-text); flex: none; }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-figure { max-width: 380px; }
}

/* ============================================================
   8. CORE COMPETENCIES
   ============================================================ */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border-soft);
}
.competency-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 0 solid var(--border-soft);
  background: var(--bg-card);
  transition: background-color 0.35s ease;
}
.competency-card:nth-child(odd) { border-right-width: 1px; }
.competency-card:nth-child(n+3) { border-top-width: 1px; }
.competency-card:hover { background: color-mix(in srgb, var(--gold) 5%, var(--bg-card)); }

.competency-num {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.1rem;
}
.competency-icon { color: var(--gold-text); margin-bottom: 1.2rem; }
.competency-card h3 { margin-bottom: 0.7rem; }
.competency-card p { margin: 0; color: var(--text); font-size: 1rem; }

@media (max-width: 760px) {
  .competency-grid { grid-template-columns: 1fr; }
  .competency-card:nth-child(odd) { border-right-width: 0; }
  .competency-card:nth-child(n+2) { border-top-width: 1px; }
}

/* ============================================================
   9. CAREER TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  list-style: none;
  max-width: 780px;
  margin: 1rem 0 0;
  padding: 0 0 0 2.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--gold-dim), var(--border-soft));
}
.timeline-item { position: relative; padding-bottom: 3.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-node {
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-text);
}
.timeline-node::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-era {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
  margin-bottom: 0.45rem;
}
.timeline-item h3 { margin-bottom: 0.25rem; }
.timeline-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.9rem;
}
.timeline-item p { margin: 0; max-width: 56ch; }

/* ============================================================
   10. METRICS
   ============================================================ */
.metrics-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--gold-text);
  line-height: 1.05;
  display: block;
  margin-bottom: 0.7rem;
  font-variant-numeric: lining-nums;
}
.metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
}
.metric-sublabel {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   11. SPEAKING
   ============================================================ */
.speaking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 3.5rem;
}
.speaking-figure { position: relative; margin: 0; }
.speaking-figure img { width: 100%; box-shadow: var(--shadow-card); }
.speaking-figure::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--border);
  pointer-events: none;
}
.speaking-figure figcaption {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.topic-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.topic-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--text-strong);
}
.topic-list li::before {
  content: "—";
  color: var(--gold-text);
  flex: none;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  margin-bottom: 2.5rem;
}
.engagement-card { background: var(--bg); padding: 1.6rem 1.8rem; }
.section--ink .engagement-card { background: var(--bg-alt); }
.engagement-card h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.engagement-card span { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 900px) {
  .speaking-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   12. INSIGHTS
   ============================================================ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  margin-bottom: 2.8rem;
}
.insight-card {
  background: var(--bg-card-solid);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background-color 0.3s ease;
}
.insight-card:hover { background: color-mix(in srgb, var(--gold) 5%, var(--bg-card-solid)); }
.insight-cat {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.insight-card h3 a { color: var(--text-strong); }
.insight-card h3 a:hover { color: var(--gold-text); }
.insight-card p { margin: 0; font-size: 0.98rem; color: var(--text); }
.insight-foot {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.insight-foot .more { color: var(--gold-text); font-weight: 600; }
.insights-cta { text-align: center; }

@media (max-width: 760px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   13. TRUSTED BY / ADVISORY
   ============================================================ */
.trusted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.trusted-card { background: var(--bg-card-solid); padding: 2rem 2.2rem; }
.trusted-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.trusted-role {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.7rem;
}
.trusted-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   14. ENDORSEMENTS (slider)
   ============================================================ */
.endorse-slider { position: relative; max-width: 820px; margin-inline: auto; text-align: center; }
.endorse-quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  color: rgba(212, 160, 23, 0.18);
  display: block;
  margin-bottom: 2rem;
  user-select: none;
}
.endorse-track { position: relative; min-height: 16rem; }
.endorse-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.endorse-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.endorse-slide blockquote {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.6;
  color: var(--text-strong);
}
.endorse-name {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.endorse-org { display: block; margin-top: 0.4rem; font-size: 0.95rem; color: var(--text-muted); }

.endorse-dots { display: flex; justify-content: center; gap: 0.7rem; margin-top: 2.4rem; }
.endorse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--border-soft);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.endorse-dot.is-active { background: var(--gold); transform: scale(1.25); }
.endorse-dot:hover { background: var(--gold-dim); }

/* ============================================================
   15. FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  border: 0;
  padding: 1.5rem 0.2rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--text-strong);
  transition: color 0.25s ease;
}
.faq-question:hover { color: var(--gold-text); }
.faq-icon { flex: none; color: var(--gold-text); transition: transform 0.3s var(--ease); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.faq-answer-inner { padding: 0 0.2rem 1.6rem; max-width: 64ch; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   16. CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-links { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
}
.contact-links a:hover { color: var(--gold-text); opacity: 1; }
.contact-links svg { color: var(--gold-text); flex: none; }

.contact-form { display: grid; gap: 1.7rem; }
.form-field { display: grid; gap: 0.55rem; }
.form-field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  padding: 0.65rem 0.1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-strong);
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-field ::placeholder { color: var(--text-muted); opacity: 0.8; }

/* honeypot — hidden from humans, present for bots */
.bb-field-website { position: absolute !important; left: -9999px; }

.form-status { font-size: 0.95rem; min-height: 1.4rem; margin: 0; }
.form-status.is-error { color: #E08C8C; }
.form-status.is-success { color: var(--gold-text); }
[data-theme="light"] .form-status.is-error { color: #A33A3A; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.4rem 0;
  background: var(--bg-alt);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-strong); }
.footer-legal { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); }
.footer-social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--text);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-text); opacity: 1; }

/* ============================================================
   18. INNER PAGES / BLOG
   ============================================================ */
.page-hero {
  padding: 10rem 0 4.5rem;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(27, 58, 107, 0.45), transparent 60%),
    var(--bg);
}
[data-theme="light"] .page-hero {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(27, 58, 107, 0.08), transparent 60%),
    var(--bg);
}
.page-hero h1 { margin-bottom: 0.6rem; }
.breadcrumbs { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.6rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold-text); }

.entry-content { max-width: 720px; font-size: 1.1rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.4rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { margin: 2rem 0; }
.entry-content blockquote {
  margin: 2.2rem 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-strong);
}
.entry-meta { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2rem; }

.post-list { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); }
.post-list .insight-card h2 { font-size: 1.5rem; margin: 0; }

.pagination { margin-top: 2.5rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-size: 0.85rem;
}
.pagination .page-numbers.current { border-color: var(--gold); color: var(--gold-text); }

/* ============================================================
   19. MOTION SAFETY — full reduced-motion experience
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-scroll::after { animation: none; }
}

/* Reveal fallback when JS is unavailable */
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   20. PRINT
   ============================================================ */
@media print {
  .site-header, .hero-scroll, .theme-toggle, .nav-toggle, .site-footer .footer-social { display: none; }
  body { background: #fff; color: #111; }
}
