/* ==========================================================================
   CNMI Coral Reef Initiative — Option B (savetheocean.world Design System)
   Palette: Deep Ocean Blue (#1C5991), Ocean Teal (#1C6E8C), Crisp White (#FFFFFF)
   Typography: Outfit (Display/Headings), Inter (Body/UI), Merriweather (Header CTA)
   ========================================================================== */

:root {
  --ocean-deep: #1c5991;
  --ocean-deep-hover: #164875;
  --ocean-teal: #1c6e8c;
  --ocean-teal-hover: #155770;
  --ocean-mist: #f4f8fb;
  --ocean-tint: #eaf2f8;
  --ink-primary: #1d1e20;
  --ink-dark: #0d141a;
  --ink-muted: #56585e;
  --border-subtle: #e4ebf1;
  --border-input: #b8c0cc;
  --white: #ffffff;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cta: 'Merriweather', Georgia, serif;

  --radius-card: 20px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 34px rgba(13, 20, 26, 0.08);
  --shadow-hover: 0 18px 44px rgba(28, 89, 145, 0.14);
  --container-max: 1240px;
  --header-h: 88px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--ocean-deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   HEADER (savetheocean.world structure: Logo Left | Centered Nav | Teal CTA Right)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 20, 26, 0.07);
  transition: box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(13, 20, 26, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-dark);
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-teal) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(28, 89, 145, 0.22);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink-dark);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ocean-teal);
  margin-top: 2px;
}

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

.desktop-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-dark);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ocean-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--ocean-teal);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-teal);
  color: var(--white);
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: var(--ocean-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 110, 140, 0.28);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.burger {
  width: 20px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 990;
  background: var(--ocean-deep);
  color: var(--white);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-drawer nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 186px;
  height: 54px;
  padding: 0 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.btn-outline-pill:hover {
  background: var(--white);
  color: var(--ocean-deep);
  transform: translateY(-1px);
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: var(--ocean-teal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-pill:hover {
  background: var(--ocean-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(28, 110, 140, 0.25);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ocean-deep);
  background: transparent;
  color: var(--ocean-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-dark:hover {
  background: var(--ocean-deep);
  color: var(--white);
}

.text-link {
  color: var(--ocean-teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(28, 110, 140, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.text-link:hover {
  color: var(--ocean-deep);
  text-decoration-color: var(--ocean-deep);
}

/* --------------------------------------------------------------------------
   HERO SECTION (Exact savetheocean.world bottom-left anchored cinematic hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 790px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-dark);
}

.hero--subpage {
  min-height: clamp(320px, 44vh, 430px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 20, 26, 0.14) 0%, rgba(13, 20, 26, 0.26) 48%, rgba(13, 20, 26, 0.72) 100%),
    linear-gradient(90deg, rgba(13, 20, 26, 0.56) 0%, rgba(13, 20, 26, 0.16) 62%, rgba(13, 20, 26, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: clamp(52px, 8vh, 88px);
  color: var(--white);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
  max-width: 18ch;
  text-wrap: balance;
  color: var(--white);
}

.hero-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  margin: 0 0 32px 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid rgba(255, 255, 255, 0.45);
  padding-left: 18px;
}

.hero-badge-top {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}

.hero-badge-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.84);
}

/* --------------------------------------------------------------------------
   SECTIONS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(64px, 8vw, 108px) 0;
  background: var(--white);
}

.section--mist {
  background: var(--ocean-mist);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin: 0 0 20px 0;
}

.section-heading--center {
  text-align: center;
}

.section-intro {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0 auto 60px auto;
  text-align: center;
}

.body-large {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-primary);
  margin: 0 0 18px 0;
}

.body-muted {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 16px 0;
}

.sub-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-dark);
  margin: 0 0 12px 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-teal);
  margin-bottom: 10px;
}

.photo-caption {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   SECTION 2: OUR MISSION & OUR VISION (savetheocean.world 2-row 20px-radius grid)
   -------------------------------------------------------------------------- */
.mission-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.mission-block + .mission-block {
  margin-top: clamp(64px, 7vw, 96px);
}

.mission-block--reverse .mission-media {
  order: -1;
}

.rounded-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ocean-tint);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 10 / 7;
}

.rounded-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.rounded-photo:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   SECTION 3: ALTERNATING IMPACT & CONSERVATION SHOWCASE (savetheocean.world ai-UsY5DC)
   -------------------------------------------------------------------------- */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 84px);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.showcase-row--reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
}

.showcase-row--reverse .showcase-media {
  order: -1;
}

.showcase-frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--ocean-tint);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
}

.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.showcase-frame:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   SECTION 4: COMPACT SPOTLIGHT STRIP (savetheocean.world z4GKro horizontal rows)
   -------------------------------------------------------------------------- */
.spotlight-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}

.spotlight-row {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.spotlight-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.spotlight-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ocean-tint);
}

.spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   SECTION 5: FULL-WIDTH INTERACTIVE SLIDESHOW (savetheocean.world zOZJvD)
   -------------------------------------------------------------------------- */
.slideshow-section {
  position: relative;
  width: 100%;
  height: clamp(380px, 56vw, 600px);
  overflow: hidden;
  background: var(--ink-dark);
}

.slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.slide-item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 20, 26, 0.05) 45%, rgba(13, 20, 26, 0.68) 100%);
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 3;
  color: var(--white);
}

.slide-caption-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.slide-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 4px 0;
}

.slide-caption p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(13, 20, 26, 0.42);
  color: var(--white);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.slide-arrow:hover {
  background: var(--ocean-teal);
  border-color: var(--ocean-teal);
}

.slide-arrow--prev { left: 20px; }
.slide-arrow--next { right: 20px; }

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}

.slide-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.slide-dot.is-active {
  background: var(--white);
  transform: scale(1.22);
}

/* --------------------------------------------------------------------------
   STATS, PILLAR TABS, PUBLICATIONS & STAFF DIRECTORY (about.html)
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.stat-card {
  background: var(--ocean-mist);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 26px 22px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ocean-deep);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.pillar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px 0;
}

.pillar-tab,
.filter-pill {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: var(--white);
  color: var(--ink-dark);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pillar-tab:hover,
.filter-pill:hover {
  border-color: var(--ocean-teal);
  color: var(--ocean-teal);
}

.pillar-tab.is-active,
.filter-pill.is-active {
  background: var(--ocean-teal);
  border-color: var(--ocean-teal);
  color: var(--white);
}

.pillar-panel {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 44px);
}

.pillar-panel.is-active {
  display: grid;
}

.pillar-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--ink-dark);
}

.pillar-list {
  margin: 18px 0 0 0;
  padding-left: 20px;
  color: var(--ink-muted);
}

.pillar-list li {
  margin-bottom: 10px;
}

.pillar-list strong {
  color: var(--ink-dark);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.pub-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pub-card:hover {
  border-color: var(--ocean-teal);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.pub-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ocean-tint);
  color: var(--ocean-deep);
  margin-bottom: 8px;
}

.pub-tag--new {
  background: var(--ocean-teal);
  color: var(--white);
}

.pub-card h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink-dark);
}

.pub-action {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ocean-teal);
  white-space: nowrap;
}

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

.staff-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--ocean-mist);
  border: 1px solid var(--border-subtle);
}

.staff-card h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--ink-dark);
}

.staff-role {
  font-size: 0.88rem;
  color: var(--ocean-teal);
  font-weight: 500;
  margin-bottom: 12px;
}

.staff-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.staff-contact a:hover {
  color: var(--ocean-deep);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   INTERACTIVE MAP (map.html)
   -------------------------------------------------------------------------- */
.map-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 22px 0;
}

.map-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.legend-dot--purple { background: #7b2cbf; }
.legend-dot--turquoise { background: #00a8b5; }
.legend-dot--teal { background: #1c5991; }

.map-shell {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

#cnmi-reef-map {
  width: 100%;
  height: clamp(420px, 58vh, 580px);
  z-index: 1;
}

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

.site-pin-card {
  text-align: left;
  padding: 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-pin-card:hover,
.site-pin-card.is-selected {
  border-color: var(--ocean-teal);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.site-pin-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.site-pin-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-dark);
  margin: 0 0 6px 0;
}

.site-pin-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   IMAGERY GALLERY & LIGHTBOX (imagery.html)
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px 0;
}

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

.gallery-item {
  cursor: pointer;
  outline: none;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-thumb {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ocean-tint);
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(13, 20, 26, 0.06);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover .gallery-thumb img,
.gallery-item:focus-visible .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-dark);
}

.gallery-credit {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 20, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox-stage img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--white);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.lightbox-credit,
.lightbox-counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.74);
}

.lightbox-btn {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover { background: var(--ocean-teal); border-color: var(--ocean-teal); }
.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   ACTION CARDS & CONTACT (contact.html — mirrors savetheocean.world/take-action)
   -------------------------------------------------------------------------- */
.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ocean-teal);
}

.action-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-dark);
  margin: 0 0 10px 0;
}

.action-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 20px 0;
}

.action-arrow {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ocean-teal);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.contact-detail-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-detail-item h4 {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ocean-teal);
  margin: 0 0 6px 0;
}

.contact-detail-item p {
  margin: 0;
  color: var(--ink-primary);
}

.contact-form-card {
  background: var(--ocean-mist);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: clamp(26px, 4vw, 40px);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: var(--white);
  color: var(--ink-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean-teal);
  box-shadow: 0 0 0 3px rgba(28, 110, 140, 0.16);
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--ocean-teal);
  font-size: 0.92rem;
  color: var(--ink-dark);
}

.form-status.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   SIGNATURE DEEP OCEAN BLUE FOOTER (Exact savetheocean.world #1C5991 footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ocean-deep);
  color: var(--white);
  padding: clamp(56px, 7vw, 84px) 0 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-kicker {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 18px 0;
}

.footer-contact-line {
  margin: 0 0 8px 0;
  font-size: 0.98rem;
  color: var(--white);
}

.footer-contact-line a:hover {
  text-decoration: underline;
}

.footer-subscribe {
  margin-top: 22px;
  max-width: 340px;
}

.footer-subscribe label {
  display: block;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
}

.footer-subscribe input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: var(--white);
  color: var(--ink-dark);
  margin-bottom: 12px;
}

.footer-subscribe button {
  height: 46px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--ocean-teal);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-subscribe button:hover {
  background: var(--ocean-teal-hover);
  transform: translateY(-1px);
}

.footer-subscribe-msg {
  margin-top: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
  min-height: 1.2em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-agency-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px 0;
}

.footer-agency-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background: var(--ocean-teal);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .desktop-nav,
  .header-actions .btn-header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mission-block,
  .showcase-row,
  .showcase-row--reverse,
  .pillar-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .mission-block--reverse .mission-media,
  .showcase-row--reverse .showcase-media {
    order: 0;
  }

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

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

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

@media (max-width: 680px) {
  :root {
    --header-h: 74px;
  }

  .container {
    padding: 0 20px;
  }

  .brand-sub {
    display: none;
  }

  .spotlight-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stats-grid,
  .action-cards-grid,
  .pub-grid,
  .directory-grid,
  .map-sites-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    border-left: none;
    padding-left: 0;
  }

  .slide-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}
