/* ==========================================================================
   Concordia Reichenbach — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Light theme (default — always the initial theme, regardless of OS setting) */
  --bg: #fbfdfb;
  --bg-alt: #eef6f0;
  --surface: #ffffff;
  --surface-2: #f4f9f5;
  --text: #12160f;
  --text-muted: #4c564d;
  --text-faint: #7d897f;
  --border: rgba(18, 22, 15, 0.1);
  --border-strong: rgba(18, 22, 15, 0.18);

  --primary: #1f7a4f;
  --primary-dark: #14563a;
  --primary-light: #2f9c66;
  --primary-tint: rgba(31, 122, 79, 0.08);
  --accent: #c62f28;
  --accent-light: #de5147;
  --accent-tint: rgba(198, 47, 40, 0.1);
  --green: #1f7a4f;
  --green-tint: rgba(31, 122, 79, 0.08);

  --shadow-sm: 0 1px 2px rgba(16, 20, 14, 0.06), 0 1px 1px rgba(16, 20, 14, 0.04);
  --shadow-md: 0 6px 20px -4px rgba(16, 20, 14, 0.12), 0 2px 6px -2px rgba(16, 20, 14, 0.06);
  --shadow-lg: 0 20px 45px -12px rgba(16, 20, 14, 0.22), 0 6px 16px -6px rgba(16, 20, 14, 0.1);
  --shadow-glow: 0 0 0 1px rgba(31, 122, 79, 0.1), 0 12px 32px -8px rgba(31, 122, 79, 0.3);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d100d;
  --bg-alt: #141810;
  --surface: #181d17;
  --surface-2: #1d231b;
  --text: #f2f7f0;
  --text-muted: #b9c4b6;
  --text-faint: #7f8a7c;
  --border: rgba(242, 247, 240, 0.1);
  --border-strong: rgba(242, 247, 240, 0.16);

  --primary: #3fbc7d;
  --primary-dark: #2f9c66;
  --primary-light: #6cd39a;
  --primary-tint: rgba(63, 188, 125, 0.16);
  --accent: #ef5b50;
  --accent-light: #f37f76;
  --accent-tint: rgba(239, 91, 80, 0.16);
  --green: #3fbc7d;
  --green-tint: rgba(63, 188, 125, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 45px -12px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(63, 188, 125, 0.18), 0 12px 32px -8px rgba(63, 188, 125, 0.35);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
img, picture { display: block; max-width: 100%; }
svg { display: inline-block; max-width: 100%; width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.15em; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--primary); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; gap: 16px;
}
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-links a { display: flex; align-items: center; gap: 6px; opacity: 0.9; transition: opacity 0.2s; }
.topbar-links a:hover { opacity: 1; color: #fff; }
.topbar-links svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 720px) { .topbar .container { font-size: 0.74rem; } .topbar-links span.hide-mobile { display: none; } }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow); flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: var(--radius-full);
  font-size: 0.93rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-item.active > .nav-link { color: var(--text); background: var(--primary-tint); }
.nav-link svg.chev { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.nav-item:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-muted); }
.dropdown a:hover { background: var(--primary-tint); color: var(--primary); }
.dropdown .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--primary-tint); color: var(--primary); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.nav-toggle { display: none; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; visibility: hidden;
}
.mobile-menu.is-open { visibility: visible; }
.mobile-menu-backdrop {
  position: absolute; inset: 0; background: rgba(10, 6, 4, 0.55); opacity: 0; transition: opacity 0.3s var(--ease);
}
.mobile-menu.is-open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
  background: var(--surface); box-shadow: var(--shadow-lg);
  padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 16px; }
.mobile-group { border-bottom: 1px solid var(--border); padding: 6px 0; }
.mobile-group:last-child { border-bottom: none; }
.mobile-link, .mobile-group-title {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 8px;
  font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm);
}
.mobile-group-title svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); color: var(--text-faint); }
.mobile-group.open .mobile-group-title svg { transform: rotate(180deg); }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); display: flex; flex-direction: column; }
.mobile-group.open .mobile-sub { max-height: 600px; }
.mobile-sub a { padding: 10px 8px 10px 20px; font-size: 0.92rem; color: var(--text-muted); border-radius: var(--radius-sm); }
.mobile-sub a:hover, .mobile-link:hover, .mobile-group-title:hover { background: var(--primary-tint); }
.mobile-cta { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.94rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(138,28,60,0.45); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn-ghost { color: var(--text-muted); padding: 13px 18px; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Layout helpers ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-sm { padding: 40px 0; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--text-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; background: var(--accent-tint); color: var(--accent);
}
.badge.green { background: var(--green-tint); color: var(--green); }
.badge.primary { background: var(--primary-tint); color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 110px 0 110px; overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../img/logo-full.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.2;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--primary); }
.hero-stat span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Choir cards ---------- */
.choir-card { display: flex; flex-direction: column; gap: 14px; }
.choir-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary); flex: none;
}
.choir-icon svg { width: 26px; height: 26px; }
.choir-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 0.86rem; color: var(--text-muted); }
.choir-meta div { display: flex; align-items: center; gap: 8px; }
.choir-meta svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.card-link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.card-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-date { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.news-date svg { width: 14px; height: 14px; }
.news-card h3 { font-size: 1.15rem; }
.news-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Countdown / Event ---------- */
.event-banner {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--accent));
  color: #fff; padding: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) { .event-banner { grid-template-columns: 1fr; } }
.event-banner h3 { font-size: 1.7rem; margin-bottom: 10px; }
.event-banner p { opacity: 0.9; }
.countdown { display: flex; gap: 12px; }
.countdown-cell { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-md); padding: 14px 10px; text-align: center; min-width: 74px; backdrop-filter: blur(6px); }
.countdown-cell strong { display: block; font-family: var(--font-display); font-size: 1.8rem; }
.countdown-cell span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }

/* ---------- Timeline (Chronik) ---------- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary), var(--accent));
  opacity: 0.4;
}
@media (min-width: 761px) { .timeline::before { left: 50%; transform: translateX(-50%); } }
.era-label {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--primary);
  margin: 56px 0 20px 56px; position: relative;
}
.era-label:first-child { margin-top: 0; }
@media (min-width: 761px) { .era-label { margin-left: 0; text-align: center; } }
.tl-item { position: relative; padding-left: 56px; margin-bottom: 28px; }
.tl-dot {
  position: absolute; left: 12px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
@media (min-width: 761px) {
  .tl-item { width: 50%; padding-left: 0; padding-right: 48px; text-align: right; }
  .tl-item .tl-dot { left: auto; right: -9px; }
  .tl-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 48px; text-align: left; }
  .tl-item:nth-child(even) .tl-dot { right: auto; left: -9px; }
}
.tl-year { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.1rem; margin-bottom: 4px; }
.tl-item p { color: var(--text-muted); font-size: 0.92rem; }
.tl-item.reveal { transform: translateY(16px); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1;
  cursor: pointer; border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px; font-size: 0.76rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent); opacity: 0; transition: opacity 0.25s;
}
.gallery-item:hover .cap { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity 0.25s; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(8,4,3,0.88); }
.lightbox-inner { position: relative; max-width: 900px; width: 100%; z-index: 2; }
.lightbox-frame { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; }
.lightbox-frame img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-cap { color: #fff; text-align: center; margin-top: 16px; opacity: 0.85; }
.lightbox-close { position: absolute; top: -50px; right: 0; color: #fff; width: 40px; height: 40px; }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- Timeline stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--primary); }
.stat span { font-size: 0.84rem; color: var(--text-muted); }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 0.86rem; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
  background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-error { font-size: 0.8rem; color: var(--primary); min-height: 1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); }
.form-note input { margin-top: 3px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.is-visible { display: block; }
.form-success svg { width: 48px; height: 48px; color: var(--green); margin-inline: auto 12px; }

/* ---------- Contact info blocks ---------- */
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.info-row .ic svg { width: 19px; height: 19px; }
.info-row h4 { font-size: 0.95rem; margin-bottom: 3px; }
.info-row p, .info-row a { font-size: 0.9rem; color: var(--text-muted); }
.info-row a:hover { color: var(--primary); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 320px; filter: grayscale(0.15); }
:root[data-theme="dark"] .map-frame { filter: invert(0.92) grayscale(0.5) contrast(0.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-frame { filter: invert(0.92) grayscale(0.5) contrast(0.9); } }

/* ---------- Board members ---------- */
.person-card { display: flex; gap: 16px; align-items: flex-start; }
.person-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--accent), var(--primary)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.person-card h4 { font-size: 1rem; margin-bottom: 2px; }
.person-role { font-size: 0.78rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.person-card a, .person-card .ct { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--text-muted); margin-top: 3px; }
.person-card a:hover { color: var(--primary); }
.person-card svg { width: 13px; height: 13px; }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500;
  line-height: 1.4; position: relative; padding-left: 28px; border-left: 3px solid var(--accent); color: var(--text);
}

/* ---------- CTA banner ---------- */
.cta-band {
  border-radius: var(--radius-lg); padding: 56px; text-align: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  border: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 0.9rem; color: var(--text-muted); }
.footer a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-faint); }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 250; max-width: 480px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 22px; transform: translateY(140%); transition: transform 0.4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner h4 { font-size: 0.98rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 56px 0 48px; position: relative; overflow: hidden;
  background: radial-gradient(900px 400px at 90% -20%, var(--primary-tint), transparent 60%); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb svg { width: 12px; height: 12px; }
.breadcrumb a:hover { color: var(--primary); }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header .lead { margin-top: 14px; max-width: 640px; }

/* ---------- Rehearsal box ---------- */
.info-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.info-box h3 { font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.info-box h3 svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose h3 { margin: 28px 0 14px; font-size: 1.25rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 14px; border-radius: var(--radius-full); background: var(--bg-alt); font-size: 0.82rem; font-weight: 500; border: 1px solid var(--border); }

.figure-block { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.ph-block { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.ph-block svg { width: 30%; height: 30%; opacity: 0.9; position: relative; z-index: 1; }
.ph-block::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.25), transparent 55%); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn { padding: 10px 18px; border-radius: var(--radius-full); border: 1.5px solid var(--border-strong); font-size: 0.86rem; font-weight: 600; color: var(--text-muted); transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
