/* ===== AAL MUN — colours & fonts (change these to restyle the whole site) ===== */
:root {
  --navy-900: #0a1128;
  --navy-800: #121b3d;
  --navy-700: #1d2a5a;
  --steel: #4d6a8c;
  --ice: #cfe6ff;
  --accent: #6aa9ec;
  --paper: #f4f6f9;
  --ink: #101a33;
  --muted: #5a6680;
  --line: #d5dbe5;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 "Hanken Grotesk", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; margin: 0; }

.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 17, 40, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.brand img { width: 36px; height: 36px; }
nav { display: flex; gap: 1.75rem; }
nav a {
  text-decoration: none; font-size: .9rem; font-weight: 500;
  letter-spacing: .04em; opacity: .8; padding-block: .3rem;
  border-bottom: 1px solid transparent;
}
nav a:hover { opacity: 1; border-color: var(--ice); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100svh - 4rem);
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; text-align: center;
  background:
    var(--grain),
    radial-gradient(ellipse 60% 50% at 65% 30%, rgba(160,170,200,.28), transparent 70%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900) 70%);
}
.hero-line { height: 1px; background: rgba(255,255,255,.35); margin-block: clamp(1.5rem, 5vh, 3rem); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-crest {
  width: clamp(150px, 26vw, 260px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
  margin-bottom: 2rem;
}
.eyebrow { margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; color: var(--ice); }
h1 {
  font-family: "Poppins", sans-serif; font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.5rem); letter-spacing: -.01em;
}
.lead { font-size: 1.15rem; opacity: .8; margin: 1rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.btn {
  display: inline-block; padding: .8rem 1.4rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid var(--ice);
}
.btn-light { background: var(--ice); color: var(--navy-900); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ===== Sections ===== */
.section { padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
.section-alt { background: #fff; }
.kicker { margin: 0 0 .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }
.kicker-light { color: var(--ice); }
h2 { font-family: "Poppins", sans-serif; font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
.section-intro { color: var(--muted); max-width: 40rem; margin: 0 0 2.5rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-grid p { color: var(--muted); max-width: 34rem; }
.mascot { width: 140px; margin-top: 1.5rem; border-radius: 50%; }
.memories { margin: 0; }
.memories img { box-shadow: 0 24px 50px rgba(10,17,40,.25); }
.memories figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

/* Team */
.team-grid {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem;
}
.member img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%;
  background: var(--navy-800);
  filter: grayscale(.15);
  transition: filter .3s, transform .3s;
}
.member:hover img { filter: none; transform: translateY(-4px); }
.member h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1rem; }
.member p { margin: .25rem 0 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }

/* Partnerships */
.partner-feature {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.75rem, 4vw, 3.5rem); margin-bottom: 1.25rem; color: #fff;
  background: var(--grain), radial-gradient(ellipse 50% 70% at 85% 20%, rgba(160,170,200,.25), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.partner-feature-mark {
  width: clamp(6.5rem, 14vw, 10rem); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 1px solid rgba(255,255,255,.45); outline: 1px solid rgba(255,255,255,.2); outline-offset: 6px;
  font-family: "Poppins", sans-serif; font-weight: 300; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: .12em;
}
.partner-feature h3 { font-family: "Poppins", sans-serif; font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.partner-feature p { max-width: 42rem; opacity: .85; margin: 0 0 .9rem; }
.partner-tag { margin: 0 0 .75rem !important; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); opacity: 1 !important; }
.partner-tag-dark { color: var(--steel); }
.partner-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.partner-links .btn { display: inline-flex; align-items: center; gap: .5rem; }
.partner-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.partner { display: flex; flex-direction: column; }
.partner .partner-link { margin-top: auto; }
@media (max-width: 60rem) { .partner-grid { grid-template-columns: 1fr; } }
.partner { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy-700); padding: 2rem; }
.partner h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.partner p { color: var(--muted); margin: 0 0 1rem; }
.partner-link { font-weight: 600; text-decoration: none; color: var(--navy-700); }
.partner-link:hover { text-decoration: underline; }

/* Contact */
.contact {
  color: #fff; padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--grain), linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact p { opacity: .8; max-width: 30rem; }
.contact-links { display: grid; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .2s, border-color .2s;
}
.contact-card:hover { background: rgba(255,255,255,.08); border-color: var(--ice); }
.contact-card span { display: flex; flex-direction: column; }
.contact-card small { opacity: .7; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-inner { display: flex; align-items: center; gap: .75rem; padding-block: 1.5rem; }
.footer-inner p { margin: 0; }

/* ===== Tablet ===== */
@media (max-width: 60rem) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Phone ===== */
@media (max-width: 40rem) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .25rem; padding-block: .6rem; }
  nav { gap: 1.1rem; overflow-x: auto; width: 100%; }
  nav a { white-space: nowrap; font-size: .85rem; }
  html { scroll-padding-top: 6rem; }
  .about-grid, .contact-inner, .partner-feature, .partner-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .member p { font-size: .72rem; }
}

/* ===== Clickable team cards ===== */
.member a { display: block; text-decoration: none; color: inherit; }
.member a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.memories a { display: block; cursor: zoom-in; }

/* ===== Individual team member pages ===== */
.profile { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.back-link { display: inline-block; margin-bottom: 2rem; font-size: .9rem; font-weight: 600; color: var(--steel); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 24rem) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.profile-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; box-shadow: 0 24px 50px rgba(10,17,40,.22); }
.profile-text { padding-top: 1rem; }
.profile-text h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.profile-line { width: 4rem; height: 2px; background: var(--accent); margin: 1.75rem 0; }
.bio p { color: var(--muted); max-width: 38rem; }
.bio-placeholder { font-style: italic; }
.profile-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.profile-pager a { display: flex; flex-direction: column; text-decoration: none; font-weight: 600; }
.profile-pager a.next { text-align: right; }
.profile-pager small { font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.btn-dark { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

@media (max-width: 40rem) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 20rem; }
}
.contact-card small { overflow-wrap: anywhere; }

/* ===== Announcements page ===== */
nav a[aria-current="page"] { opacity: 1; border-color: var(--ice); }
.page-hero {
  color: #fff; text-align: center; padding-block: clamp(3.5rem, 9vw, 6rem);
  background: var(--grain), radial-gradient(ellipse 60% 60% at 65% 30%, rgba(160,170,200,.28), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-900) 70%);
}
.page-hero .lead { margin-bottom: 0; }
.announcements { max-width: 48rem; display: grid; gap: 1.5rem; }
.announcement { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy-700); padding: clamp(1.5rem, 4vw, 2.5rem); }
.announcement-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.announcement-tag { padding: .2rem .6rem; background: var(--ice); color: var(--navy-900); }
.announcement h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .75rem; }
.announcement p { color: var(--muted); margin: 0 0 .75rem; }
.announcement p:last-child { margin-bottom: 0; }
.announcement a { color: var(--navy-700); font-weight: 600; }
@media (max-width: 60rem) and (min-width: 40.01rem) { nav { gap: 1.1rem; } }
@media (max-width: 40rem) {
  nav { flex-wrap: wrap; overflow-x: visible; gap: .15rem 1.1rem; }
  html { scroll-padding-top: 8rem; }
}

/* ===== About page ===== */
.text-link { font-weight: 600; color: var(--navy-700) !important; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story-grid p { color: var(--muted); }
.story-photo { margin: 0; }
.story-photo img { width: 100%; box-shadow: 0 24px 50px rgba(10,17,40,.22); }
.story-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.vm { text-align: center; }
.vm svg { color: var(--navy-700); margin-bottom: 1rem; }
.vm h2 { font-size: 1rem; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-700); }
.vm p { color: var(--muted); max-width: 30rem; margin: 0 auto 1rem; }
.values-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.values-grid li { border-top: 2px solid var(--navy-700); padding-top: 1.25rem; }
.values-grid h3 { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 1.4rem; margin-bottom: .5rem; }
.values-grid p { color: var(--muted); margin: 0; font-size: .98rem; }
.values-cta { margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: rgba(10,17,40,.06); }
@media (max-width: 60rem) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .story-grid, .vm-grid { grid-template-columns: 1fr; } }

/* ===== Mascot: the blue cat sitting around the site ===== */
.cat { position: absolute; bottom: 100%; margin-bottom: -3px; width: 56px; height: auto; pointer-events: none; user-select: none; }
.hero-line { position: relative; }
.cat-hero { right: 9%; width: 62px; filter: brightness(1.25); }
.site-footer { position: relative; }
.cat-footer { right: max(1.5rem, calc((100% - 72rem) / 2)); transform: scaleX(-1); width: 50px; filter: brightness(1.15); }
.announcement { position: relative; }
.cat-card { right: 1.75rem; }
.values-grid li { position: relative; }
.cat-value { right: .25rem; width: 46px; margin-bottom: -1px; }
.profile-pager { position: relative; }
.cat-pager { left: 50%; margin-left: -28px; margin-bottom: -2px; transform: scaleX(-1); }
@media (max-width: 40rem) { .cat-hero { right: 6%; width: 50px; } }
.partner-feature { position: relative; }
.cat-feature { right: 2.5rem; width: 58px; }

/* ===== Contact form ===== */
.contact-inner { align-items: start; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact-links { margin-top: 2rem; }
.contact-form { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.contact-form h3 { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 1.5rem; margin-bottom: .25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(106,169,236,.3); }
.contact-form .btn { justify-self: start; cursor: pointer; font-family: inherit; padding-inline: 1.8rem; }
.contact-form .btn:hover { background: var(--navy-700); }
.contact .form-note { margin: 0; font-size: .85rem; color: var(--muted); opacity: 1; }
@media (max-width: 40rem) { .field-row { grid-template-columns: 1fr; } }
@media (max-width: 48rem) { .contact-inner { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn:disabled { opacity: .7; cursor: default; }
.contact .form-ok { color: #1b6b3a; font-weight: 600; }
.contact .form-err { color: #a33a2a; font-weight: 600; }
.field[hidden] { display: none; }
.contact-intro p:has(> .btn) { opacity: 1; margin-top: 1.5rem; }

/* ===== Cat page transition =====
   html::before = navy curtain with a light spotlight
   html::after  = the cat, played once from a strip of 6 frames */
html::before {
  content: ""; position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none;
  background:
    radial-gradient(circle at center, var(--paper) 0 118px, rgba(244,246,249,.18) 119px 126px, transparent 127px),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
html::after {
  content: ""; position: fixed; z-index: 1001; visibility: hidden; pointer-events: none;
  width: 144px; height: 150px; left: calc(50% - 72px); top: calc(50% - 75px);
  background: url("assets/mascot-walk-sprite.webp") 0 0 / 864px 150px no-repeat;
}
/* Leaving a page: curtain slides in, the cat plays its whole animation once */
html.leaving::before { visibility: visible; animation: curtain-in .28s cubic-bezier(.6, 0, .2, 1) both; }
html.leaving::after { visibility: visible; animation: cat-in .28s cubic-bezier(.6, 0, .2, 1) both, cat-walk 1.08s steps(6, jump-none) both; }
/* Arriving on the next page: the cat carries on from where it was, and the curtain slides away.
   The whole transition is about 0.8 s, so it ends before the cat's animation does. */
html.arriving::before { visibility: visible; animation: curtain-out .32s .08s cubic-bezier(.6, 0, .2, 1) both; }
html.arriving::after { visibility: visible; animation: cat-out .32s .08s cubic-bezier(.6, 0, .2, 1) both, cat-walk 1.08s steps(6, jump-none) -.4s both; }
@keyframes curtain-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes curtain-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes cat-in { from { transform: translateX(-100vw); } to { transform: none; } }
@keyframes cat-out { from { transform: none; } to { transform: translateX(100vw); } }
@keyframes cat-walk { from { background-position: 0 0; } to { background-position: -720px 0; } }
@media (prefers-reduced-motion: reduce) { html::before, html::after { display: none; } }

/* Footer credit */
.footer-inner { flex-wrap: wrap; }
.footer-credit { margin-left: auto !important; font-size: .8rem; opacity: .75; }
@media (max-width: 40rem) { .footer-credit { margin-left: 0 !important; width: 100%; } }

/* ===== About page: Our city (text + map) ===== */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.city-grid p { color: var(--muted); }
.city-map { margin: 0; position: sticky; top: 6rem; }
.city-map iframe { display: block; width: 100%; height: clamp(22rem, 60vh, 34rem); border: 1px solid var(--line); background: var(--navy-800); box-shadow: 0 24px 50px rgba(10,17,40,.2); }
.city-map figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.city-map a { color: var(--navy-700); font-weight: 600; }
@media (max-width: 48rem) { .city-grid { grid-template-columns: 1fr; } .city-map { position: static; } .city-map iframe { height: 20rem; } }

/* Footer credits: three short credits on their own row */
.footer-credit { margin-left: 0 !important; width: 100%; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.12); }

/* ===== Letter from the Secretary-General ===== */
.letter-grid { display: grid; grid-template-columns: minmax(0, 17rem) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.letter-photo { margin: 0; }
.letter-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; box-shadow: 0 24px 50px rgba(10,17,40,.2); }
.letter { max-width: 40rem; border-left: 2px solid var(--accent); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.letter h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.letter p { color: var(--muted); }
.letter-sign { margin-top: 2rem; display: flex; flex-direction: column; }
.letter-sign strong { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.letter-sign span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
@media (max-width: 48rem) { .letter-grid { grid-template-columns: 1fr; } .letter-photo { max-width: 12rem; } }
.partner-link-row { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; }
.partner-link-row .partner-link { margin-top: 0; }
.letter .letter-close { font-family: "Poppins", sans-serif; font-size: 1.3rem; color: var(--ink); margin-top: 1.5rem; }

/* ===== FAQ (in the contact section) ===== */
.faq { margin-top: 2.5rem; }
.faq h3 { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 1.35rem; margin-bottom: .75rem; }
.faq details { border-top: 1px solid rgba(255,255,255,.22); }
.faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }
.faq summary { list-style: none; cursor: pointer; padding: .95rem 2rem .95rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--ice); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--ice); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact .faq details p { margin: 0 0 1rem; max-width: none; opacity: .8; }
