/* ============================================================
   HOMEGEVITY™ — SHARED STYLESHEET
   styles.css · Version 1.1 · 2026

   TABLE OF CONTENTS
   01. Design Tokens (CSS Custom Properties)
   02. Reset & Base
   03. Typography
   04. Layout Utilities
   05. Navigation
   06. Hero Section
   07. Section Scaffold
   08. Cards & KPI Components
   09. Timeline
   10. Buttons
   11. Forms
   12. Badges
   13. Dividers & Spacers
   14. CTA Band
   15. Footer
   16. Modal
   17. Animations & Transitions
   18. Photo / Image Placeholders
   19. Media Page Specifics
   20. Content / Research Page (lang toggle)
   21. About Page Tabs
   22. Responsive Breakpoints
   23. Print Styles
   24. Charts & Scenario Components
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colours */
  --navy:        #1B2D4F;
  --gold:        #C9A84C;
  --gold-light:  #E8D08A;
  --gold-dark:   #9E7E2A;
  --teal:        #0E7A6E;
  --teal-light:  #12A699;
  --teal-dark:   #075C52;
  --red:         #C0392B;
  --red-light:   #E05347;
  --amber:       #D97706;
  --amber-light: #F59E0B;
  --white:       #FFFFFF;

  /* Text & Surface */
  --text:        #1A1A2E;
  --muted:       #5C6B80;
  --faint:       #9AAAB8;
  --bg:          #FAFAF8;
  --surface:     #FFFFFF;
  --surface-alt: #F4F2EE;
  --border:      #E3DDD4;
  --border-dark: #C9C0B4;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale (8px base) */
  --sp-xs:  0.5rem;   /*  8px */
  --sp-sm:  0.75rem;  /* 12px */
  --sp-md:  1rem;     /* 16px */
  --sp-lg:  1.5rem;   /* 24px */
  --sp-xl:  2rem;     /* 32px */
  --sp-2xl: 3rem;     /* 48px */
  --sp-3xl: 4.5rem;   /* 72px */
  --sp-4xl: 6rem;     /* 96px */

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:  0 16px 60px rgba(0,0,0,0.13);

  /* Nav */
  --nav-h: 68px;

  /* Max widths */
  --max-w:    1200px;
  --max-w-sm:  720px;
  --max-w-md:  960px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 440ms;
}


/* ============================================================
   02. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
img, video, iframe {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button { cursor: pointer; }


/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--navy);
  font-weight: 400;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
}
h4 {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
}
p { line-height: 1.7; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}
.section-label.gold   { color: var(--gold); }
.section-label.teal   { color: var(--teal); }
.section-label.red    { color: var(--red); }
.section-label.amber  { color: var(--amber); }
.section-label.navy   { color: var(--navy); }

.section-header {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 1rem;
  max-width: 680px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.75;
}
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.read-more:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }


/* ============================================================
   04. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto-sm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-xl); }
.mt-xl { margin-top: var(--sp-3xl); }


/* ============================================================
   05. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img { height: 32px; width: auto; }
.nav-logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  font-weight: 400;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher { display: none !important; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px;
}
.lang-btn {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); right: 0;
  width: min(320px, 90vw);
  height: calc(100vh - var(--nav-h));
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 850;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast);
}
.nav-drawer a:hover { color: var(--teal); }

/* Buttons inside Mobile Drawer - Forced Equal Sizing */
.nav-drawer .btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  border: 2px solid transparent;
}

/* Neutralizes .btn-sm inside the drawer so height matches */
.nav-drawer .btn.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}

.nav-drawer .btn-secondary {
  border-color: var(--teal);
  color: var(--teal);
}

.nav-drawer .btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ============================================================
   06. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-4xl) clamp(1rem, 6vw, 5rem);
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: min(680px, 90%);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.06;
  margin-top: 0.85rem;
}
.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-kpi-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
}
.hero-kpi-val.teal  { color: var(--teal); }
.hero-kpi-val.gold  { color: var(--gold-dark); }
.hero-kpi-val.amber { color: var(--amber); }
.hero-kpi-val.red   { color: var(--red); }
.hero-kpi-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--faint);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.5; }
  50%       { transform: scaleX(1.4); opacity: 1; }
}


/* ============================================================
   07. SECTION SCAFFOLD
   ============================================================ */
.section {
  padding: var(--sp-4xl) 0;
  background: var(--bg);
}
.section-alt {
  background: var(--surface-alt);
}
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}


/* ============================================================
   08. CARDS & KPI COMPONENTS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Equalize card footer alignment within grid rows */
.grid-3 .card {
  display: flex;
  flex-direction: column;
}

.grid-3 .card > *:last-child {
  margin-top: auto !important;
}

/* KPI */
.kpi { text-align: left; }
.kpi-sm { padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); }
.kpi-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
  display: block;
}
.kpi-desc {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.2rem;
  line-height: 1.35;
  display: block;
}
.kpi-val.teal  { color: var(--teal); }
.kpi-val.gold  { color: var(--gold-dark); }
.kpi-val.amber { color: var(--amber); }
.kpi-val.red   { color: var(--red); }
.kpi-val.navy  { color: var(--navy); }

.red-accent   { background: rgba(192, 57, 43, 0.06); }
.amber-accent { background: rgba(217, 119, 6, 0.07); }
.teal-accent  { background: rgba(14, 122, 110, 0.07); }
.gold-accent  { background: rgba(201, 168, 76, 0.08); }
.navy-accent  { background: rgba(27, 45, 79, 0.06); }

/* Press / media cards */
.press-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow var(--dur-base);
}
.press-card:hover { box-shadow: var(--shadow-md); }
.press-card-outlet {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.press-card-headline {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.35;
}
.press-card-date {
  font-size: 0.72rem;
  color: var(--faint);
}
.press-card-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 0.25rem;
  display: inline-block;
}

/* Lecture card (seminar page) */
.lecture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.lecture-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy);
}
.lecture-card-body {
  padding: 1.5rem;
}
.lecture-card-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}
.lecture-card-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.lecture-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--faint);
}
.lecture-card-meta span { display: flex; align-items: center; gap: 0.3rem; }


/* ============================================================
   09. TIMELINE (horizontal desktop / vertical mobile)
   ============================================================ */
.timeline-strip {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 1rem;
}
/* Connecting line */
.timeline-strip::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-node {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.timeline-node-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--border);
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}
.timeline-node-year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.timeline-node-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.timeline-node-desc strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}


/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    transform var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn-sm  { padding: 0.45rem 1.1rem; font-size: 0.78rem; }
.btn-lg  { padding: 0.85rem 2rem;   font-size: 0.9rem; }

/* Primary — gold on navy */
.btn-primary {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: #14233D;
  box-shadow: 0 4px 16px rgba(27,45,79,0.3);
}
/* Secondary — outlined teal */
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(14,122,110,0.25);
}
/* Ghost — minimal */
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
}
/* Danger */
.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}


/* ============================================================
   11. FORMS
   ============================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.required { color: var(--red); font-weight: 700; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 122, 110, 0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--faint); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239AAAB8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
.form-honeypot { display: none !important; visibility: hidden; }

/* Tab-based contact form */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 0.75rem;
}
.form-success.visible { display: flex; }
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.form-success h3 { color: var(--navy); margin-top: 0.5rem; }
.form-success p  { color: var(--muted); font-size: 0.88rem; max-width: 340px; }


/* ============================================================
   12. BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.gold  { background: rgba(201,168,76,0.12); color: var(--gold-dark); }
.badge.teal  { background: rgba(14,122,110,0.10); color: var(--teal-dark); }
.badge.red   { background: rgba(192,57,43,0.10);  color: var(--red); }
.badge.amber { background: rgba(217,119,6,0.10);  color: var(--amber); }
.badge.navy  { background: var(--navy); color: var(--gold-light); }
.badge.new   { background: var(--red); color: var(--white); }


/* ============================================================
   13. DIVIDERS & SPACERS
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0;
}


/* ============================================================
   14. CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy);
  padding: var(--sp-4xl) 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: #131E33;
  color: rgba(255,255,255,0.65);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo-wordmark {
  font-size: 1.35rem;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
  font-style: italic;
}
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-copy  { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-pdpo  { font-size: 0.7rem;  color: rgba(255,255,255,0.25); line-height: 1.6; }
.footer-disclaimer-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--faint);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--dur-fast);
  display: inline-block;
}

.footer-disclaimer-btn:hover {
  color: var(--gold);
}

/* ============================================================
   16. MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 26, 46, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(24px) scale(0.98);
  transition: transform var(--dur-base) var(--ease-out);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.75rem 0;
}
.modal-header h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}
.modal-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.modal-close {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 1.25rem 1.75rem 2rem; }


/* ============================================================
   17. ANIMATIONS & TRANSITIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-in-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.fade-in-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.fade-in-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.fade-in-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
.fade-in-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }


/* ============================================================
   18. PHOTO / IMAGE PLACEHOLDERS
   ============================================================ */
.photo-placeholder {
  position: relative;
  background: var(--surface-alt);
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  min-height: 200px;
  padding: 1.5rem;
}
.photo-placeholder.landscape { aspect-ratio: 4/3; }
.photo-placeholder.wide      { aspect-ratio: 16/9; }
.photo-placeholder.headshot  { border-radius: 50%; aspect-ratio: 1/1; }
.photo-placeholder.banner    { aspect-ratio: 3/1; min-height: 160px; }
.photo-placeholder.thumb     { aspect-ratio: 16/9; min-height: 120px; }
/* Dashed background grid for extra visibility */
.photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  pointer-events: none;
}


/* ============================================================
   19. MEDIA PAGE SPECIFICS
   ============================================================ */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.social-embed-placeholder {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.press-release-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.press-release-table th {
  text-align: left;
  padding: 0.5rem 1rem;
  background: var(--surface-alt);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}
.press-release-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.press-release-table tr:last-child td { border-bottom: none; }
.press-release-table tr:hover td { background: var(--surface-alt); }


/* ============================================================
   20. CONTENT / RESEARCH PAGE — LANGUAGE TOGGLE
   ============================================================ */
.lang-block { display: none; }
.lang-block.active { display: block; }
.lang-toggle-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: sticky;
  top: calc(var(--nav-h) + 0.5rem);
  z-index: 100;
  margin-bottom: 2rem;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.lang-toggle-bar label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.article-body h3 { margin: 2rem 0 0.75rem; font-size: 1.15rem; }
.article-body p  { margin-bottom: 1.25rem; font-size: 0.98rem; line-height: 1.75; }
.article-body ul { margin: 0.75rem 0 1.25rem 1.25rem; list-style: disc; }
.article-body li { margin-bottom: 0.4rem; font-size: 0.95rem; line-height: 1.65; color: var(--muted); }
.article-citation { font-size: 0.75rem; color: var(--faint); vertical-align: super; margin-left: 1px; }
.references-list { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.references-list li {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  text-indent: -1.25rem;
  list-style: decimal;
  list-style-position: outside;
}


/* ============================================================
   21. ABOUT PAGE — CONTACT TABS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.team-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.team-card .photo-placeholder {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  font-size: 0.6rem;
}
.team-card-name { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.team-card-role { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }


/* ============================================================
   22. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large desktop: 1280px+ — default styles above */

/* Medium desktop / tablet landscape: ≤1024px */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet portrait: ≤768px */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-sm { display: none; }

  /* Grids → single column */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Hero */
  .hero { padding: 3rem 1.25rem 5rem; min-height: auto; }
  .hero-kpis { gap: 0.65rem; }
  .hero-kpi  { min-width: 140px; }

  /* Section */
  .section { padding: 3rem 0; }

  /* Bel-Air 2-col → 1 (if used) */
  #belair .section-inner > div { grid-template-columns: 1fr !important; }
  #founder .section-inner > div { grid-template-columns: 1fr !important; text-align: center; }
  .photo-placeholder.headshot { margin: 0 auto; }

  /* Timeline → vertical */
  .timeline-strip { flex-direction: column; overflow-x: visible; padding-bottom: 0; }
  .timeline-strip::before { top: 10px; bottom: 10px; left: 10px; right: auto; width: 2px; height: auto; }
  .timeline-node { flex-direction: row; align-items: flex-start; text-align: left; min-width: auto; padding: 0 0 1.5rem 0; }
  .timeline-node-dot { margin-bottom: 0; margin-right: 1rem; margin-top: 0; flex-shrink: 0; }
  .timeline-node-year { min-width: 60px; }

  /* Modal full-screen on mobile */
  .modal { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .form-row { grid-template-columns: 1fr; }

  /* Tab bar wraps */
  .tab-bar { overflow-x: auto; flex-wrap: nowrap; }

  /* Charts & verdict layout responsive */
  .verdict-grid { grid-template-columns: 1fr; }
  .waterfall-grid { grid-template-columns: 1fr; }
  .responsive-grid-3 { grid-template-columns: 1fr; }
}

/* Mobile: ≤480px */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-kpis { flex-direction: column; }
  .hero-kpi  { min-width: auto; width: 100%; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-auto-sm { grid-template-columns: 1fr; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
  .section-inner { padding-inline: 1rem; }
  .kpi-val { font-size: 1.4rem; }

  /* Reduce chart heights on very small screens */
  .chart-canvas { height: 200px !important; }
}


/* ============================================================
   23. PRINT STYLES
   ============================================================ */
@media print {
  .nav, .nav-drawer, .cta-band, .site-footer, .modal-overlay,
  .hero-scroll, .lang-switcher, .nav-hamburger, .btn {
    display: none !important;
  }
  body { padding-top: 0; background: white; color: black; font-size: 11pt; }
  .hero { min-height: auto; padding: 1cm 0; }
  .photo-placeholder { border: 1px solid #ccc; background: #f5f5f5; }
  a { color: black; text-decoration: underline; }
  .section, .section-alt { padding: 0.5cm 0; }
}


/* ============================================================
   24. CHARTS & SCENARIO COMPONENTS
   ============================================================ */

/* Generic chart container */
.chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.chart-wrap.full {
  padding-bottom: 1.5rem;
}

.chart-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.chart-subtitle {
  font-size: 0.78rem;
  color: var(--faint);
  margin-bottom: 1.25rem;
}

.chart-canvas {
  position: relative;
  width: 100%;
  height: 260px;
}

/* Scenario table wrapper + table */
.stbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.stbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}
.stbl th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.stbl td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.stbl tr:last-child td {
  border-bottom: none;
}
.stbl tr:hover td {
  background: var(--surface-alt);
}

/* Verdict grid (3-card row) */
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Callout blocks used in research page */
.callout {
  border-left: 3px solid var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  background: var(--surface);
}
.callout.red   { border-color: var(--red);   background: rgba(192,57,43,0.05); }
.callout.amber { border-color: var(--amber); background: rgba(217,119,6,0.05); }
.callout.teal  { border-color: var(--teal);  background: rgba(14,122,110,0.05); }

/* Waterfall grid layout (chart + side tile) */
.waterfall-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 320px);
  gap: 1.5rem;
  align-items: stretch;
}

/* Responsive 3-col grid for KPI tiles */
.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Anchor targets for section headings (scroll offset) */
.anchor-target {
  scroll-margin-top: calc(var(--nav-h) + 80px);
}