/* ============================================
   REGENERATE EUROPE — Design Tokens
   Nature-forward, earthy palette
   Cormorant (display) + Work Sans (body)
   ============================================ */

/* --- Type Scale (fluid) --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Font families --- */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================================
   LIGHT MODE
   ============================================ */
:root, [data-theme="light"] {
  --color-bg:               #f5f0e8;
  --color-surface:          #faf6ef;
  --color-surface-2:        #fdfaf5;
  --color-surface-offset:   #ede7dc;
  --color-surface-offset-2: #e5dfd3;
  --color-surface-dynamic:  #ddd7cb;
  --color-divider:          #d4cdbf;
  --color-border:           #c9c1b1;
  --color-text:             #2c2a22;
  --color-text-muted:       #7a7567;
  --color-text-faint:       #b5ae9e;
  --color-text-inverse:     #faf6ef;
  --color-primary:          #3d6b4e;
  --color-primary-hover:    #2d5239;
  --color-primary-active:   #1f3a28;
  --color-primary-highlight: #d2e0d6;
  --color-secondary:        #b5623a;
  --color-secondary-hover:  #954e2c;
  --color-secondary-active: #733b20;
  --color-secondary-highlight: #e5d4c8;
  --color-warning:          #a67a2b;
  --color-error:            #a13544;
  --color-success:          #4a7a32;
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 70 / 0.07);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 70 / 0.09);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 70 / 0.13);

  --nav-bg: rgba(245, 240, 232, 0.92);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:               #1a1d18;
  --color-surface:          #22261f;
  --color-surface-2:        #282d24;
  --color-surface-offset:   #1e2219;
  --color-surface-offset-2: #252a20;
  --color-surface-dynamic:  #333829;
  --color-divider:          #2e3327;
  --color-border:           #404638;
  --color-text:             #d8d2c4;
  --color-text-muted:       #8a8476;
  --color-text-faint:       #5c5849;
  --color-text-inverse:     #1a1d18;
  --color-primary:          #6da67a;
  --color-primary-hover:    #549462;
  --color-primary-active:   #3d7c4c;
  --color-primary-highlight: #2a3a2d;
  --color-secondary:        #d4845c;
  --color-secondary-hover:  #c4724a;
  --color-secondary-active: #b06038;
  --color-secondary-highlight: #3a2e25;
  --color-warning:          #d4a24e;
  --color-error:            #d06070;
  --color-success:          #6daa45;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);

  --nav-bg: rgba(26, 29, 24, 0.92);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1a1d18; --color-surface: #22261f; --color-surface-2: #282d24;
    --color-surface-offset: #1e2219; --color-surface-offset-2: #252a20;
    --color-surface-dynamic: #333829; --color-divider: #2e3327; --color-border: #404638;
    --color-text: #d8d2c4; --color-text-muted: #8a8476; --color-text-faint: #5c5849;
    --color-text-inverse: #1a1d18;
    --color-primary: #6da67a; --color-primary-hover: #549462; --color-primary-active: #3d7c4c;
    --color-primary-highlight: #2a3a2d;
    --color-secondary: #d4845c; --color-secondary-hover: #c4724a; --color-secondary-active: #b06038;
    --color-secondary-highlight: #3a2e25;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
    --nav-bg: rgba(26, 29, 24, 0.92);
  }
}


/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container--narrow { max-width: var(--content-narrow); }
.container--wide { max-width: var(--content-wide); }

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-32)) var(--space-4);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
  width: 100%;
}
.section__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  text-align: center;
  max-width: none;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
}

.hide-mobile { display: inline; }
@media (max-width: 640px) { .hide-mobile { display: none; } }


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive),
              box-shadow var(--transition-interactive), transform var(--transition-interactive);
  text-decoration: none;
  border: none;
  line-height: 1.4;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { background: var(--color-primary-active); transform: translateY(0); }

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover { background: var(--color-surface-offset); border-color: var(--color-primary); }

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


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: background var(--transition-interactive);
}
.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
}
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 56px;
  width: auto;
  /* Clean dark rendering for light mode — use contrast instead of brightness(0) to avoid pixelation */
  filter: brightness(0.15) saturate(0.4) contrast(1.2);
  transition: filter var(--transition-interactive);
  image-rendering: auto;
}
@media (min-width: 900px) {
  .nav__logo-img {
    height: 67px;
  }
}
[data-theme="dark"] .nav__logo-img {
  filter: brightness(1.6) saturate(0%) contrast(1.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nav__logo-img {
    filter: brightness(1.6) saturate(0%) contrast(1.1);
  }
}

.nav__links {
  display: none;
  gap: var(--space-1);
}
@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}
.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 450;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.nav__link:hover, .nav__link--active {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.nav__theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background var(--transition-interactive);
}
.nav__hamburger:hover { background: var(--color-surface-offset); }
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__hamburger { display: none; }
}

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding-top: calc(var(--space-16) + var(--space-8));
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__mobile.is-open {
  display: block;
  opacity: 1;
}
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
}
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  width: 100%;
  max-width: 300px;
  text-align: center;
}
.nav__mobile-link:hover, .nav__mobile-link:active {
  color: var(--color-primary);
  background: var(--color-surface-offset);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slideshow {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: kenBurns 30s ease-in-out infinite alternate;
}
.hero__slide--active {
  opacity: 1;
}
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26, 29, 24, 0.55) 0%,
    rgba(26, 29, 24, 0.40) 40%,
    rgba(26, 29, 24, 0.65) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-20) var(--space-4) var(--space-12);
  max-width: 900px;
  color: #faf6ef;
}
.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-6);
  opacity: 0.85;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  margin-bottom: var(--space-8);
  opacity: 0.9;
  line-height: 1.5;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.hero__cta .btn--primary {
  background: var(--color-primary);
  color: #faf6ef;
}
.hero__cta .btn--primary:hover {
  background: var(--color-primary-hover);
}
.hero__soon {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(250, 246, 239, 0.6);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  overflow: hidden;
}
.about__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  color: var(--color-text);
  margin-bottom: var(--space-12);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.about__quote p {
  max-width: 100%;
  margin-bottom: var(--space-4);
}
.about__quote cite {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-muted);
  display: block;
}
.about__text p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 65ch;
  margin-inline: auto;
}
.about__text p:last-child {
  margin-bottom: 0;
}



/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}
.tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: color var(--transition-interactive), background var(--transition-interactive),
              border-color var(--transition-interactive);
}
.tab:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.tab--active {
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.tab--active:hover {
  color: var(--color-text-inverse);
  background: var(--color-primary-hover);
}

.tab-panel { display: none; }
.tab-panel--active { display: block; }
.tab-panel[hidden] { display: none; }


/* ============================================
   PROGRAMME
   ============================================ */
.programme {
  background: var(--color-surface-offset);
}
.programme__day {
  margin-bottom: var(--space-10);
}
.programme__day:last-child { margin-bottom: 0; }

.programme__day-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.programme__day-date {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.programme__timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.programme__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.04);
  transition: box-shadow var(--transition-interactive);
}
@media (max-width: 640px) {
  .programme__item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}
.programme__item:hover {
  box-shadow: var(--shadow-sm);
}
.programme__item--keynote {
  border-left: 3px solid var(--color-primary);
}
.programme__item--social {
  background: var(--color-surface-offset-2);
  border-left: 3px solid var(--color-secondary);
}
.programme__time {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-top: 2px;
  white-space: nowrap;
}
.programme__details { display: flex; flex-direction: column; gap: var(--space-1); }
.programme__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  width: fit-content;
}
.programme__badge--panel {
  color: var(--color-secondary);
  background: var(--color-secondary-highlight);
}
.programme__event {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  max-width: 100%;
}
.programme__speakers-list {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 100%;
}
.programme__summary {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.programme__summary p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
}
.programme__summary ul {
  list-style: none;
  padding: 0;
}
.programme__summary li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 65ch;
}
.programme__summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}


/* ============================================
   SPEAKERS
   ============================================ */
.speakers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .speakers__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
.speaker-card {
  cursor: default;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.speaker-card__img-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-offset);
  border: 3px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.speaker-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface-offset) 0%, var(--color-surface-dynamic) 100%);
  opacity: 0;
  transition: opacity 300ms;
}
.speaker-card__img-wrap img[src=''] ~ ::after,
.speaker-card__img-wrap:not(:has(img[complete])) ::after {
  opacity: 1;
}
.speaker-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.3);
  filter: grayscale(1) sepia(0.1) brightness(0.95);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.speaker-card:hover .speaker-card__img-wrap img {
  filter: grayscale(0) sepia(0) brightness(1);
}
.speaker-card__info {
  padding: 0 var(--space-2);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.speaker-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.speaker-card__role {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 100%;
  line-height: 1.45;
}
.speaker-card__country {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 500;
  margin-top: var(--space-1);
}


/* ============================================
   LOCATION
   ============================================ */
.location__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
}
.location__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .location__card {
    grid-template-columns: 1fr 1fr;
  }
  .location__card--reverse {
    direction: rtl;
  }
  .location__card--reverse > * {
    direction: ltr;
  }
}
.location__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.location__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) sepia(0.1) brightness(0.95);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.location__card:hover .location__img-wrap img {
  filter: grayscale(0) sepia(0) brightness(1);
}
.location__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.location__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}
.location__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 50ch;
}
.location__text em {
  color: var(--color-text);
  font-style: italic;
}


/* ============================================
   ORGANIZERS
   ============================================ */
.organizers {
  background: var(--color-surface-offset);
}
.organizers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .organizers__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.organizer-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.organizer-card__logo-link {
  display: inline-block;
  margin-bottom: var(--space-4);
}
.organizer-card__logo {
  height: 50px;
  width: auto;
  margin: 0 auto;
  /* Make logos visible on both modes */
  filter: brightness(0) saturate(100%) opacity(0.7) grayscale(1);
  transition: filter var(--transition-interactive);
}
[data-theme="dark"] .organizer-card__logo {
  filter: brightness(0) invert(1) saturate(0%) opacity(0.7) grayscale(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .organizer-card__logo {
    filter: brightness(0) invert(1) saturate(0%) opacity(0.7) grayscale(1);
  }
}
.organizer-card__logo-link:hover .organizer-card__logo {
  filter: brightness(0) saturate(100%) opacity(1) grayscale(0);
}
[data-theme="dark"] .organizer-card__logo-link:hover .organizer-card__logo {
  filter: brightness(0) invert(1) saturate(0%) opacity(1) grayscale(0);
}
.organizer-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 35ch;
  margin: 0 auto;
}


/* ============================================
   PARTNERS
   ============================================ */
.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity var(--transition-interactive);
  text-decoration: none;
}
.partner-logo--ministry {
  width: 275px;
  height: 88px;
}
.partner-logo--assoc {
  width: 275px;
  height: 88px;
}
.partner-logo:hover {
  opacity: 1;
}
.partner-logo img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}
.partner-logo__svg {
  width: 100%;
  height: 100%;
  color: var(--color-text-muted);
}
.partners__cta {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.partners__cta a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-interactive);
}
.partners__cta a:hover { color: var(--color-primary-hover); }


/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--color-surface-offset);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow var(--transition-interactive);
  background: var(--color-surface-dynamic);
  aspect-ratio: 4/3;
}
.gallery__item:hover {
  box-shadow: var(--shadow-lg);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) sepia(0.15) brightness(0.95);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery__item:hover img {
  filter: grayscale(0) sepia(0) brightness(1);
}
.gallery__credit {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
  margin-inline: auto;
}
.gallery__credit a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-interactive);
}
.gallery__credit a:hover { color: var(--color-primary-hover); }


/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
}
.contact__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 50ch;
  margin-inline: auto;
}
.contact__email {
  margin: var(--space-8) 0;
}
.contact__social {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}
.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  transition: color var(--transition-interactive), background var(--transition-interactive), transform var(--transition-interactive);
}
.contact__social-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  transform: translateY(-2px);
}
.contact__social-link:active {
  transform: translateY(0);
}
.contact__social-link svg {
  width: 22px;
  height: 22px;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-10) var(--space-4) var(--space-8);
}
.footer__organizers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.footer__org-logo {
  display: block;
  opacity: 0.5;
  transition: opacity var(--transition-interactive);
}
.footer__org-logo:hover { opacity: 0.8; }
.footer__org-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) saturate(100%);
}
[data-theme="dark"] .footer__org-logo img {
  filter: brightness(0) invert(1) saturate(0%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .footer__org-logo img {
    filter: brightness(0) invert(1) saturate(0%);
  }
}
.footer__bottom {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.footer__bottom a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-interactive);
}
.footer__bottom a:hover { color: var(--color-primary-hover); }


/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-interactive);
}
.lightbox__close:hover { background: rgba(255,255,255,0.1); }
.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-interactive);
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.1); }
.lightbox__prev { left: var(--space-4); }
.lightbox__next { right: var(--space-4); }


/* ============================================
   SCROLL ANIMATIONS (IntersectionObserver-driven)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero fade-ins are immediate (not scroll-driven) */
.hero .fade-in {
  transform: none;
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .fade-in.is-visible {
  transform: none;
}
.hero .fade-in:nth-child(1) { animation-delay: 0.3s; }
.hero .fade-in:nth-child(2) { animation-delay: 0.5s; }
.hero .fade-in:nth-child(3) { animation-delay: 0.7s; }
.hero .fade-in:nth-child(4) { animation-delay: 0.9s; }

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ============================================
   BACKGROUND — Animated Mesh Gradient (WebGL)
   ============================================ */
.mesh-gradient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

/* Suppress gradient behind hero (has its own overlay) */
.hero {
  z-index: 1;
  isolation: isolate;
}

/* Ensure all content sits above the gradient */
.nav { z-index: 100; }
main { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }
.lightbox { z-index: 200; }
