/* SCORI | Sea of Cortez Oceanographic Research Institute
   Brand palette from the Website Master Framework */
:root {
  --navy: #08283F;
  --navy-deep: #051B2B;
  --marine: #176D87;
  --turquoise: #48B5B6;
  --mangrove: #386B50;
  --sand: #EAE4D8;
  --sand-light: #F5F2EC;
  --white: #FFFFFF;
  --ink: #0E2233;
  --ink-soft: #4A5B68;
  --line: rgba(8, 40, 63, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--marine); text-decoration: none; }
a:hover { color: var(--navy); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 0.95rem; font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marine);
  margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }
.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--turquoise);
  padding: 0.2rem 0 0.2rem 1rem;
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--turquoise); color: var(--navy); }
.btn-primary:hover { background: var(--white); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--marine); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--marine);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.solid,
body.page-light .site-header {
  background: rgba(8, 40, 63, 0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1480px;
  padding: 0 clamp(16px, 2vw, 28px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-brand .brand-sub { white-space: normal; max-width: 22ch; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.12em; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.site-header .brand-sub { display: none; }
@media (max-width: 1080px) and (min-width: 560px) { .site-header .brand-sub { display: block; } }
@media (min-width: 1320px) { .site-header .brand-sub { display: block; } }

/* Main navigation: top level links, and groups (About SCORI, What We Do) that open a dropdown */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-parent {
  color: rgba(255,255,255,.82);
  font-family: var(--sans); font-size: 0.84rem; font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  position: relative;
}
.nav-parent { background: none; border: 0; cursor: pointer; line-height: inherit; }
.main-nav a:hover, .main-nav a[aria-current="page"],
.nav-parent:hover, .nav-group.open .nav-parent, .nav-group.is-active .nav-parent { color: var(--white); }
.main-nav > a[aria-current="page"]::after,
.nav-group.is-active .nav-parent::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 1px; background: var(--turquoise);
}
.nav-group { position: relative; }
.nav-group::after { /* bridge between the tab and its dropdown, so hover is not lost */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
}
.nav-sub {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 60;
  min-width: 250px; padding: 8px 0;
  background: var(--navy); border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: 0 22px 44px -20px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
@media (hover: hover) { .nav-group:hover .nav-sub { opacity: 1; visibility: visible; transform: none; } }
.nav-group.open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .nav-sub a { display: block; padding: 11px 20px; border-radius: 0; font-size: 0.86rem; }
.main-nav .nav-sub a:hover { background: rgba(255,255,255,.06); }
.main-nav .nav-sub a[aria-current="page"] { color: var(--turquoise); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang {
  display: flex; border: 1px solid var(--line-light); border-radius: 999px; overflow: hidden;
}
.lang a {
  color: rgba(255,255,255,.7);
  font: 600 0.7rem/1 var(--sans); letter-spacing: 0.08em;
  padding: 7px 10px;
}
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"] { background: var(--turquoise); color: var(--navy); }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line-light); border-radius: 999px; color: var(--white); cursor: pointer;
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 14px;
}

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  body.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--navy); }
  .main-nav a, .main-nav .nav-sub a {
    font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
    padding: 12px 0; border-bottom: 1px solid var(--line-light);
    border-radius: 0; white-space: normal;
  }
  .main-nav .nav-sub a:hover { background: none; }
  .main-nav > a[aria-current="page"]::after, .nav-group.is-active .nav-parent::after, .nav-group::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--turquoise); }
  /* In the menu panel each group is a labelled section with its pages listed below */
  .nav-parent {
    display: block; width: 100%; text-align: left; cursor: default; pointer-events: none;
    padding: 26px 0 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--turquoise);
  }
  .nav-group.is-active .nav-parent { color: var(--turquoise); }
  .nav-sub {
    position: static; min-width: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,27,43,.35) 0%, rgba(5,27,43,0) 35%, rgba(5,27,43,.75) 100%);
}
.hero .wrap { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 10vh, 110px); }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 1.5rem; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 40rem; margin-bottom: 2.4rem; }
.hero .eyebrow { color: var(--turquoise); }
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 8px 40px;
  margin-top: clamp(48px, 8vh, 80px); padding-top: 22px;
  border-top: 1px solid var(--line-light);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}


/* Page hero (interior pages) */
.page-hero {
  position: relative;
  color: var(--white);
  background: var(--navy);
  padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.78); max-width: 44rem; }
.page-hero .eyebrow { color: var(--turquoise); }
.page-hero.foundation { background: #1F3F30; }
.page-hero.foundation .eyebrow { color: #9CCBAE; }
.crumbs { font-size: 0.78rem; color: rgba(255,255,255,.6); margin-bottom: 1.5rem; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; isolation: isolate; }
.section.tight { padding: clamp(48px, 7vw, 80px) 0; }
.section.sand { background: var(--sand); }
.section.sand-light { background: var(--sand-light); }
.section.dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .eyebrow { color: var(--turquoise); }
.section.dark .lead, .section.dark .muted { color: rgba(255,255,255,.7); }
.section.green { background: var(--mangrove); color: rgba(255,255,255,.85); }
.section.green h2, .section.green h3 { color: var(--white); }
.section.green .eyebrow { color: #BFE0CB; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.split.center { align-items: center; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.card { color: inherit; }
a.card:hover { border-color: var(--marine); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(8,40,63,.35); }
.card .num {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--turquoise);
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .link-arrow { margin-top: auto; }
.card.dark { background: rgba(255,255,255,.04); border-color: var(--line-light); }
.card.dark p { color: rgba(255,255,255,.7); }

/* Pillars: Science / Conservation */
.duo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.duo > div { padding: clamp(28px, 4vw, 48px); }
.duo > div:first-child { background: var(--navy); color: rgba(255,255,255,.8); }
.duo > div:last-child { background: var(--mangrove); color: rgba(255,255,255,.85); }
.duo h3 { color: var(--white); font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.duo .tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: .7; display: block; margin-bottom: .6rem; }
.duo ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.duo li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 0.95rem; }
.duo-outcome {
  grid-column: 1 / -1; background: var(--sand) !important; color: var(--ink) !important;
  text-align: center; padding: 22px !important;
}
.duo-outcome strong { color: var(--navy); }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.stat:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-value {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--navy);
  font-variant-numeric: lining-nums;
}
.stat-unit { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--marine); margin-left: 6px; }
.stat-label { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.section.dark .stats, .section.dark .stat { border-color: var(--line-light); }
.section.dark .stat-value { color: var(--white); }
.section.dark .stat-unit { color: var(--turquoise); }
.section.dark .stat-label { color: rgba(255,255,255,.65); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:not(:nth-child(3n+1)) { padding: 26px 18px 26px 0; border-left: 0; }
  .stat:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
  .section.dark .stat:nth-child(2n) { border-color: var(--line-light); }
}
@media (max-width: 440px) {
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(2n) { padding-left: 0; border-left: 0; }
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(72,181,182,.14); color: var(--marine);
}
.section.dark .status-pill { color: var(--turquoise); }

/* ---------- Programme list (research) ---------- */
.programme {
  display: grid; grid-template-columns: 140px 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.programme:last-child { border-bottom: 1px solid var(--line); }
.programme .p-num { font-family: var(--serif); font-size: 4rem; line-height: .9; color: var(--turquoise); }
.programme .p-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.programme h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .3em; }
.programme .tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--marine); margin-bottom: 1rem; }
.programme h4 { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: 0.85rem; padding: 6px 12px; border-radius: 999px;
  background: var(--sand-light); border: 1px solid var(--line); color: var(--ink);
}
@media (max-width: 960px) { .programme { grid-template-columns: 1fr; gap: 16px; } }

.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-nav a {
  font-size: 0.82rem; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-light); color: rgba(255,255,255,.85);
}
.jump-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }

/* ---------- Steps / flow ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  position: relative; padding: 24px 0 24px 72px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--turquoise);
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.section.green .steps li, .section.dark .steps li { border-color: rgba(255,255,255,.18); }
.section.green .steps p, .section.dark .steps p { color: rgba(255,255,255,.72); }
.section.green .steps li::before { color: #BFE0CB; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: flow; }
.flow > div { position: relative; padding: 28px 22px 28px 0; border-top: 2px solid var(--mangrove); }
.flow > div::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--mangrove); margin-bottom: 10px;
}
.flow > div::after {
  content: ""; position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; border-radius: 50%; background: var(--mangrove); border: 3px solid var(--sand-light);
}
.flow h3 { font-size: 1rem; }
.flow p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow > div { border-top: 0; border-left: 2px solid var(--mangrove); padding: 0 0 28px 28px; }
  .flow > div::after { top: 6px; left: -7px; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.data-table td:first-child { font-weight: 600; color: var(--navy); width: 34%; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.values > div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.values h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 4px; }
.values p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Quote / statement ---------- */
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.25;
  color: var(--navy); max-width: 30ch;
}
.section.dark .statement, .section.green .statement { color: var(--white); }
.motto {
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--marine); font-weight: 600;
}

/* ---------- Visual panels ---------- */

/* Programme feature (foundation) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature.reverse > :first-child { order: 2; }
.feature .p-letter { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mangrove); margin-bottom: .6rem; display: block; }
.feature h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.feature .tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--mangrove); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.reverse > :first-child { order: 0; } }

.target-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.6rem 0 0; }
.target-list > div { background: var(--white); padding: 18px; }
.target-list strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--navy); line-height: 1.1; }
.target-list span { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 480px) { .target-list { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.country { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.country:last-child { border-bottom: 1px solid var(--line); }
.country h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.country ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.country li { padding: 14px 16px; background: var(--sand-light); border-radius: var(--radius); font-size: 0.93rem; }
@media (max-width: 720px) { .country { grid-template-columns: 1fr; } }

/* ---------- Facilities ---------- */
.facility { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.facility h3 { margin-bottom: 2px; font-size: 1.02rem; }
.facility p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- News ---------- */
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16/10; background: var(--navy); }
.news-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--marine); font-weight: 600; margin-bottom: 10px; }
.news-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.news-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Report feature ---------- */
.report {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.report-cover {
  aspect-ratio: 3/4; border-radius: 2px; background: var(--navy); color: var(--white);
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 24px 24px 0 -8px var(--turquoise);
  position: relative; overflow: hidden;
}
.report-cover > * { position: relative; }
.report-cover .r-top { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--turquoise); }
.report-cover .r-title { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; }
.report-cover .r-foot { font-size: 0.72rem; opacity: .7; }
@media (max-width: 760px) { .report { grid-template-columns: 1fr; } .report-cover { max-width: 280px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 12px 14px; border: 1px solid rgba(8,40,63,.22); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--marine); box-shadow: 0 0 0 3px rgba(72,181,182,.25); }
.form-status { font-size: 0.9rem; color: var(--mangrove); font-weight: 600; min-height: 1.4em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 80px 0 32px; font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-top h4 { color: var(--white); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top a { color: rgba(255,255,255,.7); }
.footer-top a:hover { color: var(--white); }
.footer-brand p { margin-top: 18px; max-width: 30ch; }
.footer-brand .motto { color: var(--turquoise); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 0.8rem; color: rgba(255,255,255,.5); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.in { opacity: 1; transform: none; }
}


/* ---------- Photography (Wikimedia Commons, see photos.py) ---------- */
.photo-fig { margin: 0; }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; }
.photo-fig.tall .photo-frame { aspect-ratio: 4 / 5; }
.photo-fig.wide .photo-frame { aspect-ratio: 16 / 9; }
.photo-fig.portrait .photo-frame { aspect-ratio: 3 / 4; }
.photo-frame img, .photo-fill img { width: 100%; height: 100%; object-fit: cover; }
.photo-fill { position: relative; width: 100%; height: 100%; }
.photo-credit {
  position: absolute; right: 0; bottom: 0; max-width: 100%;
  padding: 4px 8px; font-size: 0.64rem; line-height: 1.35;
  color: rgba(255,255,255,.9); background: rgba(5,27,43,.62);
  border-top-left-radius: var(--radius);
}
.photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.photo-credit a:hover { color: var(--white); }
.photo-fig figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--ink-soft); }
.section.dark .photo-fig figcaption { color: rgba(255,255,255,.6); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
@media (max-width: 480px) { .photo-pair { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 2rem; }

/* Photo-backed heroes */
.hero-credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 0.64rem; color: rgba(255,255,255,.7); }
.hero-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.hero.has-photo::after { background: linear-gradient(180deg, rgba(5,27,43,.55) 0%, rgba(5,27,43,.2) 35%, rgba(5,27,43,.85) 100%); }
.page-hero.has-photo { background-size: cover; background-position: center; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,46,34,.92) 0%, rgba(20,46,34,.7) 55%, rgba(20,46,34,.35) 100%); }
.page-hero.has-photo.navy-tint::before { background: linear-gradient(90deg, rgba(8,40,63,.92) 0%, rgba(8,40,63,.7) 55%, rgba(8,40,63,.3) 100%); }
.hero.has-photo .hero-bg .photo { background-position: center 78%; }

/* ---------- Photo cards and photo backed sections ---------- */
.card.has-media { overflow: hidden; }
.card-media {
  margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) 1.4rem;
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy);
}
.card-media img { transition: transform .5s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.section.has-photo { background-size: cover; background-position: center; }
.section.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,40,63,.86); }
.section.has-photo.green::before { background: rgba(31,63,48,.88); }
