/* ═══════════════════════════════════════════
   CAUGHT IN THE CURRENT — style.css
   Palette: Teal #02645A | Navy #224050
             Amber #D4874C | Rust #C45D3A | Cream #F7F3ED
   Fonts:   Averia Libre (display) | Lora (everything else)
═══════════════════════════════════════════ */

:root {
  --teal:   #02645A;
  --navy:   #224050;
  --amber:  #D4874C;
  --rust:   #C45D3A;
  --cream:  #F7F3ED;
  --white:  #ffffff;
  --font-display: 'Averia Libre', serif;
  --font-body:    'Lora', Georgia, serif;
  --radius: 6px;
  --transition: .25s ease;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
}


/* ═══════════════════════════════════════════
   FIXED NAV — main site
═══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: .2rem 2rem;
  height: 120px;
  background: transparent;
  transition: background var(--transition);
}
#navbar.scrolled { background: rgba(34,64,80,.97); }

.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 110px; width: 110px;
  object-fit: contain; border-radius: 50%;
}
.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.nav-links a {
  color: var(--white); font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
  opacity: 1;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--amber); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .3rem;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--cream); border-radius: 2px;
}

.rainfall-note a { color: var(--amber); text-decoration: underline; }
.rainfall-note a:hover { color: var(--rust); }

.dataviz-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1.4rem;
  background: var(--rust);
  color: var(--white);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s ease;
}
.dataviz-cta:hover { background: var(--amber); }

.stories-last-row {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  max-width: var(--max-w);
  margin: 1.1rem auto 0;
  width: 100%;
}
.stories-last-row .story-card {
  width: calc(33.333% - 0.75rem);
  flex: 0 0 calc(33.333% - 0.75rem);
}


/* ═══════════════════════════════════════════
   ABOUT PAGE NAV
═══════════════════════════════════════════ */
.navbar-inner {
  position: sticky; top: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: .2rem 2rem; height: 120px;
  background: rgba(34,64,80,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.back-btn {
  background: none;
  border: 1.5px solid rgba(247,243,237,.38);
  color: var(--cream); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .42rem 1.1rem; border-radius: 50px;
  transition: all var(--transition);
}
.back-btn:hover { background: var(--amber); border-color: var(--amber); }


/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh; width: 100%;
  max-width: none; margin: 0; padding: 0;
  overflow: hidden; background: #000;
}
#hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.2), transparent 28%),
    linear-gradient(to bottom, rgba(0,0,0,.12), transparent 20%);
  pointer-events: none;
}
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  color: rgba(247,243,237,.78);
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  animation: fadeInUp 1.2s ease 1.2s both;
  transition: opacity var(--transition);
}
.scroll-arrow {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(247,243,237,.72), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#content-wrap {
  position: relative;
  z-index: 2;
  background: var(--cream);
}


/* ═══════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════ */
section:not(#hero) {
  padding: 5.5rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  max-width: 700px;
  margin: 0 auto 1rem;
  text-align: center;
}
.section-label {
  display: block;
  font-size: 1.4rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: .7rem;
  margin-top: 1.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 10vw, 0.2rem);
  color: var(--navy); margin-bottom: 1rem;
}
.section-intro {
  font-size: .9rem; color: rgba(34,64,80,.75);
  max-width: 1000px;
  margin: 0 auto; line-height: 1.75;
  text-align: justify;
}


/* ═══════════════════════════════════════════
   HELENE / STATS
═══════════════════════════════════════════ */
#helene {
  background: var(--cream);
  position: relative; z-index: 2;
  box-shadow: 0 0 0 100vmax var(--cream);
  clip-path: inset(0 -100vmax);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  max-width: var(--max-w); margin: 0 auto;
}
.stat-card {
  padding: 2rem 1.5rem; border-radius: var(--radius);
  text-align: center; color: var(--white);
}
.stat-card[data-color="teal"]  { background: var(--teal); }
.stat-card[data-color="navy"]  { background: var(--navy); }
.stat-card[data-color="amber"] { background: var(--amber); }
.stat-card[data-color="rust"]  { background: var(--rust); }
.stat-number {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1;
}
.stat-unit { font-size: 1.3rem; font-weight: 700; vertical-align: super; }
.stat-label { margin-top: .6rem; font-size: .76rem; opacity: .88; line-height: 1.5; }


/* ═══════════════════════════════════════════
   STORIES
═══════════════════════════════════════════ */
#stories {
  background: var(--navy);
  position: relative; z-index: 2;
  max-width: 100%; padding: 5.5rem 3rem;
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}
.story-filters {
  display: flex; flex-wrap: wrap; gap: .65rem;
  justify-content: center; margin-bottom: 2.5rem;
  max-width: var(--max-w); margin-left: auto; margin-right: auto;
}
.filter-btn {
  padding: .45rem 1.2rem;
  border: 1.5px solid rgba(247,243,237,.28);
  background: transparent; color: rgba(247,243,237,.65);
  border-radius: 50px; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--amber); border-color: var(--amber); color: var(--white);
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Story card ── */
.story-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition:
    transform .35s cubic-bezier(.22,.68,0,1.2),
    box-shadow .35s ease;
}
.story-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 1.5px rgba(212,135,76,.6),
    0 0 28px rgba(212,135,76,.2),
    0 24px 48px rgba(0,0,0,.5);
}
.story-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 5;
  border-radius: 10px; pointer-events: none;
  border: 1.5px solid transparent;
  background:
    linear-gradient(135deg,
      rgba(212,135,76,.7),
      rgba(2,100,90,.5),
      rgba(196,93,58,.5),
      rgba(212,135,76,.2)
    ) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}
.story-card:hover::before { opacity: 1; }
.story-card.hidden { display: none; }

.card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.card-photo-wrap::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(34,64,80,.9) 0%,
    rgba(34,64,80,.08) 50%,
    transparent 100%
  );
}
.card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: brightness(.85) saturate(1.05);
  transition:
    transform .45s cubic-bezier(.22,.68,0,1.2),
    filter .3s ease;
}
.story-card:hover .card-photo {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.2);
}

/* On touch devices always show overlay/pill/arrow */
@media (hover: none) {
  .card-photo-overlay { opacity: 1; transform: translateY(0); }
  .card-pill { opacity: 1; transform: translateY(0); }
  .card-arrow { opacity: 1; transform: scale(1); }
}

.card-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0; z-index: 2;
  padding: .8rem 1rem;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.story-card:hover .card-photo-overlay { opacity: 1; transform: translateY(0); }
.card-excerpt {
  font-size: .82rem; line-height: 1.6;
  color: rgba(247,243,237,.82);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-pill {
  position: absolute;
  top: .7rem; left: .7rem; z-index: 3;
  background: var(--amber); color: var(--white);
  font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700;
  padding: .22rem .6rem; border-radius: 3px;
  opacity: 0; transform: translateY(-5px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.story-card:hover .card-pill { opacity: 1; transform: translateY(0); }

.card-arrow {
  position: absolute;
  top: .7rem; right: .7rem; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(212,135,76,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.story-card:hover .card-arrow { opacity: 1; transform: scale(1); }
.card-arrow svg { width: 12px; height: 12px; }

.card-body {
  display: block;
  background: var(--amber);
  padding: .65rem .9rem .75rem;
  position: relative; z-index: 2;
  min-height: 62px; flex-shrink: 0;
  transition: background .25s ease;
}
.story-card:hover .card-body { background: var(--rust); }
.card-caption-category {
  font-size: .65rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
  margin-bottom: .18rem;
}
.card-caption-title {
  font-family: var(--font-body);
  font-weight: 700; font-size: .92rem;
  color: #fff; line-height: 1.25;
  margin-bottom: .15rem;
}
.card-caption-author {
  font-size: .74rem; font-style: italic;
  color: rgba(255,255,255,.62);
}
.card-body.placeholder { background: rgba(34,64,80,.72); }
.story-card:hover .card-body.placeholder { background: rgba(34,64,80,.9); }
.card-body.placeholder .card-caption-category { color: rgba(247,243,237,.35); }
.card-body.placeholder .card-caption-title { color: rgba(247,243,237,.25); font-weight: 400; }
.card-body.placeholder .card-caption-author { display: none; }


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--navy); position: relative; z-index: 2;
  padding: 2.8rem 3rem; text-align: center;
}
.footer-title { font-family: var(--font-display); font-size: 1rem; color: var(--cream); letter-spacing: .1em; margin-bottom: .35rem; }
.footer-sub { font-size: .75rem; color: rgba(247,243,237,.48); letter-spacing: .08em; }
.footer-credit { margin-top: .25rem; font-size: .68rem; color: rgba(247,243,237,.3); }


/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════ */
.modal { display: none; position: fixed; inset: 0; z-index: 500; }
.modal.open { display: flex; align-items: center; justify-content: center; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(34,64,80,.82); backdrop-filter: blur(6px); cursor: pointer;
}
.modal-panel {
  position: relative; z-index: 1; background: var(--cream);
  width: 90%; max-width: 680px; max-height: 88vh;
  border-radius: 10px; overflow-y: auto; padding: 2.8rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 1.1rem; right: 1.3rem;
  background: none; border: none; font-size: 1.2rem;
  color: rgba(34,64,80,.4); transition: color var(--transition);
}
.modal-close:hover { color: var(--rust); }
.modal-content .modal-category { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: .5rem; }
.modal-content h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--navy); margin-bottom: 1.1rem; }
.modal-content p { font-size: .9rem; line-height: 1.82; color: rgba(34,64,80,.8); margin-bottom: .9rem; }
.modal-audio {
  margin-top: 1.4rem; background: var(--navy);
  border-radius: var(--radius); padding: 1rem 1.4rem;
  display: flex; align-items: center; gap: .9rem;
}
.modal-audio span { color: var(--cream); font-size: .82rem; }


/* ═══════════════════════════════════════════
   ABOUT / INNER PAGE
═══════════════════════════════════════════ */
.inner-page { min-height: 100vh; background: var(--cream); }
.inner-page-content {
  max-width: 1400px; margin: 0 auto;
  padding: 5rem 3rem 6rem;
}
.inner-page-header {
  text-align: center; padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.inner-page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--navy); margin-bottom: .7rem; }

.about-project { max-width: 860px; margin: 0 auto .2rem; text-align: center; }
.about-project p { font-size: .92rem; line-height: 1.88; color: rgba(34,64,80,.8); margin-bottom: 1rem; }
.group-photo {
  width: 100%; max-width: 860px; height: auto;
  border-radius: var(--radius); margin: 2rem auto 0;
  display: block; object-fit: cover;
  box-shadow: 0 8px 32px rgba(34,64,80,.15);
}

.team-section { margin-bottom: 4rem; }
.team-heading { font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--navy); text-align: center; margin-bottom: 2.5rem; margin-top: 2rem; }
.team-grid { display: flex; flex-direction: column; gap: 0; }
.team-card {
  display: flex; flex-direction: row; align-items: stretch;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(34,64,80,.09);
  margin-bottom: 1.5rem; transition: box-shadow var(--transition);
}
.team-card:hover { box-shadow: 0 8px 28px rgba(34,64,80,.1); }
.team-avatar { flex: 0 0 220px; width: 220px; min-height: 200px; overflow: hidden; background: var(--cream); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.team-card-body {
  flex: 1; padding: 1.2rem 2rem;
  display: flex; flex-direction: column; justify-content: flex-start;
  border-left: 3px solid var(--amber);
}
.team-name-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.team-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 0; }
.team-socials { display: flex; gap: .4rem; align-items: center; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  transition: transform var(--transition), opacity var(--transition); opacity: .85;
}
.social-link:hover { transform: translateY(-2px); opacity: 1; }
.social-link svg { width: 18px; height: 18px; }
.social-link .icon-linkedin { color: #0A66C2; }
.social-link .icon-instagram { color: #E1306C; }
.social-link .icon-website   { color: var(--teal); }
.social-link .icon-email     { color: var(--amber); }
.team-role { font-size: .68rem; font-style: italic; color: var(--rust); margin-bottom: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.team-bio { font-size: .82rem; color: rgba(34,64,80,.72); line-height: 1.75; display: block; }

.dcreport-block {
  max-width: 680px; margin: 0 auto 3rem; padding: 2.2rem;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(34,64,80,.1); text-align: center;
}
.dcreport-logo { max-width: 180px; height: auto; margin: 0 auto 1.3rem; display: block; }
.dcreport-text { font-size: .86rem; line-height: 1.8; color: rgba(34,64,80,.78); }
.dcreport-text a { color: var(--teal); font-weight: 600; border-bottom: 1px solid var(--amber); padding-bottom: 1px; transition: color var(--transition); }
.dcreport-text a:hover { color: var(--rust); }

.acknowledgments { max-width: 680px; margin: 0 auto; padding-top: 2.5rem; border-top: 1px solid rgba(34,64,80,.1); }
.acknowledgments h3 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; margin-top: 2rem; }
.acknowledgments h3:first-child { margin-top: 0; }
.ack-list { list-style: none; padding: 0; margin-bottom: 1rem; }
.ack-list li { font-size: .83rem; color: rgba(34,64,80,.72); line-height: 1.7; padding: .28rem 0; border-bottom: 1px solid rgba(34,64,80,.06); }
.ack-list li:last-child { border-bottom: none; }

.group-caption {
  font-size: .80rem;
  color: rgba(0,0,0,.5);
  text-align: center;
  margin-top: .3rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* mobile nav dropdown */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(34,64,80,.97);
  padding: 1.2rem 2rem 1.6rem;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET  (≤1100px)
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT  (≤768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  #navbar {
    padding: .5rem 1.2rem;
    height: 70px;
  }
  .nav-logo-img { height: 60px; width: 60px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* About nav */
  .navbar-inner { padding: .5rem 1.2rem; height: 70px; }
  .navbar-inner .nav-logo-img { height: 60px; width: 60px; }

  /* Sections */
  section:not(#hero) { padding: 3rem 1.2rem; }
  #stories { padding: 3rem 1.2rem; }

  /* Stories grid */
  .stories-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }

  /* Stories last row */
  .stories-last-row { gap: .8rem; }
  .stories-last-row .story-card {
    width: calc(50% - 0.4rem);
    flex: 0 0 calc(50% - 0.4rem);
  }

  /* Modal */
  .modal-panel { padding: 1.8rem 1.2rem; width: 95%; }

  /* Team cards */
  .team-avatar { flex: 0 0 140px; width: 140px; }
  .team-card-body { padding: 1rem 1.2rem; }

  /* About page */
  .inner-page-content { padding: 2.5rem 1.2rem 4rem; }

  /* Rainfall canvas */
  .rainfall-viz-wrap { margin: 0 -1.2rem; }

  /* Footer */
  footer { padding: 2rem 1.2rem; }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — PHONE  (≤480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  html { font-size: 15px; }
  #hero-video { object-fit: contain; background: #000; }

  /* Nav */
  #navbar { height: 60px; padding: .4rem 1rem; }
  .nav-logo-img { height: 50px; width: 50px; }

  /* Hero — fix video zoom on mobile */
  #hero { height: 100svh; }
  #hero-video { object-position: center center; }

  /* Sections */
  section:not(#hero) { padding: 2.5rem 1rem; }
  #stories { padding: 2.5rem 1rem; }

  /* Section label smaller */
  .section-label { font-size: 1rem; letter-spacing: .18em; }
  .section-intro { text-align: left; font-size: .85rem; }

  /* Stories: single column */
  .stories-grid { grid-template-columns: 1fr; gap: .75rem; }
  .stories-last-row {
    flex-direction: column;
    align-items: center;
  }
  .stories-last-row .story-card {
    width: 100%;
    flex: 0 0 auto;
  }

  /* Filter buttons */
  .story-filters { gap: .4rem; margin-bottom: 1.5rem; }
  .filter-btn { font-size: .7rem; padding: .38rem .9rem; }

  /* Card body */
  .card-caption-title { font-size: .85rem; }
  .card-caption-author { font-size: .7rem; }

  /* Team cards — stack vertically */
  .team-card { flex-direction: column; }
  .team-avatar { flex: none; width: 100%; height: 180px; min-height: unset; }
  .team-card-body { border-left: none; border-top: 3px solid var(--amber); padding: 1rem; }
  .team-bio { font-size: .8rem; }

  /* About page */
  .inner-page-content { padding: 2rem 1rem 3rem; }
  .navbar-inner { height: 60px; padding: .4rem 1rem; }
  .navbar-inner .nav-logo-img { height: 50px; width: 50px; }
  .about-project p { font-size: .88rem; }
  .group-caption { font-size: .75rem; }

  /* Acknowledgments */
  .ack-list li { font-size: .8rem; }

  /* Modal */
  .modal-panel { padding: 1.4rem 1rem; width: 98%; border-radius: 8px; }

  /* Footer */
  footer { padding: 1.8rem 1rem; }
  .footer-title { font-size: .9rem; }
  .footer-sub { font-size: .7rem; }

  /* dataviz button */
  .dataviz-cta { font-size: .7rem; padding: .5rem 1.1rem; }

  /* Hero video wrap — prevent zoom crop on mobile Safari */
  .hero-video-wrap {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: hidden;
  }
  .hero-video-wrap video,
  .hero-video-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  /* Last row cards — full width on phone */
  .stories-last-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .stories-last-row .story-card {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
}