﻿:root {
  --bg: #f6efe6;
  --bg-strong: #fffaf5;
  --surface: rgba(255, 250, 245, 0.74);
  --surface-lite: rgba(255, 250, 246, 0.95);
  --line: rgba(98, 66, 46, 0.12);
  --text: #25170f;
  --muted: #776254;
  --accent: #d86a41;
  --accent-dark: #bb4f2e;
  --forest: #556e4e;
  --cream: #fff4ea;
  --shadow: 0 24px 60px rgba(76, 45, 25, 0.12);
  --shadow-soft: 0 16px 40px rgba(76, 45, 25, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 176, 135, 0.3), transparent 28%),
    radial-gradient(circle at top right, rgba(137, 176, 121, 0.26), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, #f8efe7 45%, #f4ebe2 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 72%);
  opacity: 0.45;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-left {
  top: -7rem;
  left: -9rem;
  background: rgba(243, 191, 167, 0.92);
}

.ambient-right {
  top: 10rem;
  right: -8rem;
  background: rgba(120, 157, 110, 0.76);
}

.topbar,
.page-shell,
.mobile-dock {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(70, 45, 23, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(70, 45, 23, 0.12);
  background: #fff8f3;
}

.brand-copy {
  display: grid;
  gap: 0.2rem;
}

.brand strong,
.hero-copy h1,
.section-head h2,
.report-card h3,
.gallery-copy h3,
.timeline-body h3,
.help-copy h2,
.modal-content h3,
.story-content h3,
.animal-copy h3,
.accent-card h2 {
  font-family: 'Unbounded', sans-serif;
  line-height: 1.08;
}

.brand strong,
.section-head h2,
.hero-copy h1,
.help-copy h2,
.modal-content h3,
.story-content h3,
.accent-card h2,
.animal-copy h3 {
  margin: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-actions,
.hero-cta-row,
.section-head.split,
.filter-row,
.gallery-meta,
.timeline-inline-stats,
.form-actions,
.modal-actions,
.modal-stats,
.modal-topline,
.aid-footer,
.story-actions {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 0.7rem;
}

.chip-button,
.solid-button,
.ghost-link,
.filter-chip,
.contact-card,
.gallery-button,
.mobile-dock a,
.story-bubble,
.phase-chip,
.related-chip,
.timeline-open,
.aid-select,
.inline-action,
.icon-button,
.modal-nav {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.chip-button,
.solid-button,
.ghost-link,
.filter-chip,
.phase-chip,
.related-chip,
.timeline-open {
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.chip-button,
.filter-chip,
.phase-chip,
.related-chip,
.timeline-open,
.ghost-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2)),
    rgba(255, 248, 243, 0.38);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 14px 30px rgba(74, 45, 24, 0.08);
}

.inline-action {
  min-height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.inline-action svg,
.icon-button svg,
.meta-inline svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.inline-action-strong {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18)),
    rgba(216, 106, 65, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 24px rgba(216, 106, 65, 0.12);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.icon-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.2)),
    rgba(255, 248, 243, 0.4);
  color: var(--accent-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(74, 45, 24, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.16)),
    rgba(255, 248, 243, 0.34);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 30px rgba(20, 14, 11, 0.16);
  z-index: 2;
  font-size: 1.5rem;
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.modal-nav-prev {
  left: 1rem;
}

.modal-nav-next {
  right: 1rem;
}

.solid-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(216, 106, 65, 0.88), rgba(187, 79, 46, 0.84));
  color: #fff8f3;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 32px rgba(216, 106, 65, 0.2);
}

.chip-button::before,
.solid-button::before,
.ghost-link::before,
.filter-chip::before,
.phase-chip::before,
.related-chip::before,
.timeline-open::before,
.icon-button::before,
.modal-nav::before,
.inline-action-strong::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .chip-button:hover,
  .solid-button:hover,
  .ghost-link:hover,
  .filter-chip:hover,
  .phase-chip:hover,
  .related-chip:hover,
  .timeline-open:hover,
  .inline-action:hover,
  .icon-button:hover,
  .story-bubble:hover,
  .quote-card:hover,
  .contact-card:hover,
  .gallery-button:hover,
  .aid-card:hover,
  .animal-card:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
  }

  .modal-nav:hover {
    transform: translateY(-50%) scale(1.02);
    filter: brightness(1.03);
  }
}

.chip-button:active,
.solid-button:active,
.ghost-link:active,
.filter-chip:active,
.phase-chip:active,
.related-chip:active,
.timeline-open:active,
.inline-action:active,
.icon-button:active,
.story-bubble:active,
.quote-card:active,
.contact-card:active,
.gallery-button:active,
.aid-card:active,
.animal-card:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.99);
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.94);
  filter: brightness(0.98);
}

.filter-chip.active,
.phase-chip.active {
  color: #fff8f3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(216, 106, 65, 0.86), rgba(187, 79, 46, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 26px rgba(216, 106, 65, 0.18);
}

.page-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.35rem auto 6rem;
  display: grid;
  gap: 1.35rem;
}

.mobile-entry {
  display: none;
}

.mobile-entry-frame {
  position: relative;
  overflow: hidden;
  min-height: min(84svh, 760px);
  padding: 1.15rem;
  border-radius: calc(var(--radius-xl) - 6px);
  display: grid;
  align-content: space-between;
  gap: 1.15rem;
  background:
    linear-gradient(180deg, rgba(21, 16, 12, 0.16), rgba(21, 16, 12, 0.74)),
    linear-gradient(135deg, rgba(96, 67, 47, 0.8), rgba(46, 54, 41, 0.78));
  color: #fff8f4;
}

.mobile-entry-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(16, 12, 10, 0.18) 0%, rgba(16, 12, 10, 0.56) 38%, rgba(16, 12, 10, 0.74) 100%),
    linear-gradient(90deg, rgba(16, 12, 10, 0.64) 0%, rgba(16, 12, 10, 0.26) 46%, transparent 88%);
}

.mobile-entry-copy,
.mobile-entry-stack {
  position: relative;
  z-index: 1;
}

.mobile-entry-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 14, 11, 0.46), rgba(18, 14, 11, 0.3)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 16px 34px rgba(10, 7, 5, 0.14);
}

.mobile-entry-copy .eyebrow,
.mobile-entry-text {
  color: rgba(255, 248, 244, 0.82);
}

.mobile-entry-copy h2 {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  line-height: 1.05;
  max-width: 10ch;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.mobile-entry-text {
  margin: 0;
  max-width: 34ch;
  line-height: 1.6;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mobile-entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mobile-entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.62rem 0.78rem;
  border-radius: 999px;
  color: #fff8f4;
  background: rgba(26, 20, 16, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.mobile-entry-badge .meta-inline {
  color: inherit;
}

.mobile-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mobile-entry-actions .ghost-link {
  color: #fff8f4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.mobile-entry-stack {
  display: grid;
  gap: 0.8rem;
}

.mobile-entry-card {
  width: 100%;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem;
  text-align: left;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 34px rgba(10, 7, 5, 0.16);
}

.mobile-entry-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
}

.mobile-entry-card-copy {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  min-width: 0;
}

.mobile-entry-card-copy strong {
  color: #fff8f4;
  line-height: 1.28;
}

.surface {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.surface-lite {
  background: var(--surface-lite);
  border: 1px solid rgba(98, 66, 46, 0.07);
}

.hero,
.report-surface,
.timeline-surface,
.help-surface,
.stories-surface,
.animals-surface {
  padding: 1.45rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-main {
  display: block;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  min-height: 100%;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 9ch;
}

.hero-motto {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.hero-description,
.section-note,
.report-card p,
.gallery-copy p,
.timeline-body p,
.form-note,
.modal-summary,
.accent-card p,
.stat-card small,
.meta-pill span,
.timeline-phase-card p,
.timeline-phase-card small,
.aid-card p,
.story-text,
.story-footer,
.animal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

.meta-pill {
  min-width: 0;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  height: 100%;
}

.meta-pill strong,
.stat-card strong,
.contact-card strong,
.aid-head strong,
.timeline-phase-card strong {
  display: block;
}

.hero-cta-row {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.accent-card {
  padding: 1.25rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(150deg, rgba(217, 107, 67, 0.96), rgba(86, 110, 78, 0.92));
  color: #fff8f4;
}

.accent-card .eyebrow,
.accent-card p,
.accent-card h2 {
  color: #fff8f4;
}

.accent-card h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.stats-grid,
.report-grid,
.quote-grid,
.gallery-grid,
.animals-grid,
.aid-grid {
  display: grid;
  gap: 0.95rem;
}

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

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

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

.animals-grid,
.aid-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.stat-card,
.report-card,
.quote-card,
.animal-card,
.aid-card,
.timeline-phase-card {
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
}

.stat-card strong {
  font-size: 1.8rem;
  line-height: 1.05;
}

.count-up {
  display: inline-block;
  min-width: 1.5ch;
}

.stat-card span,
.contact-card span {
  display: block;
  margin-top: 0.35rem;
}

.section-head {
  display: grid;
  gap: 0.55rem;
}

.section-head.split {
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.section-note {
  max-width: 40ch;
}

.report-card {
  padding: 1.15rem;
  border-radius: 24px;
}

.report-card h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.05rem;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(216, 106, 65, 0.12);
  border: 1px solid rgba(216, 106, 65, 0.14);
  color: var(--accent-dark);
}

.tag.subtle {
  background: rgba(85, 110, 78, 0.12);
  border-color: rgba(85, 110, 78, 0.14);
  color: var(--forest);
}

.stories-surface,
.quotes-section,
.gallery-section,
.animals-surface {
  display: grid;
  gap: 1rem;
}

.story-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: none;
}

.story-row::-webkit-scrollbar {
  display: none;
}

.story-bubble {
  min-width: 92px;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
  color: var(--text);
}

.story-ring {
  width: 84px;
  height: 84px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f0c399 55%, var(--forest));
  display: grid;
  place-items: center;
  box-shadow: 0 16px 28px rgba(71, 43, 20, 0.12);
}

.story-bubble.seen .story-ring {
  background: linear-gradient(135deg, rgba(146, 128, 115, 0.65), rgba(194, 179, 170, 0.75));
}

.story-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 250, 245, 0.92);
}

.story-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.quote-card {
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(255, 250, 246, 0.92);
  border: 1px solid var(--line);
}

.quote-card p {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  line-height: 1.38;
}

.quote-card span {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-row {
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gallery-card {
  min-width: 0;
}

.gallery-button {
  width: 100%;
  padding: 0;
  text-align: left;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.gallery-media-wrap,
.modal-media-wrap,
.animal-media-wrap,
.story-media-wrap {
  position: relative;
}

.gallery-media,
.animal-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.media-badge,
.animal-status {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff8f3;
  background: rgba(17, 14, 12, 0.66);
  backdrop-filter: blur(12px);
}

.gallery-copy,
.animal-copy {
  padding: 1rem 1rem 1.1rem;
}

.gallery-meta,
.timeline-inline-stats,
.modal-stats,
.aid-footer,
.modal-topline {
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--muted);
}

.gallery-copy h3,
.timeline-body h3,
.animal-copy h3 {
  margin: 0.55rem 0 0.55rem;
  font-size: 1.05rem;
}

.animal-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.animal-copy {
  display: grid;
  gap: 0.6rem;
}

.timeline-phase-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.phase-chip {
  flex-direction: column;
  align-items: flex-start;
  min-height: auto;
  border-radius: 22px;
  padding: 0.9rem 1rem;
}

.phase-chip small {
  color: inherit;
  opacity: 0.8;
}

.timeline-phase-meta {
  margin-top: 1rem;
}

.timeline-phase-card {
  padding: 1rem 1.15rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.timeline-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.timeline-date {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.95rem;
}

.timeline-body {
  display: grid;
  gap: 0.45rem;
}

.timeline-inline-stats a,
.aid-select {
  font-weight: 700;
  color: var(--accent-dark);
}

.help-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.15rem;
}

.help-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.aid-card {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}

.aid-head {
  display: grid;
  gap: 0.6rem;
}

.aid-progress,
.modal-progress-track,
.story-progress-segment {
  width: 100%;
  height: 0.58rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(98, 66, 46, 0.1);
}

.aid-progress-fill,
.modal-progress-fill,
.story-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--forest));
}

.contact-list {
  display: grid;
  gap: 0.8rem;
}

.contact-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.help-form {
  padding: 1.2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.help-form label {
  display: grid;
  gap: 0.45rem;
}

.help-form span {
  font-weight: 700;
}

.help-form input,
.help-form textarea,
.help-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(98, 66, 46, 0.18);
  background: rgba(255, 250, 245, 0.9);
  color: var(--text);
}

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

.help-form input:focus,
.help-form textarea:focus,
.help-form select:focus,
.chip-button:focus-visible,
.solid-button:focus-visible,
.ghost-link:focus-visible,
.filter-chip:focus-visible,
.contact-card:focus-visible,
.gallery-button:focus-visible,
.modal-close:focus-visible,
.mobile-dock a:focus-visible,
.story-bubble:focus-visible,
.phase-chip:focus-visible,
.related-chip:focus-visible,
.timeline-open:focus-visible,
.inline-action:focus-visible,
.icon-button:focus-visible,
.modal-nav:focus-visible {
  outline: 3px solid rgba(216, 106, 65, 0.28);
  outline-offset: 3px;
}

.form-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-modal,
.story-modal {
  width: min(1080px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  background: transparent;
}

.story-modal {
  width: min(940px, calc(100% - 2rem));
}

.post-modal::backdrop,
.story-modal::backdrop {
  background: rgba(21, 15, 11, 0.72);
  backdrop-filter: blur(7px);
}

.modal-layout,
.story-layout {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #fff7f1;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.story-layout {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(30, 24, 20, 0.98), rgba(63, 52, 42, 0.98));
  color: #fff8f4;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.95rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 1.6rem;
  transform: rotate(45deg);
  z-index: 2;
}

.story-close {
  background: rgba(255, 255, 255, 0.14);
  color: #fff8f4;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.modal-content {
  padding: 2rem;
  display: grid;
  align-content: center;
  gap: 0.95rem;
}

.modal-content h3,
.story-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.modal-position {
  font-weight: 700;
  color: var(--accent-dark);
}

.modal-excerpt {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-progress-track {
  height: 0.52rem;
}

.modal-related-block {
  display: grid;
  gap: 0.65rem;
}

.modal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-actions {
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.story-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.4rem;
  padding-right: 3.3rem;
}

.story-progress-fill {
  width: 0%;
  background: rgba(255, 255, 255, 0.3);
}

.story-progress-fill.done {
  width: 100%;
  background: linear-gradient(90deg, #fff4ea, #fff4ea);
}

.story-progress-fill.active {
  width: 100%;
  background: linear-gradient(90deg, #f2ba9f, #fff8f4);
  transform-origin: left;
  animation: storyBarGrow linear forwards;
}

.story-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.story-media-wrap {
  border-radius: 28px;
  overflow: hidden;
  min-height: 540px;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1e1814;
}

.story-content {
  padding: 1rem 0.3rem 0.3rem;
  display: grid;
  align-content: center;
  gap: 0.9rem;
}

.story-content .eyebrow,
.story-text,
.story-footer {
  color: rgba(255, 248, 244, 0.82);
}

.story-actions {
  gap: 0.7rem;
  flex-wrap: wrap;
}

.story-actions .chip-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff8f4;
  border-color: rgba(255, 255, 255, 0.14);
}

.story-actions .solid-button {
  box-shadow: none;
}

.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 1rem));
  padding: 0.7rem;
  display: none;
  justify-content: space-between;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(22, 17, 13, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(26, 19, 14, 0.2);
}

.mobile-dock a {
  flex: 1;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 243, 0.94);
  border-radius: 999px;
}

.mobile-dock a:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes storyBarGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1080px) {
  .hero,
  .help-surface,
  .modal-layout,
  .story-view {
    grid-template-columns: 1fr;
  }

  .report-grid,
  .quote-grid,
  .animals-grid,
  .aid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-cta-row {
    margin-top: 0;
  }

  .modal-image,
  .story-media-wrap {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .mobile-entry {
    display: block;
  }

  .topbar {
    padding: 0.9rem;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .brand-mark {
    width: 3rem;
    height: 3rem;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .topbar .chip-button,
  .topbar .solid-button {
    min-height: 3.15rem;
    justify-content: center;
    border-radius: 20px;
  }

  .topbar #share-button {
    width: 3.2rem;
    min-width: 3.2rem;
    padding: 0;
    font-size: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)),
      rgba(255, 248, 243, 0.42);
  }

  .topbar #share-button::after {
    content: '↗';
    font-size: 1.05rem;
    line-height: 1;
    color: var(--accent-dark);
  }

  .topbar .solid-button {
    padding-inline: 1rem;
    font-size: 0.98rem;
    line-height: 1.15;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 12px 24px rgba(216, 106, 65, 0.16);
  }

  .page-shell {
    margin-bottom: 6.5rem;
  }

  .mobile-entry-frame {
    min-height: calc(100svh - 7rem);
    padding: 1rem;
    border-radius: 28px;
    background-position: center top !important;
  }

  .mobile-entry-copy {
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 24px;
  }

  .mobile-entry-actions {
    flex-direction: column;
  }

  .mobile-entry-actions .chip-button,
  .mobile-entry-actions .solid-button,
  .mobile-entry-actions .ghost-link {
    width: 100%;
  }

  .mobile-entry-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 0.62rem;
  }

  .hero,
  .report-surface,
  .timeline-surface,
  .help-surface,
  .stories-surface,
  .animals-surface {
    padding: 1.1rem;
  }

  .stats-grid,
  .report-grid,
  .quote-grid,
  .gallery-grid,
  .animals-grid,
  .aid-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .story-bubble {
    min-width: 82px;
  }

  .story-ring {
    width: 76px;
    height: 76px;
  }

  .modal-content,
  .story-layout {
    padding: 1rem;
  }

  .mobile-entry-copy h2 {
    max-width: 10ch;
    font-size: clamp(1.65rem, 9vw, 2.3rem);
  }

  .modal-topline,
  .modal-actions,
  .story-actions,
  .timeline-inline-stats,
  .aid-footer {
    align-items: flex-start;
  }

  .mobile-dock {
    display: flex;
  }
}

@media (hover: none), (pointer: coarse) {
  .chip-button,
  .solid-button,
  .ghost-link,
  .filter-chip,
  .phase-chip,
  .related-chip,
  .timeline-open,
  .inline-action,
  .icon-button,
  .modal-nav,
  .story-bubble,
  .quote-card,
  .contact-card,
  .gallery-button,
  .aid-card,
  .animal-card {
    transition-duration: 120ms;
  }

  .chip-button:active,
  .solid-button:active,
  .ghost-link:active,
  .filter-chip:active,
  .phase-chip:active,
  .related-chip:active,
  .timeline-open:active,
  .inline-action:active,
  .icon-button:active,
  .story-bubble:active,
  .quote-card:active,
  .contact-card:active,
  .gallery-button:active,
  .aid-card:active,
  .animal-card:active {
    transform: scale(0.985);
  }

  .modal-nav:active {
    transform: translateY(-50%) scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
