:root {
  --ink: #1d211d;
  --muted: #5b635d;
  --paper: #fffdf5;
  --surface: #f5f2e8;
  --forest: #234f39;
  --leaf: #6c8b3c;
  --sun: #f3c53f;
  --orange: #ef7b32;
  --purple: #5542a2;
  --line: rgba(29, 33, 29, 0.14);
  --shadow: 0 18px 50px rgba(29, 33, 29, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  width: clamp(170px, 22vw, 300px);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a,
.footer-links a {
  text-decoration: none;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--forest);
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  padding: 4px;
  background: #ebe6d8;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  color: #fff;
  background: var(--forest);
}

main > section,
.legal-page {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.section-band {
  background: var(--surface);
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding-top: clamp(36px, 6vw, 72px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.9rem, 6.2vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.donation p,
.legal-page p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.button.secondary {
  background: var(--sun);
  border-color: var(--ink);
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.hero-media img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-pangolin {
  top: 0;
  right: 0;
  width: 78%;
  height: 68%;
  border-radius: 8px;
}

.hero-event {
  left: 0;
  bottom: 0;
  width: 68%;
  height: 48%;
  border: 8px solid var(--paper);
  border-radius: 8px;
}

.intro,
.timeline {
  max-width: 1240px;
  margin: 0 auto;
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 70px);
  color: var(--muted);
  font-size: 1.08rem;
}

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

.facts {
  margin-top: 34px;
}

.facts article,
.work-card,
.contact-form,
.contact-details,
.donation-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.78);
}

.facts article {
  padding: 22px;
}

.facts strong {
  display: block;
  color: var(--purple);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.facts span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.work-grid {
  max-width: 1240px;
  margin: 0 auto;
}

.work-card {
  padding: clamp(22px, 3vw, 34px);
}

.work-card span {
  color: var(--orange);
  font-weight: 900;
}

.work-card h3 {
  margin-top: 24px;
}

.work-card p {
  color: var(--muted);
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline-list time {
  color: var(--orange);
  font-size: 2rem;
  font-weight: 900;
}

.timeline-list p {
  max-width: 760px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-grid figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd7ca;
}

.gallery-grid figure.wide {
  grid-column: span 2;
}

.gallery-grid figure.poster {
  min-height: 440px;
  background: #e9e2cb;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-grid figure.poster img {
  object-fit: contain;
}

.gallery-grid figure:hover img {
  transform: scale(1.035);
}

.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #fff;
  background: rgba(29, 33, 29, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.donation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.donation-box {
  padding: 28px;
  box-shadow: var(--shadow);
}

.donation-box p {
  margin: 0 0 14px;
}

.contact-layout {
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.contact-form,
.contact-details {
  padding: clamp(22px, 3vw, 34px);
}

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

.contact-form label,
.contact-details strong {
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
}

.checkbox-label input {
  min-height: auto;
  margin-top: 5px;
}

.inline-button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(245, 242, 232, 0.82);
  font-size: 0.92rem;
}

.privacy-note p {
  margin: 0;
}

.form-status,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  justify-content: flex-end;
}

.legal-header {
  position: static;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
}

.legal-page section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.legal-page h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .donation,
  .intro-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 470px;
  }

  .facts,
  .work-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .brand img {
    width: 172px;
  }

  .language-switch {
    grid-template-columns: repeat(2, 38px);
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-pangolin {
    width: 88%;
    height: 64%;
  }

  .hero-event {
    width: 78%;
    height: 45%;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure.wide {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
