/* Southern Africa Young Parliamentarians Network
   Staff design system: light-tunnel art, white rounded cards, black slab H1.
   Type: Alfa Slab One for the H1 (and the logo/poster art), Inter Medium for everything else. */

:root {
  --paper: #FFFFFF;
  --mist: #F2F2EF;
  --ink: #0B0B0B;
  --ink-2: #4B4B4B;
  --line: rgba(11, 11, 11, .12);
  --blue: #2F6BFF;
  --ice: #3AC8FF;
  --slab: "Alfa Slab One", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1 { font-family: var(--slab); font-weight: 400; margin: 0; line-height: .98; letter-spacing: -.01em; }
h2, h3 { font-family: var(--sans); font-weight: 500; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.06; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
b { font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: conic-gradient(from 20deg, #3e8d5e, #f7d248, #d24e47, #0e2b92, #85addc, #3e8d5e); flex: none; }
.kicker--light { color: rgba(255, 255, 255, .7); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 500 15px/1 var(--sans); padding: 16px 24px; border-radius: 12px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #262626; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }

/* Logo lockup: tunnel tile + slab name on a white card */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.brand__word { font: 400 14px/1.05 var(--slab); }
.brand--light { color: var(--paper); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav__cta { background: var(--ink); color: var(--paper) !important; padding: 10px 18px; border-radius: 10px; }
.menu { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s; }
.menu span:nth-child(1) { top: 17px; } .menu span:nth-child(2) { top: 25px; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Live tunnel canvas, with the staff stills as fallback */
.tunnel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s; }
.gl-live .tunnel { opacity: 1; }
[data-tunnel-host] { background: #0a1a3a url(assets/tunnel-spectrum.webp) center / cover; }
.join[data-tunnel-host] { background: var(--ink); }
[data-tunnel-host].no-gl .tunnel { display: none; }

/* Hero: white at rest, the tunnel lives inside the title */
.hero { background: var(--paper); padding-top: clamp(28px, 4vw, 56px); }
.hero__top { display: flex; justify-content: space-between; margin-bottom: clamp(12px, 2vw, 24px); }
.hero__flank { font-size: clamp(15px, 1.5vw, 20px); white-space: nowrap; }
.glow { position: relative; isolation: isolate; overflow: hidden; background: none; cursor: crosshair; }
.glow__base { position: absolute; inset: 5px; background: var(--ink); }
.glow .tunnel { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
.glow__text { position: relative; margin: -3px; padding: calc(.04em + 3px) 3px calc(.1em + 3px); background: var(--paper); color: var(--ink); mix-blend-mode: screen; text-align: center; font-size: clamp(42px, 8.4vw, 132px); line-height: .94; letter-spacing: -.015em; text-wrap: balance; user-select: none; }
.glow:not(.lit) .tunnel, .join:not(.lit) .tunnel { opacity: 0; }
.glow .tunnel, .join .tunnel { transition: opacity .9s ease; }
.glow .tunnel { filter: saturate(1.6) contrast(1.35) brightness(1.08); }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding: 28px var(--pad) clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.hero__lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Light-up buttons: the footer-strip trick, small */
.btn--ink, .btn--glow { position: relative; overflow: hidden; isolation: isolate; }
.btn--ink::before, .btn--glow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(assets/tunnel-spectrum.webp) center / cover; opacity: 0; transform: scale(1.6); transition: opacity .45s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.btn--ink:hover::before, .btn--ink:focus-visible::before, .btn--glow:hover::before, .btn--glow:focus-visible::before { opacity: 1; transform: scale(1); }
.btn--ink span, .btn--glow span { transition: text-shadow .3s; }
.btn--ink:hover span, .btn--glow:hover span { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }

/* Colour register: fourteen flag stripes */
.register { display: grid; grid-template-columns: repeat(14, 1fr); height: 14px; }
.register span { transform-origin: bottom; transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 50ms); }
.register.is-in span { transform: none; }
.register--thin { height: 8px; }
.register--thin span { transform: none; }

/* About */
.about { padding: clamp(64px, 8vw, 112px) 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about__lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }
.about__body p:not(.about__lede) { color: var(--ink-2); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
.pillar { background: var(--mist); border-radius: var(--r); padding: 28px 26px 30px; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.pillar.is-in { opacity: 1; transform: none; }
.pillar__no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--ink); color: var(--paper); font-size: 13px; margin-bottom: 40px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* Chair: member card */
.chair { background: var(--mist); padding: clamp(64px, 8vw, 112px) 0; }
.chair__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.mcard { position: relative; margin: 0; aspect-ratio: 741 / 915; border-radius: 18px; overflow: hidden; max-width: 480px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); container-type: inline-size; }
.mcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcard__photo { position: absolute; left: -6%; bottom: 9%; width: 112%; max-width: none; height: auto; }
.mcard__plate { position: absolute; left: 12%; right: 12%; bottom: 5%; background: var(--paper); border-radius: 3cqw; padding: 11cqw 4cqw 4cqw; text-align: center; }
.mcard__chip { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); display: flex; align-items: center; gap: 2cqw; background: var(--paper); border-radius: 2.4cqw; padding: 1.6cqw 3cqw 1.6cqw 1.6cqw; white-space: nowrap; width: max-content; }
.mcard__chip img { width: 9cqw; height: 9cqw; border-radius: 1cqw; }
.mcard__chip span { font: 400 2.5cqw/1.02 var(--slab); text-align: left; }
.mcard__name { display: block; font: 400 7.4cqw/1 var(--slab); white-space: nowrap; text-transform: uppercase; }
.mcard__country { display: block; font-size: 4.2cqw; margin-top: 1.2cqw; }
.chair__copy h2 { font-size: clamp(32px, 4.2vw, 56px); }
.chair__role { margin: 14px 0 24px; color: var(--ink-2); }
.chair__lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts b { color: var(--ink); }
.facts span { color: var(--ink-2); font-size: 15.5px; }

/* Nations */
.nations { padding: 0 0 clamp(64px, 8vw, 112px); }
.nations__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.nations__head h2 { max-width: 15em; }
.filter { display: inline-flex; background: var(--mist); border-radius: 12px; padding: 4px; }
.filter__btn { font: 500 14px var(--sans); color: var(--ink-2); background: none; border: 0; padding: 10px 16px; border-radius: 9px; cursor: pointer; }
.filter__btn.is-on { background: var(--ink); color: var(--paper); }
.mapcard { position: relative; margin: 0; background: var(--mist); border-radius: 20px; padding: clamp(16px, 3vw, 36px); }
.map { width: 100%; height: auto; overflow: hidden; }
.map__swell { stroke: var(--ink); stroke-opacity: .1; stroke-width: 2; stroke-dasharray: 3 12; fill: none; }
.map__other path { fill: #E2E2DD; stroke: var(--mist); stroke-width: 2; }
.map__shape { fill: var(--ink); stroke: var(--mist); stroke-width: 2.4; stroke-linejoin: round; transition: fill .2s; }
.map__c { cursor: pointer; outline: none; opacity: 0; transform: translateY(8px); transform-box: fill-box; transition: opacity .6s var(--d), transform .6s var(--d); }
.map.is-in .map__c { opacity: 1; transform: none; }
.map__c:hover .map__shape, .map__c:focus-visible .map__shape { fill: #3a3a3a; }
.map__c.is-sel .map__shape { fill: var(--hc); }
.map__c.is-sel .map__dot { fill: var(--hc); }
.map__c.is-dim { opacity: .25 !important; }
.map__dot { fill: var(--blue); stroke: var(--mist); stroke-width: 3; transition: fill .2s; }
.map__ring { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 4 5; transform-origin: center; transform-box: fill-box; animation: spin 24s linear infinite; }
.map__c.is-isle:hover .map__dot, .map__c.is-isle:focus-visible .map__dot { fill: #3a3a3a; }
.map__shape.is-sea { fill: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.map__label { font: 500 22px var(--sans); fill: var(--paper); pointer-events: none; }
.map__label.is-s { font-size: 18px; }
.map__label.is-xs2 { font-size: 16px; }
.map__label.is-xs { font-size: 16px; fill: var(--ink); }
.map__label--isle { fill: var(--ink); font-size: 24px; }
.map__tropic path { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 10 8; fill: none; opacity: .55; stroke-dashoffset: 1100; animation: tropic 2.4s .6s ease-out forwards; }
.map__tropic text { font: 500 15px var(--sans); letter-spacing: .1em; fill: var(--ink); opacity: .6; }
@keyframes tropic { from { stroke-dashoffset: 1100; } to { stroke-dashoffset: 0; } }
.map__tip[hidden] { display: none; }
.map__tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.35; pointer-events: none; white-space: nowrap; display: grid; z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.map__tip b { font-size: 15px; margin-bottom: 2px; }
.map__tip span { color: var(--ink-2); }
.map__legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.map__hint { margin-left: auto; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg--land { background: var(--ink); }
.lg--isle { background: var(--blue); border-radius: 50%; }
.lg--tropic { height: 0; border-top: 2px dashed var(--ink); border-radius: 0; width: 22px; }
/* Flag bar: fourteen real-proportion tiles, the selected one opens up */
.flagbar { display: flex; gap: 4px; height: clamp(96px, 11vw, 150px); padding: 4px; background: var(--ink); margin-bottom: clamp(48px, 6vw, 80px); }
.ftile { position: relative; flex: 1 1 0; min-width: 0; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #222; transition: flex-grow .55s cubic-bezier(.2, .8, .2, 1), opacity .3s, transform .5s; transform-origin: bottom; }
.flagbar:not(.is-in) .ftile { transform: scaleY(0); }
.flagbar .ftile { transition-delay: 0s, 0s, calc(var(--i) * 40ms); }
.ftile__flag { position: absolute; inset: 0; background: var(--flag); transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.ftile__flag i { position: absolute; left: 12%; top: 50%; width: 18%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.ftile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .4s; }
.ftile__label { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 8px; color: var(--paper); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; white-space: nowrap; }
.ftile__label b { font-size: clamp(14px, 1.3vw, 18px); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); overflow: hidden; text-overflow: ellipsis; }
.ftile__label small { font-size: 12px; opacity: .8; }
.ftile:hover { flex-grow: 1.8; }
.ftile:hover .ftile__flag { transform: scale(1.08); }
.ftile.is-on { flex-grow: 4.5; box-shadow: inset 0 0 0 2px var(--paper); }
.ftile.is-on::after, .ftile.is-on .ftile__label { opacity: 1; transform: none; }
.ftile.is-dim { opacity: .2; flex-grow: .5; }

/* Explorer: map beside a live stage tinted in the selected flag's colours */
.explorer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.stage { position: relative; border-radius: 20px; overflow: hidden; min-height: 460px; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.stage .tunnel { z-index: -1; }
.stage.is-swap .tunnel { animation: swap .7s ease; }
@keyframes swap { 0% { opacity: .15; } 100% { opacity: 1; } }
.stage__plate { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 22px 22px 20px; box-shadow: 0 16px 50px rgba(0, 0, 0, .35); }
.stage.is-swap .stage__plate { animation: plate .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes plate { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stage__meta { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.stage__name { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.03em; margin: 8px 0 14px; }
.stage__facts { margin: 0 0 14px; display: grid; gap: 4px; font-size: 15px; }
.stage__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.stage__facts dt { color: var(--ink-2); }
.stage__facts dd { margin: 0; }
.stage__muted { display: block; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.stage__chair { display: block; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--blue); text-decoration: none; }
.stage__chair:hover b { text-decoration: underline; }
.stage__nav { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; z-index: 2; }
.stage__btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font: 500 18px var(--sans); cursor: pointer; transition: transform .2s, background .2s; }
.stage__btn:hover { transform: translateY(-2px); background: var(--paper); }
.stage__progress { position: absolute; left: 16px; top: 16px; width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; z-index: 2; }
.stage__progress i { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.stage.is-manual .stage__progress { display: none; }
@keyframes fill { to { transform: scaleX(1); } }

/* Work: tunnel stills with white cards, as on the staff posters */
.work { padding: 0 0 clamp(64px, 8vw, 112px); }
.work__head { max-width: 760px; margin-bottom: 40px; }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.current { position: relative; isolation: isolate; border-radius: 18px; overflow: hidden; min-height: 320px; padding: 14px; display: flex; align-items: flex-end; background: var(--mist); opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.current::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg) center / cover; opacity: 0; transform: scale(1.25); transition: opacity .6s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.current:hover::before { opacity: 1; transform: none; }
.current.is-in { opacity: 1; transform: none; }
.current:nth-child(2) { transition-delay: .08s; } .current:nth-child(3) { transition-delay: .16s; } .current:nth-child(4) { transition-delay: .24s; }
.current__card { background: var(--paper); border-radius: 12px; padding: 20px 20px 22px; transition: box-shadow .4s; }
.current:hover .current__card { box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.current__no { font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 14px; }
.current h3 { margin-bottom: 10px; font-size: 19px; }
.current p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Support */
.support { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 112px) 0; }
.support__head { max-width: 780px; margin-bottom: 44px; }
.support__lede { color: rgba(255, 255, 255, .7); font-size: 18px; margin-top: 20px; }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc { background: #171717; border-radius: var(--r); padding: 26px 22px; opacity: 0; transition: opacity .6s; }
.svc.is-in { opacity: 1; }
.svc__no { font-size: 13px; color: rgba(255, 255, 255, .5); display: block; margin-bottom: 26px; }
.svc h3 { font-size: 18px; margin-bottom: 10px; }
.svc p { font-size: 14.5px; color: rgba(255, 255, 255, .68); margin: 0; }
.svc--note { position: relative; isolation: isolate; overflow: hidden; background: #171717; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.svc--note::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg) center / cover; opacity: 0; transform: scale(1.25); transition: opacity .6s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.svc--note:hover::before, .svc--note:focus-within::before { opacity: 1; transform: none; }
.svc--note p { color: var(--paper); font-size: 17px; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* Conference poster */
.conference { padding: clamp(64px, 8vw, 112px) 0; }
.conf__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.poster { border-radius: 18px; overflow: hidden; max-width: 480px; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); container-type: inline-size; }
.poster__art { position: relative; aspect-ratio: 716 / 620; overflow: hidden; }
.poster__art > img { width: 100%; height: 100%; object-fit: cover; animation: pulse 9s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.12); } }
.poster__chip { position: absolute; left: 50%; top: 7cqw; transform: translateX(-50%); display: flex; align-items: center; gap: 2.4cqw; background: var(--paper); border-radius: 2cqw; padding: 1.7cqw 4cqw 1.7cqw 1.7cqw; white-space: nowrap; width: max-content; }
.poster__chip img { width: 9.6cqw; height: 9.6cqw; border-radius: .9cqw; }
.poster__chip span { font: 400 2.7cqw/1.02 var(--slab); }
.poster__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3cqw; padding: 4cqw 4cqw 5cqw; }
.poster__title { font: 400 10.2cqw/.92 var(--slab); text-align: center; }
.poster__flank { font-size: 3.2cqw; white-space: nowrap; }
.poster__flank:last-child { text-align: right; }
.conf__card h2 { margin-bottom: 8px; }
.conf__card > p { color: var(--ink-2); margin: 24px 0 28px; }

/* Join */
.join { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 112px) 0; color: var(--paper); isolation: isolate; }
.join::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); z-index: -1; }
.join .tunnel { z-index: -2; }
.join::before { content: ""; position: absolute; inset: 0; z-index: -3; background: url(assets/tunnel-blue.webp) center / cover; opacity: .16; transition: opacity .9s; }
.join.lit::before { opacity: 0; }
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.join .kicker { color: rgba(255, 255, 255, .75); }
.join__copy h2 { margin-bottom: 22px; }
.join__copy p { font-size: 18px; color: rgba(255, 255, 255, .9); }
.join__aside { font-size: 15px !important; color: rgba(255, 255, 255, .7) !important; }
.join__form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; }
.field input, .field select { font: 500 16px var(--sans); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }
.join__note { margin: 0; font-size: 14px; color: #1d7a45; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { text-decoration: none; font-size: 15px; opacity: .75; }
.footer__links a:hover { opacity: 1; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; padding-bottom: 36px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer__base p { margin: 0 0 6px; }

/* Footer steward: secretariat credit */
.steward { position: relative; display: grid; grid-template-columns: auto 220px 1fr auto; align-items: center; gap: 28px; margin: 8px 0 32px; padding: 22px 28px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; text-decoration: none; overflow: hidden; isolation: isolate; }
.steward::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(assets/tunnel-blue.webp) center / cover; opacity: 0; transform: scale(1.15); transition: opacity .6s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.steward:hover::before, .steward:focus-visible::before { opacity: .85; transform: none; }
.steward__label { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); line-height: 1.35; }
.steward__label i { width: 10px; height: 10px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 5px rgba(58, 200, 255, .2), 0 0 14px var(--ice); flex: none; }
.steward img { width: 220px; height: auto; }
.steward__text { font-size: 14px; color: rgba(255, 255, 255, .7); max-width: 36em; }
.steward:hover .steward__text { color: var(--paper); }
.steward__arrow { font-size: 22px; transition: transform .3s; }
.steward:hover .steward__arrow { transform: translate(3px, -3px); }

/* Responsive */
@media (max-width: 1080px) {
  .work__grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
}
@media (max-width: 960px) {
  .about__grid, .chair__grid, .conf__grid, .join__grid, .explorer { grid-template-columns: 1fr; }
  .stage { min-height: 420px; }
  .mcard, .poster { max-width: 420px; }
  .pillars { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav__cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
  .menu { display: block; }
  .steward { grid-template-columns: 1fr; gap: 16px; }
  .steward img { width: 190px; }
  .steward__arrow { position: absolute; right: 22px; top: 22px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__word { font-size: 12px; }
  .glow__text { font-size: 12.4vw; }
  .work__grid, .svc-grid { grid-template-columns: 1fr; }
  .current { min-height: 340px; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .flagbar { gap: 3px; padding: 3px; height: 84px; }
  .ftile.is-on { flex-grow: 6; }
  .ftile:hover { flex-grow: 1; }
  .ftile__label small { display: none; }
}

/* ---------- Additions: language, hints, stats, maker, countdown, motion ---------- */
.lang { display: inline-flex; gap: 2px; background: var(--mist); border-radius: 10px; padding: 3px; margin-left: 18px; }
.lang button { font: 500 12.5px var(--sans); border: 0; background: none; color: var(--ink-2); padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.header__bar .nav { margin-left: auto; }

.glow__hint { margin: 10px 0 0; text-align: center; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); opacity: .7; }
.glow .tunnel { transition: opacity .9s ease; }
@media (hover: none) { .glow__hint { display: none; } }

.map__c.is-peek .map__shape { fill: #3a3a3a; }
.map__c.is-peek .map__dot { fill: #3a3a3a; }

.stage__stat { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; margin-bottom: 2px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.stage__stat b { font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.stage__stat span { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.stage__stat small { display: block; font-size: 11.5px; letter-spacing: .06em; opacity: .7; }
.stage__stat:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
.stage__stat.is-none span { font-size: 14px; }
.stage__toast { position: absolute; top: 68px; right: 16px; z-index: 3; background: var(--ink); color: var(--paper); font-size: 13px; padding: 8px 12px; border-radius: 9px; }

/* Youth bars */
.youth { margin-top: 16px; background: var(--mist); border-radius: 20px; padding: clamp(20px, 3vw, 36px); }
.youth__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 22px; }
.youth__head .kicker { margin: 0; }
.youth__head h3 { font-size: clamp(20px, 2vw, 26px); }
.youth__bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.ybar button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 9px; cursor: pointer; transition: background .2s, opacity .3s; }
.ybar button:hover, .ybar button:focus-visible { background: var(--paper); }
.ybar.is-on button { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ybar.is-dim { opacity: .3; }
.ybar__name { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ybar__track { height: 10px; border-radius: 5px; background: rgba(11, 11, 11, .08); overflow: hidden; }
.ybar__track i { display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--c); box-shadow: 0 0 12px var(--c); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.youth__bars.is-in .ybar__track i { transform: none; }
.ybar:nth-child(n) .ybar__track i { transition-delay: calc(var(--n, 0) * 40ms); }
.ybar__val { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.ybar.is-none .ybar__val { color: var(--ink-2); }
.youth__note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-2); max-width: 70em; }

/* +1 on the flag bar after someone registers */
.ftile__plus { position: absolute; top: 8px; left: 50%; z-index: 2; transform: translate(-50%, 10px); background: var(--paper); color: var(--ink); font-size: 13px; padding: 4px 8px; border-radius: 7px; opacity: 0; pointer-events: none; }
.ftile.is-plus .ftile__plus { animation: plus 2.4s cubic-bezier(.2, .8, .2, 1); }
.ftile.is-plus .ftile__flag { animation: flare 2.4s ease; }
@keyframes plus { 0% { opacity: 0; transform: translate(-50%, 14px); } 15%, 70% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes flare { 0%, 100% { filter: none; } 20% { filter: brightness(1.7) saturate(1.4); } }

/* Member card maker */
.maker { background: var(--mist); padding: clamp(64px, 8vw, 112px) 0; }
.maker__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.maker__lede { color: var(--ink-2); font-size: 18px; margin: 20px 0 28px; max-width: 32em; }
.maker__form { display: grid; gap: 14px; max-width: 460px; }
.field--file input { padding: 10px; background: var(--paper); }
.maker__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mkcard { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; max-width: 460px; width: 100%; justify-self: center; background: #0a1a3a url(assets/tunnel-spectrum.webp) center / cover; container-type: inline-size; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.mkcard__photo { position: absolute; left: 2%; width: 96%; top: 6%; height: 80%; object-fit: cover; object-position: top center; }
.mkcard__empty { position: absolute; inset: 0 0 34% 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 4cqw; text-align: center; padding: 0 12%; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.mkcard .mcard__plate { bottom: 5.2%; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 6px; }
.countdown div { background: var(--mist); border-radius: 12px; padding: 14px 10px 12px; text-align: center; }
.countdown b { display: block; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.conf__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.poster__art { background: none; }
.poster__art .tunnel { z-index: 0; }
.poster__chip { z-index: 1; }

/* Footer row + motion switch */
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.motion { display: inline-flex; align-items: center; gap: 9px; font: 500 13px var(--sans); color: rgba(255, 255, 255, .75); background: none; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 7px 14px 7px 10px; cursor: pointer; }
.motion i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.motion[aria-pressed="true"] i { background: rgba(255, 255, 255, .4); box-shadow: none; }
.motion:hover { color: var(--paper); border-color: rgba(255, 255, 255, .45); }
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }

@media (max-width: 960px) {
  .maker__grid { grid-template-columns: 1fr; }
  .lang { margin-left: auto; margin-right: 6px; }
  .youth__bars { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ybar button { grid-template-columns: 96px 1fr 48px; gap: 8px; }
  .countdown { gap: 6px; }
  .lang button { padding: 6px 7px; }
}

@media (max-width: 420px) { .header .brand__word { display: none; } }
