:root {
  --header-height: 92px;
  --container: 1180px;
  --page-pad: 24px;
  --bg: #f7f1e3;
  --surface: #fffaf0;
  --surface-2: #efe3c8;
  --ink: #273018;
  --muted: #687052;
  --primary: #53621c;
  --primary-2: #76802b;
  --accent: #ad7a44;
  --border: #ddd0b6;
  --shadow: 0 16px 40px rgba(39, 48, 24, 0.10);
  --radius: 8px;
}

:root[data-theme="sage"] {
  --bg: #f4f7f1;
  --surface: #ffffff;
  --surface-2: #e5eddc;
  --ink: #1f2f25;
  --muted: #5f7065;
  --primary: #2f6b45;
  --primary-2: #5f8f64;
  --accent: #8b9f51;
  --border: #d7e2d1;
  --shadow: 0 16px 40px rgba(31, 47, 37, 0.10);
}

html.dark {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #111827;
  --surface-2: #1e293b;
  --ink: #f1f5f9;
  --muted: #cbd5e1;
  --primary: #a3b85a;
  --primary-2: #c4cf72;
  --accent: #d19a66;
  --border: #334155;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body > main {
  width: 100%;
  flex: 1 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2500;
  transform: translateY(-140%);
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(83, 98, 28, 0.32);
  outline-offset: 3px;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(83, 98, 28, 0.34);
  outline-offset: 3px;
}

body,
button,
input,
textarea {
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}

html.dark .bg-cream,
html.dark .bg-sand,
html.dark .bg-paper,
html.dark .bg-white,
html.dark .bg-white\/85,
html.dark .bg-white\/90,
html.dark .bg-white\/95,
html.dark .bg-paper\/95,
html.dark .bg-paper\/96 {
  background-color: #111827 !important;
}

html.dark .bg-\[\#efe3c8\],
html.dark .bg-\[\#f4f7f1\],
html.dark .bg-\[\#f4ead7\],
html.dark .bg-\[\#fffaf0\] {
  background-color: #1e293b !important;
}

html.dark .text-ink,
html.dark .text-field,
html.dark .text-fieldDark {
  color: #f1f5f9 !important;
}

html.dark .text-\[\#687052\],
html.dark .text-\[\#4f5a3f\] {
  color: #cbd5e1 !important;
}

html.dark .border-\[\#ddd0b6\],
html.dark .border-\[\#cbb992\] {
  border-color: #334155 !important;
}

html.dark input,
html.dark textarea,
html.dark select {
  color: #f8fafc;
  background-color: #0f172a;
  border-color: #334155;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #94a3b8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1600;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
  transition: transform 0.08s linear;
}

.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 1200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  color: var(--primary);
  box-shadow: 0 12px 30px rgba(39, 48, 24, 0.16);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background-color 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  outline: none;
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.soundscape-toggle {
  position: fixed;
  left: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 1200;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(221, 208, 182, 0.92);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  color: var(--primary);
  box-shadow: 0 12px 30px rgba(39, 48, 24, 0.16);
  cursor: pointer;
  opacity: 0.96;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.soundscape-toggle svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.soundscape-toggle:hover,
.soundscape-toggle:focus-visible {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.soundscape-toggle.is-active {
  border-color: var(--accent);
  background: var(--primary);
  color: #ffffff;
  animation: soundscapePulse 2.6s ease-in-out infinite;
}

.soundscape-toggle.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.soundscape-toggle .soundscape-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eco-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.eco-particles span {
  position: absolute;
  top: -24px;
  left: var(--particle-x);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 999px 999px 999px 2px;
  background: rgba(214, 171, 91, 0.34);
  box-shadow: 0 0 18px rgba(255, 250, 240, 0.28);
  opacity: 0;
  transform: translate3d(0, -24px, 0) rotate(0deg);
  animation: ecoParticleFall var(--particle-duration) linear var(--particle-delay) infinite;
}

.eco-particles span:nth-child(3n) {
  width: calc(var(--particle-size) * 0.72);
  height: calc(var(--particle-size) * 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.42);
}

.eco-particles span:nth-child(4n) {
  background: rgba(118, 128, 43, 0.24);
}

@keyframes soundscapePulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(39, 48, 24, 0.16), 0 0 0 0 rgba(173, 122, 68, 0.28);
  }
  50% {
    box-shadow: 0 16px 34px rgba(39, 48, 24, 0.20), 0 0 0 10px rgba(173, 122, 68, 0);
  }
}

@keyframes ecoParticleFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -24px, 0) rotate(0deg);
  }
  12% {
    opacity: var(--particle-opacity);
  }
  88% {
    opacity: var(--particle-opacity);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--particle-drift), calc(100dvh + 42px), 0) rotate(220deg);
  }
}

body.intro-splash-lock {
  overflow: hidden;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  background:
    linear-gradient(135deg, rgba(39, 48, 24, 0.94), rgba(83, 98, 28, 0.88)),
    url("img/IMG_3407-2.jpg") center/cover;
  color: #ffffff;
}

.intro-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.12), rgba(255, 250, 240, 0)),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 250, 240, 0.08) 23px 24px);
  pointer-events: none;
}

.intro-splash.leaving {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.intro-splash-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 34px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.90);
  color: var(--primary);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
  animation: introFloat 2.5s ease both;
}

.intro-splash-card img {
  width: min(230px, 72vw);
  max-height: 150px;
  object-fit: contain;
}

.intro-splash-card strong {
  display: block;
  color: var(--primary);
  font-family: "Century Gothic", Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.intro-splash-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2400;
  width: min(calc(100% - 32px), 860px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.98);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(39, 48, 24, 0.20);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.cookie-consent-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
}

.cookie-consent-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.cookie-consent-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookie-consent h2 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 19px;
  line-height: 1.25;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent .cookie-terms {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-consent-actions button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-link-btn,
.cookie-secondary-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
}

.cookie-primary-btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.cookie-link-btn:hover,
.cookie-link-btn:focus-visible,
.cookie-secondary-btn:hover,
.cookie-secondary-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-2);
}

.cookie-primary-btn:hover,
.cookie-primary-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--accent);
}

@keyframes introFloat {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  22%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(247, 241, 227, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark .topbar {
  background: rgba(15, 23, 42, 0.94);
}

.topbar.scrolled {
  box-shadow: 0 10px 28px rgba(39, 48, 24, 0.08);
}

html.dark .topbar.scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.container,
.page-container,
.elements-container,
.partners-container,
.footer-container,
.story-container {
  width: min(100% - calc(var(--page-pad) * 2), var(--container));
  margin-inline: auto;
}

.container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 104px;
}

.nav-menu {
  margin-left: auto;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a.active {
  color: var(--primary);
}

.nav-menu > ul > li > a.active {
  background: var(--surface-2);
  padding-inline: 12px;
  border-radius: 999px;
}

.nav-pill {
  padding-inline: 16px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--primary);
}

.nav-pill:hover {
  background: var(--accent);
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav-admin-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-admin-tools .admin-panel-link {
  min-height: 40px;
  padding-inline: 14px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary);
}

.admin-logout-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-logout-btn:hover,
.admin-logout-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

body.participant-session-active {
  --participant-session-height: 38px;
  padding-top: var(--participant-session-height);
}

.participant-session-active .topbar {
  top: var(--participant-session-height);
}

body.participant-session-active > header.sticky {
  top: var(--participant-session-height, 52px);
  z-index: 1400;
}

.participant-session-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  min-height: var(--participant-session-height, 52px);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  background: color-mix(in srgb, var(--surface) 88%, white);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(39, 48, 24, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.participant-session-inner {
  width: min(100% - 24px, var(--container));
  min-height: var(--participant-session-height, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-inline: auto;
  overflow-x: auto;
  white-space: nowrap;
}

.participant-session-greeting {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.participant-session-greeting strong {
  color: var(--primary);
}

.participant-session-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.participant-area-link,
.participant-session-logout {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.participant-area-link {
  padding-inline: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.participant-session-logout {
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

.participant-area-link:hover,
.participant-area-link:focus-visible,
.participant-session-logout:hover,
.participant-session-logout:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

html.dark .participant-session-bar {
  border-color: #334155;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

html.dark .participant-session-logout {
  border-color: #334155;
  background: #1e293b;
  color: #f8fafc;
}

.participant-menu-tools {
  display: none;
}

.participant-menu-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 8px;
  background: var(--surface-2);
}

.participant-menu-greeting {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.participant-menu-greeting strong {
  color: var(--primary);
}

.participant-menu-actions {
  display: grid;
  gap: 8px;
}

.participant-menu-area-link,
.participant-menu-logout {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.participant-menu-area-link {
  background: var(--primary);
  color: #ffffff;
}

.participant-menu-logout {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

html.dark .participant-menu-panel {
  border-color: #334155;
  background: #111827;
}

html.dark .participant-menu-logout {
  border-color: #334155;
  background: #1e293b;
  color: #f8fafc;
}

.utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.utility-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.utility-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-2);
}

.utility-btn[aria-expanded="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.accessibility-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1300;
  width: 286px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(39, 48, 24, 0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.accessibility-wrap.open .accessibility-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.accessibility-option {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.accessibility-option + .accessibility-option {
  margin-top: 8px;
}

.accessibility-option:hover,
.accessibility-option:focus-visible {
  outline: 3px solid rgba(83, 98, 28, 0.28);
  border-color: var(--primary);
  background: var(--surface-2);
}

.accessibility-option kbd {
  padding: 3px 6px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.language-value {
  min-width: 30px;
  color: var(--primary);
  font-size: 14px;
  text-align: right;
}

.assistant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.accessibility-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.theme-icon {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface-2);
}

.theme-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon-sun {
  position: absolute;
  opacity: 0;
  transform: scale(0.7) rotate(-35deg);
}

html.dark .theme-icon-moon,
.theme-toggle.is-dark .theme-icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(35deg);
}

html.dark .theme-icon-sun,
.theme-toggle.is-dark .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.has-dropdown > .dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.has-dropdown > .dropdown-toggle {
  padding-inline: 14px;
  border-radius: 4px;
}

.has-dropdown:hover > .dropdown-toggle,
.has-dropdown:focus-within > .dropdown-toggle,
.has-dropdown.open > .dropdown-toggle {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(83, 98, 28, 0.22);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 224px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 18px 35px rgba(39, 48, 24, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.dropdown-menu a {
  position: relative;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 46px;
  padding: 0 34px 0 44px;
  border-radius: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  overflow: hidden;
}

.dropdown-menu li {
  width: 100%;
  text-align: left;
}

.dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(83, 98, 28, 0.22);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px rgba(83, 98, 28, 0.04);
  transform: translateY(-50%);
}

.dropdown-menu li:nth-child(1) a::before {
  background:
    linear-gradient(var(--primary) 0 0) 4px 4px / 4px 4px no-repeat,
    linear-gradient(var(--primary) 0 0) 9px 4px / 4px 4px no-repeat,
    linear-gradient(var(--primary) 0 0) 4px 9px / 4px 4px no-repeat,
    linear-gradient(var(--accent) 0 0) 9px 9px / 4px 4px no-repeat,
    var(--surface);
}

.dropdown-menu li:nth-child(2) a::before {
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--accent) 0 2px, transparent 2.5px),
    radial-gradient(circle, transparent 0 5px, var(--primary) 5px 6px, transparent 6.5px),
    var(--surface);
}

.dropdown-menu li:nth-child(3) a::before {
  background:
    radial-gradient(circle, var(--accent) 0 2px, transparent 2.5px) 3px 3px / 5px 5px no-repeat,
    radial-gradient(circle, var(--accent) 0 2px, transparent 2.5px) 3px 9px / 5px 5px no-repeat,
    linear-gradient(var(--primary) 0 0) 9px 5px / 5px 2px no-repeat,
    linear-gradient(var(--primary) 0 0) 9px 11px / 5px 2px no-repeat,
    var(--surface);
}

.dropdown-menu li:nth-child(4) a::before {
  background:
    linear-gradient(var(--primary) 0 0) 4px 9px / 2px 4px no-repeat,
    linear-gradient(var(--accent) 0 0) 8px 6px / 2px 7px no-repeat,
    linear-gradient(var(--primary) 0 0) 12px 3px / 2px 10px no-repeat,
    var(--surface);
}

.dropdown-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 28px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-50%) scaleY(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu li + li a {
  border-top: 1px solid #efe5d3;
}

.dropdown-menu a:hover {
  background: #f4ead7;
  color: var(--primary);
}

.dropdown-menu a.active {
  background: #f4ead7;
  color: var(--primary);
}

.dropdown-menu a.active::after {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.dropdown-menu a:hover::after {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

@media (min-width: 901px) {
  .has-dropdown:hover > .dropdown-toggle::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .has-dropdown:hover .dropdown-menu a {
    animation: dropdownItemIn 0.24s ease both;
  }

  .has-dropdown:hover .dropdown-menu li:nth-child(2) a {
    animation-delay: 0.03s;
  }

  .has-dropdown:hover .dropdown-menu li:nth-child(3) a {
    animation-delay: 0.06s;
  }

  .has-dropdown:hover .dropdown-menu li:nth-child(4) a {
    animation-delay: 0.09s;
  }
}

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

.menu-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Shared layout */

main,
section,
footer {
  width: 100%;
  max-width: 100%;
}

.page-section,
.story-section,
.elements-section,
.partners-section,
.field-impact-section,
.cta-field-section {
  padding: 72px var(--page-pad);
}

.section-title,
.elements-title,
.inner-hero h1,
.hero-content h1,
.cta-field-card h2 {
  margin: 0;
  font-family: "Century Gothic", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  color: var(--primary);
}

.section-title {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 500;
}

.section-text {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-kicker,
.inner-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: #f2e6cf;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.32s ease, transform 0.32s ease, border-color 0.32s ease;
}

main > section.is-in-view .section-kicker,
main > section.is-in-view .partners-heading p {
  color: var(--accent);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}

.contact-card .text-link {
  margin-top: 16px;
}

.hero-news-btn,
.hero-secondary-btn,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-news-btn:hover,
.contact-form button:hover {
  background: var(--accent);
}

.hero-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Home hero */

.hero-section {
  position: relative;
  height: clamp(640px, calc(100dvh - var(--header-height) + 70px), 840px);
  overflow: hidden;
  background: #273018;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

.hero-carousel {
  position: absolute;
  inset: -18px;
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0);
  transition: transform 0.18s ease-out;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 4s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide.zooming {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(33, 42, 20, 0.78), rgba(33, 42, 20, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.field-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  opacity: 0.16;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 250, 240, 0.12) 19px 20px);
  background-size: 96px 96px, 138px 138px, 180px 180px;
  mix-blend-mode: soft-light;
  animation: fieldDrift 22s linear infinite;
}

.floating-field-card {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100% - calc(var(--page-pad) * 2), var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.hero-kicker {
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1;
  font-weight: 600;
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.carousel-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.carousel-dot {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s ease;
}

.carousel-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
}

.carousel-dot.active::before {
  width: 28px;
  background: #fff;
  animation: dotPulse 5s ease-in-out infinite;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: scale(1.18);
}

.carousel-dot:hover::before,
.carousel-dot:focus-visible::before {
  background: #fff;
}

.carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.study-auth-shell {
  width: min(calc(100% - 32px), 1080px);
}

.study-auth-shell > *,
.study-auth-shell .grid > * {
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 1101px) {
  .floating-field-card {
    position: absolute;
    z-index: 3;
    width: min(230px, 18vw);
    min-height: 106px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.16);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fieldCardFloat 7s ease-in-out infinite;
  }

  .floating-field-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    pointer-events: none;
  }

  .floating-field-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .floating-field-card strong {
    color: #ffffff;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.2;
  }

  .card-one {
    top: 27%;
    right: max(36px, 8vw);
  }

  .card-two {
    right: max(70px, 13vw);
    bottom: 20%;
    animation-delay: -2.8s;
  }
}

@keyframes fieldDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 96px 64px, -138px 92px, 180px 90px;
  }
}

@keyframes fieldCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
}

@keyframes indexImageSignal {
  0%,
  72%,
  100% {
    filter: saturate(0.96) contrast(1);
  }
  75% {
    filter: saturate(1.18) contrast(1.08) hue-rotate(8deg);
  }
  77% {
    filter: saturate(0.9) contrast(1.16) hue-rotate(-10deg);
  }
  79% {
    filter: saturate(1.08) contrast(1.04);
  }
}

/* Home sections */

.rural-switchboard {
  width: min(100% - calc(var(--page-pad) * 2), var(--container));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.switch-card,
.info-card,
.content-card,
.result-card,
.partner-card,
.contact-card,
.timeline-item,
.impact-panel,
.cta-field-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.switch-card {
  position: relative;
  display: block;
  min-height: 160px;
  padding: 24px;
  overflow: hidden;
  text-decoration: none;
}

.switch-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s ease;
}

.switch-card span,
.info-card span,
.content-card span,
.result-card span,
.timeline-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.switch-card strong,
.info-card strong,
.content-card h3,
.result-card h3,
.partner-card h3,
.contact-card h3,
.timeline-item h3,
.impact-grid strong {
  display: block;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.25;
}

.switch-card p,
.info-card p,
.content-card p,
.result-card p,
.partner-card p,
.contact-card p,
.timeline-item p,
.impact-grid p,
.cta-field-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.story-container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.story-image {
  height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-image img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.story-image img,
.product-card img,
.hero-section:not(.blog-hero) .hero-carousel .carousel-slide {
  animation: indexImageSignal 7.6s ease-in-out infinite;
  will-change: filter;
}

.product-card:nth-child(2) img {
  animation-delay: -1.4s;
}

.product-card:nth-child(3) img {
  animation-delay: -2.8s;
}

.product-card:nth-child(4) img {
  animation-delay: -4.2s;
}

.products-field-section,
.partners-section {
  background: #f0e5cf;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading-row p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.product-images,
.cards-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cards-grid,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-image-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 22px;
  overflow: hidden;
}

.partner-image-card h3,
.partner-image-card p {
  padding-inline: 22px;
}

.partner-card-logo {
  width: 100%;
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #48480b;
}

.partner-card-logo img {
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.partner-image-card:first-child .partner-card-logo img {
  height: 124px;
}

.institutional-funding {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(83, 98, 28, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.institutional-funding-copy {
  min-width: 0;
}

.institutional-funding-copy h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.institutional-funding-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.institutional-funding img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  aspect-ratio: 1600 / 230;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 14px 34px rgba(39, 48, 24, 0.16);
}

html.dark .institutional-funding {
  border-color: rgba(163, 184, 90, 0.26);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
}

.product-card {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(39, 48, 24, 0.70));
}

.product-card span {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

button.product-card {
  width: 100%;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
}

.product-modal.open {
  display: flex;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: min(92dvh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.product-modal-media {
  min-height: clamp(220px, 42vw, 460px);
  background: var(--surface-2);
}

.product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-body {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
}

.product-modal-body h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.product-modal-body h3 {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 1rem;
}

.product-modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.field-impact-section {
  background:
    linear-gradient(90deg, rgba(39, 48, 24, 0.84), rgba(39, 48, 24, 0.68)),
    url("img/IMG_3532-2.jpg") center/cover;
}

.impact-participation-panel {
  width: min(100%, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  min-width: 0;
}

.impact-panel {
  padding: 32px;
  background: rgba(255, 250, 240, 0.94);
  min-width: 0;
  overflow-wrap: anywhere;
}

.impact-panel .section-title,
.cta-field-card h2,
.cta-field-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.impact-grid div {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.impact-grid div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s ease;
}

.partners-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.partners-heading span {
  height: 1px;
  flex: 1 1 auto;
  background: var(--border);
}

.partners-heading p {
  margin: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.partner-logo-grid {
  align-items: stretch;
}

.partner-logo-card {
  min-width: 0;
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: var(--radius);
  background: #48480b;
  box-shadow: var(--shadow);
}

.trusted-logos img {
  width: 100%;
  max-width: 160px;
  max-height: 70px;
  margin-inline: auto;
  object-fit: contain;
  filter: saturate(0.86);
  transition: filter 0.22s ease, transform 0.22s ease;
}

.partner-logo-card img {
  width: 100%;
  max-width: 100%;
  max-height: 116px;
  border-radius: 4px;
  object-fit: contain;
  filter: none;
}

.partner-logo-card:nth-child(4) img {
  max-height: 126px;
  max-width: 190px;
}

.cta-field-section {
  background:
    linear-gradient(90deg, rgba(39, 48, 24, 0.76), rgba(39, 48, 24, 0.58)),
    url("img/IMG_3522.jpg") center/cover;
}

.cta-field-card {
  padding: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cta-field-card .hero-news-btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.cta-field-card .section-kicker {
  margin-inline: auto;
}

.cta-field-card h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

.cta-field-card p {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 22px;
}

/* Internal pages */

.inner-hero {
  padding: 78px var(--page-pad) 64px;
  background:
    linear-gradient(90deg, rgba(247, 241, 227, 0.94), rgba(247, 241, 227, 0.86)),
    url("img/IMG_3391.jpg") center/cover;
  text-align: center;
}

.inner-hero-content {
  width: min(100%, 880px);
  margin-inline: auto;
}

.inner-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  font-weight: 600;
}

.inner-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.info-card,
.content-card,
.result-card,
.partner-card,
.contact-card,
.timeline-item {
  padding: 24px;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Blog horizontal SVG timeline */

.blog-timeline-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 112px);
  border-block: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(247, 241, 227, 0.88)),
    var(--surface);
}

.blog-timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(83, 98, 28, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(173, 122, 68, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  pointer-events: none;
}

.blog-timeline-section::after {
  content: "";
  position: absolute;
  inset: clamp(78px, 9vw, 132px) 0 auto;
  z-index: 0;
  height: clamp(190px, 24vw, 330px);
  background:
    radial-gradient(ellipse at center, rgba(220, 232, 173, 0.13), rgba(255, 250, 240, 0) 68%),
    url("img/inovc4sa-timeline-aurora-texture.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(1450px, 118vw) auto;
  opacity: 0.46;
  pointer-events: none;
}

.blog-timeline-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.blog-timeline-heading {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.timeline-source-link {
  border: 1px solid rgba(83, 98, 28, 0.35);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.timeline-source-link:hover,
.timeline-source-link:focus-visible {
  outline: none;
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.blog-timeline-viewport {
  position: relative;
  width: min(100vw - 32px, 1320px);
  margin-inline: 50%;
  margin-top: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  white-space: nowrap;
  cursor: grab;
  transform: translateX(-50%);
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.blog-timeline-viewport::-webkit-scrollbar {
  display: none;
}

.blog-timeline-viewport::before,
.blog-timeline-viewport::after {
  content: "";
  position: sticky;
  top: 0;
  z-index: 4;
  display: inline-block;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.blog-timeline-viewport:focus-visible {
  outline: 3px solid rgba(83, 98, 28, 0.32);
  outline-offset: 6px;
}

.blog-timeline-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.blog-timeline-track {
  position: relative;
  display: inline-block;
  width: var(--timeline-width, 2200px);
  min-width: 100%;
  height: clamp(560px, 48vw, 640px);
  isolation: isolate;
  white-space: normal;
}

.blog-timeline-track::before {
  content: "";
  position: absolute;
  inset: 22px 0 36px;
  z-index: 0;
  border: 1px solid rgba(221, 208, 182, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.58), rgba(239, 227, 200, 0.16)),
    radial-gradient(ellipse at center, rgba(83, 98, 28, 0.08), transparent 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.blog-timeline-ribbon {
  position: absolute;
  left: 88px;
  right: 88px;
  top: 122px;
  z-index: 1;
  height: 230px;
  background:
    radial-gradient(ellipse at 20% 54%, rgba(250, 246, 226, 0.34), transparent 42%),
    radial-gradient(ellipse at 76% 48%, rgba(15, 118, 110, 0.18), transparent 50%),
    url("img/inovc4sa-timeline-aurora-texture.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%, 100% 100%, 100% auto;
  opacity: 0.82;
  filter: saturate(1.06) drop-shadow(0 18px 26px rgba(39, 48, 24, 0.16));
  transform-origin: center;
  animation: timelineAuroraDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes timelineAuroraDrift {
  0% {
    background-position: center, 48% 50%, center;
    transform: translate3d(-4px, 1px, 0) rotate(-0.35deg) scaleX(0.996);
  }
  50% {
    background-position: 51% 49%, 52% 52%, 49% 50%;
    transform: translate3d(5px, -2px, 0) rotate(0.28deg) scaleX(1.004);
  }
  100% {
    background-position: 49% 51%, 50% 48%, 52% 50%;
    transform: translate3d(1px, 2px, 0) rotate(-0.18deg) scaleX(1.002);
  }
}

.blog-timeline-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.blog-timeline-event {
  position: absolute;
  left: var(--event-x);
  top: 0;
  width: 330px;
  height: 100%;
  transform: translateX(-50%);
}

.blog-timeline-event::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--marker-y, 58px) + 52px);
  width: 4px;
  height: calc(198px - var(--marker-y, 58px));
  border-radius: 999px;
  background: linear-gradient(180deg, var(--event-color), rgba(39, 48, 24, 0.08));
  transform: translateX(-50%);
}

.blog-timeline-event::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 306px;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: var(--event-color);
  transform: translateX(-50%);
  box-shadow: 0 8px 16px rgba(39, 48, 24, 0.12), 0 0 26px color-mix(in srgb, var(--event-color) 24%, transparent);
}

.blog-timeline-marker {
  position: absolute;
  left: 50%;
  top: var(--marker-y, 58px);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 5px solid #fffaf0;
  border-radius: 999px;
  background: var(--event-color);
  box-shadow: 0 16px 30px rgba(39, 48, 24, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.blog-timeline-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.98);
  color: var(--event-color);
}

.blog-timeline-icon svg,
.blog-timeline-mobile-dot svg,
.blog-timeline-meta svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-timeline-card {
  position: absolute;
  left: 50%;
  top: 334px;
  width: 318px;
  min-height: 218px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--event-color) 30%, var(--border));
  border-top: 5px solid var(--event-color);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 18px 42px rgba(39, 48, 24, 0.14);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transform: translateX(-50%);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.blog-timeline-card:hover,
.blog-timeline-card:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--event-color) 68%, var(--border));
  box-shadow: 0 22px 52px rgba(39, 48, 24, 0.22);
  transform: translateX(-50%) translateY(-5px);
}

.blog-timeline-date {
  display: block;
  color: var(--event-color);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-timeline-year {
  display: block;
  margin-top: -2px;
  color: var(--primary);
  font-size: clamp(2.55rem, 4vw, 3.15rem);
  font-weight: 900;
  line-height: 0.95;
}

.blog-timeline-card h3,
.blog-timeline-mobile h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.22;
}

.blog-timeline-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #687052;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.blog-timeline-meta svg {
  flex: 0 0 auto;
  font-size: 0.95rem;
  color: var(--event-color);
}

.blog-timeline-card p,
.blog-timeline-mobile p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-timeline-empty {
  width: min(100%, 720px);
  margin: 80px auto 0;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.blog-timeline-mobile {
  display: none;
}

.blog-timeline-mobile,
.blog-timeline-mobile li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-timeline-mobile li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
}

.blog-timeline-mobile li::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: -3px;
  width: 2px;
  background: rgba(221, 208, 182, 0.92);
}

.blog-timeline-mobile li:last-child {
  padding-bottom: 0;
}

.blog-timeline-mobile li:last-child::before {
  display: none;
}

.blog-timeline-mobile-dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-top: 3px;
  border: 4px solid var(--surface);
  border-radius: 999px;
  background: var(--event-color);
  color: #fffaf0;
  font-size: 21px;
  box-shadow: 0 0 0 1px rgba(39, 48, 24, 0.12), 0 10px 20px rgba(39, 48, 24, 0.14);
}

.blog-timeline-mobile-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--event-color) 24%, var(--border));
  border-left: 5px solid var(--event-color);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.blog-timeline-mobile-card:hover,
.blog-timeline-mobile-card:focus-visible {
  outline: 3px solid rgba(83, 98, 28, 0.24);
  outline-offset: 3px;
}

.blog-timeline-mobile time {
  display: block;
  color: var(--event-color);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html.dark .blog-timeline-section {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96)),
    #111827;
}

html.dark .blog-timeline-section::after {
  opacity: 0.16;
}

html.dark .blog-timeline-track::before {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.24)),
    radial-gradient(ellipse at center, rgba(15, 118, 110, 0.12), transparent 72%);
}

html.dark .blog-timeline-ribbon {
  opacity: 0.64;
  filter: saturate(0.96) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

html.dark .blog-timeline-card,
html.dark .blog-timeline-mobile-card,
html.dark .blog-timeline-empty {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.9);
  color: #f1f5f9;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

html.dark .blog-timeline-marker {
  border-color: #111827;
}

html.dark .blog-timeline-icon {
  background: #111827;
  color: #f8fafc;
}

html.dark .blog-timeline-card h3,
html.dark .blog-timeline-mobile h3,
html.dark .blog-timeline-year {
  color: #f8fafc;
}

html.dark .blog-timeline-card p,
html.dark .blog-timeline-mobile p,
html.dark .blog-timeline-meta,
html.dark .blog-timeline-empty {
  color: #cbd5e1;
}

html.dark .timeline-source-link {
  border-color: rgba(148, 163, 184, 0.45);
  color: #f8fafc;
}

html.dark .timeline-source-link:hover,
html.dark .timeline-source-link:focus-visible {
  border-color: #334155;
  background: #334155;
}

html.dark .blog-timeline-mobile-dot {
  border-color: #111827;
}

@media (max-width: 767px) {
  .blog-timeline-section {
    padding-block: 54px;
  }

  .blog-timeline-viewport {
    display: none;
  }

  .blog-timeline-mobile {
    width: min(100%, 720px);
    display: grid;
    margin: 28px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-timeline-ribbon {
    animation: none;
    transform: none;
  }
}

.premium-webgl-wrap {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.premium-webgl-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Error page */

.error-page-body {
  min-height: 100vh;
  background: var(--bg);
}

.error-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding: clamp(42px, 7vw, 92px) var(--page-pad);
  overflow: hidden;
}

.error-hero {
  width: min(100%, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.error-visual {
  position: relative;
  min-height: clamp(330px, 42vw, 520px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(239, 227, 200, 0.78)),
    var(--surface);
  box-shadow: var(--shadow);
}

.error-ribbon {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 8%;
  height: 54%;
  background-image: url("img/timeline-infographic-wave.svg?v=2");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 100%;
  opacity: 0.9;
  filter: drop-shadow(0 20px 22px rgba(39, 48, 24, 0.13));
  animation: errorRibbonDrift 18s linear infinite;
}

.error-pin {
  position: absolute;
  left: 46%;
  top: 18%;
  width: clamp(64px, 9vw, 110px);
  height: clamp(64px, 9vw, 110px);
  border: 8px solid var(--surface);
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  box-shadow: 0 22px 42px rgba(39, 48, 24, 0.24);
  transform: rotate(-45deg);
  animation: lostPinFloat 5.8s ease-in-out infinite;
}

.error-pin::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 999px;
  background: var(--surface);
}

.error-assistant-glitch {
  position: absolute;
  right: 12%;
  top: 13%;
  width: clamp(78px, 10vw, 128px);
  height: clamp(60px, 8vw, 98px);
  border: 2px solid rgba(83, 98, 28, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 16px 34px rgba(39, 48, 24, 0.16);
  animation: assistantGlitch 3.2s steps(2, end) infinite;
}

.error-assistant-glitch::before,
.error-assistant-glitch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.58;
  mix-blend-mode: multiply;
}

.error-assistant-glitch::before {
  border-left: 4px solid #0f766e;
  transform: translateX(-5px);
}

.error-assistant-glitch::after {
  border-right: 4px solid #ad7a44;
  transform: translateX(5px);
}

.error-assistant-glitch span {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateY(-50%);
}

.error-assistant-glitch span:nth-child(1) {
  left: 24%;
}

.error-assistant-glitch span:nth-child(2) {
  left: 50%;
  transform: translate(-50%, -50%);
}

.error-assistant-glitch span:nth-child(3) {
  right: 24%;
}

.error-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--primary);
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1;
  font-weight: 700;
}

.error-copy p:not(.section-kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.error-copy .hero-secondary-btn {
  border-color: var(--border);
  background: var(--surface);
  color: var(--primary);
}

html.dark .error-visual {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.84)),
    var(--surface);
}

html.dark .error-assistant-glitch {
  background: rgba(17, 24, 39, 0.82);
}

html.dark .error-copy .hero-secondary-btn {
  border-color: #334155;
  background: #1e293b;
  color: #f8fafc;
}

@keyframes lostPinFloat {
  0%,
  100% {
    transform: translate3d(-10px, 0, 0) rotate(-45deg);
  }
  45% {
    transform: translate3d(24px, 18px, 0) rotate(-31deg);
  }
  70% {
    transform: translate3d(-4px, 32px, 0) rotate(-58deg);
  }
}

@keyframes assistantGlitch {
  0%,
  82%,
  100% {
    transform: translateX(0);
    filter: none;
  }
  86% {
    transform: translateX(-5px);
    filter: hue-rotate(18deg);
  }
  90% {
    transform: translateX(4px);
    filter: hue-rotate(-18deg);
  }
}

@keyframes errorRibbonDrift {
  0%,
  100% {
    transform: translateX(-1.8%);
  }
  50% {
    transform: translateX(1.8%);
  }
}

@media (max-width: 820px) {
  .error-hero {
    grid-template-columns: 1fr;
  }

  .error-visual {
    min-height: 300px;
    order: -1;
  }
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf7;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(83, 98, 28, 0.12);
}

/* Footer */

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 54px var(--page-pad) 22px;
  background: var(--ink);
  color: #fff;
}

.blog-read-article-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.blog-read-article-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 44%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

a:hover .blog-read-article-btn,
a:focus-visible .blog-read-article-btn {
  background-color: var(--accent);
  box-shadow: 0 10px 22px rgba(83, 98, 28, 0.2);
  transform: translateY(-1px);
}

a:hover .blog-read-article-btn::after,
a:focus-visible .blog-read-article-btn::after {
  transform: translateX(120%);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo img {
  width: 112px;
  margin-bottom: 16px;
}

.footer-description {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-restricted-access {
  margin-left: auto;
}

.footer-restricted-link {
  color: rgba(255, 255, 255, 0.36);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-restricted-link:hover,
.footer-restricted-link:focus-visible {
  color: rgba(255, 255, 255, 0.82);
  outline: none;
}

/* Motion */

.reveal-item,
.info-card,
.content-card,
.result-card,
.partner-card,
.contact-card,
.timeline-item {
  will-change: opacity, transform;
}

@media (hover: hover) {
  .switch-card,
  .product-card,
  .info-card,
  .content-card,
  .result-card,
  .partner-card,
  .contact-card,
  .timeline-item,
  .impact-grid div,
  .partner-logo-card,
  .text-link,
  .hero-news-btn,
  .hero-secondary-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }

  .switch-card:hover,
  .product-card:hover,
  .info-card:hover,
  .content-card:hover,
  .result-card:hover,
  .partner-card:hover,
  .contact-card:hover,
  .timeline-item:hover,
  .impact-grid div:hover,
  .partner-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(39, 48, 24, 0.14);
  }

  .switch-card:hover::before,
  .impact-grid div:hover::before {
    transform: scaleY(1);
  }

  .story-image:hover img,
  .product-card:hover img {
    transform: scale(1.055);
  }

  .trusted-logos img:hover {
    filter: saturate(1);
    transform: translateY(-3px);
  }
}

/* Breakpoints */

@media (max-width: 1100px) {
  :root {
    --container: 980px;
  }

  .impact-participation-panel {
    grid-template-columns: 1fr;
  }

  .product-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institutional-funding {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 78px;
    --page-pad: 20px;
  }

  .container {
    min-height: var(--header-height);
    justify-content: space-between;
    gap: 12px;
  }

  .blog-page .topbar > .container,
  .article-page .topbar > .container {
    width: 100%;
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .logo img {
    width: 88px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: var(--page-pad);
    right: var(--page-pad);
    z-index: 1200;
    width: auto;
    max-height: calc(100dvh - var(--header-height) - 24px);
    overflow-y: auto;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu ul {
    display: grid;
    gap: 6px;
  }

  .nav-menu ul,
  .nav-menu li,
  .nav-menu a,
  .nav-menu button,
  .accessibility-menu {
    min-width: 0;
    max-width: 100%;
  }

  .nav-menu a {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
    border-radius: 6px;
    white-space: normal;
  }

  .nav-menu a:hover {
    background: #f0e6d0;
  }

  .nav-pill {
    justify-content: center;
    margin-top: 4px;
  }

  .nav-utilities {
    display: block;
    margin-top: 6px;
  }

  .nav-admin-tools {
    display: grid;
    gap: 6px;
    margin-top: 6px;
  }

  .participant-session-active {
    --participant-session-height: 0px;
    padding-top: 0;
  }

  .participant-session-active .topbar,
  body.participant-session-active > header.sticky {
    top: 0;
  }

  .participant-session-bar {
    display: none;
  }

  .participant-menu-tools {
    display: block;
    margin-top: 6px;
  }

  .nav-admin-tools .admin-panel-link {
    justify-content: center;
    min-height: 42px;
    border-radius: 6px;
  }

  .admin-logout-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 6px;
  }

  .utility-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 6px;
  }

  .accessibility-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: hidden;
    transform: none;
    transition: max-height 0.25s ease, visibility 0.25s ease, margin-top 0.25s ease;
  }

  .accessibility-wrap.open .accessibility-menu {
    max-height: 180px;
    margin-top: 8px;
    visibility: visible;
  }

  .accessibility-option {
    min-height: 48px;
    background: #fffdf7;
  }

  .has-dropdown > .dropdown-toggle::after {
    margin-left: auto;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 0;
    padding: 0 0 0 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: hidden;
    transform: none;
    transform-origin: top;
    transition: max-height 0.28s ease, visibility 0.28s ease, padding-top 0.28s ease;
  }

  .has-dropdown.open .dropdown-menu {
    max-height: 260px;
    padding-top: 8px;
    visibility: visible;
  }

  .dropdown-menu a {
    min-height: 40px;
    justify-content: flex-start;
    text-align: left;
    padding: 0 34px 0 44px;
    background: var(--surface);
  }

  .has-dropdown.open > .dropdown-toggle::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .hero-section {
    height: auto;
    min-height: calc(100dvh - var(--header-height) + 60px);
  }

  .hero-content {
    min-height: calc(100dvh - var(--header-height) + 60px);
    padding-block: 82px 64px;
    text-align: left;
  }

  .rural-switchboard,
  .story-container,
  .section-heading-row,
  .two-columns,
  .impact-participation-panel,
  .impact-grid,
  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .info-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-image {
    height: 340px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-restricted-access {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  body[data-no-site-extras="true"] header > div {
    position: relative;
  }

  .admin-menu-toggle {
    display: inline-flex !important;
  }

  .admin-top-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 80;
    display: grid !important;
    gap: 8px;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #ddd0b6;
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: 0 18px 48px rgba(39, 48, 24, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .admin-top-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .admin-top-nav a,
  .admin-top-nav button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: 8px;
  }

  html.dark .admin-top-nav {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  }
}

@media (max-width: 1180px) {
  .admin-posts-table-wrap {
    overflow-x: visible !important;
  }

  .admin-posts-table,
  .admin-posts-table tbody,
  .admin-posts-table tr,
  .admin-posts-table td {
    display: block;
    width: 100%;
  }

  .admin-posts-table thead {
    display: none;
  }

  .admin-posts-table tbody {
    display: grid;
    gap: 14px;
  }

  .admin-posts-table tr {
    border: 1px solid #ddd0b6;
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.72);
    box-shadow: 0 10px 26px rgba(39, 48, 24, 0.08);
    overflow: hidden;
  }

  .admin-posts-table td {
    padding: 12px 14px !important;
  }

  .admin-posts-table td:not(:first-child) {
    border-top: 1px solid rgba(221, 208, 182, 0.72);
  }

  .admin-posts-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #ad7a44;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .admin-post-actions {
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-post-actions,
  .admin-event-actions {
    width: 100%;
    min-width: 0 !important;
  }

  .admin-post-actions > button,
  .admin-event-actions > button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html.dark .admin-posts-table tr {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  html.dark .admin-posts-table td:not(:first-child) {
    border-top-color: #334155;
  }
}

@media (max-width: 420px) {
  .admin-post-actions,
  .admin-event-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --page-pad: 14px;
  }

  .logo img {
    width: clamp(68px, 24vw, 82px);
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-menu {
    top: calc(var(--header-height) + 6px);
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - var(--header-height) - 18px);
    padding: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 16px;
  }

  .back-to-top {
    width: 46px;
    padding: 0;
  }

  .soundscape-toggle {
    bottom: 78px;
    min-width: 46px;
    min-height: 46px;
  }

  .back-to-top span {
    display: none;
  }

  .intro-splash-card {
    min-height: 232px;
    padding: 26px 20px;
  }

  .cookie-consent {
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .cookie-consent-icon {
    display: none;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions button {
    flex: 1 1 100%;
  }

  .field-grain {
    opacity: 0.11;
  }

  .page-section,
  .story-section,
  .elements-section,
  .partners-section,
  .field-impact-section,
  .cta-field-section {
    padding-block: 52px;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .hero-news-btn,
  .hero-secondary-btn,
  .contact-form button {
    width: 100%;
  }

  .hero-news-btn,
  .hero-secondary-btn,
  .contact-form button {
    padding-inline: 14px;
  }

  .rural-switchboard,
  .product-images,
  .partner-cards-grid,
  .cards-grid,
  .info-grid,
  .timeline,
  .trusted-logos {
    grid-template-columns: 1fr;
  }

  .switch-card,
  .info-card,
  .content-card,
  .result-card,
  .partner-card,
  .contact-card,
  .timeline-item,
  .impact-panel,
  .cta-field-card {
    padding: 20px;
  }

  .product-modal-card {
    max-height: 92dvh;
    grid-template-columns: 1fr;
  }

  .product-modal-media {
    min-height: 210px;
  }

  .cta-field-card h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .cta-field-card .hero-news-btn {
    width: 100%;
  }

  .product-card {
    height: 220px;
  }

  .inner-hero {
    padding-block: 58px 46px;
  }

  .inner-hero p {
    font-size: 16px;
  }

  .partners-heading {
    gap: 10px;
  }

  .partners-heading p {
    font-size: 14px;
  }

  .institutional-funding {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .nav-menu {
    left: 10px;
    right: 10px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .section-title {
    font-size: 31px;
  }

  .impact-grid div {
    padding: 16px;
  }

  .product-modal {
    padding: 10px;
  }

  .product-modal-body {
    padding: 20px;
  }
}

@media (max-width: 360px) {
  .eco-particles {
    display: none;
  }

  .impact-panel,
  .cta-field-card {
    padding: 16px;
  }
}

@media (max-width: 280px) {
  :root {
    --header-height: 72px;
    --page-pad: 10px;
  }

  .topbar > .container,
  .blog-page .topbar > .container,
  .article-page .topbar > .container {
    min-height: var(--header-height);
    gap: 8px;
    padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
  }

  .logo img {
    width: 68px;
  }

  .nav-menu {
    left: 8px;
    right: 8px;
    padding: 10px;
  }

  .nav-menu a,
  .nav-menu button,
  .accessibility-option,
  .article-page button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .switch-card,
  .info-card,
  .content-card,
  .result-card,
  .partner-card,
  .contact-card,
  .timeline-item,
  .impact-panel,
  .cta-field-card {
    padding: 14px;
  }

  .article-page #articleInteractions {
    padding: 14px;
  }

  .article-page #articleTitle {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .article-page #articleCommentForm,
  .article-page #articleCommentForm > *,
  .article-page #articleCommentForm label,
  .article-page #articleCommentForm input,
  .article-page #articleCommentForm textarea,
  .article-page #articleCommentForm button,
  .article-page #articleProducts,
  .article-page #articleProducts > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .article-page #articleProducts > * {
    overflow: hidden;
  }

  .article-page #articleProducts .flex {
    min-width: 0;
    flex-wrap: wrap;
  }

  .blog-page .hero-content,
  .blog-page .blog-timeline-shell,
  .blog-page .blog-timeline-mobile,
  .blog-page #agenda,
  .blog-page #agenda > *,
  .blog-page #productsGrid,
  .blog-page #productsGrid > *,
  .blog-page #postsGrid,
  .blog-page #postsGrid > * {
    min-width: 0;
    max-width: 100%;
  }

  .blog-page .hero-content h1 {
    font-size: clamp(24px, 12vw, 28px);
    overflow-wrap: anywhere;
  }

  .blog-page .text-reveal .reveal-word,
  .blog-page .text-reveal .reveal-word > span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .blog-page .blog-timeline-mobile li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .blog-page .blog-timeline-mobile li::before {
    left: 17px;
    top: 38px;
  }

  .blog-page .blog-timeline-mobile-dot {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .blog-page .blog-timeline-mobile-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 14px;
  }

  .blog-page .blog-timeline-mobile-card > *,
  .blog-page .blog-timeline-meta,
  .blog-page #agenda h2,
  .blog-page #agenda h3,
  .blog-page #agenda p,
  .blog-page #agenda time {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .blog-page #agenda > * {
    padding: 14px;
    overflow: hidden;
  }

  .blog-page #agenda h2 {
    font-size: 25px;
  }

  .blog-page #productsGrid article > .flex {
    min-width: 0;
    flex-direction: column;
  }
}

@media (max-width: 240px) {
  :root {
    --page-pad: 8px;
  }

  .topbar > .container,
  .blog-page .topbar > .container,
  .article-page .topbar > .container {
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
  }

  .logo img {
    width: 64px;
  }

  .nav-menu {
    left: 6px;
    right: 6px;
  }

  .nav-menu a,
  .dropdown-menu a {
    padding-inline: 10px;
    overflow-wrap: anywhere;
  }

  .dropdown-menu a {
    padding-left: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .blog-read-article-btn::after {
    display: none;
  }
}
