:root {
  --bg: #060a08;
  --bg2: #0a100c;
  --bg3: #0e1610;
  --forest: #4B6332;
  --forest2: #5a7a48;
  --glow: #6b8f52;
  --accent: #7aad62;
  --cream: #e8efe9;
  --muted: #6b7d72;
  --glass: rgba(14, 22, 16, 0.55);
  --glass-border: rgba(61, 139, 94, 0.18);
  --light-bg: #F8F8F6;
  --light-bg-alt: #F4F4F1;
  --light-bg-soft: #FAFAF8;
  --light-text: #141a16;
  --light-muted: #5a6b5f;
  --light-border: rgba(75, 99, 50, 0.14);
  --light-card: #ffffff;
  --light-glass: rgba(255, 255, 255, 0.72);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}

header.scrolled {
  background: rgba(6, 10, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

header.on-light.scrolled {
  background: rgba(248, 248, 246, 0.92);
  border-bottom-color: var(--light-border);
}

header.on-light.scrolled .logo-text { color: var(--forest); }
header.on-light.scrolled nav a { color: var(--light-muted); }
header.on-light.scrolled nav a:hover { color: var(--forest); }
header.on-light.scrolled .nav-btn {
  border-color: var(--light-border);
  color: var(--forest);
}
header.on-light.scrolled .menu-toggle span { background: var(--forest); }

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 10, 8, 0.92) 50%, transparent);
  pointer-events: none;
  z-index: -1;
}

header.scrolled::after { display: none; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.logo-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 173, 98, 0.45) 0%, transparent 70%);
  opacity: 0.65;
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}

.logo-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(168, 210, 140, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.logo:hover .logo-icon-glow {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(122, 173, 98, 0.35);
}

.logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(122, 173, 98, 0.4));
  transition: filter 0.35s;
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 0 14px rgba(168, 210, 140, 0.55));
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

nav a:hover { color: var(--accent); }

.nav-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.nav-btn:hover {
  background: rgba(61, 139, 94, 0.1);
  border-color: var(--glow);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(6, 10, 8, 0.96);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

@media (min-width: 900px) {
  header { padding: 1.2rem 3rem; }
  nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 35%, rgba(26, 92, 58, 0.18), transparent 65%),
    radial-gradient(ellipse 45% 40% at 20% 75%, rgba(45, 107, 79, 0.1), transparent 60%),
    linear-gradient(160deg, #060a08 0%, #0a120c 45%, #060a08 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/hero-barcelona.jpg');
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  opacity: 0.41;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 18%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.85) 62%,
    rgba(0, 0, 0, 0.45) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 18%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.85) 62%,
    rgba(0, 0, 0, 0.45) 88%,
    transparent 100%
  );
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 10, 0.45);
  mix-blend-mode: multiply;
}

.hero-photo-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(260deg, rgba(6, 10, 8, 0.94) 0%, rgba(6, 10, 8, 0.78) 34%, rgba(6, 10, 8, 0.42) 58%, rgba(6, 10, 8, 0.72) 100%),
    linear-gradient(to top, rgba(6, 10, 8, 0.92) 0%, transparent 28%),
    radial-gradient(ellipse 50% 45% at 32% 38%, rgba(6, 10, 8, 0.65) 0%, transparent 72%),
    radial-gradient(ellipse 40% 30% at 50% 12%, rgba(6, 10, 8, 0.55) 0%, transparent 70%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(61, 139, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 139, 94, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particle-float 6s ease-in-out infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-80px) scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 5;
  padding: 7rem 1.5rem 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1.1fr;
    padding: 9rem 3rem 6rem;
    gap: 2rem;
  }

  .hero-portal-zone { grid-column: 1; grid-row: 1; align-self: center; }
  .hero-content { grid-column: 2; grid-row: 1; align-self: center; }
  .hero-counters { grid-column: 1 / -1; grid-row: 2; margin-top: 1rem; }
}

.hero-portal-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}

.hero-portal-zone::before {
  content: '';
  position: absolute;
  inset: -1.5rem -2rem;
  background: radial-gradient(ellipse 75% 70% at 50% 48%, rgba(6, 10, 8, 0.55) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-portal-zone > * { position: relative; z-index: 1; }

@media (max-width: 899px) {
  .hero {
    justify-content: flex-start;
    min-height: auto;
    padding-bottom: 1.5rem;
    overflow-x: clip;
  }

  .hero-inner {
    padding: 3.85rem 0 2.5rem;
    gap: 1.1rem;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    box-sizing: border-box;
  }

  .hero-portal-zone {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-inline: 1.25rem;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .hero-portal-zone::before {
    inset: -0.5rem;
    left: 50%;
    right: auto;
    width: min(78vw, 290px);
    transform: translateX(-50%);
    background: radial-gradient(ellipse 80% 75% at 50% 50%, rgba(6, 10, 8, 0.55) 0%, transparent 68%);
  }

  .hero-portal {
    width: auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
  }

  .portal-hint {
    width: 100%;
    text-align: center;
    margin-inline: auto;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    padding-inline: 1.25rem;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-content .eyebrow {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-counters {
    width: 100%;
    padding-inline: 1.25rem;
    box-sizing: border-box;
  }

  .hero-photo {
    opacity: 0.33;
    background-position: center 72%;
  }

  .hero-photo-veil {
    background:
      linear-gradient(180deg, rgba(6, 10, 8, 0.92) 0%, rgba(6, 10, 8, 0.65) 45%, rgba(6, 10, 8, 0.88) 100%),
      radial-gradient(ellipse 60% 40% at 50% 30%, rgba(6, 10, 8, 0.5) 0%, transparent 70%);
  }
}

.hero-content {
  max-width: 560px;
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: -2rem -1.5rem;
  background: radial-gradient(ellipse 90% 80% at 80% 50%, rgba(6, 10, 8, 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.8s 0.1s ease forwards;
}

.hero-content .eyebrow::before {
  display: none;
}

.hero-content .eyebrow span {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: rise 0.8s 0.2s ease forwards;
}

.hero-content h1 .hero-green {
  color: var(--accent);
  display: block;
}

.hero-content h1 .hero-bcn {
  color: #ffffff;
  display: block;
}

.hero-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  padding: 0.6rem 1.35rem;
  background: transparent;
  border: 1px solid var(--glow);
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  animation: rise 0.8s 0.35s ease forwards;
  transition: border-color 0.25s, background 0.25s;
}

.hero-sub:hover {
  border-color: rgba(168, 210, 140, 0.85);
  background: rgba(61, 139, 94, 0.06);
}

.hero-text {
  font-size: 0.9rem;
  color: rgba(232, 239, 233, 0.65);
  margin-top: 1rem;
  max-width: 420px;
  line-height: 1.75;
  opacity: 0;
  animation: rise 0.8s 0.42s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s 0.5s ease forwards;
}

.btn-primary {
  background: linear-gradient(135deg, var(--forest2), var(--forest));
  color: var(--cream);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.95rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(26, 92, 58, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61, 139, 94, 0.35);
}

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  padding: 0.95rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.25s, background 0.25s;
}

.btn-ghost:hover {
  border-color: var(--glow);
  background: rgba(61, 139, 94, 0.08);
}

/* Fingerprint portal — interactive hero emblem */
.hero-portal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0;
  animation: rise 1s 0.3s ease forwards;
  -webkit-tap-highlight-color: transparent;
}

.emblem-wrap {
  position: relative;
  width: clamp(300px, 78vw, 640px);
  height: clamp(300px, 78vw, 640px);
  animation: emblem-tilt 14s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.emblem-wrap::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 190, 110, 0.2) 0%, rgba(75, 99, 50, 0.07) 38%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.portal-hint {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.35s, letter-spacing 0.35s;
  pointer-events: none;
}

.hero-portal:hover + .portal-hint,
.hero-portal-zone:hover .portal-hint {
  color: #ffffff;
  letter-spacing: 0.38em;
  opacity: 0.92;
}

.emblem-fluoro {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 190, 110, 0.16) 0%, rgba(75, 99, 50, 0.08) 40%, transparent 72%);
  animation: fluoro-breathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fluoro-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.emblem-scan-beam {
  position: absolute;
  left: 15%;
  right: 15%;
  height: 2px;
  top: 20%;
  background: linear-gradient(90deg, transparent, rgba(168, 210, 140, 0.5), transparent);
  box-shadow: 0 0 12px rgba(122, 173, 98, 0.4);
  opacity: 0.4;
  animation: scan-beam 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes scan-beam {
  0% { top: 18%; opacity: 0; }
  15% { opacity: 0.7; }
  50% { top: 72%; opacity: 0.5; }
  85% { opacity: 0; }
  100% { top: 18%; opacity: 0; }
}

.hero-portal.is-scanning .emblem-scan-beam {
  animation: scan-beam-fast 0.85s ease-in-out 1;
}

@keyframes scan-beam-fast {
  0% { top: 15%; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 78%; opacity: 0; }
}

.emblem-activate {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px solid rgba(168, 210, 140, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-portal.is-scanning .emblem-activate {
  animation: activate-ring 0.9s ease-out 1;
}

@keyframes activate-ring {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.12); opacity: 0; }
}

.hero-portal:hover .emblem-wrap {
  transform: scale(1.03);
  animation-play-state: paused;
}

.hero-portal.is-scanning .emblem-wrap {
  transform: scale(0.97);
  animation-play-state: paused;
}

.hero-portal.is-scanning .emblem-glow {
  opacity: 1;
  background: radial-gradient(circle, rgba(168, 210, 140, 0.45) 0%, transparent 65%);
}

@keyframes emblem-tilt {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2.5deg); }
}

@keyframes emblem-tilt-mobile {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(0.8deg); }
}

.emblem-glow {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 190, 110, 0.35) 0%, rgba(107, 143, 82, 0.14) 42%, transparent 68%);
  animation: glow-pulse 5s ease-in-out infinite;
  transition: opacity 0.4s, transform 0.4s;
}

.hero-portal:hover .emblem-glow {
  opacity: 1;
  transform: scale(1.08);
  background: radial-gradient(circle, rgba(168, 210, 140, 0.42) 0%, rgba(145, 190, 110, 0.18) 45%, transparent 65%);
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.emblem-depth {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -18px 36px rgba(0, 0, 0, 0.28),
    inset 0 0 40px rgba(75, 99, 50, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(145, 190, 110, 0.16);
  pointer-events: none;
}

.emblem-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 52%),
    var(--glass);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 28px rgba(145, 190, 110, 0.12);
  transition: border-color 0.35s, box-shadow 0.35s;
}

.hero-portal:hover .emblem-ring {
  border-color: rgba(168, 210, 140, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 36px rgba(145, 190, 110, 0.22);
}

.emblem-scan-ring {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  border: 1px solid rgba(168, 210, 140, 0.28);
  box-shadow: 0 0 16px rgba(145, 190, 110, 0.12);
  opacity: 0;
  animation: bio-scan 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-portal:hover .emblem-scan-ring,
.hero-portal.is-scanning .emblem-scan-ring {
  animation-duration: 2.2s;
  opacity: 1;
}

@keyframes bio-scan {
  0% { transform: scale(0.92); opacity: 0; }
  40% { opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 0; }
}

.emblem-sweep {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 75% at 50% 45%, black 30%, transparent 72%);
}

.emblem-sweep::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 50%;
  height: 140%;
  background: linear-gradient(105deg, transparent 0%, rgba(122, 173, 98, 0.08) 42%, rgba(255, 255, 255, 0.1) 48%, rgba(168, 210, 140, 0.24) 50%, rgba(255, 255, 255, 0.08) 52%, rgba(122, 173, 98, 0.08) 58%, transparent 100%);
  animation: light-sweep 5s ease-in-out infinite;
}

.hero-portal:hover .emblem-sweep::after {
  animation-duration: 3s;
}

@keyframes light-sweep {
  0%, 100% { left: -60%; opacity: 0; }
  15% { opacity: 1; }
  50% { left: 110%; opacity: 1; }
  85% { opacity: 0; }
}

.emblem-pulse {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(168, 210, 140, 0.22);
  box-shadow: 0 0 12px rgba(145, 190, 110, 0.1);
  animation: emblem-pulse-ring 3.5s ease-out infinite;
  pointer-events: none;
}

@keyframes emblem-pulse-ring {
  0% { transform: scale(0.96); opacity: 0.5; }
  70% { transform: scale(1.04); opacity: 0; }
  100% { transform: scale(1.04); opacity: 0; }
}

.emblem-svg {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  margin: auto;
  top: 0; bottom: 0; left: 0; right: 0;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.18))
    drop-shadow(0 0 10px rgba(145, 190, 110, 0.35))
    drop-shadow(0 4px 24px rgba(75, 99, 50, 0.35));
  transition: filter 0.35s;
}

.hero-portal:hover .emblem-svg {
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 14px rgba(145, 190, 110, 0.42))
    drop-shadow(0 6px 36px rgba(122, 173, 98, 0.5));
}

.emblem-svg .fp-line {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: fp-draw 3.5s ease-in-out infinite alternate;
}

.emblem-svg .fp-line:nth-child(odd) { animation-delay: 0.3s; }
.emblem-svg .fp-line:nth-child(3n) { animation-delay: 0.6s; }
.emblem-svg .fp-line:nth-child(4n) { animation-delay: 0.9s; }

@keyframes fp-draw {
  0% { stroke-dashoffset: 140; opacity: 0.45; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.hero-portal.is-scanning .emblem-svg .fp-line {
  animation: fp-scan 0.9s ease forwards;
}

@keyframes fp-scan {
  to { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 899px) {
  .emblem-wrap {
    width: min(66vw, 255px);
    height: min(66vw, 255px);
    max-width: calc(100vw - 2.5rem);
    margin-inline: auto;
    transform-origin: center center;
    animation: emblem-tilt-mobile 14s ease-in-out infinite;
  }

  .hero-portal:hover .emblem-wrap,
  .hero-portal.is-scanning .emblem-wrap {
    animation: emblem-tilt-mobile 14s ease-in-out infinite;
  }
}

/* Hero scroll portal cue */
.hero-portal-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: rise 0.8s 0.85s ease forwards;
}

.portal-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}

.portal-scroll-cue:hover { color: var(--accent); }

.fp-cue-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(107, 143, 82, 0.5), rgba(122, 173, 98, 0.8));
  animation: cue-line-pulse 2.5s ease-in-out infinite;
}

@keyframes cue-line-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

.fp-cue-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cue-icon-float 3s ease-in-out infinite;
}

.fp-cue-icon img { opacity: 0.75; }

@keyframes cue-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.fp-cue-text {
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.scroll-chevron {
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.25rem;
  animation: chevron-bob 2s ease-in-out infinite;
}

@keyframes chevron-bob {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(3px); opacity: 1; }
}

/* Counters */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: rise 0.8s 0.65s ease forwards;
}


.counter-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: border-color 0.3s;
  position: relative;
}

.counter-card::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: url('../assets/logo-fingerprint.svg') center / contain no-repeat;
  opacity: 0.2;
}

.counter-card:hover { border-color: rgba(122, 173, 98, 0.35); }

.counter-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--accent);
  letter-spacing: 0.05em;
  line-height: 1;
}

.counter-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.counter-pending {
  color: var(--muted);
  opacity: 0.6;
}

@media (min-width: 900px) {
  .hero-portal-cue { bottom: 2rem; }
  .hero-inner { padding-bottom: 6rem; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ticker */
.ticker {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg2);
  padding: 0.75rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tick 35s linear infinite;
}

.ti {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ti::before {
  content: '◆';
  font-size: 0.45rem;
  color: var(--glow);
  opacity: 0.7;
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections shared */
section { padding: 5rem 1.5rem; }
@media (min-width: 900px) { section { padding: 7rem 3rem; } }

.sec-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sec-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--glow);
}

.sec-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 1rem;
}

.sec-title em { color: var(--accent); font-style: normal; }

.sec-desc {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* Section contrast rhythm */
.section-dark {
  background: var(--bg);
  color: var(--cream);
}

.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}

.section-light-alt { background: var(--light-bg-alt); }
.section-light-soft { background: var(--light-bg-soft); }

.section-light .sec-title { color: var(--light-text); }
.section-light .sec-title em { color: var(--forest); }
.section-light .sec-desc { color: var(--light-muted); }
.section-light .sec-label { color: var(--forest2); }
.section-light .sec-label::before { background: var(--forest2); }

.section-light .events-loading,
.section-light .events-error {
  color: var(--light-muted);
}

/* Fingerprint section dividers */
.fp-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0;
  background: var(--bg);
}

.fp-divider--light { background: var(--light-bg); }

.fp-divider-mark {
  width: 28px;
  height: 28px;
  background: url('../assets/logo-fingerprint.svg') center / contain no-repeat;
  opacity: 0.35;
  animation: fp-divider-pulse 4s ease-in-out infinite;
}

.section-light + .fp-divider,
.fp-divider--light .fp-divider-mark { opacity: 0.5; }

@keyframes fp-divider-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.06); }
}

/* Fingerprint icon containers */
.fp-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--light-border);
  background: var(--light-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(75, 99, 50, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.community-card:hover .fp-icon-wrap {
  border-color: rgba(75, 99, 50, 0.35);
  box-shadow: 0 6px 24px rgba(75, 99, 50, 0.12);
}

.community-icon { opacity: 0.85; }

/* Fingerprint loading pulse */
.fp-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.fp-loading::before {
  content: '';
  width: 22px;
  height: 22px;
  background: url('../assets/logo-fingerprint.svg') center / contain no-repeat;
  opacity: 0.5;
  animation: fp-divider-pulse 2s ease-in-out infinite;
}

/* Partner Clubs */

.clubs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1100px) {
  .clubs-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(61, 139, 94, 0.06); }
}

.section-light .clubs-grid {
  background: rgba(75, 99, 50, 0.04);
}

.section-light .club-card {
  background: var(--light-card);
  border-color: var(--light-border);
}

.section-light .club-card .c-name { color: var(--light-text); }
.section-light .club-card .c-desc { color: var(--light-muted); }
.section-light .club-card .c-meta { color: rgba(90, 107, 95, 0.75); }
.section-light .club-card.is-placeholder .c-name { color: rgba(20, 26, 22, 0.45); }
.section-light .club-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.5) 55%, transparent 100%);
}

.club-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s;
}

@media (min-width: 1100px) {
  .club-card { border: none; }
}

.club-card.visible { opacity: 1; transform: translateY(0); }
.club-card:hover { border-color: rgba(74, 222, 128, 0.25); }

.club-card.featured {
  grid-column: 1 / -1;
}

@media (min-width: 1100px) {
  .club-card.featured { grid-column: span 2; grid-row: span 2; }
}

.club-inner {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.club-card.featured .club-inner { min-height: 360px; }

@media (min-width: 1100px) {
  .club-card.featured .club-inner { min-height: 100%; padding-bottom: 0; }
}

.club-art {
  position: absolute;
  inset: 0;
  transition: transform 0.8s ease;
}

.club-card:hover .club-art { transform: scale(1.04); }

.club-overlay {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(6, 10, 8, 0.95) 0%, rgba(6, 10, 8, 0.4) 60%, transparent 100%);
}

.c-tag {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.c-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 1;
}

.c-desc {
  font-size: 0.78rem;
  color: rgba(232, 239, 233, 0.55);
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 340px;
}

.c-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.c-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.club-card:hover .c-arrow { opacity: 1; transform: translateY(0); }

.club-art.has-image {
  background-size: cover;
  background-position: center;
}

.club-card.is-active .c-name { color: var(--cream); }

.club-card.is-placeholder { cursor: pointer; }
.club-card.is-placeholder .c-name { color: rgba(232, 239, 233, 0.55); }
.club-card.is-placeholder .club-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(75, 99, 50, 0.03) 12px,
    rgba(75, 99, 50, 0.03) 13px
  );
}

.art-ph-1 { background: linear-gradient(145deg, #080c0a 0%, #101810 100%); }
.art-ph-2 { background: linear-gradient(160deg, #0a0e0c 0%, #121a14 100%); }
.art-ph-3 { background: linear-gradient(135deg, #080a08 0%, #0e1610 100%); }
.art-ph-0 { background: linear-gradient(150deg, #0a120c 0%, #142018 50%, #0a100c 100%); }

.art-ph-0::after,
.art-ph-1::after,
.art-ph-2::after,
.art-ph-3::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 60%, rgba(75, 99, 50, 0.1), transparent 65%);
}

/* Partner detail modal */
.partner-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 6, 5, 0.88);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.partner-modal.active { display: flex; }

.partner-modal-panel {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: mrise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mrise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.partner-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.partner-modal-close:hover { background: rgba(75, 99, 50, 0.15); }

.pgm-placeholder {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

.pgm-icon { opacity: 0.6; margin-bottom: 1rem; }

.pgm-placeholder h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.pgm-placeholder p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

.pgm-fields {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--glass-border);
  display: grid;
  gap: 0.75rem;
}

.pgm-fields div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  font-size: 0.78rem;
}

.pgm-fields dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
}

.pgm-fields dd { color: rgba(232, 239, 233, 0.7); }

.pgm-tbd { color: rgba(107, 125, 114, 0.4); font-style: italic; }

.pgm-hero {
  height: 200px;
  background: linear-gradient(135deg, #0e1812, #142018);
  background-size: cover;
  background-position: center;
}

.pgm-body { padding: 2rem; }

.pgm-tag {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pgm-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.pgm-location {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.pgm-desc {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(232, 239, 233, 0.75);
  line-height: 1.75;
}

.pgm-links {
  margin-top: 1.25rem;
  font-size: 0.75rem;
}

.pgm-links a {
  color: var(--accent);
  text-decoration: none;
}

.pgm-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.pgm-section h4 {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.5rem;
}

.pgm-section p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.pgm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.pgm-tags span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glow);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.6rem;
}

.pgm-cta { margin-top: 1.5rem; }

.pgm-access-btn {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.85rem 1.75rem;
}

.pgm-logo {
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Events carousel */
.events-carousel-outer {
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .events-carousel-outer { margin: 0; padding: 0; }
}

.events-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.events-carousel::-webkit-scrollbar { display: none; }

.event-carousel-card {
  flex: 0 0 min(82vw, 280px);
  scroll-snap-align: start;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.event-carousel-card::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 16px;
  height: 16px;
  background: url('../assets/logo-fingerprint.svg') center / contain no-repeat;
  opacity: 0.12;
}

.event-carousel-card:hover {
  border-color: rgba(122, 173, 98, 0.35);
  transform: translateY(-3px);
}

@media (min-width: 700px) {
  .event-carousel-card { flex: 0 0 calc(50% - 0.5rem); }
}

@media (min-width: 1100px) {
  .event-carousel-card { flex: 0 0 calc(25% - 0.75rem); }
}

.event-card-chip {
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--glass-border);
  padding: 0.2rem 0.55rem;
  align-self: flex-start;
}

.event-card-date {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glow);
}

.event-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.35;
  flex: 1;
}

.event-card-venue {
  font-size: 0.72rem;
  color: var(--muted);
}

.event-card-cta {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.25s;
}

.event-card-cta:hover { color: var(--cream); }

.events-loading, .events-error {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
}

.events-source {
  margin-top: 1.25rem;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(107, 125, 114, 0.6);
}

/* Weather + air quality banner */
.weather-banner {
  padding: 0 !important;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}

.weather-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

@media (min-width: 800px) {
  .weather-banner-inner {
    flex-direction: row;
    align-items: center;
    padding: 1rem 3rem;
    gap: 2rem;
  }
}

.wb-weather {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.wb-live {
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid var(--light-border);
  padding: 0.25rem 0.6rem;
  background: var(--light-card);
}

.wb-today {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wb-icon { font-size: 1.75rem; }

.wb-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.wb-label {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.wb-temp {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--forest);
  line-height: 1;
}

.wb-desc {
  font-size: 0.68rem;
  color: var(--light-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wb-forecast {
  display: flex;
  gap: 1rem;
}

.wb-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 44px;
}

.wb-day-name {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.wb-day-icon { font-size: 1rem; }

.wb-day-temp {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--light-text);
}

.wb-divider {
  width: 100%;
  height: 1px;
  background: var(--light-border);
}

@media (min-width: 800px) {
  .wb-divider {
    width: 1px;
    height: 56px;
    flex-shrink: 0;
  }
}

.wb-air {
  flex: 0 0 auto;
  min-width: 200px;
}

.wb-air-label {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest2);
  display: block;
  margin-bottom: 0.4rem;
}

.wb-air-status {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.wb-aqi-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--forest);
}

.wb-aqi-text {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.aqi-good .wb-aqi-val { color: #4a7c59; }
.aqi-fair .wb-aqi-val { color: var(--forest); }
.aqi-moderate .wb-aqi-val { color: #8a7a3a; }
.aqi-poor .wb-aqi-val { color: #9a5a3a; }
.aqi-very-poor .wb-aqi-val { color: #8a3a3a; }

.wb-air-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.62rem;
  color: var(--light-muted);
}

.wb-air-metrics strong {
  color: var(--light-text);
  font-weight: 500;
}

.wb-air-note {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(90, 107, 95, 0.55);
  margin-top: 0.35rem;
}

/* Community */
.section-light .community-card {
  background: var(--light-card);
  border-color: var(--light-border);
}

.section-light .community-card h3 { color: var(--light-text); }
.section-light .community-card p { color: var(--light-muted); }

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.community-card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s;
}

.section-light .community-card:hover { border-color: rgba(75, 99, 50, 0.28); }

.community-card:hover { border-color: rgba(74, 222, 128, 0.25); }

.community-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.community-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Community compact */
.community-compact {
  padding: 4rem 1.5rem !important;
}

@media (min-width: 900px) {
  .community-compact { padding: 5rem 3rem !important; }
}

/* Guide — light section */
.section-light .guide-card {
  background: var(--light-card);
  border-color: var(--light-border);
}

.section-light .guide-card h3 { color: var(--light-text); }
.section-light .guide-card p { color: var(--light-muted); }
.section-light .guide-card a { color: var(--forest); }
.section-light .guide-thumb {
  background: linear-gradient(135deg, #eef2ec, #e4ebe0);
}

/* Guide */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.guide-card {
  border: 1px solid var(--glass-border);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.3s;
}

.guide-card:hover { border-color: rgba(74, 222, 128, 0.2); }

.guide-thumb {
  height: 140px;
  background: linear-gradient(135deg, #0e1812, #142018);
  position: relative;
}

.guide-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(61, 139, 94, 0.12), transparent);
}

.guide-body { padding: 1.5rem; }

.guide-cat {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.5rem;
}

.guide-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide-card a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.guide-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.section-light .guide-card h2 { color: var(--light-text); }

.guide-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.guide-read {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-light .guide-read { color: var(--forest); }

.guide-thumb-ph-0 { background: linear-gradient(150deg, #0a120c 0%, #142018 50%, #0a100c 100%); }
.guide-thumb-ph-1 { background: linear-gradient(145deg, #080c0a 0%, #101810 100%); }
.guide-thumb-ph-2 { background: linear-gradient(160deg, #0a0e0c 0%, #121a14 100%); }
.guide-thumb-ph-3 { background: linear-gradient(135deg, #080a08 0%, #0e1610 100%); }

.guide-thumb.has-cover,
.guide-article-cover.has-cover {
  background-size: cover;
  background-position: center;
}

/* Guide Hub */
.guide-hub-hero {
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}

.guide-hub-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.guide-hub-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--cream);
  margin: 1rem 0 1.25rem;
}

.guide-hub-title em {
  color: var(--accent);
  font-style: normal;
}

.guide-hub-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.guide-hub-section {
  padding: 4rem 1.5rem 5rem;
}

.guide-hub-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--light-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.guide-hub-grid {
  max-width: 1100px;
  margin: 0 auto;
}

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

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

.guide-hub-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--light-muted);
}

@media (min-width: 900px) {
  .guide-hub-hero { padding: 9rem 3rem 5rem; }
  .guide-hub-section { padding: 5rem 3rem 6rem; }
}

/* Guide Article */
.guide-article-main {
  padding: 6.5rem 1.5rem 4rem;
  min-height: 60vh;
}

.guide-article-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.guide-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
}

.guide-back:hover { color: var(--forest2); }

.guide-article-header {
  margin-bottom: 2rem;
}

.guide-article-header .guide-cat {
  color: var(--forest2);
}

.guide-article-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--light-text);
  line-height: 1.25;
  margin: 0.75rem 0 1rem;
}

.guide-article-lead {
  font-size: 1rem;
  color: var(--light-muted);
  line-height: 1.75;
}

.guide-article-cover {
  height: 220px;
  border: 1px solid var(--light-border);
  margin-bottom: 2rem;
  position: relative;
}

.guide-article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(75, 99, 50, 0.1), transparent);
}

.guide-article-content {
  margin-bottom: 2.5rem;
}

.guide-article-content p {
  color: var(--light-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.guide-coming {
  font-size: 0.95rem;
}

.guide-cta {
  display: inline-block;
  margin-top: 0.5rem;
}

.guide-article-aside {
  border-top: 1px solid var(--light-border);
  padding-top: 2rem;
  display: grid;
  gap: 2rem;
}

.guide-related h2,
.guide-internal-links h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--forest);
  margin-bottom: 1rem;
}

.guide-related-list,
.guide-internal-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.guide-related-list a,
.guide-internal-list a {
  font-size: 0.85rem;
  color: var(--light-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.guide-related-list a:hover,
.guide-internal-list a:hover {
  color: var(--forest);
}

@media (min-width: 900px) {
  .guide-article-main { padding: 8rem 3rem 5rem; }
}

/* Access */
.access-layout {
  display: grid;
  gap: 3rem;
  max-width: 900px;
}

@media (min-width: 800px) {
  .access-layout { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.access-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.access-info p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.access-steps {
  list-style: none;
  margin-top: 1.5rem;
}

.access-steps li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: rgba(232, 239, 233, 0.7);
}

.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 24px;
}

.access-form {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  position: relative;
}

.access-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--forest), transparent);
  opacity: 0.5;
}

.frow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 500px) {
  .frow.split { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  background: rgba(61, 139, 94, 0.04);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(74, 222, 128, 0.4);
}

.field textarea { resize: vertical; min-height: 80px; }

.field select option { background: var(--bg2); }

.sbtn {
  width: 100%;
  background: linear-gradient(135deg, var(--forest2), var(--forest));
  color: var(--cream);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sbtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26, 92, 58, 0.3);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success.on { display: block; }

.form-success h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.form-success p { color: var(--muted); font-size: 0.85rem; }

/* Ecosystem */
#ecosystem {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--light-border);
}

@media (min-width: 900px) { #ecosystem { padding: 4rem 3rem; } }

.eco-label {
  text-align: center;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 2rem;
}

.section-light .eco-card {
  background: var(--light-card);
  border-color: var(--light-border);
  color: var(--light-muted);
}

.section-light .eco-card:hover {
  color: var(--forest);
  border-color: rgba(75, 99, 50, 0.25);
}

.eco-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.eco-card {
  background: rgba(14, 22, 16, 0.4);
  border: 1px solid rgba(61, 139, 94, 0.08);
  padding: 0.6rem 1.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(107, 125, 114, 0.7);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}

.eco-card:hover {
  color: var(--muted);
  border-color: rgba(61, 139, 94, 0.2);
}

.eco-card-empty {
  min-width: 6.5rem;
  min-height: 2.15rem;
  cursor: default;
  pointer-events: none;
}

.section-light .eco-card-empty:hover {
  color: var(--light-muted);
  border-color: var(--light-border);
}

/* Footer */
footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  background: var(--bg);
}

@media (min-width: 700px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2.5rem 3rem;
  }
}

.foot-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.foot-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.foot-links a {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.foot-links a:hover { color: var(--accent); }

.foot-copy {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(107, 125, 114, 0.4);
}
