/* ================================================================== tokens
   Five brand colours (Revision 6). Every colour on the page comes from here.
   Teal is a fill only: no text sits on it (neither ink nor white reaches AA on it).
   The three -text tokens are text-only shades of the brand greens, needed to reach AA:
   --green itself is 3.0:1 on paper and 3.6:1 on deep, too low for small text. */
:root {
  --ink:   #1F3A41;   /* words */
  --deep:  #074047;   /* nav, footer, two bands, dark cards */
  --teal:  #1C8585;   /* area fill behind cards */
  --green: #1DA27E;   /* the bright moment: CTAs, stat band, Just come */
  --paper: #F2F7F6;   /* the page */

  --mist:         #E1EDEA;  /* quiet card ground on paper */
  --ink-soft:     #44606A;  /* secondary text on paper (6.2:1) */
  --paper-soft:   #C7DCD9;  /* secondary text on deep (8.0:1) */
  --green-text:   #12775B;  /* green words on paper (5.1:1) */
  --green-on-deep:#4FD6AE;  /* green words on deep (6.3:1) */
  --green-display:#6FE3BF;  /* the green half of the hero headline, AA over the video */
  --on-green:     #0F2A30;  /* words on green fills (4.7:1) */
  --line:         rgba(31, 58, 65, .16);
  --line-on-deep: rgba(242, 247, 246, .2);
  --error-on-deep:#FFB4A6;

  /* type scale: the only sizes used anywhere */
  --t-display: clamp(2.75rem, 7.4vw, 6.25rem);
  --t-h1:      clamp(2.25rem, 5.2vw, 4rem);
  --t-h2:      clamp(1.75rem, 3.4vw, 2.625rem);
  --t-h3:      clamp(1.25rem, 1.9vw, 1.5rem);
  --t-body-lg: clamp(1.125rem, 1.5vw, 1.3125rem);
  --t-body:    1rem;
  --t-small:   .9375rem;
  --t-caption: .875rem;

  /* spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
  --section: clamp(64px, 9vw, 112px);
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;
  --radius: 18px;
  --bar-h: 64px;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
}

/* ================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: var(--on-green); padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: var(--bar-h); }

.section { padding-block: var(--section); }
.eyebrow { font: 600 var(--t-caption)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-text); }
.on-deep .eyebrow { color: var(--green-on-deep); }
.h1 { font-size: var(--t-h1); line-height: .98; letter-spacing: -.025em; }
.h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -.015em; }
.lede { font-size: var(--t-body-lg); line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.on-deep .lede { color: var(--paper-soft); }
.head { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.on-deep { background: var(--deep); color: var(--paper); }

/* ================================================================== buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 var(--t-body)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, transform .18s ease-out;
}
.btn-lg { min-height: 60px; padding: 0 34px; font-size: var(--t-body-lg); }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-outline { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-deep { background: var(--deep); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-green:hover { background: var(--green-on-deep); }
  .btn-outline:hover { background: var(--paper); color: var(--deep); }
  .btn-light:hover { background: var(--mist); }
  .btn-deep:hover { background: var(--ink); }
}

/* ================================================================== nav */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--deep); color: var(--paper); padding-top: env(safe-area-inset-top); }
.topbar .wrap { height: var(--bar-h); display: flex; align-items: center; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand img.mark { width: 58px; height: 40px; }
/* the logo lockup, exactly as in the logo files: mark + Outfit name in one SVG, so the proportions never drift.
   On wide screens the top bar shows the full lockup; on narrow ones just the mark. */
.brand .lockup-svg { height: 46px; width: auto; display: block; }
.brand img.mark { display: none; }
.foot-brand .lockup-svg { width: 300px; max-width: 100%; height: auto; display: block; }
.brand-name { font: 700 var(--t-body)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav a { font: 500 var(--t-small)/1 var(--sans); text-decoration: none; color: var(--paper); padding: 12px 0; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--green-on-deep); }
.topbar .btn { min-height: 44px; padding: 0 22px; font-size: var(--t-small); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--paper); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }
.sheet { display: none; }
@media (max-width: 860px) {
  .nav, .brand-name { display: none; }
  .brand img.mark { display: block; }
  .brand .lockup-svg { display: none; }
  .menu-btn { display: grid; }
  .sheet { display: grid; gap: 4px; padding: var(--s2) var(--gutter) var(--s3); background: var(--deep); border-top: 1px solid var(--line-on-deep); }
  .sheet[hidden] { display: none !important; }
  .sheet a { font: 600 var(--t-body-lg)/1.2 var(--display); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line-on-deep); }
}

/* ================================================================== hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); background: var(--deep) url('img/hero-poster.jpg') center / cover no-repeat; padding-block: clamp(64px, 9vw, 112px) calc(var(--stat-overlap) + clamp(40px, 5vw, 64px)); }
:root { --stat-overlap: clamp(72px, 8vw, 104px); }
@media (max-aspect-ratio: 1/1) { .hero { background-image: url('img/hero-poster-portrait.jpg'); } }
@media (min-aspect-ratio: 1001/1000) { .hero { min-height: min(56.25vw, 1100px); display: flex; flex-direction: column; justify-content: flex-end; } }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; pointer-events: none; }
.hero-video::-webkit-media-controls, .hero-video::-webkit-media-controls-panel, .hero-video::-webkit-media-controls-overlay-play-button, .hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0; }
/* deep-teal scrim: keeps paper text above AA on the brightest frame of the loop */
/* text protection, not a wash: darkest bottom-left behind the copy, clear on the right so the students show */
:root { --shade: 3, 24, 28; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(var(--shade), .78) 0%, rgba(var(--shade), .35) 30%, rgba(var(--shade), 0) 55%),
  linear-gradient(90deg, rgba(var(--shade), .88) 0%, rgba(var(--shade), .84) 40%, rgba(var(--shade), .6) 56%, rgba(var(--shade), .18) 70%, rgba(var(--shade), 0) 82%); }
/* portrait screens: the copy spans the full width, so protection runs top to bottom instead */
@media (max-aspect-ratio: 1/1) {
  .hero::before { background:
    linear-gradient(180deg, rgba(var(--shade), .66) 0%, rgba(var(--shade), .64) 40%, rgba(var(--shade), .8) 75%, rgba(var(--shade), .9) 100%); }
}
.hero-veil { position: absolute; inset: 0; z-index: -1; background: var(--deep); opacity: 0; pointer-events: none; }
/* hero, conference-style: kicker, very large headline, a big date line, then the stat panel overlapping the foot */
.hero-inner { display: block; }
.hero-kicker { font: 600 var(--t-body-lg)/1.3 var(--display); }
.hero h1 { margin-top: var(--s2); font-size: clamp(2.6rem, 6.4vw, 5.75rem); line-height: .95; letter-spacing: -.035em; max-width: 13ch; }
.hero-date, .hero-line { max-width: 34ch; }
.hero h1 .accent { color: var(--green-display); }
/* reading order: headline, then two quiet lines of date and venue at about a third of its size. */
.hero-date { margin-top: var(--s4); font: 500 clamp(1.0625rem, 2.1vw, 1.875rem)/1.4 var(--display); letter-spacing: -.01em; }
.hero-date span { display: block; }
.hero-line { margin-top: var(--s2); font: 500 var(--t-body)/1.45 var(--sans); }
.hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { border-radius: 12px; }
.hero-when { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: var(--t-small); position: relative; z-index: 3; }
.days-left { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(242, 247, 246, .45); border-radius: 999px; font-weight: 500; background: rgba(3, 24, 28, .35); }
.days-left b { font: 700 var(--t-body)/1 var(--display); }
/* in the hero the menu opens to the right of the link, in the open space beside it;
   on narrow screens there is no room beside it, so it opens upward instead */
.hero .cal-menu { left: calc(100% + 14px); top: 50%; transform: translateY(-50%); display: flex; gap: 4px; min-width: 0; white-space: nowrap; }
@media (max-width: 760px) { .hero .cal-menu { display: grid; min-width: 240px; white-space: normal; left: auto; right: 0; top: auto; bottom: calc(100% + 6px); transform: none; } }
.cal { position: relative; }
.cal summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--green-on-deep); }
.cal summary::-webkit-details-marker { display: none; }
.cal summary svg { width: 16px; height: 16px; color: var(--green-on-deep); }
.cal-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; min-width: 240px; display: grid; padding: 6px; background: var(--paper); color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(7, 64, 71, .3); }
.cal-menu a { padding: 12px 14px; min-height: 44px; border-radius: 10px; text-decoration: none; font-size: var(--t-small); }
.cal-menu a:hover, .cal-menu a:focus-visible { background: var(--mist); }
.intro-crest { display: none; }

/* ================================================================== stat band */
.stats { position: relative; z-index: 2; margin-top: calc(var(--stat-overlap) * -1); }
.stats dl { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; background: var(--deep); color: var(--paper); border: 1px solid var(--line-on-deep); border-radius: 28px; padding: clamp(28px, 3.5vw, 44px) var(--s2); box-shadow: 0 24px 48px rgba(7, 64, 71, .22); }
.stat { padding: var(--s1) var(--s3); border-left: 1px solid var(--line-on-deep); display: grid; gap: 8px; text-align: center; }
.stat:first-child { border-left: 0; }
.stat dd { margin: 0; font: 700 var(--t-h1)/.95 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat dt { font: 600 var(--t-body-lg)/1.2 var(--sans); color: var(--paper-soft); order: 2; }
@media (max-width: 640px) {
  .stats dl { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-block: var(--s2); }
  .stat:first-child { grid-column: 1 / -1; }
  .stat:nth-child(2), .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--line-on-deep); }
}

/* ================================================================== intro + ticker */
.intro-copy { display: grid; gap: var(--s3); max-width: 880px; }
.intro-copy p:first-child { font: 500 var(--t-h2)/1.2 var(--display); letter-spacing: -.015em; }
.intro-copy p + p { font-size: var(--t-body-lg); color: var(--ink-soft); max-width: 66ch; }
.nations { border-block: 1px solid var(--line); padding-block: var(--s4); overflow: hidden; }
.nations .eyebrow { margin-bottom: var(--s2); }
.nations-band { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.nations-track { display: flex; width: max-content; }
.nations-track ul { display: flex; align-items: center; }
.nations-track li { display: flex; align-items: center; white-space: nowrap; font: 700 var(--t-h1)/1.1 var(--display); letter-spacing: -.02em; }
.nations-track li::after { content: ''; width: .22em; height: .22em; border-radius: 50%; margin-inline: .6em; background: var(--green); }
.nations-track li:nth-child(even)::after { background: var(--teal); }
.no-js-hide { display: none; }

/* ================================================================== the night */
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 760px) { .floors { grid-template-columns: 1fr; } }
.floor { background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.floor .pic { position: relative; }
.floor img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.chip { position: absolute; left: 14px; top: 14px; font: 600 var(--t-caption)/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--deep); color: var(--paper); padding: 9px 12px; border-radius: 999px; }
.floor .body { padding: var(--s3) var(--s3) var(--s4); display: grid; gap: var(--s1); }
.floor h3 { font-size: var(--t-h3); }
.floor .eyebrow + h3 { margin-top: -2px; }
.floor p:not(.eyebrow) { color: var(--ink-soft); }
.night-note { margin-top: var(--s2); font-size: var(--t-caption); color: var(--ink-soft); }
.day { padding-top: 0; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps .step:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--mist); border-radius: var(--radius); padding: var(--s3); display: grid; gap: var(--s1); align-content: start; }
.step-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s1); }
.step-n { font: 700 var(--t-h2)/1 var(--display); color: var(--green-text); }
.step-at { font: 600 var(--t-small)/1 var(--sans); color: var(--ink); background: var(--paper); border-radius: 999px; padding: 8px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--t-h3); line-height: 1.15; }
.step p { font-size: var(--t-small); line-height: 1.55; color: var(--ink-soft); }

/* ================================================================== teal backdrop for card grids */
.teal-band { background: var(--teal); padding-block: clamp(40px, 6vw, 72px); }

/* ================================================================== regions */
.regions-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
.region { border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.region:nth-child(odd) { background: var(--deep); color: var(--paper); }
.region:nth-child(even) { background: var(--paper); color: var(--ink); }
.region .pics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.region img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.region .body { padding: var(--s3) var(--s3) var(--s4); display: grid; gap: var(--s1); align-content: start; }
.region h3 { font-size: var(--t-h2); letter-spacing: -.02em; }
.region p { font-size: var(--t-small); }
.region:nth-child(odd) p { color: var(--paper-soft); }
.region:nth-child(even) p { color: var(--ink-soft); }
/* rhythm instead of colour: a wide card, three narrow, then a wide pair */
.region.r1 { grid-column: span 4; }
.region.r1 img { aspect-ratio: 16 / 9; }
.region.r2 { grid-column: span 2; grid-template-rows: 1fr auto; }
.region.r2 .pics, .region.r2 img { height: 100%; }
.region.r2 img { aspect-ratio: auto; min-height: 260px; }
.region.r3, .region.r4, .region.r5 { grid-column: span 2; }
.region.r6 { grid-column: span 6; grid-template-columns: 3fr 2fr; grid-template-rows: auto; }
.region.r6 img { aspect-ratio: 4 / 3; height: 100%; }
.region.r6 .body { align-content: center; padding: var(--s4); }
@media (max-width: 900px) {
  .regions-grid { grid-template-columns: repeat(2, 1fr); }
  .region.r1, .region.r6 { grid-column: span 2; }
  .region.r2, .region.r3, .region.r4, .region.r5 { grid-column: span 1; }
  .region.r6 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .regions-grid { grid-template-columns: 1fr; }
  .region.r1, .region.r2, .region.r3, .region.r4, .region.r5, .region.r6 { grid-column: auto; }
}
.regions-note { margin-top: var(--s4); color: var(--ink-soft); max-width: 70ch; }

/* ================================================================== dress gallery */
.attire { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3) var(--s2); }
@media (max-width: 900px) { .attire { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .attire { grid-template-columns: repeat(2, 1fr); } }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.tile figcaption { margin-top: 10px; display: grid; gap: 2px; }
.tile figcaption b { font: 700 var(--t-body)/1.2 var(--display); }
.tile figcaption span { font-size: var(--t-caption); color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .tile img { transition: transform .2s ease-out; } .tile:hover img { transform: translateY(-3px); } }
.gallery-note { margin-top: var(--s4); font-size: var(--t-caption); color: var(--ink-soft); }

/* ================================================================== committee */
/* One card for everyone: same photo frame, same name, same role label. Departments are plain headings. */
.roster { display: grid; gap: var(--s4); padding-bottom: var(--s5); }
/* Wide screens: the department name sits beside its row, so each department is one row tall. */
@media (min-width: 1001px) { .dept { display: grid; grid-template-columns: 200px 1fr; gap: var(--s3); } .dept h3 { margin: 0; padding-top: 4px; } .roster { gap: var(--s3); } }
.dept h3 { font: 600 var(--t-caption)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-text); margin-bottom: var(--s2); }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3) var(--s2); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: grid; gap: 2px; align-content: start; min-width: 0; }
.portrait { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--mist); margin-bottom: 8px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; opacity: 0; transition: opacity .3s ease-out; }
.portrait img.loaded { opacity: 1; }
/* Per-person crop (see CROP notes by DEPARTMENTS): the script sizes and places the photo in percentages. */
.portrait img.cropped { inset: auto; max-width: none; object-fit: fill; }
.initials { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.75rem/1 var(--display); color: var(--green-text); }
.card .name { font: 700 1rem/1.25 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .role { font-size: var(--t-caption); line-height: 1.3; color: var(--ink-soft); }
@media (max-width: 600px) { .card .name { font-size: .9375rem; } }
@media (max-width: 360px) { .card .name { font-size: .8125rem; } }
/* The rest of the team: a credit list in balanced columns; a name never splits from its role. */
.team-list { padding-block: var(--s4) var(--s5); border-top: 1px solid var(--mist); }
.team-list h3 { font: 700 var(--t-h3)/1.15 var(--display); margin-bottom: var(--s3); }
/* one department per column: 4 on desktop, 2 on tablet, 1 on phone; the section ends where the longest list ends */
.team-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4) var(--s4); align-items: start; }
@media (max-width: 1000px) { .team-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-groups { grid-template-columns: 1fr; gap: var(--s3); } }
.team-groups .eyebrow { margin-bottom: var(--s1); }
.team-groups ul { font-size: var(--t-body); line-height: 1.35; display: grid; gap: 7px; }
/* One size for the whole block, shrunk only as far as the longest entry needs to fit its column
   (18.2em = "Bella Rudasingwa (Embassy outreach)"). 100cqi = the block's width. */
.team-list { container-type: inline-size; }
.team-groups ul { font-size: min(1rem, (100cqi - 3 * var(--s4)) / 4 / 18.2); }
@media (max-width: 1000px) { .team-groups ul { font-size: min(1rem, (100cqi - var(--s4)) / 2 / 18.2); } }
@media (max-width: 600px) { .team-groups ul { font-size: min(1rem, 100cqi / 18.2); } }
.team-groups li { white-space: nowrap; } /* one line per person, name and role together */
.team-groups li span { color: var(--ink-soft); }

/* ================================================================== participation */
.just-come { background: var(--green); color: var(--on-green); padding-block: clamp(56px, 9vw, 112px); }
.just-come h2 { font-size: clamp(4rem, 15vw, 11rem); line-height: .85; letter-spacing: -.05em; }
.just-come p { margin-top: var(--s3); font: 500 var(--t-body-lg)/1.5 var(--sans); max-width: 46ch; }
.just-come .btn { margin-top: var(--s4); }
.more { padding-block: var(--s5) var(--section); }
.more .eyebrow { margin-bottom: var(--s2); }
/* the two routes: deliberately quieter than the Just come band above them */
.route-links { display: flex; flex-wrap: wrap; gap: 12px; }
.route-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; font: 600 var(--t-body)/1 var(--sans); color: var(--ink); text-decoration: none; transition: background-color .18s ease-out, color .18s ease-out; }
@media (hover: hover) and (pointer: fine) { .route-btn:hover { background: var(--ink); color: var(--paper); } }
.forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
@media (max-width: 900px) { .forms-grid { grid-template-columns: 1fr; } }
.form-card { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); scroll-margin-top: calc(var(--bar-h) + 16px); }
.form-card h3 { font-size: var(--t-h2); line-height: 1.05; margin-top: var(--s1); }
.form-intro { margin: var(--s1) 0 var(--s4); color: var(--paper-soft); }
.form-card .form { gap: var(--s3); }
.form-card .thanks { margin-top: var(--s2); }

/* ================================================================== register */
@media (min-width: 900px) {
  .register .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: var(--s6); align-items: start; }
  .register .head { position: sticky; top: calc(var(--bar-h) + 32px); margin-bottom: 0; }
}
.form { display: grid; gap: var(--s4); max-width: 640px; }
.field { display: grid; gap: var(--s1); }
.field > label, legend { font: 600 var(--t-body)/1.35 var(--sans); padding: 0; }
.opt { font-weight: 400; color: var(--paper-soft); font-size: var(--t-caption); margin-left: 6px; }
.help { font-size: var(--t-caption); line-height: 1.45; color: var(--paper-soft); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s1); }
legend { margin-bottom: var(--s1); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; min-height: 54px; padding: 14px 16px; font-size: 16px; line-height: 1.4; background: var(--paper); color: var(--ink); border: 2px solid transparent; border-radius: 12px; }
input::placeholder, textarea::placeholder { color: var(--ink-soft); }
textarea { min-height: 112px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--green-on-deep); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--error-on-deep) !important; }
.err { font-size: var(--t-caption); color: var(--error-on-deep); font-weight: 600; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-on-deep); border-radius: 12px; cursor: pointer; line-height: 1.35; transition: border-color .18s ease-out, background-color .18s ease-out; -webkit-tap-highlight-color: transparent; }
.choice input { appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; width: 22px; height: 22px; border: 2px solid var(--paper-soft); background: transparent; display: grid; place-items: center; cursor: pointer; }
.choice input[type="checkbox"] { border-radius: 6px; }
.choice input[type="radio"] { border-radius: 50%; }
.choice input:checked { border-color: var(--green); background: var(--green); }
.choice input[type="checkbox"]:checked::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid var(--on-green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.choice input[type="radio"]:checked { background: var(--deep); box-shadow: inset 0 0 0 4px var(--deep), inset 0 0 0 11px var(--green); }
.choice input:focus-visible { outline: none; }
.choice:has(input:focus-visible) { outline: 3px solid var(--green-on-deep); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--green-on-deep); background: rgba(79, 214, 174, .1); }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: var(--paper-soft); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; justify-items: start; }
.form-foot .btn { min-width: 220px; }
.form-status { font-size: var(--t-small); color: var(--paper-soft); max-width: 52ch; }
.form-status.is-error { color: var(--error-on-deep); }
.form-status a, .form-questions a, .thanks a { color: var(--green-on-deep); }
.sending::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thanks { max-width: 640px; padding: var(--s5) var(--s4); background: var(--paper); color: var(--ink); border-radius: var(--radius); }
.thanks:focus { outline: none; }
.thanks h3 { font-size: var(--t-h1); line-height: .95; letter-spacing: -.03em; }
.thanks p { margin-top: var(--s2); color: var(--ink-soft); font-size: var(--t-body-lg); }
.thanks .cal { margin-top: var(--s2); }
.thanks .cal summary { text-decoration-color: var(--green-text); }
.thanks .cal summary svg { color: var(--green-text); }
.thanks .cal-menu { top: auto; bottom: calc(100% + 4px); }
.form-questions { margin-top: var(--s4); font-size: var(--t-small); color: var(--paper-soft); }

/* ================================================================== partners */
.partners-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .partners-grid { grid-template-columns: 7fr 5fr; gap: var(--s6); align-items: start; } }
.asks { display: grid; gap: var(--s2); }
.asks li { background: var(--mist); border-radius: var(--radius); padding: var(--s3); display: grid; gap: 4px; }
.asks b { font: 700 var(--t-h3)/1.2 var(--display); }
.asks span { color: var(--ink-soft); }
.contact { margin-top: var(--s4); display: grid; gap: 10px; }
.contact .eyebrow { color: var(--ink-soft); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.email { font: 600 var(--t-body-lg)/1.3 var(--sans); color: inherit; text-decoration: underline; text-underline-offset: 3px; user-select: all; -webkit-user-select: all; word-break: break-all; }
.copy-done { font-size: var(--t-caption); color: var(--green-text); min-height: 1.4em; }
.partners-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.partners-photo figcaption { margin-top: 10px; font-size: var(--t-caption); color: var(--ink-soft); }

/* ================================================================== made possible together */
.support { border-top: 1px solid var(--line); }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); }
.slot { height: 128px; display: grid; place-items: center; padding: var(--s3); border: 1.5px solid var(--line); border-radius: 14px; text-align: center; }
.slot span { font: 600 var(--t-caption)/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.slot img { max-width: 100%; width: auto; object-fit: contain; }
a.slot { transition: border-color .15s ease-out, transform .15s ease-out; }
@media (hover: hover) and (pointer: fine) { a.slot:hover { border-color: var(--green); transform: translateY(-2px); } }
/* optical sizing: wide wordmarks shorter, the round badge taller, so all three carry the same weight */
.slot .logo-wide { height: 44px; }
.slot .logo-mid { height: 58px; }
.slot .logo-round { height: 92px; }
.slot .logo-wide, .slot .logo-mid, .slot .logo-round { max-height: none; }
@media (max-width: 520px) { .slot .logo-wide { height: 38px; } .slot .logo-mid { height: 50px; } }

/* ================================================================== footer */
.footer { background: var(--deep); color: var(--paper); padding-block: var(--s6) calc(var(--s5) + env(safe-area-inset-bottom)); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s5) var(--s4); }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-brand { display: grid; gap: var(--s2); align-content: start; }
.foot-brand .lockup { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand img.mark { width: 82px; height: 56px; }
.foot-brand .lockup p:not(.wordmark) { font: 700 var(--t-h3)/1 var(--display); text-transform: uppercase; }
.foot-brand > p { color: var(--paper-soft); font-size: var(--t-small); }
.foot-col h3 { font: 600 var(--t-caption)/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-on-deep); margin-bottom: var(--s2); }
.foot-col li + li { margin-top: 10px; }
.foot-col a, .foot-col p { font-size: var(--t-small); color: var(--paper); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--green-on-deep); text-underline-offset: 4px; }
.foot-col [data-email] { user-select: all; -webkit-user-select: all; word-break: break-all; }
.foot-base { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line-on-deep); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot-base small { font-size: var(--t-caption); color: var(--paper-soft); }

/* Zion Peak footer credit — locked spec, verbatim. Do not redesign, respace, or swap the animation. */
.zp{display:inline-flex;align-items:baseline;gap:.5em;white-space:nowrap;
  text-decoration:none;font-family:"Montserrat",system-ui,sans-serif;font-weight:700;
  line-height:1}
.zp .by{font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.6);margin-right:.42em}
.zp .mark{font-size:15px;letter-spacing:0}
.zp .z{color:#FFFFFF}
.zp .p{color:#23ABE8;
  background-image:linear-gradient(100deg,#23ABE8 0%,#23ABE8 35%,#FFFFFF 50%,#23ABE8 65%,#23ABE8 100%);
  background-size:300% 100%;background-repeat:repeat-x;background-position:0% 0}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .zp .p{-webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;color:transparent}
}
.zp:hover .p,.zp:focus-visible .p{animation:zpGloss .85s ease-out}
@keyframes zpGloss{from{background-position:0% 0}to{background-position:100% 0}}
.zp .arw{width:11px;height:11px;flex:0 0 auto;align-self:center;opacity:.5;
  color:#23ABE8;transition:opacity .28s ease-out,transform .28s ease-out,filter .28s ease-out}
.zp:hover .arw,.zp:focus-visible .arw{opacity:1;transform:translate(3px,-3px);
  filter:drop-shadow(0 0 5px rgba(35,171,232,.75))}
.zp:focus-visible{outline-offset:5px}
@media(prefers-reduced-motion:reduce){
  .zp:hover .p,.zp:focus-visible .p{animation:none}
  .zp:hover .arw,.zp:focus-visible .arw{transform:none}
}

/* ================================================================== phone dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(7, 64, 71, 0), rgba(7, 64, 71, .85) 40%); }
.dock .btn { width: 100%; min-height: 54px; }
.js .dock { transform: translateY(110%); visibility: hidden; transition: transform .3s ease-out, visibility 0s linear .3s; }
.js .dock.show { transform: none; visibility: visible; transition: transform .3s ease-out, visibility 0s; }
@media (max-width: 860px) { body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media (min-width: 861px) { .dock { display: none; } }

/* ================================================================== motion (load only, never scroll-triggered) */
@media (prefers-reduced-motion: no-preference) {
  .intro .intro-crest { display: block; position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: var(--size); height: var(--size); animation: crest-intro 1.75s linear both; }
  .intro-crest img { width: 100%; height: 100%; object-fit: contain; }
  .intro-wait, .intro-wait * { animation-play-state: paused !important; }
  @keyframes crest-intro {
    0%, 8.571%       { opacity: 0; transform: translate(var(--cx), var(--cy)) scale(.94); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
    42.857%, 71.429% { opacity: 1; transform: translate(var(--cx), var(--cy)) scale(1); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
    100%             { opacity: 0; transform: translate(var(--cx), calc(var(--cy) - 16px)) scale(1); }
  }
  .intro .hero-veil { animation: veil-lift .7s cubic-bezier(.22, 1, .36, 1) 1.35s both; }
  @keyframes veil-lift { from { opacity: .94; } to { opacity: 0; } }
  .intro .hero-inner { animation: rise .6s cubic-bezier(.22, 1, .36, 1) 1.5s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .nations-track { animation: nations-roll var(--roll, 80s) linear infinite; }
  .nations.paused .nations-track { animation-play-state: paused; }
  @keyframes nations-roll { to { transform: translateX(-50%); } }
  @media (hover: hover) and (pointer: fine) { .nations:hover .nations-track { animation-play-state: paused; } }
}
@media (prefers-reduced-motion: reduce) {
  .nations-band { -webkit-mask-image: none; mask-image: none; }
  .nations-track { width: auto; }
  .nations-track ul { flex-wrap: wrap; row-gap: 6px; }
  .nations-track ul[aria-hidden] { display: none; }
  .nations-track li { font-size: var(--t-h3); }
  .js .dock, .js .dock.show, .btn, .route-btn { transition: none; }
}
@media print { .topbar, .dock, .hero-media { display: none; } }
