@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;700&display=swap");

:root {
  --night: #0d1b26;      /* polar night — page ground, matches the dark basemaps */
  --deep: #152a38;       /* raised surfaces */
  --ice: #eef3f5;        /* text */
  --frost: #9db3bf;      /* secondary text */
  --line: rgba(238, 243, 245, 0.14);
  --signal: #5ac8fa;     /* lively sky / glacial blue: highlights */
  --signal-text: #8fdbff; /* lighter tint for small text */
  --site: #e9fbff;       /* sampling-site dots */
  --font: Futura, "Futura PT", "Jost", "Century Gothic", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { background: var(--night); color: var(--ice); }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.55; background: var(--night); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(13, 27, 38, 0.75), rgba(13, 27, 38, 0));
}
.wordmark { font-weight: 700; letter-spacing: 0.02em; font-size: 20px; text-decoration: none; }
.wordmark span { font-weight: 300; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.site-nav a { text-decoration: none; color: var(--frost); font-size: 15px; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ice); }
.site-nav a[aria-current="page"] { color: var(--ice); border-bottom-color: var(--signal); }

/* ---------- photo fallback (shown when a Drive photo can't load) ---------- */
.ph { background: radial-gradient(120% 90% at 30% 20%, #23475c 0%, #0d1b26 70%); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.broken img { display: none; }
.ph.broken::after { content: attr(data-empty); position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: var(--frost); }

/* ---------- homepage: horizontal panels ---------- */
.hz { position: relative; }
.hz-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hz-track { display: flex; height: 100%; will-change: transform; }
.panel { flex: 0 0 100vw; height: 100%; position: relative; display: grid; align-items: center; padding: 96px var(--gutter) 110px; border-right: 1px solid var(--line); }

.hero { padding: 0; border: 0; }
.hero .ph { position: absolute; inset: 0; }
.hero .ph.broken::after { display: none; }
.hero .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(13,27,38,0.85) 0%, rgba(13,27,38,0.1) 55%); }
.hero-text { position: relative; z-index: 2; align-self: end; padding: 0 var(--gutter) 120px; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(64px, 14vw, 230px); line-height: 0.82; letter-spacing: -0.02em; }
.hero h1 .thin { font-weight: 300; }
.hero p { margin: 22px 0 0; max-width: 34ch; font-size: clamp(18px, 1.8vw, 24px); color: var(--ice); }
.hint { position: absolute; right: var(--gutter); bottom: 124px; z-index: 2; color: var(--frost); font-size: 14px; }

.panel h2 { margin: 0 0 24px; font-weight: 700; font-size: clamp(44px, 7vw, 108px); line-height: 0.9; letter-spacing: -0.01em; }
.panel .lede { font-size: clamp(19px, 1.7vw, 24px); max-width: 38ch; margin: 0 0 18px; }
.panel p { max-width: 60ch; color: var(--frost); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.split .ph { aspect-ratio: 4 / 5; max-height: 68vh; border-radius: 2px; }
.todo { color: var(--signal-text); font-size: 14px; }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.person .ph { aspect-ratio: 3 / 4; border-radius: 2px; }
.person b { display: block; margin-top: 10px; font-weight: 500; }
.person span { color: var(--frost); font-size: 15px; }

.exp-strip { display: flex; gap: 14px; margin-top: 28px; overflow: hidden; }
.exp-chip { flex: 0 0 auto; text-decoration: none; border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; font-size: 15px; color: var(--frost); }
.exp-chip:hover { border-color: var(--ice); color: var(--ice); }
.big-link { display: inline-block; margin-top: 28px; font-size: 20px; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--signal); padding-bottom: 2px; }

.list-plain { list-style: none; padding: 0; margin: 20px 0 0; max-width: 70ch; }
.list-plain li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--frost); }
.list-plain li b { color: var(--ice); font-weight: 500; }

.partner-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; max-width: 900px; }
.partner-wall div { background: var(--night); padding: 34px 20px; font-size: clamp(18px, 1.8vw, 26px); font-weight: 500; text-align: center; }

/* bottom rail: panel names, doubles as progress */
.rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: flex-end; gap: 0; padding: 0 var(--gutter) 22px; }
.rail-line { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 58px; height: 1px; background: var(--line); }
.rail-fill { position: absolute; left: var(--gutter); bottom: 58px; height: 2px; background: var(--signal); width: 0; }
.rail button { flex: 1; background: none; border: 0; color: var(--frost); font: inherit; font-size: 14px; text-align: left; padding: 22px 0 0; cursor: pointer; }
.rail button[aria-current="true"] { color: var(--ice); }

/* phones: panels stack vertically */
@media (max-width: 760px) {
  .hz { height: auto !important; }
  .hz-stick { position: static; height: auto; overflow: visible; }
  .hz-track { display: block; transform: none !important; }
  .panel { height: auto; min-height: 100svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 100svh; }
  .rail, .hint { display: none; }
  .split { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a.opt { display: none; }
}

/* ---------- expeditions: polar map ---------- */
/* desktop: Arctic | Antarctic | region list. phone: list, then the two poles stacked */
.atlas {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "arc ant"; gap: clamp(16px, 2.5vw, 40px);
  height: 100vh; height: 100svh; min-height: 560px; padding: 88px var(--gutter) 28px;
}
.pole-wrap { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.pole-wrap.arctic { grid-area: arc; }
.pole-wrap.antarctic { grid-area: ant; }
.pole-label { font-size: clamp(28px, 3.4vw, 52px); font-weight: 700; line-height: 1; margin-bottom: 8px; text-align: center; }
.pole-map { position: relative; min-height: 0; }
.pole-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.land { fill: #3b5a6c; stroke: #8fa9b6; stroke-width: 0.6; }
.graticule { fill: none; stroke: rgba(157, 179, 191, 0.22); stroke-width: 0.6; }
.sphere { fill: rgba(14, 32, 45, 0.85); stroke: rgba(190, 210, 220, 0.55); stroke-width: 1.2; }
.region-dot { cursor: pointer; }
.region-dot circle.core { fill: var(--ice); }
.region-dot circle.halo { fill: none; stroke: var(--ice); stroke-opacity: 0.35; }
.region-dot text { fill: var(--ice); font-size: 13px; font-family: var(--font); paint-order: stroke; stroke: var(--night); stroke-width: 3px; }
.region-dot.on circle.core { fill: var(--signal); }
.region-dot.on circle.halo { stroke: var(--signal); stroke-opacity: 0.8; }
.region-dot.dim { opacity: 0.35; }

.toggles { grid-area: tog; align-self: center; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.tog-group { color: var(--frost); font-size: 14px; margin: 12px 0 2px; }
.tog-group:first-child { margin-top: 0; }
.toggles button { background: transparent; color: var(--frost); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.toggles button:hover { color: var(--ice); border-color: var(--frost); }
.toggles button[aria-pressed="true"] { color: var(--night); background: var(--ice); border-color: var(--ice); }
.toggles .clear { border-style: dashed; margin-top: 10px; }
.toggles [hidden] { display: none; }

@media (max-width: 760px) {
  .atlas { grid-template-columns: 1fr; grid-template-areas: "arc" "ant"; height: auto; min-height: 0; padding-top: 76px; }
  .pole-map { aspect-ratio: 1 / 1; }
  .toggles { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tog-group { width: 100%; margin: 6px 0 0; }
}
/* soft, navy-dimmed landscape photo behind the two polar maps */
.atlas { position: relative; isolation: isolate; overflow: hidden; }
.atlas::before {
  content: ""; position: absolute; inset: -12px; z-index: -2;
  background: url("https://static.wixstatic.com/media/d72b36_829eb26b9254476893f165a934f04adc~mv2.jpg") center / cover no-repeat;
  filter: saturate(1); opacity: 1;
}
.atlas::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--night) 0%, rgba(13, 27, 38, 0.78) 8%, rgba(13, 27, 38, 0.45) 18%, rgba(13, 27, 38, 0.18) 30%, rgba(13, 27, 38, 0.12) 50%, rgba(13, 27, 38, 0.18) 64%, rgba(13, 27, 38, 0.4) 76%, rgba(13, 27, 38, 0.68) 87%, rgba(13, 27, 38, 0.9) 95%, var(--night) 100%);
}

/* region list removed: regions are picked on the maps; a bar above the list shows the filter */
.atlas .toggles { display: none; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 28px var(--gutter) 0; font-size: 18px; scroll-margin-top: 80px; }
.filter-bar b { font-weight: 500; }
.filter-bar button { background: transparent; color: var(--ice); border: 1px dashed var(--frost); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.filter-bar button:hover { border-color: var(--ice); }
.filter-bar[hidden] { display: none; }

/* expedition rows */
.rows { padding: 40px 0 80px; }
.row { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; border-top: 1px solid var(--line); text-decoration: none; }
.row .ph { min-height: 50vh; }
.row .txt { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--gutter); }
.row.flip .ph { order: 2; }
.row h3 { margin: 0; font-size: clamp(40px, 5vw, 76px); font-weight: 700; line-height: 0.92; }
.row .sub { margin-top: 18px; color: var(--frost); font-size: 18px; }
.row .go { margin-top: 26px; font-weight: 500; border-bottom: 2px solid var(--signal); align-self: flex-start; }
.row[hidden] { display: none; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; min-height: 0; }
  .row.flip .ph { order: 0; }
}

/* ---------- expedition detail ---------- */
.exp-top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 40px); padding: 92px var(--gutter) 40px; align-items: start; }
.exp-head h1 { margin: 0; font-size: clamp(56px, 9vw, 140px); font-weight: 700; line-height: 0.86; letter-spacing: -0.02em; }
.exp-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 18px 0 22px; font-size: clamp(17px, 1.5vw, 21px); }
.exp-facts div span { display: block; color: var(--frost); font-size: 14px; }
.basemap { position: relative; aspect-ratio: 16 / 9; background: #0a1620; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.basemap > img.broken { display: none; }
.basemap > img, .basemap > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-dot { position: absolute; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--site); box-shadow: 0 0 0 3px rgba(233, 251, 255, 0.18), 0 0 12px rgba(233, 251, 255, 0.7); }
.route { pointer-events: none; }
.route polyline { fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-dasharray: 7 6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.9; }
.stop-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--ice); background: var(--night); cursor: default; }
.itin { list-style: none; padding: 0; margin: 0; max-width: 62ch; }
.itin li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ice); }
.itin li span { color: var(--frost); font-variant-numeric: tabular-nums; }
.map-note { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: var(--frost); background: rgba(13, 27, 38, 0.75); padding: 4px 10px; border-radius: 2px; }
.credit { font-size: 12px; color: var(--frost); margin-top: 8px; }

.gallery { position: sticky; top: 84px; height: calc(100vh - 110px); overflow-y: auto; display: grid; gap: 10px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--frost) transparent; padding-right: 4px; }
.gallery .ph { aspect-ratio: 4 / 3; border-radius: 2px; cursor: zoom-in; }
.gallery .ph.broken::after { content: attr(data-empty); }
.gallery .empty { border: 1px dashed var(--line); padding: 24px; color: var(--frost); font-size: 15px; }

.exp-body { padding: 40px var(--gutter) 100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); }
.exp-body h2 { margin: 0 0 14px; font-size: 32px; font-weight: 700; }
.exp-body p { color: var(--frost); max-width: 62ch; }
.exp-nav { display: flex; justify-content: space-between; gap: 20px; padding: 28px var(--gutter) 60px; border-top: 1px solid var(--line); }
.exp-nav a { text-decoration: none; color: var(--frost); }
.exp-nav a:hover { color: var(--ice); }
.exp-nav b { display: block; color: var(--ice); font-weight: 500; font-size: 20px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 12, 18, 0.94); display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 1px solid var(--line); color: var(--ice); font: inherit; padding: 6px 14px; border-radius: 999px; cursor: pointer; }

@media (max-width: 900px) {
  .exp-top { grid-template-columns: 1fr; }
  .gallery { position: static; height: auto; overflow: visible; grid-template-columns: repeat(2, 1fr); }
  .exp-body { grid-template-columns: 1fr; }
}

.foot { padding: 40px var(--gutter); color: var(--frost); font-size: 14px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
/* logo (white PNG, trimmed to the lettering with a crop box) */
.logo-crop { display: block; aspect-ratio: 2594 / 1204; overflow: hidden; }
.logo-crop img { display: block; width: 102.313%; max-width: none; margin: -2.853% 0 0 -2.236%; }
.wordmark { display: block; line-height: 0; }
.wordmark .logo-crop { width: 80px; }
.hero h1.hero-logo { line-height: 0; font-size: 0; }
.hero-logo .logo-crop { width: clamp(240px, 40vw, 680px); }

/* ---- 21 Oct: header "Support Us" button, bottom section links, mini globes, media tabs, partner groups, donate ---- */
.site-nav a.cta { color: var(--ice); border: 1px solid var(--signal); border-radius: 999px; padding: 7px 18px; font-weight: 500; }
.site-nav a.cta:hover { background: var(--signal); color: var(--night); }
.rail a { flex: 1; color: var(--frost); font-size: 14px; text-align: left; padding: 22px 0 0; text-decoration: none; }
.rail a:hover { color: var(--ice); }
.rail a[aria-current="true"] { color: var(--ice); }

.panel-atlas { align-items: stretch; }
.mini-wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; justify-items: center; gap: 18px; }
.atlas.atlas-mini { width: 100%; height: 100%; min-height: 0; padding: 0; }
.atlas.atlas-mini::before, .atlas.atlas-mini::after { content: none; }
.mini-wrap .big-link { margin-top: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.tabs button { background: transparent; color: var(--frost); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; }
.tabs button:hover { color: var(--ice); border-color: var(--frost); }
.tabs button[aria-selected="true"] { color: var(--night); background: var(--signal); border-color: var(--signal); }

.partner-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); max-width: 1100px; }
.partner-groups h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.partner-groups .partner-wall { grid-template-columns: 1fr; margin-top: 0; max-width: none; }
.partner-groups .partner-wall div { padding: 16px 18px; font-size: clamp(17px, 1.5vw, 21px); text-align: left; }
.partner-groups .partner-wall div.tbc { color: var(--frost); font-weight: 400; font-size: 16px; }

.give-btn { display: inline-block; margin-top: 18px; padding: 14px 26px; border-radius: 999px; background: var(--signal); color: var(--night); font-size: 19px; font-weight: 500; text-decoration: none; }
.give-btn:hover { background: var(--ice); }

@media (max-width: 760px) {
  .atlas.atlas-mini, .mini-wrap { height: auto; }
  .partner-groups { grid-template-columns: 1fr; }
}
/* bottom section names: first at the left edge, last at the right, equal gaps between */
.rail { justify-content: space-between; gap: 16px; }
.rail a { flex: 0 0 auto; white-space: nowrap; }

/* Media > Watch: small type tag before each item */
.list-plain .tag { display: inline-block; margin-right: 12px; padding: 2px 10px; border: 1px solid var(--signal); border-radius: 999px; color: var(--signal-text); font-size: 13px; vertical-align: 2px; }

/* ---- Publications list and Media lists (data in content.js) ---- */
#publications { align-items: stretch; }
.pub-wrap { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; max-width: 1100px; }
.pub-scroll, #media .tabpanel { overflow-y: auto; min-height: 0; padding-right: 14px; scrollbar-width: thin; scrollbar-color: var(--frost) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
#media .tabpanel { max-height: calc(100svh - 400px); max-width: 980px; padding-bottom: 24px; }
.pub-scroll { padding-bottom: 24px; }
.pubs, .mlist { list-style: none; margin: 0; padding: 0; }
.pubs li, .mlist li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.yr { color: var(--signal-text); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 2px; }
.pub-title { font-size: 18px; line-height: 1.35; color: var(--ice); }
.pub-title a, .mlist a { color: var(--ice); text-decoration: none; border-bottom: 1px solid var(--line); }
.pub-title a:hover, .mlist a:hover { border-bottom-color: var(--signal); }
.pub-meta { color: var(--frost); font-size: 14.5px; margin-top: 4px; line-height: 1.45; }
.pub-meta b { color: var(--ice); font-weight: 500; }
.mlist { font-size: 17px; line-height: 1.45; }
.mlist b { font-weight: 500; }
.mlist .m-title { color: var(--frost); }
.mlist .tag { display: inline-block; margin-right: 12px; padding: 2px 10px; border: 1px solid var(--signal); border-radius: 999px; color: var(--signal-text); font-size: 13px; vertical-align: 2px; }
@media (max-width: 760px) {
  .pub-wrap { height: auto; }
  .pub-scroll, #media .tabpanel { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pubs li, .mlist li { grid-template-columns: 1fr; gap: 4px; }
}
/* ---- 29 Oct: opening video/still, panel backgrounds, mission, team, partner logos, support photo ---- */
.kicker { margin: 0 0 18px; font-size: clamp(12px, 1vw, 15px); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--signal-text); }
.hero .kicker { margin: 0 0 26px; color: var(--ice); max-width: none; font-size: clamp(12px, 1.05vw, 16px); }
.hero .kicker span { color: var(--signal); }
.hero p:not(.kicker) { max-width: 46ch; }
.hero-media { position: absolute; inset: 0; background: var(--night) center / cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,38,0.92) 0%, rgba(13,27,38,0.55) 38%, rgba(13,27,38,0.2) 70%, rgba(13,27,38,0.35) 100%); }

.panel.has-bg { isolation: isolate; overflow: hidden; }
.panel.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; }
.panel.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,27,38,0.94) 0%, rgba(13,27,38,0.84) 42%, rgba(13,27,38,0.6) 100%),
              linear-gradient(to top, rgba(13,27,38,0.85) 0%, rgba(13,27,38,0) 30%); }
.panel.bg-heavy::after { background: rgba(13,27,38,0.9); }
.panel.bg-support::before { background-position: 25% center; }
.panel.bg-support::after { background: linear-gradient(270deg, rgba(13,27,38,0.95) 0%, rgba(13,27,38,0.85) 34%, rgba(13,27,38,0.3) 62%, rgba(13,27,38,0.08) 100%),
                                       linear-gradient(to top, rgba(13,27,38,0.85) 0%, rgba(13,27,38,0) 30%); }
.panel.bg-support > div { justify-self: end; max-width: 620px; }
.panel.has-bg p { color: #c3d3db; }
.panel.has-bg .kicker { color: var(--signal-text); }

.mission { max-width: 1100px; }
.mission h2.statement { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.06; font-weight: 500; letter-spacing: -0.005em; max-width: 24ch; margin: 0 0 30px; }
.mission .lede { max-width: 52ch; }

.team { max-width: 1240px; }
.team h2 { margin-bottom: 14px; }
.team > .lede { max-width: 70ch; font-size: clamp(16px, 1.3vw, 19px); margin-bottom: 26px; }
.leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.lead { display: grid; grid-template-columns: clamp(84px, 8vw, 128px) minmax(0, 1fr); gap: 20px; align-items: start; }
.portrait { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid rgba(238,243,245,0.25); }
.lead h3 { margin: 0; font-size: clamp(21px, 1.8vw, 27px); font-weight: 700; }
.lead .role { margin: 2px 0 10px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal-text) !important; }
.lead p:not(.role) { margin: 0; font-size: 15px; line-height: 1.5; }
.students { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.students .kicker { margin-bottom: 8px; }
.students ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 48px; font-size: 17px; color: #c3d3db; }
.students b { color: var(--ice); font-weight: 500; margin-right: 8px; }

.partners { width: 100%; max-width: 1280px; }
.logo-grid { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px); align-items: center; }
.logo-grid li { display: flex; align-items: center; justify-content: center; height: clamp(54px, 6vw, 86px); }
.logo-grid img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0.92; }

@media (max-width: 1000px) {
  .leads { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel.bg-support::after { background: rgba(13,27,38,0.78); }
  .panel.bg-support > div { justify-self: start; }
}
@media (max-width: 760px) { .hero .kicker span { display: block; height: 0; overflow: hidden; } }

/* ---- 31 Oct: matching section titles at one height, lighter backgrounds, hero order, mission lines ---- */
.sec-title, .panel h2.sec-title { margin: 0 0 22px; font-size: clamp(18px, 1.9vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--signal-text); }
.panel.top-aligned { align-items: start; padding-top: clamp(104px, 15vh, 150px); }
.panel.top-aligned > div { width: 100%; }
#publications.top-aligned .pub-wrap { height: 100%; }
#media .tabpanel { max-height: calc(100svh - 330px); }

.hero .hero-logo { margin-bottom: 22px; }
.hero .kicker { font-size: clamp(13px, 1.25vw, 19px); margin: 0 0 16px; }
.hero p.hero-desc { margin: 0; max-width: 58ch; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; color: #c3d3db; }

.mission .statement { margin: 0 0 26px; font-size: clamp(26px, 3.3vw, 52px); line-height: 1.14; font-weight: 400; color: var(--ice); max-width: none; }
.mission .statement span, .mission .statement b { display: block; }
@media (min-width: 1001px) { .mission .statement span, .mission .statement b { white-space: nowrap; } .mission .statement { font-size: clamp(26px, 2.9vw, 52px); } }
.mission .statement b { font-weight: 700; }
.mission .lede, .team > .lede { max-width: 1120px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; }

/* lighter photo washes on Mission, Team, Partners and behind the expedition globes */
.panel.has-bg::after {
  background: linear-gradient(90deg, rgba(13,27,38,0.78) 0%, rgba(13,27,38,0.6) 45%, rgba(13,27,38,0.38) 100%),
              linear-gradient(to top, rgba(13,27,38,0.8) 0%, rgba(13,27,38,0) 28%),
              linear-gradient(to bottom, rgba(13,27,38,0.55) 0%, rgba(13,27,38,0) 18%); }
.panel.bg-heavy::after { background: rgba(13,27,38,0.9); }
.panel.bg-atlas::after { background: linear-gradient(to bottom, rgba(13,27,38,0.6) 0%, rgba(13,27,38,0.25) 25%, rgba(13,27,38,0.25) 70%, rgba(13,27,38,0.8) 100%); }

/* support photo: person nearer the left edge, text on the right */
.panel.bg-support::before { left: -22%; background-position: left center; }
.panel.bg-support::after { background: linear-gradient(270deg, rgba(13,27,38,0.92) 0%, rgba(13,27,38,0.8) 36%, rgba(13,27,38,0.2) 62%, rgba(13,27,38,0) 100%),
                                       linear-gradient(to top, rgba(13,27,38,0.8) 0%, rgba(13,27,38,0) 28%); }
@media (max-width: 760px) {
  .mission .statement span, .mission .statement b { display: inline; }
  .panel.top-aligned { padding-top: 96px; }
  .panel.bg-support::before { left: 0; background-position: 30% center; }
  .panel.bg-support::after { background: rgba(13,27,38,0.78); }
}
.panel.has-bg .mission p.statement { color: var(--ice); }

/* ---- 31 Oct (2): bigger bolder titles, centred mission, tidy media tabs, support layout ---- */
.sec-title, .panel h2.sec-title { font-size: clamp(30px, 4vw, 62px); font-weight: 700; letter-spacing: 0.14em; line-height: 1.05; margin: 0 0 26px; }
.sec-link, .mini-wrap .big-link.sec-link { font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal-text); border-bottom: 2px solid var(--signal); padding-bottom: 6px; text-decoration: none; }
.sec-link:hover { color: var(--ice); }

.hero p.hero-desc { max-width: 82ch; }

.panel.centred { align-items: center; justify-items: center; text-align: center; }
.panel.centred .mission { max-width: none; }
.mission .lede { margin: 0 auto; max-width: none; }
@media (max-width: 1000px) { .mission .lede br.brk { display: none; } }

#publications.bg-heavy::after { background: rgba(13,27,38,0.76); }

/* Media tabs: plain letter-spaced words, active one underlined, like "Full expedition map" */
.tabs { gap: 6px clamp(18px, 2.4vw, 36px); margin: 0 0 14px; }
.tabs button { border: 0; border-radius: 0; background: none; padding: 6px 0; font-size: clamp(13px, 1.1vw, 16px); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--frost); border-bottom: 2px solid transparent; }
.tabs button:hover { color: var(--ice); border-color: transparent; }
.tabs button[aria-selected="true"] { background: none; color: var(--signal-text); border-color: var(--signal); }
.mlist .tag { border: 0; border-radius: 0; padding: 0; margin-right: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal-text); vertical-align: 1px; }

/* Support: "SUPPORT" heading, Polar BLAST logo, then the text */
.support-logo { margin: -6px 0 26px; }
.support-logo .logo-crop { width: clamp(220px, 26vw, 420px); }
.panel.bg-support::before { left: -9%; }
.panel.bg-support > div { max-width: 540px; }
/* ---- 31 Oct (3): hero lines, Support Us link, expeditions page photo, team intro, partners title level ---- */
.hero p.hero-desc { max-width: none; }
@media (max-width: 900px) { .hero p.hero-desc br.brk { display: none; } }
.site-nav a.cta, .site-nav a.cta:hover { border: 0; border-radius: 0; background: none; padding: 4px 0; color: var(--signal-text); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 14px; border-bottom: 2px solid var(--signal); }
.site-nav a.cta:hover { color: var(--ice); }
.atlas:not(.atlas-mini)::before { background-image: url("https://static.wixstatic.com/media/d72b36_853eed0b662a4f5fb0d278b832816bb9~mv2.jpg/v1/fit/w_3000,h_3000,q_90,enc_auto/bg.jpg"); }
.team > .lede { max-width: 1240px; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.5; color: #dbe6eb !important; }
#partners .partners { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
#partners .logo-grid { align-self: center; margin-top: 0; }
@media (max-width: 760px) { #partners .partners { height: auto; } #partners .logo-grid { margin-top: 24px; } }

/* ---- 31 Oct (4): quiet in-text links (bold + underline on hover) ---- */
a.txt-link { color: inherit; text-decoration: none; }
a.txt-link:hover, a.txt-link:focus-visible { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ice); }

/* ---- 31 Oct (5): media photo shows through like publications ---- */
#media.bg-heavy::after { background: rgba(13,27,38,0.64); }

/* ---- 31 Oct (6): softer, longer fade on the Support photo ---- */
.panel.bg-support::after { background: linear-gradient(270deg, rgba(13,27,38,0.84) 0%, rgba(13,27,38,0.72) 28%, rgba(13,27,38,0.48) 48%, rgba(13,27,38,0.24) 66%, rgba(13,27,38,0.08) 82%, rgba(13,27,38,0) 96%), linear-gradient(to top, rgba(13,27,38,0.7) 0%, rgba(13,27,38,0) 26%); }
@media (max-width: 760px) { .panel.bg-support::after { background: rgba(13,27,38,0.74); } }

/* ---- 31 Oct (7): Support Us link grey like the unselected Media tabs; blue + bar on hover/click ---- */
.site-nav a.cta { color: var(--frost); border-bottom-color: transparent; }
.site-nav a.cta:hover, .site-nav a.cta:focus-visible, .site-nav a.cta:active { color: var(--signal-text); border-bottom-color: var(--signal); }

/* ---- 31 Oct (8): sampling sites as navy points with a white ring; extra basemap under the main one ---- */
.site-dot { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 2px solid var(--ice); background: var(--night); box-shadow: 0 0 0 1px rgba(13,27,38,0.6); cursor: default; }
.basemap-extra { margin-top: 14px; }

/* ---- 31 Oct (9): highlight photos shown in full below the map at every screen size; larger sampling points ---- */
.exp-top { grid-template-columns: minmax(0, 1fr); }
.exp-head .basemap, .gallery { max-width: 1500px; }
.gallery { position: static; height: auto; overflow: visible; padding-right: 0; display: block; columns: 3; column-gap: 12px; margin-top: 10px; }
.gallery .ph { aspect-ratio: auto; break-inside: avoid; margin: 0 0 12px; background: none; }
.gallery .ph img { height: auto; object-fit: contain; display: block; }
.gallery .ph.broken { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 30% 20%, #23475c 0%, #0d1b26 70%); }
@media (max-width: 1000px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }
.site-dot { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border-width: 3px; }

/* ---- 31 Oct (10): highlight photos as an even grid, every tile the same landscape shape ---- */
.gallery { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery .ph, .gallery .ph.broken { aspect-ratio: 3 / 2; margin: 0; }
.gallery .ph img { height: 100%; object-fit: cover; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
/* ---- 31 Oct (11): expedition pages: team, methods and outcomes under the map ---- */
.exp-body[hidden], .exp-block[hidden] { display: none; }
.exp-body h2.exp-h { margin: 0 0 14px; font-size: clamp(15px, 1.2vw, 18px); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); }
.exp-body p { color: var(--frost); max-width: 68ch; line-height: 1.6; }
.exp-outcomes { grid-column: 1 / -1; }
.exp-outcomes .mlist { max-width: 1100px; }
/* ---- 31 Oct (12): expedition team, methods and outcomes stacked at every width ---- */
.exp-body { grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 56px); }
/* ---- 1 Nov: postgraduate students listed with year, degree and thesis title ---- */
.students-year { margin: 0 0 10px; color: var(--signal-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.students ul.student-list { display: grid; gap: 16px; max-width: 72ch; }
.student-list .thesis { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #c3d3db; }

/* ---- 1 Nov (2): landing video fades in over the dark panel (no still first); thesis titles full width ---- */
.hero-media video { opacity: 0; transition: opacity 0.8s ease; }
.hero-media video.ready { opacity: 1; }
.students ul.student-list { max-width: none; }

/* ---- 1 Nov (3): Media lists scroll inside their own box on phones and narrow windows ---- */
.scroll-hint { display: none; }
@media (max-width: 760px) {
  #media .tabpanel { max-height: min(56svh, 520px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 12px; scrollbar-width: thin; scrollbar-color: var(--frost) transparent; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
  #media .tabpanel.at-end { -webkit-mask-image: none; mask-image: none; }
  #media .tabpanel::-webkit-scrollbar { width: 4px; }
  #media .tabpanel::-webkit-scrollbar-thumb { background: var(--frost); border-radius: 4px; }
  .scroll-hint { display: block; visibility: hidden; margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal-text); }
  .scroll-hint::after { content: " \2193"; }
  .scroll-hint.show { visibility: visible; }
}
/* ---- 3 Nov: thesis titles use the full width of the team section ---- */
.student-list .thesis { max-width: none; }

/* ---- 3 Nov (2): expedition page text (methods, notes, team) uses the full page width ---- */
.exp-body p { max-width: none; }

/* ---- 3 Nov (3): partner logos spread evenly across the full page width ---- */
#partners .partners { max-width: none; }
