/* ============================================
   THE SUNDER FOUNDATION — SHARED STYLESHEET
   v4: responsive + dropdown + mobile menu
   ============================================ */
:root {
  --gold: #B8862A;
  --gold-rich: #D4A437;
  --gold-light: #E8C062;
  --gold-deep: #8B5E0E;
  --verdant: #7AB535;
  --verdant-rich: #5F9521;
  --verdant-deep: #3D6213;
  --verdant-pale: #DCE9C0;
  --magenta: #C7177A;
  --magenta-rich: #E13994;
  --magenta-deep: #8E1259;
  --magenta-pale: #F5D7E6;

  --ink: #1A1410;
  --ink-soft: #3A312A;
  --ink-faint: #6B6357;
  --cream: #FAF3E5;
  --parchment: #F4EBDC;
  --parchment-warm: #ECDFC8;
  --parchment-deep: #E0D0B4;
  --hairline: rgba(26, 20, 16, 0.12);
  --hairline-deep: rgba(26, 20, 16, 0.22);

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);

  --pad-x: clamp(20px, 4vw, 56px);
  --max-w: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--magenta); color: var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ============================================
   CURSOR
   ============================================ */
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}
.cursor-dot.expand {
  width: 28px; height: 28px;
  background: var(--magenta);
  mix-blend-mode: normal;
  opacity: 0.5;
}
.cursor-dot.dark { mix-blend-mode: screen; background: var(--cream); }
.cursor-dot.dark.expand { background: var(--gold-rich); opacity: 0.6; }
@media (pointer: coarse), (max-width: 1024px) { .cursor-dot { display: none; } }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.preloader__lotus { width: 160px; height: 160px; opacity: 0; }
.preloader__text {
  margin-top: 40px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--magenta);
  text-transform: uppercase;
  opacity: 0;
  text-align: center;
  padding: 0 20px;
}
.preloader__progress {
  position: absolute; bottom: 48px; left: 50%;
  transform: translateX(-50%);
  width: min(180px, 60vw); height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
.preloader__progress-bar {
  position: absolute; inset: 0;
  background: var(--magenta);
  transform-origin: left;
  transform: scaleX(0);
}

/* ============================================
   NAV — with dropdown + mobile panel
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  transition: background 0.5s, padding 0.5s, border-color 0.5s;
  background: rgba(250, 243, 229, 0);
}
.nav.scrolled {
  padding: 10px var(--pad-x);
  background: rgba(250, 243, 229, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}
.nav--solid {
  background: rgba(250, 243, 229, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.nav__logo img {
  width: clamp(34px, 3vw, 42px);
  height: clamp(34px, 3vw, 42px);
  transition: transform 0.8s var(--ease-out-expo);
}
.nav__logo:hover img { transform: rotate(45deg); }
.nav__logo-text-short { display: none; }

.nav__menu {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: auto;
  margin-right: 20px;
}
.nav__item { position: relative; }
.nav__menu > .nav__item > a {
  position: relative; padding: 8px 0;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__menu > .nav__item > a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}
.nav__menu > .nav__item > a:hover,
.nav__menu > .nav__item > a.is-active { color: var(--magenta); }
.nav__menu > .nav__item > a:hover::after,
.nav__menu > .nav__item > a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s;
}
.nav__item--has-dropdown:hover .nav__caret { transform: rotate(225deg) translateY(2px); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 0;
  min-width: 240px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 20px 50px rgba(26, 20, 16, 0.12);
}
.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown li a {
  display: block;
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s, background 0.3s;
  font-family: var(--font-display);
}
.nav__dropdown li a:hover { color: var(--magenta); background: var(--parchment); }

.nav__cta {
  padding: 10px 20px;
  background: var(--magenta);
  color: var(--cream);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.4s var(--ease-out-expo);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(199, 23, 122, 0.3);
}

/* Hamburger toggle (mobile) */
.nav__toggle {
  display: none;
  width: 38px; height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile slide-in panel */
.nav__mobile {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  padding: 90px 32px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: -20px 0 60px rgba(26, 20, 16, 0.15);
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  z-index: 10;
}
.nav__mobile-close:hover,
.nav__mobile-close:active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--cream);
  transform: rotate(90deg);
}
.nav__mobile-section {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.nav__mobile-section:last-of-type { border-bottom: none; }
.nav__mobile-heading {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 700;
  margin-bottom: 12px;
}
.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.3s;
}
.nav__mobile a.is-active { color: var(--magenta); }
.nav__mobile a:hover { color: var(--magenta); }
.nav__mobile-cta {
  margin-top: auto;
  padding-top: 24px;
}
/* The Contribute button must not inherit the menu's serif display type */
.nav__mobile-cta a.btn {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 24px;
  border-radius: 100px;
}
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.4);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover {
  background: var(--magenta);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(199, 23, 122, 0.3);
}
.btn--magenta { background: var(--magenta); color: var(--cream); }
.btn--magenta:hover {
  background: var(--magenta-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(199, 23, 122, 0.35);
}
.btn--gold { background: var(--gold-rich); color: var(--ink); }
.btn--gold:hover { background: var(--gold); color: var(--cream); transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--hairline-deep);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); background: var(--parchment); }
.btn--ghost-light {
  border-color: rgba(250, 243, 229, 0.3);
  color: var(--cream);
  background: transparent;
}
.btn--ghost-light:hover {
  border-color: var(--gold-rich);
  background: rgba(212, 164, 55, 0.1);
  color: var(--gold-rich);
}
.btn__arrow {
  width: 14px; height: 14px;
  transition: transform 0.4s var(--ease-out-expo);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--magenta);
  border-bottom: 1px solid var(--magenta);
  padding-bottom: 4px;
  transition: gap 0.4s var(--ease-out-expo);
}
.link-arrow:hover { gap: 16px; }
.link-arrow svg { width: 14px; height: 14px; }

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  padding: clamp(120px, 14vh, 170px) var(--pad-x) clamp(60px, 9vh, 100px);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(199, 23, 122, 0.06), transparent 60%);
  pointer-events: none;
}
.page-hero__container {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-hero__crumbs {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: clamp(24px, 4vh, 36px);
}
.page-hero__crumbs a { color: var(--magenta); }
.page-hero__crumbs span { color: var(--hairline-deep); }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 700;
  margin-bottom: clamp(20px, 3vh, 28px);
}
.page-hero__eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--magenta); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.024em;
  margin-bottom: clamp(20px, 3vh, 32px);
  color: var(--ink);
  max-width: 1100px;
}
.page-hero__title em { font-style: italic; color: var(--magenta); }
.page-hero__title .green { color: var(--verdant-rich); font-style: italic; }
.page-hero__title .gold { color: var(--gold-deep); font-style: italic; }
.page-hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.55vw, 22px);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  font-weight: 400;
}

/* Pre-animation states — prevents flash before GSAP fires */
.page-hero__crumbs,
.page-hero__eyebrow,
.page-hero__title,
.page-hero__sub {
  opacity: 0;
}

/* ============================================
   COMMON SECTION
   ============================================ */
.section { padding: clamp(80px, 12vh, 140px) var(--pad-x); position: relative; overflow: hidden; }
.section--cream { background: var(--cream); }
.section--parchment { background: var(--parchment); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--green { background: linear-gradient(135deg, var(--verdant-pale) 0%, var(--cream) 100%); }
.section--pink { background: linear-gradient(160deg, var(--magenta-pale) 0%, var(--cream) 60%); }
.section--gold { background: linear-gradient(180deg, var(--cream) 0%, #FBEFD4 100%); }
.section__container { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vh, 28px);
}
.eyebrow--magenta { color: var(--magenta); }
.eyebrow--verdant { color: var(--verdant-deep); }
.eyebrow--gold { color: var(--gold-deep); }
.eyebrow--cream { color: var(--gold-rich); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.section--ink .section__title { color: var(--cream); }
.section__title em { font-style: italic; color: var(--magenta); }
.section--ink .section__title em { color: var(--gold-rich); }
.section__title .green { font-style: italic; color: var(--verdant-rich); }
.section__title .gold { font-style: italic; color: var(--gold-deep); }

.section__lead {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.55vw, 22px);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 720px;
}
.section--ink .section__lead { color: rgba(250, 243, 229, 0.75); }

.section__prose {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 720px;
}
.section__prose p + p { margin-top: 22px; }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--magenta);
  padding-left: 22px;
  border-left: 3px solid var(--magenta);
  font-weight: 400;
  margin: 28px 0;
  max-width: 720px;
}

/* ============================================
   CARD GRID PATTERNS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Story card */
.story-card { cursor: pointer; display: flex; flex-direction: column; }
.story-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 22px;
  position: relative;
  background: var(--parchment-warm);
  isolation: isolate;
}
.story-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
  position: relative;
  z-index: 1;
}
.story-card:hover .story-card__image img { transform: scale(1.06); }
.story-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 7px 13px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 100px;
  color: var(--cream);
  background: var(--ink);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(26, 20, 16, 0.18);
}
.story-card__tag--science { background: var(--verdant-rich); }
.story-card__tag--arts { background: var(--magenta); }
.story-card__tag--policy { background: var(--gold); }
.story-card__tag--awards { background: var(--ink); }
.story-card__date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 8px;
}
.story-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
  transition: color 0.4s;
  color: var(--ink);
}
.story-card:hover .story-card__title { color: var(--magenta); }
.story-card__title em { font-style: italic; }
.story-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.story-card__read {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.4s var(--ease-out-expo);
  margin-top: auto;
}
.story-card:hover .story-card__read { gap: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(70px, 10vh, 100px) var(--pad-x) 50px;
}
.footer__container { max-width: var(--max-w); margin: 0 auto; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(40px, 5vw, 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(250, 243, 229, 0.12);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.footer__brand img { width: 40px; height: 40px; }
.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(250, 243, 229, 0.55);
  max-width: 380px;
  margin-bottom: 24px;
}
.footer__address {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(250, 243, 229, 0.45);
}
.footer__col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-rich);
  margin-bottom: 20px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__col a {
  font-size: 14px;
  color: rgba(250, 243, 229, 0.7);
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--gold-rich); }
.footer__legal {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: rgba(250, 243, 229, 0.4);
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__legal a:hover { color: var(--gold-rich); }
.footer__socials { display: flex; gap: 12px; margin-top: 20px; }
.footer__social {
  width: 36px; height: 36px;
  border: 1px solid rgba(250, 243, 229, 0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease-out-expo);
}
.footer__social svg { width: 14px; height: 14px; }
.footer__social:hover {
  border-color: var(--gold-rich);
  background: var(--gold-rich);
  color: var(--ink);
}

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip {
  padding: clamp(80px, 12vh, 110px) var(--pad-x);
  background: var(--parchment);
  text-align: center;
}
.cta-strip__container { max-width: 900px; margin: 0 auto; }
.cta-strip__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.022em;
  margin-bottom: 24px;
  color: var(--ink);
}
.cta-strip__title em { font-style: italic; color: var(--magenta); }
.cta-strip__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 400;
}
.cta-strip__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet & smaller laptops */
@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav { padding: 14px var(--pad-x); }
  .nav.scrolled, .nav--solid { padding: 10px var(--pad-x); }
}

/* Tablet */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > *:first-child { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__top > *:first-child { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  /* Keep the full foundation name visible — identity should not be truncated on phone */
  .nav__logo { font-size: 14px; gap: 8px; letter-spacing: -0.005em; }
  .nav__logo img { width: 30px; height: 30px; }
  .nav__logo-text-full { display: inline; }
  .nav__logo-text-short { display: none; }
  .preloader__lotus { width: 140px; height: 140px; }
}

/* Very small mobile — only drop to short form if truly cramped */
@media (max-width: 380px) {
  .footer__top { grid-template-columns: 1fr; }
  .btn { padding: 14px 22px; font-size: 12px; }
  .nav__logo { font-size: 13px; }
  .nav__logo img { width: 26px; height: 26px; }
}
@media (max-width: 340px) {
  .nav__logo-text-full { display: none; }
  .nav__logo-text-short { display: inline; font-size: 14px; }
}

/* ═══════════════════════════════════════════════
   TABLET & LANDSCAPE BAND (641–1024px)
   The middle widths get their own considered scale
   instead of stretched-phone or squeezed-desktop.
   ═══════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1024px) {
  .page-hero__title { font-size: clamp(36px, 5.6vw, 54px); }
  .page-hero__sub { font-size: 18px; max-width: 620px; }
  .section__title { font-size: clamp(28px, 4.2vw, 40px); }
  .footer__top { gap: 40px; }
}

/* Short landscape viewports (phone rotated): never force full-height heroes */
@media (max-width: 1100px) and (max-height: 540px) {
  .hero { min-height: 0 !important; padding: 84px 40px 40px !important; align-items: flex-start; }
  .hero__visual { height: auto !important; min-height: 0 !important; padding: 10px 0 16px; }
  .hero__lotus { max-width: 180px !important; }
  .hero__scroll, .hero__scroll-hint { display: none !important; }
  .page-hero { padding-top: 90px; padding-bottom: 30px; }
}
