/* ==========================================================================
   CNMI Coral Reef Initiative (CRI)
   Design System & Transitions — Faithfully Modeled on 50reefs.org
   Typography: Epilogue (Headings 500, -0.02em) + Poppins (Body 400 / UI 600)
   Palette: #FFFFFF | #F5F5F5 | #D9D9D9 | #797979 | #000000
   ========================================================================== */

:root {
  --font-heading: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --color-white: #ffffff;
  --color-light: #f5f5f5;
  --color-accent: #d9d9d9;
  --color-mid: #797979;
  --color-ink: #000000;
  --color-ink-soft: #1a1a1a;
  --color-muted: #555555;
  --color-border: rgba(0, 0, 0, 0.1);

  /* Map Accent Markers (50reefs.org Legend Language) */
  --marker-purple: #7b2cbf;
  --marker-turquoise: #00a8b5;
  --marker-teal: #0b7285;

  /* Exact 50reefs.org Fluid Engine Gutter & Sizing */
  --site-gutter: clamp(20px, 4vw, 60px);
  --max-width: 1440px;
  --btn-radius: 10px;
  --divider-height: clamp(54px, 8vw, 128px);

  /* Exact 50reefs.org Animation Curves */
  --ease-reveal: ease;
  --duration-reveal: 0.6s;
  --header-transition: background 0.3s ease-in-out, padding 0.14s ease-in-out, transform 0.24s ease-in-out, backdrop-filter 0.3s ease-in-out;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--color-ink);
  background-color: var(--color-white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

/* Skip to Content (exact 50reefs.org accessibility button) */
.skip-link {
  position: fixed;
  top: -120px;
  left: var(--site-gutter);
  z-index: 9999;
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

/* ==========================================================================
   EXACT 50REEFS.ORG SCROLL REVEAL TRANSITIONS (.preSlide / .preFade)
   ========================================================================== */
.preSlide {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  transition-property: transform, opacity;
  transition-duration: var(--duration-reveal);
  transition-timing-function: var(--ease-reveal);
  will-change: transform, opacity;
}

.preSlide.slideIn {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

.preFade {
  opacity: 0;
  transition-property: opacity;
  transition-duration: var(--duration-reveal);
  transition-timing-function: var(--ease-reveal);
  will-change: opacity;
}

.preFade.fadeIn {
  opacity: 1 !important;
}

body.no-js .preSlide,
body.no-js .preFade {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .preSlide,
  .preFade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   TYPOGRAPHY (Exact 50reefs.org Epilogue 500 + Poppins 400/600 Scale)
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 {
  font-size: clamp(2.5rem, 5.05vw, 4.46rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.75rem, 2.85vw, 2.54rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.38rem, 2.28vw, 2.06rem);
  line-height: 1.15;
}

h4 {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.25;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
}

p + p {
  margin-top: 1.15rem;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}

.text-link:hover {
  opacity: 0.68;
}

.photo-credit {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: right;
  margin-top: 0.65rem;
}

.photo-credit--left {
  text-align: left;
}

/* ==========================================================================
   BUTTONS (Exact 50reefs.org Rounded-10px Solid Buttons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 24px;
  border-radius: var(--btn-radius);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.12s linear, transform 0.18s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.82;
}

.btn:active {
  transform: scale(0.985);
}

.btn--light {
  background-color: var(--color-accent);
  color: var(--color-ink);
}

.btn--dark {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
  padding: 14px 22px;
}

.btn--outline:hover {
  background-color: var(--color-ink);
  color: var(--color-white);
  opacity: 1;
}

.btn--small {
  padding: 11px 18px;
  font-size: 0.9rem;
}

/* ==========================================================================
   HEADER / NAVIGATION (Exact 50reefs.org Transparent -> Scroll-Back Frosted)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 26px var(--site-gutter);
  background-color: transparent;
  transition: var(--header-transition);
}

.site-header.shrink {
  padding: 15px var(--site-gutter);
  background-color: rgba(8, 16, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header.header-hidden {
  transform: translate3d(0, -105%, 0);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-logo:hover {
  opacity: 0.88;
}

.site-logo img {
  height: clamp(50px, 5.4vw, 72px);
  width: auto;
  transition: height 0.2s ease;
}

.site-header.shrink .site-logo img {
  height: clamp(42px, 4vw, 52px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.5vw, 2.6rem);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2.2vw, 2.3rem);
  list-style: none;
}

.desktop-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
  text-decoration: none;
  padding: 3px 0;
  transition: opacity 0.2s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background-color: var(--color-white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.header-cta {
  padding: 14px 22px;
  font-weight: 500;
}

/* Mobile Hamburger Button */
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1050;
  align-items: center;
  justify-content: center;
}

.burger-lines {
  position: relative;
  width: 28px;
  height: 18px;
}

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

.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 8px; }
.burger-lines span:nth-child(3) { top: 16px; }

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

.menu-toggle[aria-expanded="true"] .burger-lines span:nth-child(2) {
  opacity: 0;
}

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

/* Full-Screen Mobile Overlay Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(5, 13, 21, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  padding: 6rem 2rem 3rem;
}

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

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.mobile-drawer nav a {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-drawer.is-open nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer.is-open nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-drawer.is-open nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-drawer.is-open nav a:nth-child(3) { transition-delay: 0.20s; }
.mobile-drawer.is-open nav a:nth-child(4) { transition-delay: 0.26s; }
.mobile-drawer.is-open nav a:nth-child(5) { transition-delay: 0.32s; }

.mobile-drawer .btn {
  margin-top: 1rem;
}

/* ==========================================================================
   FULL-BLEED HERO SECTIONS (Home + Subpages)
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(90vh, 790px);
  display: flex;
  align-items: flex-end;
  padding: 170px var(--site-gutter) clamp(64px, 9vh, 110px);
  overflow: hidden;
  background-color: #091a26;
  color: var(--color-white);
}

.hero--subpage {
  min-height: min(62vh, 520px);
  padding: 165px var(--site-gutter) clamp(52px, 7vh, 84px);
}

.hero-bg {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.06);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, rgba(121, 121, 121, 0.14) 38%, rgba(0, 0, 0, 0.44) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero-content h1 {
  max-width: 16ch;
  color: var(--color-white);
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

.hero--subpage .hero-content h1 {
  max-width: 22ch;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.65rem;
}

/* ==========================================================================
   CONTAINER & SECTION THEMES
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

.section {
  position: relative;
  background-color: var(--color-white);
  color: var(--color-ink);
}

.section--light {
  background-color: var(--color-light);
}

/* Section 2: Centered Mission Statement Band (#F5F5F5 — exact 50reefs.org) */
.mission-band {
  padding: clamp(56px, 6.5vw, 92px) 0;
  text-align: center;
}

.mission-band h2 {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--color-ink);
}

/* Sections 3, 4, 6: Editorial 50/50 Split Rows (exact 50reefs.org Fluid Grid proportions) */
.split-section {
  padding: clamp(58px, 6.8vw, 104px) 0;
}

.split-section + .split-section {
  padding-top: clamp(20px, 2.5vw, 38px);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.split-grid--reverse .split-media {
  order: -1;
}

.split-text h3 {
  color: var(--color-ink);
  margin-bottom: 1.45rem;
}

.split-text p {
  color: var(--color-ink-soft);
  margin-bottom: 1.6rem;
}

.split-text .btn {
  margin-top: 0.35rem;
}

.split-media-frame {
  position: relative;
  overflow: hidden;
  background-color: #e9ecef;
}

.split-media-frame img {
  width: 100%;
  aspect-ratio: 12 / 10.6;
  object-fit: cover;
  object-position: center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-media-frame--landscape img {
  aspect-ratio: 3 / 2;
}

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

/* Section 5: Full-Bleed Photographic Quote / Statement Banner */
.quote-banner {
  position: relative;
  min-height: clamp(380px, 50vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) var(--site-gutter);
  color: var(--color-white);
  background-color: #0b1e2d;
}

.quote-banner-bg {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}

.quote-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  will-change: transform;
}

.quote-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
}

.quote-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.35vw, 2.12rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.quote-banner cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.98rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   PRE-FOOTER CTA + SIGNATURE 50REEFS.ORG CURVED WAVE SECTION DIVIDER
   ========================================================================== */
.prefooter-cta {
  position: relative;
  background-color: var(--color-light);
  padding: clamp(64px, 7vw, 108px) 0 calc(clamp(56px, 6vw, 90px) + var(--divider-height));
  z-index: 2;
}

.prefooter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 2rem;
  align-items: center;
}

.prefooter-grid h2 {
  max-width: 24ch;
  color: var(--color-ink);
}

.wave-divider-wrap {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--divider-height) * -1);
  height: var(--divider-height);
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}

.wave-divider-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   FULL-BLEED UNDERWATER FOOTER (Exact 50reefs.org Footer Architecture)
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background-color: #071924;
  margin-top: calc(var(--divider-height) * -1);
  padding: calc(var(--divider-height) + clamp(42px, 5vw, 72px)) 0 clamp(44px, 5vw, 68px);
  z-index: 1;
}

.footer-bg {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
}

.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.06);
  will-change: transform;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.56) 100%);
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.footer-logo img {
  height: clamp(56px, 5.8vw, 76px);
  width: auto;
}

.footer-cta-btn {
  padding: 18px 34px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.18s ease;
  display: inline-block;
}

.footer-nav a:hover {
  opacity: 0.72;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-info p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 66ch;
}

.footer-info a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-info a:hover {
  opacity: 0.75;
}

.footer-bottom {
  margin-top: clamp(28px, 3.6vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

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

.social-link:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

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

.footer-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   ABOUT PAGE — EDITORIAL STORY, INTERACTIVE PILLARS, DIRECTORY & PUBLICATIONS
   ========================================================================== */
.editorial-section {
  padding: clamp(64px, 7.5vw, 112px) 0;
}

.editorial-narrow {
  max-width: 860px;
}

.editorial-narrow h2 {
  margin-bottom: 1.6rem;
}

.editorial-narrow p {
  font-size: 1.03rem;
  color: var(--color-ink-soft);
}

.editorial-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--color-border);
}

.stat-card {
  padding: 0.5rem 0;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 0.45rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.pillars-section {
  padding: clamp(60px, 7vw, 96px) 0;
}

.pillar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 2.4rem;
}

.pillar-tab {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pillar-tab:hover {
  border-color: var(--color-ink);
}

.pillar-tab.is-active {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}

.pillar-panel {
  display: none;
  animation: panelFade 0.4s ease forwards;
}

.pillar-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.pillar-list {
  margin-top: 1.25rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.pillar-list li {
  color: var(--color-ink-soft);
  font-size: 0.96rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
  margin-top: 2.2rem;
}

.staff-card {
  background: var(--color-light);
  padding: 1.65rem;
  border-radius: var(--btn-radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.staff-card h4 {
  margin-bottom: 0.3rem;
  color: var(--color-ink);
}

.staff-role {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.staff-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.staff-contact a {
  text-decoration: none;
  color: var(--color-ink);
  word-break: break-word;
}

.staff-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.35rem;
  margin-top: 2.2rem;
}

.pub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  padding: 1.65rem;
  text-decoration: none;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.pub-card:hover {
  border-color: var(--color-ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

.pub-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-light);
  color: var(--color-ink);
  margin-bottom: 0.7rem;
}

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

.pub-action {
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   MAP PAGE — INTERACTIVE CNMI REEF & PRESERVE EXPLORER
   ========================================================================== */
.map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.map-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.map-pill {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--btn-radius);
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.map-pill:hover {
  border-color: var(--color-ink);
}

.map-pill.is-active {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot--purple { background: var(--marker-purple); }
.legend-dot--turquoise { background: var(--marker-turquoise); }
.legend-dot--teal { background: var(--marker-teal); }

.map-shell {
  position: relative;
  width: 100%;
  height: clamp(440px, 64vh, 620px);
  border-radius: var(--btn-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #dcebf2;
}

#cnmi-reef-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
}

.site-pin-card {
  text-align: left;
  width: 100%;
  background: var(--color-light);
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius);
  padding: 1.35rem 1.45rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.site-pin-card:hover,
.site-pin-card.is-selected {
  border-color: var(--color-ink);
  background: var(--color-white);
  transform: translateY(-2px);
}

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

.site-pin-card h4 {
  margin-bottom: 0.4rem;
}

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

.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  font-family: var(--font-body) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  line-height: 1.55 !important;
}

/* ==========================================================================
   IMAGERY GALLERY + FULL-SCREEN LIGHTBOX
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.gallery-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

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

.gallery-thumb {
  position: relative;
  overflow: hidden;
  background: var(--color-light);
  aspect-ratio: 4 / 3;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.045);
}

.gallery-caption {
  margin-top: 0.75rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
}

.gallery-credit {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 16, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem var(--site-gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

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

.lightbox-stage {
  position: relative;
  max-width: 1120px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-stage {
  transform: scale(1);
}

.lightbox-stage img {
  max-height: 76vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1.15rem;
  color: var(--color-white);
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
}

.lightbox-credit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.2rem;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   CONTACT PAGE FORM & DETAILS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-detail-block {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.contact-detail-item h4 {
  font-size: 0.84rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.contact-form-card {
  background: var(--color-light);
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: var(--btn-radius);
}

.form-group {
  margin-bottom: 1.2rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 13px 15px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

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

.form-status {
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible {
  display: block;
  background: #e6f4ea;
  color: #134e27;
  border: 1px solid #b7dfc3;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .header-right {
    display: none;
  }

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

  .split-grid,
  .pillar-panel.is-active,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .split-grid--reverse .split-media {
    order: 0;
  }

  .prefooter-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 18px var(--site-gutter);
  }

  .hero {
    min-height: 78vh;
    padding-top: 130px;
    padding-bottom: 54px;
  }

  .hero--subpage {
    min-height: 48vh;
  }

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

  .editorial-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}

/* Editorial Text Wordmark (replaces image logo cleanly in header & footer) */
.site-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, font-size 0.2s ease;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
}

.site-wordmark:hover {
  opacity: 0.82;
}

.site-header.shrink .site-wordmark {
  font-size: clamp(0.98rem, 1.25vw, 1.15rem);
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-wordmark:hover {
  opacity: 0.82;
}
