/* ==========================================================================
   Lumint - Main Stylesheet
   Financial Services / Currency Management
   ========================================================================== */

/* Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&family=DM+Serif+Display:ital@0;1&display=swap');

/* ==========================================================================
   1. CSS Reset / Normalize
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-weight: normal;
}

p {
  overflow-wrap: break-word;
}

/* ==========================================================================
   2. CSS Custom Properties
   ========================================================================== */

:root {
  /* ---- Colors ---- */
  --color-navy:          #1a2332;
  --color-navy-dark:     #111827;
  --color-navy-light:    #243044;
  --color-charcoal:      #2d3a4a;
  --color-charcoal-light:#3d4f63;
  --color-slate:         #64748b;
  --color-slate-light:   #94a3b8;

  --color-white:         #ffffff;
  --color-off-white:     #f8f9fb;
  --color-light-gray:    #f1f3f6;
  --color-mid-gray:      #e2e6ec;
  --color-border:        #d5dbe4;

  --color-accent:        #2c6fbb;
  --color-accent-dark:   #1e4f8a;
  --color-accent-light:  #4a90d9;
  --color-accent-subtle: #eaf1fa;

  --color-success:       #16a34a;
  --color-warning:       #d97706;
  --color-error:         #dc2626;

  --color-text-primary:  #1e293b;
  --color-text-secondary:#475569;
  --color-text-muted:    #94a3b8;
  --color-text-inverse:  #ffffff;
  --color-text-link:     var(--color-accent);

  /* ---- Typography ---- */
  --font-body:           'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading:        'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-mono:           'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  --leading-tight:    1.2;
  --leading-snug:     1.35;
  --leading-normal:   1.6;
  --leading-relaxed:  1.75;

  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.02em;
  --tracking-wider:   0.05em;
  --tracking-widest:  0.1em;

  /* ---- Spacing ---- */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* ---- Layout ---- */
  --container-sm:    640px;
  --container-md:    768px;
  --container-lg:    1024px;
  --container-xl:    1200px;
  --container-2xl:   1400px;
  --content-width:   720px;

  --nav-height:      80px;
  --nav-height-scrolled: 64px;

  /* ---- Borders & Radii ---- */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl:    0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-nav:   0 2px 8px rgba(0, 0, 0, 0.08);

  /* ---- Transitions ---- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-Index Scale ---- */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-nav:       500;
  --z-toast:     600;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-navy);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a:not([class]) {
  color: var(--color-text-link);
  transition: color var(--transition-fast);
}

a:not([class]):hover {
  color: var(--color-accent-dark);
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--color-accent-subtle);
  font-style: italic;
  color: var(--color-text-secondary);
}

blockquote p {
  margin-bottom: var(--space-2);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  color: var(--color-text-primary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-light-gray);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

pre {
  background: var(--color-navy-dark);
  color: var(--color-light-gray);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ---- Responsive Type Scale ---- */
@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-5xl); }
}

/* ==========================================================================
   4. Layout: Container & Grid
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--content-width);
}

.container--wide {
  max-width: var(--container-2xl);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--color-navy);
  transition: height var(--transition-base),
              background var(--transition-base),
              box-shadow var(--transition-base);
}

.site-nav.is-scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(26, 35, 50, 0.97);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-white);
  letter-spacing: var(--tracking-wide);
}

/* Desktop Navigation Links */
.nav-menu {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-white);
}

.nav-link.is-active {
  border-bottom: 2px solid var(--color-white);
  padding-bottom: calc(var(--space-2) - 2px);
}

/* Dropdown arrow indicator */
.nav-link--has-dropdown::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: var(--space-1);
  margin-top: -2px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link--has-dropdown::after {
  transform: rotate(-135deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: var(--space-2) 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast),
              visibility var(--transition-fast),
              transform var(--transition-fast);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-primary);
  text-transform: none;
  letter-spacing: normal;
  transition: background var(--transition-fast),
              color var(--transition-fast);
}

.nav-dropdown a:hover {
  background: var(--color-light-gray);
  color: var(--color-accent);
}

/* Nav CTA Button */
.nav-cta {
  display: none;
  margin-left: var(--space-4);
}

@media (min-width: 1024px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* ---- Mobile Navigation (Hamburger) ---- */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base),
              opacity var(--transition-base);
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--color-navy);
  padding: var(--space-8) var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--color-white);
}

.mobile-nav__sub {
  padding-left: var(--space-6);
}

.mobile-nav__sub a {
  font-size: var(--text-base);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--dark:hover {
  background: var(--color-navy-light);
  border-color: var(--color-navy-light);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ==========================================================================
   7. Hero Sections
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 480px;
  padding: calc(var(--nav-height) + var(--space-16)) var(--space-6) var(--space-16);
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero--full {
  min-height: 100vh;
}

.hero--medium {
  min-height: 560px;
}

.hero--short {
  min-height: 320px;
}

/* Dark overlay for readability over background images */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.25) 0%,
    rgba(26, 35, 50, 0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-xl);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  text-align: left;
}

.hero__content--left {
  text-align: left;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.hero__content--left .hero__subtitle {
  margin-left: 0;
  margin-right: auto;
}

.hero__content:not(.hero__content--left) .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-start;
}

.hero__content--left .hero__actions {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .hero {
    min-height: 560px;
    padding-top: calc(var(--nav-height) + var(--space-20));
    padding-bottom: var(--space-20);
  }

  .hero--full {
    min-height: 100vh;
  }

  .hero--medium {
    min-height: 640px;
  }

  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__subtitle {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-6xl);
  }
}

/* ==========================================================================
   8. Content Sections
   ========================================================================== */

.section {
  padding: var(--space-16) 0;
}

.section--sm {
  padding: var(--space-10) 0;
}

.section--lg {
  padding: var(--space-24) 0;
}

/* Alternating backgrounds */
.section--light {
  background: var(--color-off-white);
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section--charcoal {
  background: var(--color-charcoal);
  color: var(--color-text-inverse);
}

.section--charcoal h1,
.section--charcoal h2,
.section--charcoal h3,
.section--charcoal h4 {
  color: var(--color-white);
}

.section--charcoal p {
  color: rgba(255, 255, 255, 0.7);
}

.section--accent-subtle {
  background: var(--color-accent-subtle);
}

@media (min-width: 768px) {
  .section    { padding: var(--space-20) 0; }
  .section--sm { padding: var(--space-12) 0; }
  .section--lg { padding: var(--space-32) 0; }
}

/* Section Header */
.section-header {
  max-width: 680px;
  margin-bottom: var(--space-12);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section--dark .section-header__eyebrow,
.section--charcoal .section-header__eyebrow {
  color: var(--color-accent-light);
}

/* Two-column content layout */
.content-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .content-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .content-split--reverse .content-split__media {
    order: -1;
  }
}

.content-split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   9. Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base),
              transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.figure-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.figure-row__image {
  flex: 1;
}

.figure-row__image img {
  width: 100%;
  height: auto;
}

.figure-row__text {
  flex: 1;
}

.figure-row__text h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.figure-row__text ul {
  list-style: disc;
  padding-left: var(--space-5);
}

.figure-row__text li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .figure-row {
    flex-direction: row;
    align-items: center;
  }
}

.card--flat {
  background: none;
  border-radius: 0;
  box-shadow: none;
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-6);
}

.card--flat:hover {
  box-shadow: none;
  transform: none;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-6);
}

.card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Feature card - icon + text */
.card--feature {
  padding: var(--space-8);
  text-align: center;
}

.card--feature .card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
}

.card--feature .card__icon svg {
  width: 28px;
  height: 28px;
}

/* Stat card */
.card--stat {
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--color-border);
}

.card--stat .card__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.card--stat .card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ==========================================================================
   10. Team / People Grid
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-8);
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-light-gray);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--transition-base);
}

.team-card:hover .team-card__photo img {
  filter: grayscale(0%);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.team-card__title {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-card__bio.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.team-card__toggle {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-accent);
  cursor: pointer;
  margin-top: var(--space-2);
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}

.team-card__toggle:hover {
  color: var(--color-accent-dark);
}

.team-card__education {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  text-align: left;
  margin-top: var(--space-3);
}

.team-card__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.team-card__email {
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.team-card__email:hover {
  color: var(--color-accent-dark);
}

.team-card__linkedin {
  color: var(--color-slate);
  transition: color var(--transition-fast);
}

.team-card__linkedin:hover {
  color: var(--color-accent);
}

/* Leadership layout - larger feature cards */
.team-grid--leadership {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .team-grid--leadership {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid--leadership {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card--featured {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .team-card--featured {
    grid-template-columns: 160px 1fr;
  }

  .team-card--featured .team-card__photo {
    width: 160px;
    height: 160px;
    margin: 0;
  }
}

/* ==========================================================================
   11. Press / Article Listings
   ========================================================================== */

.press-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.press-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .press-item {
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
  }
}

.press-item__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--color-light-gray);
}

.press-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-item__date {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.press-item__source {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.press-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}

.press-item:hover .press-item__title {
  color: var(--color-accent);
}

.press-item__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Article card grid (for blog/insights listing) */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Featured article spanning full width */
.article-grid__featured {
  grid-column: 1 / -1;
}

.article-grid__featured .card {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .article-grid__featured .card {
    grid-template-columns: 1fr 1fr;
  }

  .article-grid__featured .card__image {
    aspect-ratio: auto;
    min-height: 300px;
  }
}

/* ==========================================================================
   12. Research / Long-form Article Styles
   ========================================================================== */

.article {
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-16);
}

.article__header {
  max-width: var(--content-width);
  margin: 0 auto var(--space-10);
  text-align: center;
}

.article__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.article__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .article__title {
    font-size: var(--text-5xl);
  }
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.article__meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.article__hero-image {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto var(--space-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article__hero-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Article body prose styles */
.article__body {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article__body p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  color: var(--color-text-secondary);
}

.article__body h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.article__body h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.article__body ul,
.article__body ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.article__body ul {
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.article__body li::marker {
  color: var(--color-accent);
}

/* Figures within articles */
.article__table-wrap {
  margin: var(--space-8) 0 var(--space-10);
}

.article__table {
  width: 100%;
  border-collapse: collapse;
}

.article__table caption {
  caption-side: bottom;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
}

.article__table th,
.article__table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

.article__table th {
  color: var(--color-text-secondary);
  font-weight: 400;
  border-bottom: 1px solid var(--color-border);
}

.article__table td {
  border-bottom: 1px solid var(--color-light-gray);
}

.article__figure {
  margin: var(--space-10) 0;
}

.article__figure--wide {
  max-width: var(--container-lg);
  margin-left: auto;
  margin-right: auto;
}

/* Pull the figure wider than the text column */
@media (min-width: 900px) {
  .article__figure--wide {
    margin-left: calc((var(--content-width) - var(--container-lg)) / 2);
    margin-right: calc((var(--content-width) - var(--container-lg)) / 2);
  }
}

.article__figure img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article__figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* Callout / highlight boxes within articles */
.article__callout {
  background: var(--color-accent-subtle);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
}

.article__callout p {
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

/* Table within articles */
.article__body table {
  width: 100%;
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
}

.article__body th,
.article__body td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.article__body th {
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-light-gray);
}

.article__body td {
  color: var(--color-text-secondary);
}

/* Author bio at bottom of article */
.article__author {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  margin-top: var(--space-12);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  align-items: center;
}

.article__author-photo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.article__author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__author-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.article__author-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   13. Data Visualization Gallery
   ========================================================================== */

.viz-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .viz-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .viz-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.viz-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-base),
              transform var(--transition-base);
}

.viz-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.viz-card__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-light-gray);
  overflow: hidden;
}

.viz-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.viz-card:hover .viz-card__preview img {
  transform: scale(1.03);
}

.viz-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 35, 50, 0.6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.viz-card:hover .viz-card__overlay {
  opacity: 1;
}

.viz-card__body {
  padding: var(--space-5);
}

.viz-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.viz-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.viz-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.viz-card__tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  background: var(--color-light-gray);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
}

/* Full-width visualization embed */
.viz-embed {
  width: 100%;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.viz-embed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.viz-embed__title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy);
}

.viz-embed__container {
  padding: var(--space-6);
  min-height: 300px;
}

/* ==========================================================================
   14. Contact Page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* Contact info */
.contact-info__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.contact-info__label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(44, 111, 187, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-10);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

/* Footer brand column */
.footer__brand {
  max-width: 300px;
}

.footer__brand a {
  display: inline-block;
  margin-bottom: var(--space-5);
}

.footer__brand img {
  height: 32px;
  width: auto;
}

.footer__brand address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.55);
}

/* Footer link columns */
.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer__links li {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.footer__links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   16. Responsive Helpers & Breakpoints
   ========================================================================== */

/* Body padding to offset fixed nav — hero pages don't need it since hero goes full bleed */
.page-body {
  padding-top: var(--nav-height);
}

/* Hide / show at breakpoints */
.hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: initial !important;
  }
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-tablet {
    display: initial !important;
  }
  .hide-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   17. Utility Classes
   ========================================================================== */

/* ---- Text alignment ---- */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ---- Text color ---- */
.text-white    { color: var(--color-white); }
.text-navy     { color: var(--color-navy); }
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-secondary{ color: var(--color-text-secondary); }

/* ---- Font weight ---- */
.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

/* ---- Font families ---- */
.font-heading  { font-family: var(--font-heading); }
.font-body     { font-family: var(--font-body); }

/* ---- Font size ---- */
.text-xs  { font-size: var(--text-xs); }
.text-sm  { font-size: var(--text-sm); }
.text-base{ font-size: var(--text-base); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* ---- Text transform ---- */
.uppercase   { text-transform: uppercase; }
.lowercase   { text-transform: lowercase; }
.capitalize  { text-transform: capitalize; }

/* ---- Background ---- */
.bg-white      { background-color: var(--color-white); }
.bg-off-white  { background-color: var(--color-off-white); }
.bg-light      { background-color: var(--color-light-gray); }
.bg-navy       { background-color: var(--color-navy); }
.bg-navy-dark  { background-color: var(--color-navy-dark); }
.bg-charcoal   { background-color: var(--color-charcoal); }
.bg-accent     { background-color: var(--color-accent); }

/* ---- Display ---- */
.d-block       { display: block; }
.d-inline      { display: inline; }
.d-inline-block{ display: inline-block; }
.d-flex        { display: flex; }
.d-grid        { display: grid; }
.d-none        { display: none; }

/* ---- Flexbox ---- */
.flex-row        { flex-direction: row; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.items-end       { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start   { justify-content: flex-start; }
.justify-end     { justify-content: flex-end; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ---- Spacing (margin & padding) ---- */
.m-0  { margin: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10{ margin-top: var(--space-10); }
.mt-12{ margin-top: var(--space-12); }
.mt-16{ margin-top: var(--space-16); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10{ margin-bottom: var(--space-10); }
.mb-12{ margin-bottom: var(--space-12); }
.mb-16{ margin-bottom: var(--space-16); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0  { padding: 0; }
.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-10{ padding-top: var(--space-10); padding-bottom: var(--space-10); }
.py-12{ padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16{ padding-top: var(--space-16); padding-bottom: var(--space-16); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

/* ---- Width ---- */
.w-full { width: 100%; }
.max-w-content { max-width: var(--content-width); }
.max-w-lg { max-width: var(--container-lg); }
.max-w-xl { max-width: var(--container-xl); }

/* ---- Border & Radius ---- */
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ---- Shadow ---- */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ---- Overflow ---- */
.overflow-hidden { overflow: hidden; }

/* ---- Screen reader only ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Image object-fit ---- */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ---- Lists (restore defaults in content areas) ---- */
.prose ul { list-style: disc; padding-left: var(--space-6); }
.prose ol { list-style: decimal; padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); color: var(--color-text-secondary); }
.prose li::marker { color: var(--color-accent); }

/* ==========================================================================
   18. Animations & Transitions
   ========================================================================== */

/* Fade in on scroll (pair with JS IntersectionObserver) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children animation */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 300ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 400ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 500ms; }

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

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   19. Print Styles
   ========================================================================== */

@media print {
  .site-nav,
  .mobile-nav,
  .site-footer,
  .nav-cta,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .page-body {
    padding-top: 0;
  }

  .hero {
    min-height: auto;
    padding: 1cm 0;
    background: none !important;
    color: #000;
  }

  .hero::before {
    display: none;
  }

  .hero__title,
  .hero__subtitle {
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  .section {
    padding: 1cm 0;
  }
}
