/* ── Design tokens ─────────────────────────────── */
:root {
  --cream:      #f7f1e3;
  --warm-white: #fffcf5;
  --bark:       #3b2a1a;
  --moss:       #2d6a4f;
  --moss-light: #52b788;
  --leaf:       #95d5b2;
  --gold:       #d4a853;
  --gold-light: #f0c97a;
  --rust:       #c1440e;
  --sky:        #e6f4ea;
  --footer-bg:  #2b1e14;
  --footer-text:#efe6d7;
  --border:     rgba(59,42,26,0.12);
  --shadow-sm:  0 4px 16px rgba(45,106,79,0.10);
  --shadow-md:  0 12px 40px rgba(45,106,79,0.16);
  --shadow-lg:  0 24px 64px rgba(45,106,79,0.22);
  --bubble-outline: color-mix(in srgb, var(--moss) 48%, #ffffff 52%);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;
}

[data-theme="dark"] {
  --cream:      #101a13;
  --warm-white: #16231a;
  --bark:       #ddeae2;
  --moss:       #52b788;
  --moss-light: #74c99a;
  --leaf:       #3a7a5a;
  --gold:       #e8be70;
  --gold-light: #f2d08a;
  --rust:       #e06838;
  --sky:        #1b2e22;
  --footer-bg:  #0b120d;
  --footer-text:#eef5f0;
  --border:     rgba(255,255,255,0.09);
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.30);
  --shadow-md:  0 12px 40px rgba(0,0,0,0.40);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.50);
  --bubble-outline: color-mix(in srgb, var(--moss-light) 62%, #ffffff 38%);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--bark);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Utility ───────────────────────────────────── */
.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  background: color-mix(in srgb, var(--moss) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--moss) 28%, transparent);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
}

/* ── Decorative leaves (SVG blobs) ─────────────── */
.leaf-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.18;
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}

/* ── Theme toggle ──────────────────────────────── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--moss) 34%, var(--border));
  background: color-mix(in srgb, var(--moss) 14%, transparent);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  color: var(--moss);
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.18s, border-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
  background: color-mix(in srgb, var(--moss) 22%, transparent);
  border-color: color-mix(in srgb, var(--moss) 50%, var(--border));
  transform: rotate(18deg) scale(1.08);
}
.audio-fallback-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--moss) 34%, var(--border));
  background: color-mix(in srgb, var(--moss) 14%, transparent);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  color: var(--moss);
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.18s, border-color 0.2s, color 0.2s;
}
.audio-fallback-toggle:hover {
  background: color-mix(in srgb, var(--moss) 22%, transparent);
  border-color: color-mix(in srgb, var(--moss) 50%, var(--border));
  transform: translateY(-1px);
}
.audio-fallback-toggle svg { display: block; }
.audio-fallback-toggle .audio-icon-mute { display: none; }
.audio-fallback-toggle.audio-show-mute .audio-icon-mute { display: block; }
.audio-fallback-toggle.audio-show-mute .audio-icon-unmute { display: none; }
.audio-fallback-toggle[hidden] { display: none; }
.theme-toggle svg { display: block; }
/* show correct icon per theme */
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none;  }

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bark) 7%, transparent);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  color: var(--bark);
  border-radius: var(--r-pill);
  padding: 0.36rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.lang-trigger:hover {
  background: color-mix(in srgb, var(--bark) 12%, transparent);
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.lang-caret {
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0.8;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 0.3rem;
  min-width: 154px;
  z-index: 120;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.42rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--bark);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: color-mix(in srgb, var(--moss) 12%, transparent);
  outline: none;
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}

.flag-es {
  background: linear-gradient(to bottom, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%);
}

.flag-fr {
  background: linear-gradient(to right, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.flag-en {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, #b22234 0 0.92px, #ffffff 0.92px 1.84px);
  overflow: hidden;
}

.flag-en::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 54%;
  background: #3c3b6e;
}

.lang-trigger:focus-visible,
.audio-fallback-toggle:focus-visible,
.theme-toggle:focus-visible,
.btn-cta-sm:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--moss) 45%, transparent);
  outline-offset: 2px;
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bark) 7%, transparent);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  color: var(--bark);
  cursor: pointer;
  place-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.18s;
}

.mobile-menu-toggle:hover {
  background: color-mix(in srgb, var(--bark) 12%, transparent);
  transform: scale(1.04);
}

.brand {
  --brand-logo-height: 68px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--moss);
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.78; }

.brand-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: var(--brand-logo-height);
  object-fit: contain;
  filter: saturate(0.92) contrast(0.94) brightness(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  -webkit-mask-image: radial-gradient(125% 115% at 50% 50%, #000 62%, rgba(0,0,0,0.84) 82%, transparent 100%);
  mask-image: radial-gradient(125% 115% at 50% 50%, #000 62%, rgba(0,0,0,0.84) 82%, transparent 100%);
}

.brand-logo-adla {
  border-radius: 9px;
}

.brand-text {
  height: var(--brand-logo-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  line-height: 1;
}

.brand-text > span {
  display: block;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  transition: background 0.18s, color 0.18s;
  color: color-mix(in srgb, var(--bark) 70%, transparent);
}

/* Keep the Tree Day nav label on a single line across locales. */
.nav-links a[href="#evento"] {
  white-space: nowrap;
}

.nav-links a:hover {
  background: color-mix(in srgb, var(--moss) 10%, transparent);
  color: var(--moss);
}

.btn-cta-sm {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--moss);
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta-sm:hover { background: var(--moss-light); transform: translateY(-1px); }

.cta-wa-icon {
  width: 16px;
  height: 16px;
  margin-left: 0.35rem;
  vertical-align: -2px;
  filter: brightness(0) invert(1);
}

.cta-wa-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #ffffff;
}

.cta-wa-fallback[hidden] {
  display: none;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
  --hero-banner-height: 380px;
}

/* Organic background blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, color-mix(in srgb, var(--moss-light) 22%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, color-mix(in srgb, var(--gold) 18%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 10%, color-mix(in srgb, var(--leaf) 14%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

.hero-banner {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.hero-banner-image {
  width: 100%;
  height: var(--hero-banner-height);
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: height 0.28s ease, object-position 0.28s ease;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bark);
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--moss);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: color-mix(in srgb, var(--bark) 65%, transparent);
  max-width: 46ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--r-pill);
  background: var(--moss);
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--moss) 38%, transparent);
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--moss-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--moss) 45%, transparent);
}

.btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--moss);
  border: 2px solid var(--moss);
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--moss) 8%, transparent);
  transform: translateY(-2px);
}

/* Hero illustration placeholder — organic card */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: visible;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--leaf) 40%, transparent), transparent 70%);
  border-radius: 50%;
}

.stat-row {
  --stat-card-height: 138px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  grid-auto-rows: var(--stat-card-height);
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.stat-box {
  background: var(--sky);
  border: 1px solid color-mix(in srgb, var(--moss) 15%, transparent);
  border-radius: var(--r-md);
  padding: 1.2rem;
  min-height: var(--stat-card-height);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  text-align: center;
  position: relative;
  overflow: visible;
  transition: transform 0.2s;
}
.stat-box:hover { transform: translateY(-3px); }

.stat-box.has-detail {
  z-index: 2;
}

.stat-box.has-detail:hover,
.stat-box.has-detail:focus,
.stat-box.has-detail:focus-visible,
.stat-box.has-detail.show-detail {
  z-index: 22;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--moss);
  line-height: 1.08;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--bark) 60%, transparent);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

.stat-detail {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  transform: translate(-50%, -6px);
  width: min(280px, calc(100vw - 2rem));
  z-index: 18;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--warm-white);
  border: 1px solid color-mix(in srgb, var(--moss) 20%, transparent);
  outline: 1px solid var(--bubble-outline);
  outline-offset: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.62rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--bark) 72%, transparent);
  line-height: 1.35;
  margin-top: 0;
  text-align: center;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.stat-detail::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--warm-white);
  border-left: 1px solid color-mix(in srgb, var(--moss) 20%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--moss) 20%, transparent);
  box-shadow: -1px -1px 0 0 var(--bubble-outline);
}

.stat-box.has-detail:hover .stat-detail,
.stat-box.has-detail:focus .stat-detail,
.stat-box.has-detail:focus-visible .stat-detail,
.stat-box.has-detail.show-detail .stat-detail {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.stat-box.has-detail:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--moss) 45%, transparent);
  outline-offset: 2px;
}

.stat-box-action {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.stat-action-btn {
  width: 100%;
  min-height: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.32rem;
  border: 1px solid color-mix(in srgb, var(--moss) 24%, transparent);
  background: color-mix(in srgb, var(--moss) 12%, var(--warm-white) 88%);
  color: var(--moss);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0.85rem 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.stat-action-btn[data-modal="annual-report"] {
  background: color-mix(in srgb, var(--moss) 18%, var(--warm-white) 82%);
  border-color: color-mix(in srgb, var(--moss) 28%, transparent);
}

.stat-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stat-action-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  flex-shrink: 0;
}

.stat-action-label {
  display: block;
  width: 100%;
  max-width: 16ch;
  text-wrap: balance;
}

.stat-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--moss) 18%, var(--warm-white) 82%);
}

.stat-action-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--moss) 45%, transparent);
  outline-offset: 2px;
}

.hero-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.hero-card-sub {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--bark) 58%, transparent);
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.section-about {
  position: relative;
  padding: 7rem 0;
  background: var(--warm-white);
  overflow: hidden;
}

.section-about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--moss-light), var(--gold-light), transparent);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.about-visual {
  position: relative;
  --mosaic-padding-bottom: 0px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
/* ── About mosaic ──────────────────────────────── */
/*
  Asymmetric gallery (5 cols × 6 rows) using all 15 tiles.
*/
.about-mosaic {
  --mosaic-scale: 1;
  --mosaic-inv-scale: 1;
  position: relative;
  column-count: 3;
  column-fill: balance;
  column-gap: 10px;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  padding: 0 0 var(--mosaic-padding-bottom);
  isolation: isolate;
  transform-origin: top center;
  transform: scale(var(--mosaic-scale));
  width: calc(100% * var(--mosaic-inv-scale));
  margin-inline: auto;
}

.mt-a,
.mt-b,
.mt-c,
.mt-d,
.mt-e,
.mt-f,
.mt-g,
.mt-h,
.mt-i,
.mt-j,
.mt-k,
.mt-l,
.mt-m,
.mt-n,
.mt-o,
.mt-p,
.mt-q {
  grid-area: auto;
}

.mosaic-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 10px;
  break-inside: avoid;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}

.mosaic-fill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-tile {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  position: relative;
}

.about-photo-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.about-photo-tile:hover img {
  transform: scale(1.04);
}

.about-photo-tile:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--moss) 45%, transparent);
  outline-offset: 3px;
}

.mosaic-spacer {
  display: inline-block;
  width: 100%;
  height: 54px;
  margin: 0 0 10px;
  break-inside: avoid;
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 640px) {

  .about-mosaic {
    column-count: 3;
    column-gap: 8px;
    padding: 0 0 var(--mosaic-padding-bottom) 0;
    height: auto;
    transform: none;
    width: 100%;
  }

  .mosaic-tile {
    margin: 0 0 8px;
  }

  .mosaic-spacer {
    display: none;
  }
}

@media (max-width: 460px) {
  .about-mosaic {
    column-count: 3;
    column-gap: 6px;
  }

  .mosaic-tile {
    margin: 0 0 6px;
  }
}

.floating-badge {
  background: var(--moss);
  color: #fff;
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.badge-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 1rem 0 1.5rem;
}

.about-heading em {
  color: var(--moss);
  font-style: italic;
}

.about-body {
  font-size: 1.02rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--bark) 72%, transparent);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Soft text justification for longer reading passages. */
.about-body,
.event-desc,
.agenda-subtitle,
.agenda-body-detail {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.about-subheading {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: color-mix(in srgb, var(--moss) 82%, var(--bark) 18%);
  margin: 1.35rem 0 0.55rem;
}

.about-chip-hint {
  font-size: 0.9rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--moss) 78%, var(--bark) 22%);
  letter-spacing: 0.01em;
  margin-bottom: 0.55rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.value-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--sky);
  border: 1px solid color-mix(in srgb, var(--moss) 15%, transparent);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.value-chip[data-modal] {
  cursor: pointer;
}

.value-chip[data-modal]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--moss) 45%, transparent);
  outline-offset: 2px;
}

.value-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   EVENT ANNOUNCEMENT
═══════════════════════════════════════════════ */
.section-event {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.section-event::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 65%),
    radial-gradient(ellipse 50% 60% at 5% 30%,  color-mix(in srgb, var(--moss-light) 12%, transparent), transparent 65%);
}

.event-card {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.event-card::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-light) 35%, transparent), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.event-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'intro date'
    'meta meta'
    'actions actions';
  column-gap: 2rem;
  row-gap: 1.35rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.event-intro {
  grid-area: intro;
  min-width: 0;
}

.event-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  background: color-mix(in srgb, var(--rust) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--rust) 25%, transparent);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.event-desc {
  font-size: 1rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--bark) 68%, transparent);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.event-meta {
  grid-area: meta;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.event-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.7rem;
  align-items: stretch;
  width: min(100%, 980px);
  margin-inline: auto;
}

.event-actions .btn-primary,
.event-actions .btn-ghost {
  display: inline-flex !important;
  align-items: center;
  font-size: 0.86rem;
  line-height: 1.25;
  min-height: 3.05rem;
  padding: 0.62rem 0.64rem;
  min-width: 0;
  height: 100%;
  width: 100%;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.event-meta-icon {
  font-size: 1.1rem;
}

.event-date-block {
  grid-area: date;
  justify-self: end;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--moss), var(--moss-light));
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3.8vw, 2rem) clamp(1.35rem, 4.8vw, 2.5rem);
  text-align: center;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--moss) 40%, transparent);
  min-width: clamp(124px, 34vw, 160px);
  width: fit-content;
  margin: 0;
}

.date-month {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}

.date-day {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 10vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin: 0.1rem 0;
}

.date-year {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════
   AGENDA
═══════════════════════════════════════════════ */
.section-agenda {
  padding: 7rem 0;
  background: var(--warm-white);
  position: relative;
}

.section-agenda::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--moss-light), transparent);
}

.agenda-header {
  text-align: center;
  margin-bottom: 4rem;
}

.agenda-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 1rem 0 1rem;
}

.agenda-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--bark) 60%, transparent);
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.7;
}

.agenda-timeline {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
}

/* vertical line */
.agenda-timeline::before {
  content: '';
  position: absolute;
  left: 84px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--moss-light), var(--gold-light), var(--moss-light));
  border-radius: 2px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0;
  margin-bottom: 1.5rem;
  position: relative;
}

.agenda-time {
  padding: 1.1rem 1.25rem 1.1rem 0;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--moss);
  letter-spacing: 0.03em;
  line-height: 1.3;
  padding-top: 1.35rem;
}

.agenda-dot {
  position: absolute;
  left: 78px;
  top: 1.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 3px solid var(--moss-light);
  z-index: 2;
  transition: transform 0.2s, border-color 0.2s;
}

.agenda-item:hover .agenda-dot {
  transform: scale(1.35);
  border-color: var(--moss);
}

.agenda-body {
  padding: 1rem 1.25rem 1rem 2.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-left: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.agenda-item:hover .agenda-body {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.agenda-body-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.agenda-body-detail {
  font-size: 0.85rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--bark) 60%, transparent);
  line-height: 1.5;
}

.agenda-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  padding: 0.32rem 0.78rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.4rem;
}

.tag-keynote  { background: color-mix(in srgb, var(--moss) 14%, transparent);   color: var(--moss); }
.tag-workshop { background: color-mix(in srgb, var(--gold) 18%, transparent);   color: #8a6200; }
.tag-break    { background: color-mix(in srgb, var(--bark) 8%, transparent);    color: color-mix(in srgb, var(--bark) 55%, transparent); }
.tag-field    { background: color-mix(in srgb, var(--rust) 12%, transparent);   color: var(--rust); }
.tag-social   { background: color-mix(in srgb, var(--moss-light) 20%, transparent); color: var(--bark); }

[data-theme="dark"] .tag-keynote  { color: #c6ebd8; }
[data-theme="dark"] .tag-workshop { background: color-mix(in srgb, var(--gold) 26%, transparent); color: #ffe1a1; }
[data-theme="dark"] .tag-break    { background: color-mix(in srgb, var(--bark) 20%, transparent); color: #edf4ef; }
[data-theme="dark"] .tag-field    { background: color-mix(in srgb, var(--rust) 20%, transparent); color: #ffb89a; }
[data-theme="dark"] .tag-social   { background: color-mix(in srgb, var(--moss-light) 24%, transparent); color: #e9f5ef; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-identity {
  position: relative;
  padding-left: 5.9rem;
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--footer-text);
}

.footer-logo {
  width: auto;
  height: 110px;
  border-radius: 10px;
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  filter: saturate(0.9) contrast(0.93) brightness(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  -webkit-mask-image: radial-gradient(124% 116% at 50% 50%, #000 60%, rgba(0,0,0,0.84) 82%, transparent 100%);
  mask-image: radial-gradient(124% 116% at 50% 50%, #000 60%, rgba(0,0,0,0.84) 82%, transparent 100%);
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 0.25rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  text-align: right;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.float-anim { animation: float 6s ease-in-out infinite; }

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

.fade-up {
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .stat-row {
      --stat-card-height: 130px;
      grid-template-columns: 1fr 1fr;
    }

  .hero-banner {
    margin-bottom: 1.4rem;
  }

  .hero-banner-image {
    max-height: min(34vh, 300px);
    border-radius: 18px;
  }

  .hero-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: block;
    margin-top: 1.25rem;
  }

  .about-content { order: 1; }
  .about-visual { order: 2; }

  .floating-badge {
    margin: 0;
    padding: 0.78rem 0.95rem;
  }

  .event-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'intro'
      'date'
      'meta'
      'actions';
    row-gap: 1.15rem;
  }

  .event-title {
    font-size: clamp(1.65rem, 4.9vw, 2.35rem);
    margin-bottom: 0.8rem;
  }

  .event-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    max-width: 48ch;
  }

  .event-date-block {
    padding: 1rem 1.2rem;
    min-width: 116px;
  }

  .date-month {
    font-size: 0.7rem;
  }

  .date-day {
    font-size: clamp(2.25rem, 8.2vw, 2.95rem);
  }

  .date-year {
    font-size: 0.76rem;
  }

  .event-meta {
    gap: 0.95rem;
    margin-bottom: 1.3rem;
  }

  .event-meta-item {
    font-size: 0.85rem;
  }

  .event-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 640px);
  }

  .event-date-block {
    justify-self: center;
    width: fit-content;
    margin: 0 auto;
  }

  .agenda-timeline::before { left: 64px; }
  .agenda-item { grid-template-columns: 64px 1fr; }
  .agenda-dot  { left: 58px; }
}

@media (max-width: 1200px) {
  .hero { --hero-banner-height: 360px; }
  .stat-row {
    --stat-card-height: 134px;
  }
}

@media (max-width: 700px) {
  .hero { --hero-banner-height: 320px; }
  .stat-row {
    --stat-card-height: 126px;
  }
}

@media (max-width: 920px) {
  .navbar { padding: 0.55rem 0; }
  .navbar-inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    flex-wrap: nowrap;
    column-gap: 0.45rem;
    row-gap: 0.5rem;
  }
  .brand {
    grid-column: 1;
    margin-right: 0;
  }
  .navbar-controls {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  .mobile-menu-toggle {
    display: grid;
    grid-column: 2;
    order: 0;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    order: 4;
  }
  .main-nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: color-mix(in srgb, var(--warm-white) 94%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.35rem;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open .nav-links {
    display: flex;
  }
  .main-nav .nav-links a {
    display: block;
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 600px) {
  .container   { width: min(1100px, 100% - 1.5rem); }
  .values-grid { grid-template-columns: 1fr; }
  .stat-row    {
    --stat-card-height: 122px;
    grid-template-columns: 1fr;
  }

  .event-actions {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }

  .stat-label {
    font-size: 0.74rem;
  }

  .navbar { padding: 0.55rem 0; }
  .navbar-inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    flex-wrap: nowrap;
    column-gap: 0.4rem;
    row-gap: 0.5rem;
  }
  .brand {
    grid-column: 1;
    margin-right: 0;
  }
  .navbar-controls {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  .mobile-menu-toggle {
    display: grid;
    grid-column: 2;
    order: 0;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    order: 4;
  }
  .main-nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: color-mix(in srgb, var(--warm-white) 94%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.35rem;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open .nav-links {
    display: flex;
  }
  .main-nav .nav-links a {
    display: block;
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
  }

  .brand { font-size: 0.98rem; }
  .brand { --brand-logo-height: 60px; }
  .brand-text { font-size: clamp(1.05rem, 4.6vw, 1.24rem); }
  .lang-trigger {
    min-width: 74px;
    padding: 0.32rem 0.45rem;
    font-size: 0.76rem;
  }

  .btn-cta-sm {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }

  .hero { min-height: auto; padding: 5.2rem 0 3.2rem; }

  .stat-detail {
    width: min(250px, calc(100vw - 2rem));
  }
  .hero-actions {
    width: 100%;
    gap: 0.7rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 100%;
    text-align: center;
  }

  .event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .about-body,
  .event-desc,
  .agenda-subtitle,
  .agenda-body-detail {
    text-align: left;
    hyphens: none;
  }

  .footer-identity { padding-left: 4.7rem; }
  .footer-logo { height: 84px; }
  .footer-inner { gap: 1.2rem; }
  .footer-copy  { text-align: left; }

}

@media (max-width: 380px) {
  .lang-trigger { min-width: 74px; }
  .audio-fallback-toggle,
  .theme-toggle,
  .mobile-menu-toggle { width: 34px; height: 34px; }
  .modal { padding: 1.4rem 1rem; }
}

@media (max-width: 560px) {
  .brand {
    --brand-logo-height: 56px;
  }


@media (max-width: 480px) {
  .about-visual {
    width: min(100%, 336px);
    margin-inline: auto;
  }

  .about-mosaic {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 0 0 var(--mosaic-padding-bottom);
  }

  .floating-badge {
    padding: 0.72rem 0.88rem;
  }

  .badge-number {
    font-size: 1.7rem;
  }

  .date-month {
    font-size: 0.72rem;
  }

  .date-year {
    font-size: 0.78rem;
  }
}
  .brand-text {
    font-size: 0.98rem;
    line-height: 0.98;
  }

  .navbar-controls {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "lang audio theme"
      "join join join";
    align-items: center;
    justify-items: end;
    row-gap: 0.28rem;
    column-gap: 0.3rem;
  }

  .navbar-controls .lang-dropdown {
    grid-area: lang;
  }

  .navbar-controls .audio-fallback-toggle {
    grid-area: audio;
  }

  .navbar-controls .theme-toggle {
    grid-area: theme;
  }

  .navbar-controls .btn-cta-sm {
    grid-area: join;
    justify-self: end;
  }

  .lang-trigger {
    min-width: 68px;
    padding: 0.3rem 0.4rem;
    font-size: 0.74rem;
  }

  .audio-fallback-toggle,
  .theme-toggle,
  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
  }

  .btn-cta-sm {
    font-size: 0.74rem;
    padding: 0.42rem 0.6rem;
  }
}

@media (max-width: 430px) {
  .brand {
    --brand-logo-height: 52px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .lang-trigger {
    min-width: 64px;
    padding: 0.28rem 0.36rem;
    font-size: 0.72rem;
  }

  .audio-fallback-toggle,
  .theme-toggle,
  .mobile-menu-toggle {
    width: 33px;
    height: 33px;
  }

  .btn-cta-sm {
    font-size: 0.72rem;
    padding: 0.4rem 0.56rem;
  }
}

/* ═══════════════════════════════════════════════
   MODAL / POPUP SYSTEM
═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 20, 16, 0.68);
  backdrop-filter: blur(12px) brightness(0.58) saturate(82%);
  -webkit-backdrop-filter: blur(12px) brightness(0.58) saturate(82%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.modal {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: none;
}

.modal.modal-photo {
  max-width: min(1100px, 96vw);
  padding: clamp(1rem, 2.8vw, 1.6rem);
}

.modal.modal-photo .modal-header {
  padding-right: 2.4rem;
}

.modal.modal-photo .modal-body {
  margin-top: 0.45rem;
}

.modal-overlay.active .modal {
  animation: slideIn 0.4s ease-out;
}

/* Photo lightbox variant — wide, dark, image-dominant */
.modal.modal-photo-wide {
  max-width: min(92vw, 1100px);
  padding: 0.85rem;
  background: #151f17;
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.modal.modal-photo-wide .modal-close {
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal.modal-photo-wide .modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal.modal-photo-wide .modal-header {
  margin-bottom: 0;
  padding-right: 0;
  margin-top: 0.65rem;
  text-align: center;
}

.modal.modal-photo-wide .modal-title {
  font-size: clamp(0.88rem, 2vw, 1.1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
}

.modal.modal-photo-wide .modal-body {
  color: rgba(255, 255, 255, 0.72);
}

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

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border: none;
  background: color-mix(in srgb, var(--moss) 10%, transparent);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bark);
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.2s, transform 0.18s;
}

.modal-close:hover {
  background: color-mix(in srgb, var(--moss) 18%, transparent);
  transform: rotate(90deg) scale(1.08);
}

.modal-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--moss) 45%, transparent);
  outline-offset: 2px;
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--bark);
  line-height: 1.1;
}

.modal-body {
  font-size: 1rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--bark) 70%, transparent);
  line-height: 1.8;
}

.modal-body a {
  color: color-mix(in srgb, var(--moss) 85%, var(--bark));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--moss) 55%, transparent);
}

.modal-body a:hover,
.modal-body a:focus-visible {
  color: var(--moss);
  text-decoration-color: var(--moss);
  outline: none;
}

[data-theme="dark"] .modal-body a {
  color: color-mix(in srgb, var(--gold-light) 80%, #fff);
  text-decoration-color: color-mix(in srgb, var(--gold-light) 55%, transparent);
}

[data-theme="dark"] .modal-body a:hover,
[data-theme="dark"] .modal-body a:focus-visible {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

body.modal-open {
  overflow: hidden;
}

/* Respect OS-level motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .float-anim {
    animation: none;
  }

  .agenda-item,
  .agenda-body,
  .agenda-dot {
    transition: none;
  }

  .modal-overlay,
  .modal-overlay.active,
  .modal-overlay.active .modal {
    transition: none;
    animation: none;
  }
}
