/* ---------- Design tokens: colours, fonts, dark theme ---------- */
:root {
  --bg: #080d1c;
  --surface: #101831;
  --ink: #e8ebf2;
  --muted: #a3adc4;
  --navy: #14204a;
  --silver: #c3c9d4;
  --accent: #c3c9d4;
  --on-accent: #101a3d;
  --line: #25305a;
  --navbg: rgba(8,13,28,.88);
  --dot: rgba(195,201,212,.12);
  --r: 12px;
  --serif: "Newsreader",Georgia,"Times New Roman",serif;
  --sans: "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
  color-scheme: dark;
}

/* ---------- Base styles ---------- */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(76px + env(safe-area-inset-top,0px));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout and buttons ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.12;
  margin: 0;
}

h2 {
  font-size: clamp(1.9rem,4.5vw,2.7rem);
  font-weight: 600;
  margin-bottom: 12px;
}

section {
  padding: 76px 0;
}

p {
  margin: 0 0 14px;
  max-width: 64ch;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  font: 700 1rem var(--sans);
}

.btn.sil {
  background: linear-gradient(180deg,#f1f3f8,#aeb6c6);
  border-color: #d9deea;
  color: #0d1636;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(232,235,242,.55);
  color: #e8ebf2;
}

/* ---------- Top navigation ---------- */
header.nav {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 10;
  background: var(--navbg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  margin-right: auto;
}

.nav a.l {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
}

.nav a.l:hover {
  color: var(--ink);
}

.nav .btn {
  padding: 8px 18px;
  font-size: .92rem;
}

@media(max-width:760px) {
  .nav .wrap {
    flex-wrap: wrap;
    gap: 4px 18px;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 0;
  }
  .nav .btn {
    order: 2;
  }
  .nav a.l {
    order: 3;
    font-size: .92rem;
  }
}

.logo {
  display: block;
  border-radius: 50%;
}

.nav .logo {
  width: 40px;
  height: 40px;
}

/* ---------- Hero (top of the home page) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #e8ebf2;
  background: radial-gradient(800px 480px at 78% 45%,#2a3b86 0%,transparent 62%),linear-gradient(160deg,#0a1130,#16225a 58%,#0a1130);
  padding: 72px 0 120px;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

@media(max-width:860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero .seal {
    order: -1;
  }
}

.hero h1 {
  font-size: clamp(2.5rem,6.6vw,4.4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  color: #e8ebf2;
  background: linear-gradient(180deg,#fff 20%,#aeb6c8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: #c3cadb;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.seal {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.rings {
  position: absolute;
  width: min(560px,130%);
  aspect-ratio: 1;
  animation: spin 180s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero .logo {
  position: relative;
  width: min(280px,62vw);
  height: auto;
  aspect-ratio: 1;
  box-shadow: 0 0 0 10px rgba(195,201,212,.14),0 30px 80px rgba(0,0,0,.55);
}

/* ---------- Facts card ---------- */
.facts {
  position: relative;
  z-index: 2;
  margin-top: -58px;
}

.fcard {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 18px 40px -22px rgba(10,17,48,.45);
}

.fcard div {
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}

.fcard div:first-child {
  border-left: 0;
}

.fcard dt {
  font-size: .85rem;
  color: var(--muted);
}

.fcard dd {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

@media(max-width:820px) {
  .fcard {
    grid-template-columns: 1fr 1fr;
  }
  .fcard div:nth-child(3) {
    border-left: 0;
  }
  .fcard div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 28px;
}

@media(max-width:820px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}

.pillars h3,
.dept h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.pillars p,
.dept p {
  color: var(--muted);
  margin: 0;
  font-size: .98rem;
}

/* ---------- Committee filters and cards ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}

.filters button {
  font: 500 1rem var(--sans);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 18px;
}

.cm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 20px;
}

.cm[hidden] {
  display: none;
}

.cm .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cl {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.ph {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #e8ebf2;
  border: 0;
  font: 700 .72rem var(--serif);
  letter-spacing: .02em;
}

.id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.id b {
  font: 700 1.2rem var(--serif);
}

.tag {
  font-size: .8rem;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(195,201,212,.3);
  color: var(--muted);
}

.cm h3 {
  font-size: 1.25rem;
}

.cm .d {
  color: var(--muted);
  font-size: .96rem;
  margin: 0;
}

.cm .a {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  border-left: 3px solid var(--silver);
  padding-left: 12px;
}

.cm .s {
  margin: auto 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Section backgrounds ---------- */
.tint {
  background: linear-gradient(180deg, rgba(42, 59, 134, .38), rgba(42, 59, 134, .06));
}

.depts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0 28px;
}

@media(max-width:700px) {
  .depts {
    grid-template-columns: 1fr;
  }
}

.dept {
  display: flex;
  gap: 16px;
}

.ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
}

.ic svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #e8ebf2;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 24px;
}

@media(max-width:700px) {
  .board {
    grid-template-columns: 1fr;
  }
}

.person {
  text-align: center;
}

.av {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(160deg,var(--silver),#8e98b0);
  display: grid;
  place-items: center;
}

.av svg {
  width: 56px;
  height: 56px;
  fill: #14204a;
  opacity: .55;
}

.person h3 {
  font-size: 1.15rem;
}

.person p {
  margin: 2px auto 0;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- FAQ ---------- */
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  max-width: 760px;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer {
  color: #c3cadb;
  background: linear-gradient(160deg,#0a1130,#16225a);
  border-top: 4px solid var(--silver);
  padding: 46px 0 56px;
}

footer .wrap {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}

footer .logo {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

footer .n {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #e8ebf2;
}

footer p {
  margin: 6px 0 0;
}

footer a {
  color: #e8ebf2;
}

/* ---------- Application forms ---------- */
.form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media(max-width:640px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: .95rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}

.form .chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.form .chk input {
  width: auto;
  margin-top: 5px;
}

.form button {
  justify-self: start;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  opacity: 0;
}

.msg {
  margin: 0;
  font-weight: 500;
}

.msg.err {
  color: #ff8a80;
}

[hidden] {
  display: none!important;
}

main {
  min-height: 72vh;
}

.tp {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

@media(max-width:900px) {
  .tp {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Join the team and Ambassadors pages ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--muted);
}

.tt {
  font-size: clamp(2.4rem,5.5vw,3.6rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.dep {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  max-width: none;
}

.dep:last-of-type {
  border-bottom: 1px solid var(--line);
}

.dep summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.dep p {
  color: var(--muted);
  font-size: .97rem;
  margin: 10px 0 0;
}

.fc {
  position: sticky;
  top: 96px;
  padding: 26px;
}

@media(max-width:900px) {
  .fc {
    position: static;
  }
}

.fc h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.radios {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.radios legend {
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 8px;
  padding: 0;
}

.form .radios label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-weight: 400;
}

.form .radios input {
  width: auto;
}

.form .go {
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
}

nav a.l.on,
.nav a.l.on {
  color: var(--ink);
  font-weight: 700;
}

.credit {
  width: 100%;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(195,201,212,.25);
  font-size: .9rem;
}

/* ---------- Animations ---------- */
@keyframes pg {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

[data-page]:not([hidden]) {
  animation: pg .5s backwards;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.rv {
  opacity: 0;
}

.rv.in {
  opacity: 1;
  animation: up .7s var(--d,0s) backwards;
}

.prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg,#8e98b0,#fff);
  z-index: 30;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .logo {
  transition: transform .25s ease-out;
}

.cd {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.cd div {
  min-width: 66px;
  text-align: center;
  padding: 10px 6px;
  border: 1px solid rgba(195,201,212,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
}

.cd b {
  display: block;
  font: 700 1.7rem var(--serif);
  color: #fff;
}

.cd span {
  font-size: .75rem;
  color: #aeb6c8;
}

.cdl {
  margin: 10px 0 0;
  font-size: .9rem;
  color: #aeb6c8;
}

/* ---------- Home page sections ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  text-align: center;
}

.stats b {
  display: block;
  font: 700 clamp(2.4rem,7vw,3.8rem) var(--serif);
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
}

.g4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-top: 24px;
}

@media(max-width:900px) {
  .g4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:520px) {
  .g4 {
    grid-template-columns: 1fr;
  }
}

.hov {
  transition: transform .3s,box-shadow .3s,border-color .3s;
}

.hov:hover,
.cm:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -22px rgba(10,17,48,.55);
  border-color: var(--silver);
}

.cm {
  cursor: pointer;
  transition: transform .3s,box-shadow .3s,border-color .3s;
}

.card .ic {
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

/* ---------- Scrolling logo strip ---------- */




/* ---------- Photo gallery ---------- */
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

@media(max-width:800px) {
  .gal {
    grid-template-columns: 1fr 1fr;
  }
}

.gal figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.gal img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s;
}

.gal figure:hover img {
  transform: scale(1.1);
}

/* ---------- Who can attend / dates band ---------- */
.band {
  background: linear-gradient(160deg,#0a1130,#16225a);
  color: #e8ebf2;
  border-radius: var(--r);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media(max-width:800px) {
  .band {
    grid-template-columns: 1fr;
  }
}

.band h2 {
  color: #fff;
  font-size: 1.8rem;
}

.band p {
  color: #c3cadb;
}

.band .btn {
  margin: 4px 10px 0 0;
}

/* ---------- Secretariat cards ---------- */
.sec {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 24px;
}

@media(max-width:800px) {
  .sec {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:480px) {
  .sec {
    grid-template-columns: 1fr;
  }
}

.pr {
  display: flex;
  gap: 14px;
  align-items: center;
}

.pr h3 {
  font-size: 1.1rem;
  margin: 0;
}

.pr p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.ava {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--silver);
}

.tools input {
  width: 100%;
  font: inherit;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  margin: 6px 0 14px;
}

/* ---------- Committee finder quiz ---------- */
.quiz {
  margin: 18px 0 8px;
  max-width: none;
}

.quiz summary {
  cursor: pointer;
  font-weight: 700;
}

.quiz .q {
  margin: 14px 0 8px;
  font-weight: 700;
}

.quiz .o,
.res {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.res {
  margin-top: 16px;
}

.opt {
  font: 500 .95rem var(--sans);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.opt[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* ---------- Committee pop-up ---------- */
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 520px;
  width: calc(100% - 32px);
  background: var(--surface);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(5,9,25,.6);
}

dialog .cl {
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

/* ---------- Page backgrounds and committees banner ---------- */
.pat {
  background-image: radial-gradient(circle at 8% 0%,rgba(42,59,134,.14),transparent 38%),radial-gradient(circle at 95% 55%,rgba(142,152,176,.22),transparent 42%),radial-gradient(var(--dot) 1.2px,transparent 1.5px);
  background-size: auto,auto,24px 24px;
}

#committees {
  padding-top: 0;
}

.chead {
  position: relative;
  overflow: hidden;
  color: #e8ebf2;
  margin-bottom: 34px;
  padding: 64px 0 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-300 -300 600 600' fill='none' stroke='%23c3c9d4' stroke-opacity='.22'%3E%3Ccircle r='120'/%3E%3Ccircle r='180'/%3E%3Ccircle r='240'/%3E%3Cpath d='M0-290V290M-290 0H290M-205-205L205 205M205-205L-205 205'/%3E%3C/svg%3E") no-repeat right -100px center/540px,radial-gradient(700px 300px at 85% 30%,#2a3b86,transparent 65%),linear-gradient(160deg,#0a1130,#16225a 60%,#0a1130);
}

.chead h2 {
  font-size: clamp(2.2rem,5vw,3.4rem);
  background: linear-gradient(180deg,#fff 25%,#aeb6c8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.chead p {
  color: #c3cadb;
  font-size: 1.1rem;
}

@media(prefers-reduced-motion:reduce) {
  .rv {
    opacity: 1;
  }
  .rv.in,
  [data-page]:not([hidden]) {
    animation: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .rings {
    animation: none;
  }
}

/* ---------- Coming-soon committee card ---------- */
.soon {
  position: relative;
  overflow: hidden;
  cursor: default;
  min-height: 270px;
}

.soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.soon .bar {
  height: 12px;
  border-radius: 6px;
  background: rgba(195,201,212,.28);
}

.soon .bar.w60 {
  width: 60%;
}

.soon .bar.w90 {
  width: 90%;
}

.soon .veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8,13,28,.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font: 700 1.7rem var(--serif);
  color: #e8ebf2;
  letter-spacing: .02em;
}


/* ---------- Page background: slowly drifting navy glow behind everything ---------- */
body {
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 520px at 14% 12%, rgba(66, 92, 196, .42), transparent 62%),
    radial-gradient(640px 560px at 88% 34%, rgba(125, 139, 185, .26), transparent 62%),
    radial-gradient(760px 600px at 46% 96%, rgba(48, 68, 156, .40), transparent 62%),
    linear-gradient(180deg, #070b1a, #0b1330 55%, #070b1a);
  animation: aurora 28s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -4%, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ---------- Alternating sections: textured navy with a faint globe motif ---------- */
.tint {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-300 -300 600 600' fill='none' stroke='%23c3c9d4' stroke-opacity='.22'%3E%3Ccircle r='120'/%3E%3Ccircle r='180'/%3E%3Ccircle r='240'/%3E%3Cpath d='M0-290V290M-290 0H290M-205-205L205 205M205-205L-205 205'/%3E%3C/svg%3E") no-repeat right -160px top -80px / 480px,
    repeating-linear-gradient(135deg, rgba(195, 201, 212, .035) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, rgba(42, 59, 134, .38), rgba(42, 59, 134, .06));
}

/* ---------- Glass cards, heading accents, shiny numbers ---------- */
.card, .cm {
  background: linear-gradient(155deg, rgba(34, 50, 110, .55), rgba(13, 20, 48, .72));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.fcard {
  background: linear-gradient(155deg, rgba(34, 50, 110, .62), rgba(13, 20, 48, .82));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
dialog {
  background: #101831;
}
section > .wrap > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c3c9d4, rgba(195, 201, 212, 0));
}
.stats b {
  background: linear-gradient(180deg, #ffffff 20%, #8f9bc0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ---------- Committee logo carousel: curved band, spotlight in the middle ---------- */
.mq {
  position: relative;
  height: 330px;
  overflow: hidden;
}
.mq::before {                                  /* soft spotlight behind the middle logo */
  content: "";
  position: absolute;
  left: 50%;
  top: 105px;
  width: 460px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(110, 140, 255, .32), transparent);
  pointer-events: none;
}
.mq-arc {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 250px;
  pointer-events: none;
}
.mq-arc path {
  vector-effect: non-scaling-stroke;
}
.mq-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 250px;
  overflow: hidden;
  touch-action: pan-y;                         /* up and down still scroll the page, sideways is ours */
  cursor: grab;
  outline-offset: -4px;
}
.mq-track.dragging {
  cursor: grabbing;
}
.lg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;                     /* centred; script.js moves each logo from there */
  user-select: none;
  transition: opacity .2s;
}
.lg img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  border: 1px solid var(--line);
  transition: box-shadow .25s;
}
.lg.active img {
  box-shadow: 0 0 0 4px rgba(195, 201, 212, .95), 0 0 44px 10px rgba(110, 140, 255, .6);
}
.lg:focus-visible img {
  box-shadow: 0 0 0 3px #fff;
}
.mq-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  padding: 0 16px;
  text-align: center;
}
.mq-cap b {
  display: block;
  font: 700 1.6rem var(--serif);
}
.mq-cap span {
  display: block;
  color: var(--ink);
}
.mq-cap small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.mq-btn {
  position: absolute;
  top: 105px;
  transform: translateY(-50%);
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(195, 201, 212, .4);
  background: rgba(10, 17, 48, .85);
  color: #e8ebf2;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.mq-btn.prev { left: 14px; }
.mq-btn.next { right: 14px; }
.mq-btn:hover { background: #1d2a5c; }

/* ---------- Highlight for a committee card opened from a logo ---------- */
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(195, 201, 212, 0); }
  25% { box-shadow: 0 0 0 4px rgba(195, 201, 212, .95), 0 0 44px 6px rgba(110, 140, 255, .55); }
  100% { box-shadow: 0 0 0 0 rgba(195, 201, 212, 0); }
}
.cm.flash {
  animation: flash 2.4s ease-out 1;
}
