/* ================================================================
   ReThinking The Leaf — Design System
   Dark Nature-Luxe Aesthetic
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-dark: #0a0f0d;
  --bg-darker: #060a08;
  --bg-card: #141c18;
  --bg-card-hover: #1a2620;
  --bg-glass: rgba(20, 28, 24, 0.75);
  --bg-glass-light: rgba(20, 28, 24, 0.45);

  --accent-gold: #9b7ed8;
  --accent-gold-dim: rgba(155, 126, 216, 0.15);
  --accent-green: #4a7c5f;
  --accent-green-bright: #5fa878;
  --accent-lavender: #b8a9d4;
  --accent-lavender-dim: rgba(184, 169, 212, 0.15);

  --text-primary: #f0ece4;
  --text-secondary: #c8c4bc;
  --text-muted: #8a9a8e;
  --text-dark: #0a0f0d;

  --border-subtle: rgba(74, 124, 95, 0.2);
  --border-accent: rgba(155, 126, 216, 0.3);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 900px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(155, 126, 216, 0.08);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
}


/* --- Ken Burns Cinematic Animation --- */
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(-2%, -1%); }
  100% { transform: scale(1.08) translate(1%, -2%); }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--text-primary); }
ul { list-style: none; }

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container--narrow {
  max-width: var(--max-width-narrow);
}
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-lavender { color: var(--accent-lavender); }
.text-muted { color: var(--text-muted); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }
.reveal-delay-6 { transition-delay: 0.9s; }

/* --- Typography --- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.section-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}
.section-subtitle.centered { margin: 0 auto; }

/* --- Section Spacing --- */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}
.section--alt {
  background: var(--bg-darker);
}

/* Divider lines */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
  margin: var(--space-lg) 0;
  border: none;
}
.section-divider.centered { margin: var(--space-lg) auto; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition-smooth);
}
.nav.scrolled {
  background: rgba(10, 15, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav__logo-icon {
  width: 180px;
  height: 180px;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.nav__logo-text span {
  color: var(--accent-gold);
}
.nav__links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.25rem 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  background: linear-gradient(135deg, var(--accent-gold), #a88a3a);
  color: var(--text-dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(155, 126, 216, 0.3);
  color: var(--text-dark);
}

/* Mobile Nav */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 13, 0.3) 0%,
    rgba(10, 15, 13, 0.1) 40%,
    rgba(10, 15, 13, 0.6) 70%,
    rgba(10, 15, 13, 0.95) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: var(--space-lg);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}
.hero__badge svg {
  width: 14px;
  height: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.hero__title em {
  font-style: italic;
  color: var(--accent-gold);
  display: inline;
}
.hero__subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-gold), #a88a3a);
  color: var(--text-dark);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(155, 126, 216, 0.35);
  color: var(--text-dark);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}
.btn--outline:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse-scroll 2s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}
@keyframes pulse-scroll {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ================================================================
   MISSION SECTION
   ================================================================ */
.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.mission__stat,
.mission__founder {
  text-align: center;
  position: relative;
}
.mission__founder-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--accent-gold);
  box-shadow: 0 8px 32px rgba(155, 126, 216, 0.2);
}
.mission__founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mission__stat-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  opacity: 0.15;
  position: relative;
}
.mission__stat-label {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}
.mission__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.mission__value {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: var(--transition-smooth);
}
.mission__value:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.mission__value-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}
.mission__value h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.mission__value p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================================================================
   ESTATE ZONES
   ================================================================ */
.zones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.zone-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  group: zone;
}
.zone-card__image {
  position: absolute;
  inset: 0;
}
.zone-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.zone-card:hover .zone-card__image img {
  transform: scale(1.08);
}
.zone-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 13, 0) 30%,
    rgba(10, 15, 13, 0.85) 100%
  );
  transition: var(--transition-smooth);
}
.zone-card:hover .zone-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 13, 0.1) 20%,
    rgba(10, 15, 13, 0.92) 100%
  );
}
.zone-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  transform: translateY(10px);
  transition: var(--transition-smooth);
}
.zone-card:hover .zone-card__content {
  transform: translateY(0);
}
.zone-card__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}
.zone-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.zone-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}
.zone-card:hover .zone-card__desc {
  opacity: 1;
  max-height: 100px;
}

/* Featured zone (full width) */
.zone-card--featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ================================================================
   EXPERIENCES
   ================================================================ */
.experiences__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.exp-card:hover::before { transform: scaleX(1); }
.exp-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.exp-card__icon {
  width: 56px;
  height: 56px;
  background: var(--accent-gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-md);
}
.exp-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.exp-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Photo Experience Cards */
.experiences__grid--photo {
  grid-template-columns: repeat(2, 1fr);
}
.exp-card--photo {
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.exp-card--photo::before { display: none; }
.exp-card__photo {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.exp-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.exp-card--photo:hover .exp-card__photo img {
  transform: scale(1.06);
}
.exp-card__body {
  padding: var(--space-md);
  flex: 1;
}
.exp-card--photo .exp-card__title {
  text-align: left;
  margin-bottom: var(--space-xs);
}
.exp-card--photo .exp-card__desc {
  text-align: left;
}

/* 3D Viewer */
.viewer-3d {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  margin-top: var(--space-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.viewer-3d iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}
.viewer-3d__caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: var(--space-sm);
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
}

/* ================================================================
   SITE ANALYSIS — READING THE LAND
   ================================================================ */
.analysis-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}
.analysis-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.analysis-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.analysis-card--reverse {
  direction: rtl;
}
.analysis-card--reverse > * {
  direction: ltr;
}
.analysis-card__image {
  overflow: hidden;
  max-height: 500px;
}
.analysis-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.analysis-card:hover .analysis-card__image img {
  transform: scale(1.03);
}
.analysis-card__info {
  padding: var(--space-lg);
}
.analysis-card__badge {
  display: inline-block;
  background: rgba(193, 154, 72, 0.15);
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(193, 154, 72, 0.25);
  margin-bottom: var(--space-sm);
}
.analysis-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-light);
  margin: var(--space-xs) 0 var(--space-sm);
}
.analysis-card__info p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
}
.analysis-card__info strong {
  color: var(--accent-gold);
}
.analysis-card__info em {
  color: var(--accent-green);
  font-family: var(--font-accent);
  font-size: 1rem;
}
.analysis-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}
.analysis-credit a {
  color: var(--accent-gold);
  text-decoration: none;
}
.analysis-credit a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .analysis-card {
    grid-template-columns: 1fr;
  }
  .analysis-card--reverse {
    direction: ltr;
  }
  .analysis-card__image {
    max-height: 300px;
  }
  .analysis-card__info h3 {
    font-size: 1.25rem;
  }
}

/* ================================================================
   PARTNER LOGO IMAGE OVERRIDES
   ================================================================ */
.hub-partner__image--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.hub-partner__image--logo img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
}

/* ================================================================
   COMMUNITY HUB
   ================================================================ */
.hub__intro {
  margin-bottom: var(--space-xl);
}
.hub__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-top: var(--space-sm);
}
.hub__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.partner-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.partner-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.partner-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.partner-card:hover .partner-card__image img {
  transform: scale(1.06);
}
.partner-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--border-accent);
}
.partner-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.partner-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.partner-card__tagline {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: var(--space-sm);
}
.partner-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
}
.partner-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.partner-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.partner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}
.partner-card__link:hover { gap: 0.75rem; }

/* ================================================================
   EDUCATION
   ================================================================ */
.education__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.education__item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.education__item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: var(--accent-gold-dim);
  border-radius: 0 0 0 100%;
  opacity: 0.5;
}
.education__item-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}
.education__item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}
.education__item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ================================================================
   MASTER PLAN / PHASED TIMELINE
   ================================================================ */
.timeline {
  position: relative;
  margin-top: var(--space-xl);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-green), var(--accent-lavender));
}
.timeline__phase {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
}
.timeline__phase:nth-child(even) { flex-direction: row-reverse; }
.timeline__phase:nth-child(even) .timeline__content { text-align: right; }

.timeline__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  background: var(--bg-dark);
  z-index: 1;
}
.timeline__content {
  width: calc(50% - 2.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}
.timeline__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.timeline__items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.timeline__items li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}
.timeline__items li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-green);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.contact__info-item {
  margin-bottom: var(--space-lg);
}
.contact__info-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}
.contact__info-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.form__group {
  margin-bottom: var(--space-md);
}
.form__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form__input,
.form__textarea {
  width: 100%;
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-dim);
}
.form__textarea { resize: vertical; min-height: 120px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer__brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: var(--space-sm);
  max-width: 360px;
}
.footer__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer__links a:hover { color: var(--accent-gold); }

.footer__partners {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.footer__partner-name {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.footer__partner-name:hover { color: var(--accent-gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer__bottom-entity {
  font-style: italic;
  color: var(--text-muted);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .zones__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zone-card--featured {
    grid-column: span 2;
  }
  .timeline::before { left: 24px; }
  .timeline__dot { left: 24px; }
  .timeline__phase {
    flex-direction: column !important;
    padding-left: 56px;
  }
  .timeline__content {
    width: 100%;
    text-align: left !important;
  }
}

@media (max-width: 768px) {
  .nav__links { 
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 13, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
  }
  .nav__links.active { display: flex; }
  .nav__link { font-size: 1.2rem; }
  .nav__burger { display: flex; }
  /* Secondary nav links smaller on mobile */
  .nav__link[id="nav-science"],
  .nav__link[id="nav-masterplan"],
  .nav__link[id="nav-community"],
  .nav__link[id="nav-events"] {
    font-size: 0.85rem;
    opacity: 0.65;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  /* Testimonials grid stacks on mobile */
  #testimonials > .container > div:last-child {
    grid-template-columns: 1fr !important;
  }

  .hero__title { font-size: clamp(2rem, 8vw, 3.5rem); }

  .mission__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .mission__values { grid-template-columns: 1fr; }

  .zones__grid { grid-template-columns: 1fr; }
  .zone-card--featured { grid-column: span 1; }
  .zone-card { aspect-ratio: 3/4; }
  .zone-card__desc { opacity: 1; max-height: 100px; }

  .experiences__grid { grid-template-columns: 1fr; }
  .experiences__grid--photo { grid-template-columns: 1fr; }

  .hub__grid { grid-template-columns: 1fr; }

  .education__grid { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-xs); text-align: center; }
}

/* ================================================================
   HUB PAGE — HERO
   ================================================================ */
.hub-hero {
  position: relative;
  padding: calc(var(--space-3xl) + 60px) 0 var(--space-xl);
  overflow: hidden;
}
.hub-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 13, 1) 0%,
    rgba(20, 28, 24, 1) 40%,
    rgba(74, 124, 95, 0.15) 70%,
    rgba(155, 126, 216, 0.08) 100%
  );
  z-index: 0;
}
.hub-hero__bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 126, 216, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hub-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hub-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}
.hub-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.hub-hero__title em {
  font-style: italic;
  color: var(--accent-gold);
}
.hub-hero__subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   HUB PAGE — SEARCH BAR
   ================================================================ */
.hub-search-section {
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}
.hub-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 0 rgba(155, 126, 216, 0);
}
.hub-search:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px var(--accent-gold-dim), 0 8px 40px rgba(0,0,0,0.3);
}
.hub-search__icon {
  flex-shrink: 0;
  color: var(--accent-gold);
  opacity: 0.6;
  width: 22px;
  height: 22px;
}
.hub-search__icon svg {
  width: 100%;
  height: 100%;
}
.hub-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  padding: 0.4rem 0;
}
.hub-search__input::placeholder {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.hub-search__clear {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  padding: 0;
}
.hub-search__clear:hover { color: var(--accent-gold); }
.hub-search__clear svg { width: 100%; height: 100%; }

/* Quick-search tags */
.hub-search__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}
.hub-tag:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.hub-tag--active {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Search status */
.hub-search__status {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  min-height: 1.5rem;
}
.hub-search__results {
  color: var(--accent-green-bright);
}
.hub-search__no-results {
  color: var(--text-muted);
}
.hub-search__no-results a {
  color: var(--accent-gold);
}

/* ================================================================
   HUB PAGE — PARTNER DIRECTORY
   ================================================================ */
.hub-directory {
  padding: var(--space-xl) 0 var(--space-3xl);
}
.hub-partner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  transition: var(--transition-smooth);
}
.hub-partner--hidden {
  display: none;
}
.hub-partner--matched {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}
.hub-partner__header {
  display: grid;
  grid-template-columns: 340px 1fr;
}
.hub-partner__image {
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}
.hub-partner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub-partner__image--branded {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-partner__image-content {
  text-align: center;
  padding: 2rem;
}
.hub-partner__info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hub-partner__badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--accent-gold-dim);
  border: 1px solid var(--border-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}
.hub-partner__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.hub-partner__tagline {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: var(--space-sm);
}
.hub-partner__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.hub-partner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hub-partner__meta a {
  color: var(--accent-gold);
}

/* Offerings / chips section */
.hub-partner__offerings {
  padding: 0 var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  margin: 0 var(--space-lg);
  padding-top: var(--space-md);
}
.hub-partner__section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.hub-partner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.hub-chip--matched {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
  animation: chip-pulse 0.5s ease;
}
@keyframes chip-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Join The Hub CTA */
.hub-cta-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

/* ================================================================
   HUB PAGE — COMMUNITY TEASER (index.html)
   ================================================================ */
.hub-teaser {
  text-align: center;
  padding: var(--space-xl) 0;
}
.hub-teaser__partners {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}
.hub-teaser__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  width: 220px;
  text-align: center;
  transition: var(--transition-smooth);
}
.hub-teaser__card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.hub-teaser__card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}
.hub-teaser__card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.hub-teaser__card-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================================================================
   HUB PAGE — RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hub-partner__header {
    grid-template-columns: 1fr;
  }
  .hub-partner__image {
    min-height: 200px;
    max-height: 240px;
  }
}
@media (max-width: 768px) {
  .hub-hero {
    padding: calc(var(--space-2xl) + 60px) 0 var(--space-lg);
  }
  .hub-hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .hub-search__input {
    font-size: 0.9rem;
  }
  .hub-search__input::placeholder {
    font-size: 0.78rem;
  }
  .hub-teaser__partners {
    flex-direction: column;
    align-items: center;
  }
  .hub-teaser__card {
    width: 100%;
    max-width: 300px;
  }
}

/* ================================================================
   MISSION AERIAL IMAGE (replaces founder photo)
   ================================================================ */
.mission__estate-aerial {
  text-align: center;
}
.mission__aerial-frame {
  width: 680px;
  height: 520px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 8px 32px rgba(155, 126, 216, 0.15);
}
.mission__aerial-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================================
   SUPPORT THE FARM — MONETIZATION
   ================================================================ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-smooth);
}
.support-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(155, 126, 216, 0.12);
}
.support-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}
.support-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}
.support-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.support-card .btn--sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
}
.support-email-form {
  display: flex;
  gap: 0.5rem;
}
.support-email-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
}
.support-email-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(155, 126, 216, 0.15);
}

/* Support responsive */
@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-email-form {
    flex-direction: column;
  }
}

/* --- Product cards --- */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(155, 126, 216, 0.2);
}
.product-card:hover img {
  transform: scale(1.08);
}
@media (max-width: 900px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .products__grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   EVENTS CALENDAR
   ================================================================ */
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--event-accent, var(--accent-gold));
  transition: height 0.3s ease;
}
.event-card:hover {
  border-color: var(--event-accent, var(--accent-gold));
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.event-card:hover::before {
  height: 6px;
}
.event-card__season {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}
.event-card__date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--event-accent, var(--accent-gold));
  margin-bottom: var(--space-xs);
}
.event-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.event-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.event-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--event-accent, var(--accent-gold));
  transition: var(--transition-fast);
}
.event-card__cta:hover {
  gap: 0.7rem;
  color: var(--text-primary);
}

/* Seasonal accent colors */
.event-card--spring { --event-accent: #d4a0c8; }
.event-card--summer { --event-accent: #e8b84a; }
.event-card--fall { --event-accent: #d47a3a; }
.event-card--winter { --event-accent: #7ab8d4; }
.event-card--yearround { --event-accent: var(--accent-green-bright); }
.event-card--butterfly { --event-accent: var(--accent-lavender); }

@media (max-width: 900px) {
  .events__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .events__grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   BUTTERFLY PARTICLES — HERO OVERLAY
   ================================================================ */
.butterfly-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.butterfly-particle {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: butterfly-float 12s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.butterfly-particle:nth-child(1) {
  left: 10%; top: 20%;
  animation-delay: 0s;
  animation-duration: 14s;
}
.butterfly-particle:nth-child(2) {
  left: 30%; top: 40%;
  animation-delay: 2s;
  animation-duration: 11s;
  font-size: 1rem;
}
.butterfly-particle:nth-child(3) {
  left: 55%; top: 15%;
  animation-delay: 4s;
  animation-duration: 15s;
}
.butterfly-particle:nth-child(4) {
  left: 75%; top: 55%;
  animation-delay: 1s;
  animation-duration: 13s;
  font-size: 0.9rem;
}
.butterfly-particle:nth-child(5) {
  left: 85%; top: 25%;
  animation-delay: 6s;
  animation-duration: 16s;
}
.butterfly-particle:nth-child(6) {
  left: 45%; top: 65%;
  animation-delay: 3s;
  animation-duration: 12s;
  font-size: 1.4rem;
}
.butterfly-particle:nth-child(7) {
  left: 20%; top: 70%;
  animation-delay: 5s;
  animation-duration: 14s;
}
.butterfly-particle:nth-child(8) {
  left: 65%; top: 35%;
  animation-delay: 7s;
  animation-duration: 11s;
  font-size: 1.1rem;
}

@keyframes butterfly-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.6);
  }
  10% {
    opacity: 0.7;
  }
  25% {
    transform: translate(30px, -40px) rotate(15deg) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-20px, -80px) rotate(-10deg) scale(0.9);
  }
  75% {
    transform: translate(50px, -50px) rotate(20deg) scale(1.1);
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translate(60px, -120px) rotate(5deg) scale(0.7);
  }
}

/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(155, 126, 216, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(155, 126, 216, 0.5);
}

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

/* ================================================================
   SCIENCE GRID — RESPONSIVE FIX
   ================================================================ */
@media (max-width: 900px) {
  .science__hero {
    grid-template-columns: 1fr !important;
  }
  .science__grid {
    grid-template-columns: 1fr !important;
  }
  .science__impact {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .science__impact {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   MEET THE TEAM
   ================================================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.team__card {
  text-align: center;
  transition: transform 0.3s ease;
}
.team__card:hover {
  transform: translateY(-6px);
}
.team__portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  display: block;
  border: 3px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.team__card:hover .team__portrait {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(200, 168, 78, 0.25);
}
.team__card--featured .team__portrait {
  width: 200px;
  height: 200px;
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(200, 168, 78, 0.2);
}
.team__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.team__role {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .team__portrait {
    width: 120px;
    height: 120px;
  }
  .team__card--featured .team__portrait {
    width: 150px;
    height: 150px;
  }
}
