/* ============ Design tokens ============ */
:root {
  --cream: #f5f0e3;
  --cream-soft: #ece5d3;
  --paper: #fbf8f0;
  --navy: #16294f;
  --navy-deep: #0d1a33;
  --navy-soft: #223a68;
  --red: #c8313f;
  --red-deep: #a3232f;
  --ink: #171613;
  --ink-soft: #57534a;
  --line: rgba(23, 22, 19, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --font-display: "Archivo Black", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 14px;
}
.section-eyebrow.light { color: #e7b7bb; }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  max-width: 800px;
}

/* ============ Top bar ============ */
.topbar {
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.topbar a { text-decoration: underline; text-underline-offset: 2px; }

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.brand span {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--red); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.hamburger span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-close { display: none; }
.nav-backdrop { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: block;
  padding: 0 32px;
  padding-bottom: 1px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 26, 51, 0.55) 0%, rgba(13, 26, 51, 0.75) 55%, rgba(13, 26, 51, 0.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 760px;
  padding-bottom: 160px;
  padding-top: 140px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f0c6ca;
  margin-bottom: 18px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-text {
  font-size: 17px;
  line-height: 1.6;
  color: #e7e2d3;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--cream);
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(245, 240, 227, 0.1);
  color: var(--cream);
  border: 1px solid rgba(245, 240, 227, 0.4);
}
.btn-ghost:hover { background: rgba(245, 240, 227, 0.18); transform: translateY(-2px); }

/* Hero dock (bento bar) */
.hero-dock {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto -60px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: 0 30px 60px -20px rgba(13, 26, 51, 0.35);
}
.dock-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.dock-logo {
  font-family: var(--font-display);
  font-size: 20px;
}
.dock-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.dock-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red-deep);
  margin-bottom: 4px;
}
.dock-info h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 4px;
}
.dock-info p { color: var(--ink-soft); font-size: 14px; }
.dock-links {
  display: flex;
  gap: 10px;
}
.dock-links a {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--cream-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.dock-links a:hover { background: var(--red); color: var(--cream); }

/* ============ Stats ============ */
.stats-section {
  max-width: 1180px;
  margin: 130px auto 100px;
  padding: 0 32px;
}
.stats-summary {
  font-size: 18px;
  font-weight: 600;
  max-width: 780px;
  margin-bottom: 32px;
  color: var(--ink-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 10px;
}
.stat-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.js-individuals-count { display: inline-block; }
.count-pulse { animation: countPulse 0.4s ease; }
@keyframes countPulse {
  0% { transform: scale(1); color: inherit; }
  35% { transform: scale(1.12); color: var(--red); }
  100% { transform: scale(1); color: inherit; }
}

/* ============ Story (dark) ============ */
.story-section {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 1180px;
  margin: 0 auto 100px;
  padding: 90px 60px;
}
.story-inner { max-width: 700px; }
.story-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  margin-bottom: 26px;
}
.story-text {
  font-size: 16px;
  line-height: 1.7;
  color: #d9d4c4;
  margin-bottom: 18px;
}

/* ============ Gallery ============ */
.gallery-section {
  max-width: 1180px;
  margin: 0 auto 110px;
  padding: 0 32px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: -8px 0 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(13,26,51,0.85), transparent);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  padding: 30px 16px 14px;
}
.gallery-item-clickable {
  cursor: pointer;
}
.gallery-item-clickable::after {
  content: "View story \2192";
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13,26,51,0.75);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item-clickable:hover::after,
.gallery-item-clickable:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item-clickable:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.gallery-item-external::after {
  content: "Follow us \2192";
}

/* ============ Location modal ============ */
.location-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.location-modal.open {
  opacity: 1;
  visibility: visible;
}
.location-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,26,51,0.72);
}
.location-modal-content {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(13,26,51,0.35);
}
.location-modal.open .location-modal-content {
  transform: translateY(0);
}
.location-modal-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.location-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(13,26,51,0.75);
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.location-modal-body { padding: 28px 28px 30px; }
.location-modal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.location-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 14px;
}
.location-modal-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.location-modal-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--red);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}
.location-modal-link:hover { background: var(--red-deep); transform: translateY(-2px); }

/* ============ Timeline ============ */
.timeline-section {
  max-width: 1180px;
  margin: 0 auto 110px;
  padding: 0 32px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.timeline-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.timeline-date {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0c6ca;
  margin-bottom: 14px;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.timeline-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cfcabb;
}

/* ============ Team ============ */
.team-section {
  max-width: 1180px;
  margin: 0 auto 110px;
  padding: 0 32px;
}
.team-group-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 28px 0 18px;
}
.team-group-title:first-of-type { margin-top: 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 10px;
}
.team-grid-owners { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 auto 16px;
}
.team-grid-owners .team-avatar { background: var(--navy); }
.team-avatar-photo { padding: 0; overflow: hidden; }
.team-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.team-role { font-size: 12.5px; color: var(--ink-soft); }
.team-card { cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.team-card:hover { border-color: var(--red); }
.team-contact-link {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  text-decoration: none;
}
.team-card.contact-open .team-contact-link { display: flex; }

/* ============ Get Involved ============ */
.involved-section {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  max-width: 1180px;
  margin: 0 auto 110px;
  padding: 80px 60px 70px;
}
.involved-inner { max-width: 680px; color: var(--cream); margin-bottom: 44px; }
.involved-inner .story-text { color: #d9d4c4; }
.involved-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.involved-card {
  background: rgba(245, 240, 227, 0.06);
  border: 1px solid rgba(245, 240, 227, 0.16);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  color: var(--cream);
}
.involved-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 10px;
}
.involved-card p {
  font-size: 13.5px;
  color: #cfcabb;
  line-height: 1.55;
  margin-bottom: 16px;
}
.involved-card a {
  font-size: 13px;
  font-weight: 700;
  color: #f0c6ca;
}
.involved-card a:hover { color: var(--cream); }

/* ============ Updates ============ */
.updates-section {
  max-width: 1180px;
  margin: 0 auto 140px;
  padding: 0 32px;
  text-align: center;
}
.updates-section .section-heading { margin-left: auto; margin-right: auto; }
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.update-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.update-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red-deep);
  margin-bottom: 12px;
}
.update-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.update-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* ============ Footer ============ */
.site-footer {
  background: linear-gradient(160deg, var(--navy-soft) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 60px 32px 30px;
}
.footer-top {
  max-width: 1180px;
  margin: 0 auto 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(245, 240, 227, 0.15);
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer-name { font-family: var(--font-display); font-size: 18px; }
.footer-tagline { font-size: 13px; color: #b9c2d6; margin-top: 4px; }
.footer-social a {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(245, 240, 227, 0.1);
}
.footer-social a:hover { background: rgba(245, 240, 227, 0.18); }

.footer-columns {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}
.footer-columns h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa0c4;
  margin-bottom: 16px;
}
.footer-columns a {
  display: block;
  font-size: 13.5px;
  color: #dfe2ea;
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-columns a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #8b94ab;
}

/* ============ Floating dock buttons ============ */
.floating-follow, .floating-cta {
  position: fixed;
  z-index: 60;
  font-weight: 700;
  box-shadow: 0 14px 30px -8px rgba(13, 26, 51, 0.5);
}
.floating-follow {
  left: 24px;
  bottom: 24px;
  background: var(--navy);
  color: var(--cream);
  padding: 15px 26px;
  border-radius: 100px;
  font-size: 13.5px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.floating-follow:hover { background: var(--navy-deep); transform: translateY(-2px); }

.floating-cta {
  right: 24px;
  bottom: 24px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  transition: transform 0.15s ease, background 0.15s ease;
}
.floating-cta:hover { background: var(--red-deep); transform: translateY(-2px); }

/* ============ Mobile nav overlay ============ */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 55;
    box-shadow: -20px 0 40px rgba(0,0,0,0.15);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 12px 0; font-size: 16px; width: 100%; border-bottom: 1px solid var(--line); }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-close {
    display: block;
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 8px 0;
    border: none;
    background: none;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .nav-close:hover { color: var(--red); }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 54;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }

  .hero-dock { grid-template-columns: 1fr; text-align: center; gap: 18px; margin-bottom: 0; }
  .dock-badge { margin: 0 auto; }
  .dock-links { justify-content: center; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid-owners { grid-template-columns: repeat(2, 1fr); }
  .involved-grid { grid-template-columns: repeat(2, 1fr); }
  .updates-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .story-section, .involved-section { padding: 60px 28px; border-radius: var(--radius-md); }
}

@media (max-width: 560px) {
  .stats-grid, .team-grid, .team-grid-owners, .involved-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 0 18px; min-height: 0; }
  .hero-content { padding-top: 108px; padding-bottom: 120px; }
  .hero-dock { padding: 26px 20px; margin-bottom: 0; }
  .site-header { padding: 12px 18px; }
  .floating-follow { padding: 12px 18px; font-size: 12px; left: 16px; bottom: 16px; }
  .floating-cta { width: 62px; height: 62px; font-size: 10.5px; right: 16px; bottom: 16px; }
  .floating-follow, .floating-cta { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .floating-follow.is-visible, .floating-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
}
