/* ============================================================
   IEEE WIE Sup'Com Affinity Group — visual system
   No framework, no build step. See DESIGN.md for the reasoning.

   The organising idea is contrast of WEIGHT, not just colour:
   full-bleed photographic bands alternating with quiet light
   sections, so the page has peaks instead of one flat texture.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --ground:     #FDFCFE;
  --surface:    #FFFFFF;
  --wash:       #F6F1FA;
  --wash-deep:  #EFE6F6;
  --line:       rgba(95, 38, 132, 0.12);
  --line-firm:  rgba(95, 38, 132, 0.26);

  /* brand — carried over unchanged from the previous site */
  --plum:       #5f2684;
  --plum-lift:  #9e49c0;
  --plum-deep:  #35124C;
  --plum-ink:   #220B32;
  --glow:       rgba(95, 38, 132, 0.18);

  --ink:        #1A1420;
  --ink-soft:   #574C60;
  --ink-faint:  #8A8092;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: min(1240px, 90vw);
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 600; line-height: 1.04;
  margin: 0; letter-spacing: -0.028em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--plum); color: #fff; }

:focus-visible { outline: 2px solid var(--plum-lift); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: #fff; }

.shell { width: var(--shell); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--plum); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 0; }

/* ---------- brand lockup ----------
   The emblem is a circular seal with fine text arced around the
   ring. Below roughly 60px that ring is an unreadable smudge, so
   the mark never carries the name on its own: it is always paired
   with the name as live type, and the seal reads as a device. */
.lockup { display: flex; align-items: center; gap: 12px; flex: none; }
.lockup img { height: 46px; width: 46px; transition: height 0.4s var(--ease), width 0.4s var(--ease); }
.lockup-txt { display: flex; flex-direction: column; line-height: 1.12; }
.lockup-txt b {
  font-family: var(--display); font-weight: 700; font-size: 0.97rem;
  letter-spacing: -0.01em; color: var(--ink);
}
.lockup-txt span {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--plum);
}
.on-dark .lockup-txt b { color: #fff; }
.on-dark .lockup-txt span { color: rgba(255,255,255,0.75); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 16px 0;
  transition: padding 0.4s var(--ease), background 0.4s, box-shadow 0.4s;
}
.nav .shell { display: flex; align-items: center; gap: 24px; }
.nav.stuck {
  padding: 8px 0;
  background: rgba(253, 252, 254, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 18px 44px -34px var(--glow);
}
.nav.stuck .lockup img { height: 38px; width: 38px; }
/* over the hero photograph the bar is transparent and reversed */
.nav.on-dark:not(.stuck) .menu a { color: rgba(255,255,255,0.86); }
.nav.on-dark:not(.stuck) .menu a:hover { color: #fff; background: rgba(255,255,255,0.14); }
.nav.on-dark:not(.stuck) .burger i { background: #fff; }
.nav.stuck .lockup-txt b { color: var(--ink); }
.nav.stuck .lockup-txt span { color: var(--plum); }

.menu { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.menu a {
  position: relative; padding: 9px 14px; border-radius: 99px;
  font-size: 0.89rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.3s, background 0.3s;
}
.menu a:hover { color: var(--plum); background: var(--wash); }
.menu a.on { color: var(--plum); }
.nav.on-dark:not(.stuck) .menu a.on { color: #fff; }
.menu a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: currentColor;
}

.burger { display: none; flex: none; padding: 8px; border-radius: 10px; }
.burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); margin: 4px 0; transition: 0.3s var(--ease); }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO — full bleed, full height, the photograph does the talking
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* Legibility scrim. Dark at the top so the reversed nav holds, dark at
   the bottom so the headline holds, and deliberately thin across the
   middle so the faces stay visible — that is the whole point of the shot. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(34,11,50,0.80) 0%,
      rgba(34,11,50,0.30) 26%,
      rgba(34,11,50,0.22) 46%,
      rgba(34,11,50,0.72) 76%,
      rgba(34,11,50,0.95) 100%);
}
.hero-inner { padding: 160px 0 92px; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px; border-radius: 99px; backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(2.9rem, 8.4vw, 7.4rem);
  letter-spacing: -0.04em; max-width: 15ch;
  text-shadow: 0 2px 40px rgba(34,11,50,0.5);
}
.hero h1 em { font-style: normal; color: #E9C9FF; }
.hero-sub {
  margin-top: 26px; max-width: 58ch; font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 20px rgba(34,11,50,0.6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.66); z-index: 2;
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 99px;
  font-weight: 500; font-size: 0.94rem;
  border: 1px solid var(--plum); color: var(--plum);
  transition: background 0.35s var(--ease), color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.btn:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }
.btn.solid { background: var(--plum); color: #fff; box-shadow: 0 14px 34px -14px var(--glow); }
.btn.solid:hover { background: var(--plum-lift); border-color: var(--plum-lift); }
.btn svg { width: 15px; height: 15px; }
/* reversed, for photographic and deep-purple grounds */
.btn.light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn.light:hover { background: #fff; color: var(--plum); border-color: #fff; }
.btn.fill { background: #fff; color: var(--plum); border-color: #fff; }
.btn.fill:hover { background: var(--plum-lift); color: #fff; border-color: var(--plum-lift); }

/* ---------- section furniture ---------- */
.sec { padding: 120px 0; }
.sec--wash { background: var(--wash); }
.sec--tight { padding: 86px 0; }

/* A lit section between two dark ones.
   The board sits between mission and impact, both full plum bands, and
   on plain ground it read as the gap between them rather than a room of
   its own - five cards and a banner floating in a lot of nothing.

   Two layers fix it, and neither is ever behind type: the section's own
   content is opaque, so both sit under it at negative z-index and only
   show in the space the cards do not use.

   One, the plum leaks back in at the two seams, strongest where the
   dark bands actually touch this section and gone well before the
   middle, so the three sections read as one lit room between two dark
   ones instead of three unrelated stripes.

   Two, a dot matrix carries the open ground. It is masked out of the
   centre and fades up towards the edges, which is exactly where the
   emptiness was: beside the shell, and under the last row where only
   two cards sit centred. 26px pitch, one pixel each, 14% plum - close
   enough to feel like paper grain rather than a pattern. */
.sec--lit { position: relative; isolation: isolate; overflow: hidden; }
.sec--lit::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(128% 62% at 50% -12%, rgba(95,38,132,0.17), transparent 64%),
    radial-gradient(128% 58% at 50% 112%, rgba(53,18,76,0.15), transparent 64%),
    radial-gradient(60% 50% at 88% 22%, rgba(158,73,192,0.10), transparent 70%);
}
.sec--lit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(95,38,132,0.26) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(72% 48% at 50% 48%, transparent 26%, #000 84%);
          mask-image: radial-gradient(72% 48% at 50% 48%, transparent 26%, #000 84%);
}

.eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--plum); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--plum-lift); }
.on-dark .eyebrow { color: #E9C9FF; }
.on-dark .eyebrow::before { background: rgba(233,201,255,0.6); }

.sec-head { max-width: 680px; margin-bottom: 60px; }
.sec-head.mid { margin-inline: auto; text-align: center; }
.sec-head.mid .eyebrow::before { display: none; }
.sec-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.sec-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }
.on-dark .sec-head p { color: rgba(255,255,255,0.78); }
.on-dark h2, .on-dark h3 { color: #fff; }

/* ============================================================
   MOTTO — one quiet, enormous typographic beat after the hero
   ============================================================ */
.motto { padding: 104px 0; text-align: center; }
.motto p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 5.2vw, 4.1rem); line-height: 1.08;
  letter-spacing: -0.035em; max-width: 18ch; margin-inline: auto;
}
.motto p span { color: var(--plum); }
.motto .rule { width: 56px; height: 2px; background: var(--plum-lift); margin: 0 auto 34px; }

/* ---------- about ---------- */
/* ============================================================
   ABOUT — masthead in the shell, then a full-bleed band of panels

   Every section on this page that works commits to the full width and
   lets the photography get big: the hero, the team band, impact, the
   call to action. This one was the only one still inside the shell with
   200px thumbnails beside a column of text, and next to its neighbours
   it read as timid rather than quiet.

   So: the words are set as an editorial masthead across the shell, and
   the pictures run edge to edge beneath them as a band of tall panels
   that is wider than the screen and cut off on both sides — the strip
   carries on past the frame, which is the whole idea.
   ============================================================ */
.about-head {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  /* start, not end: the heading block is shorter than the copy, so
     bottom-aligning dropped the eyebrow 120px below the first line of
     text and the two columns read as unrelated */
  gap: 76px; align-items: start; margin-bottom: 54px;
}
.about-head h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 13ch; }
.about-copy p { color: var(--ink-soft); font-size: 1.04rem; }
.about-copy p + p { margin-top: 16px; }

.about-strip { overflow: hidden; }
/* The band is a seamless loop. The track holds the six panels twice over,
   so translating it left by exactly one set's width lands panel 7 where
   panel 1 began and the restart is invisible. One set is 6 panels plus 6
   gaps; translateX(-50%) of the whole track is 6 panels plus 5.5 gaps, so
   it is half a gap short -- hence the extra 7px on a 14px gap. */
.about-strip-row {
  display: flex; gap: 14px; width: max-content;
  height: clamp(300px, 42vh, 450px);
  animation: about-drift 52s linear infinite;
  will-change: transform;
}
@keyframes about-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 7px)); }
}
/* hold it still while someone is looking at a particular picture */
.about-strip:hover .about-strip-row,
.about-strip:focus-within .about-strip-row { animation-play-state: paused; }

.about-strip-row figure {
  flex: 0 0 clamp(210px, 20vw, 290px); margin: 0; position: relative;
  border-radius: var(--r); overflow: hidden; background: var(--wash-deep);
  transition: transform 0.55s var(--ease);
}
.about-strip-row img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease);
}
/* a faint plum veil so six different rooms read as one band */
.about-strip-row figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--plum); mix-blend-mode: multiply;
  opacity: 0.12; transition: opacity 0.55s;
}
.about-strip-row figure:hover { transform: translateY(-6px); }
.about-strip-row figure:hover::after { opacity: 0; }
.about-strip-row figure:hover img { transform: scale(1.06); }

/* ============================================================
   MISSION — reversed deep-purple band, numbered editorial list.
   Deliberately not a grid of white boxes.
   ============================================================ */
.band-plum { background: var(--plum-deep); color: #fff; padding: 120px 0; }
.mission-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 72px; }
.mission-row {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.16);
}
.mission-row b {
  font-family: var(--mono); font-size: 0.78rem; color: #E9C9FF;
  padding-top: 5px; flex: none; letter-spacing: 0.08em;
}
.mission-row h3 { font-size: 1.32rem; margin-bottom: 8px; }
.mission-row p { color: rgba(255,255,255,0.72); font-size: 0.96rem; }

/* ============================================================
   IMPACT — numbers over a photograph
   ============================================================ */
.impact { position: relative; padding: 128px 0; overflow: hidden; isolation: isolate; color: #fff; }
.impact-bg { position: absolute; inset: 0; z-index: -2; }
.impact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.impact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(34,11,50,0.94) 18%, rgba(53,18,76,0.82) 55%, rgba(95,38,132,0.62) 100%);
}
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 52px; }
.impact-item b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.4rem); line-height: 0.92; letter-spacing: -0.04em;
}
.impact-item span {
  display: block; margin-top: 12px; font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* ---------- team ----------
   The banner is back, because the 2026/27 group photograph finally
   exists. It had been dropped for one reason only: the sole group shot
   was the 2025/26 one, and last year's board standing over this year's
   names would have been quietly wrong. That shot keeps its place in the
   about strip, where it reads as a memory. The caution left in
   DESIGN.md was about THAT photograph, not about the banner.

   None of the old banner's machinery came back with it. That version
   was built around a 1170x1835 PORTRAIT squeezed into a wide box: inset
   from the left, a feathered mask down one edge, and a scrim driven
   sideways to clear the subject. This source is 1195x896, landscape, so
   the band just crops it and the caption lies across the foot - over
   five people from the waist down, rather than across anyone's face.

   The portraits below still carry their own weight: three up and two
   centred rather than five across, which at a 1180 shell is a 381px
   card against 258.

   The section sits between mission and impact, two dark bands, so the
   SECTION stays light. The banner is a photograph inside it, not a
   third dark band. */
.team-banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg); margin-bottom: 44px;
  /* width:100% is load-bearing: with an auto width the min-height feeds
     back through aspect-ratio and sets an implicit MINIMUM WIDTH, which
     on a narrow desktop comes out wider than the shell and scrolls the
     page sideways. Pinning the width lets the ratio drive height only. */
  width: 100%; aspect-ratio: 2 / 1; min-height: 300px;
  display: flex; align-items: flex-end;
  background: var(--plum-ink);
}
.team-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* 52%, measured rather than guessed. The band is 2:1 and the source
     is 4:3, so a third of the height is cropped away and the only
     question is which third. At 30% the window ran from 10% to 77% of
     the frame and the top fifth of the band was bare wall; 52% starts
     it at 18%, just above their heads, and carries down to 85%. */
  object-fit: cover; object-position: center 52%;
  /* -2, not -1: the scrim below is also negative and at an equal
     z-index tree order decides, so an image at -1 would paint over it. */
  z-index: -2;
}
/* A bottom-up wash and nothing else. The five stand right across the
   frame, so a scrim driven in from one side would sit on the face at
   that end; the foot of the band is torso and wall. */
.team-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(34,11,50,0.93) 0%,
    rgba(34,11,50,0.72) 22%,
    rgba(34,11,50,0.26) 44%,
    rgba(34,11,50,0) 62%);
}
.team-banner-copy { padding: 40px 44px; color: #fff; max-width: 52ch; }
.team-banner-copy h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
/* the band is reversed but its section is not, so it restates the dark rules */
.team-banner-copy .eyebrow { color: #E9C9FF; }
.team-banner-copy .eyebrow::before { background: rgba(233,201,255,0.6); }
.team-banner-copy p { margin-top: 14px; color: rgba(255,255,255,0.94); font-size: 1.02rem; }
.team-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
/* justify-content does the centring of the last row on its own, at every
   width, where a grid would need an explicit column per breakpoint */
.member { flex: 0 1 calc((100% - 2 * 20px) / 3); }
.member { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.member-img { aspect-ratio: 3/4; overflow: hidden; background: var(--wash-deep); }
.member-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.member:hover .member-img img { transform: scale(1.06); }
/* the caption lives on the photograph, so the card is all image */
.member-body {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 18px;
  background: linear-gradient(to top, rgba(34,11,50,0.94) 30%, transparent);
  color: #fff;
}
.member-body h3 { font-size: 1rem; color: #fff; }
.member-body p {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #E9C9FF; margin-top: 4px;
}
.member-social { display: flex; gap: 7px; margin-top: 12px; }
.member-social a {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.4); color: #fff;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.member-social a:hover { background: #fff; color: var(--plum); border-color: #fff; }
.member-social svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- awards ---------- */
.awards-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; align-items: stretch; }
.award {
  position: relative; border-radius: var(--r); overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end;
  background: var(--plum-deep);
}
.award img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.award::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34,11,50,0.95) 12%, rgba(34,11,50,0.35) 55%, rgba(34,11,50,0.12));
}
.award:hover img { transform: scale(1.05); }
.award-body { position: relative; z-index: 1; padding: 28px; color: #fff; }
.award-body h3 { font-size: 1.14rem; color: #fff; margin: 10px 0 8px; }
.award-body .meta { color: rgba(255,255,255,0.7); }
.pill {
  display: inline-block; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--wash-deep); color: var(--plum);
  padding: 5px 12px; border-radius: 99px;
}
.award-body .pill { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(6px); }
.meta { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-faint); }

/* ---------- events ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ev {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
.ev:hover { transform: translateY(-6px); border-color: var(--line-firm); box-shadow: 0 30px 56px -32px var(--glow); }
.ev-img { aspect-ratio: 16/10; overflow: hidden; background: var(--wash-deep); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ev:hover .ev-img img { transform: scale(1.05); }
.ev-body { padding: 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.ev-body h3 { font-size: 1.06rem; line-height: 1.26; }
.ev-body h3 a { transition: color 0.3s; }
.ev:hover .ev-body h3 a { color: var(--plum); }
.ev-body .meta { margin-top: auto; }
.sec-foot { margin-top: 52px; text-align: center; }

/* ---------- full-bleed CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 136px 0; text-align: center; color: #fff;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(34,11,50,0.88), rgba(53,18,76,0.92));
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; margin-inline: auto; color: #fff; }
.cta p { margin: 20px auto 34px; max-width: 54ch; color: rgba(255,255,255,0.82); }

/* ---------- events page: year groups ---------- */
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; justify-content: center; }
.year-nav a {
  font-family: var(--mono); font-size: 0.78rem; padding: 9px 18px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.year-nav a:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.year { margin-bottom: 68px; }
.year > h2 {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.14em;
  color: var(--plum); margin-bottom: 26px; padding-bottom: 13px;
  border-bottom: 1px solid var(--line); font-weight: 500;
}

/* ---------- gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-item {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-sm);
  overflow: hidden; background: var(--wash-deep); cursor: zoom-in;
  border: 0; padding: 0;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gal-item::after {
  content: ""; position: absolute; inset: 0; background: var(--plum);
  opacity: 0; transition: opacity 0.4s; mix-blend-mode: multiply;
}
.gal-item:hover img { transform: scale(1.07); }
.gal-item:hover::after { opacity: 0.2; }
/* a few tiles span two columns so the grid is not a flat waffle */
.gal-grid .gal-item:nth-child(9n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(26, 20, 32, 0.9); backdrop-filter: blur(8px); }
dialog.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--r-sm); }
.lb-close {
  position: absolute; top: -14px; right: -14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.lb-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s;
}
.faq details[open] { border-color: var(--line-firm); box-shadow: 0 20px 44px -32px var(--glow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 21px 24px;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 9px; height: 9px; border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 24px 24px; color: var(--ink-soft); font-size: 0.96rem; }
.faq .answer a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.faq .answer ul { margin-top: 10px; }
.faq .answer li { padding-left: 18px; position: relative; margin-top: 6px; }
.faq .answer li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--plum-lift); }

/* ---------- footer ---------- */
.foot { background: var(--plum-ink); color: #EFE6F6; padding: 86px 0 34px; }
.foot a { transition: color 0.3s; }
.foot a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 52px; }
.foot-brand p { color: rgba(239,230,246,0.7); font-size: 0.95rem; max-width: 38ch; margin-top: 22px; }
.foot h4 { font-size: 0.72rem; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239,230,246,0.55); margin-bottom: 18px; font-weight: 500; }
.foot li + li { margin-top: 10px; }
.foot li a { font-size: 0.95rem; color: rgba(239,230,246,0.85); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(239,230,246,0.26); color: #EFE6F6;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.socials a:hover { background: rgba(255,255,255,0.15); border-color: rgba(239,230,246,0.5); transform: translateY(-3px); }
.socials svg { width: 15px; height: 15px; fill: currentColor; }
.foot-base {
  margin-top: 62px; padding-top: 26px; border-top: 1px solid rgba(239,230,246,0.14);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.84rem; color: rgba(239,230,246,0.55);
}

/* ---------- inner page header ---------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 186px 0 92px; color: #fff;
}
.page-head-bg { position: absolute; inset: 0; z-index: -2; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(34,11,50,0.9), rgba(34,11,50,0.78));
}
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); color: #fff; }
.page-head p { margin-top: 18px; color: rgba(255,255,255,0.8); max-width: 58ch; }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .member { flex-basis: calc((100% - 20px) / 2); }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .sec, .band-plum { padding: 84px 0; }
  .about-head { grid-template-columns: 1fr; gap: 26px; margin-bottom: 38px; }
  .about-head h2 { max-width: none; }
  /* the loop carries every picture past on its own, so the panels only
     need to be big enough to read rather than wide enough to swipe */
  .about-strip-row { height: 300px; animation-duration: 38s; }
  .mission-list { grid-template-columns: 1fr; gap: 0; }
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { gap: 24px; }
  .hero-inner { padding: 136px 0 80px; }
  .page-head { padding: 142px 0 68px; }

  /* margin-left: auto, because the thing that used to push the burger
     right was margin-left: auto on .menu, and .menu goes position:
     absolute just below this line. Out of the flex flow it pushes
     nothing, so the burger fell in beside the brand. */
  .burger { display: block; margin-left: auto; }
  .menu {
    position: absolute; top: calc(100% + 8px); left: 5vw; right: 5vw;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: rgba(253,252,254,0.98); backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 30px 60px -28px rgba(34,11,50,0.55);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  /* inside the panel the links are always on light, even over the hero */
  .nav.on-dark:not(.stuck) .menu a { color: var(--ink-soft); }
  .nav.on-dark:not(.stuck) .menu a:hover { color: var(--plum); background: var(--wash); }
  .nav.on-dark:not(.stuck) .menu a.on { color: var(--plum); }
  .menu a { padding: 14px 16px; font-size: 1rem; }
  .menu a.on::after { display: none; }
  .nav .shell { position: relative; }
}

@media (max-width: 680px) {
  /* Two across, not one, as on the GRSS-AESS site. With twenty members
     a single column is twenty screenfuls. The icons already sit under
     the role here, so only the padding comes in a little. */
  .member { flex-basis: calc((100% - 20px) / 2); }

  /* The caption would fill the whole band at this width and leave the
     photograph as scrim, so the two stack instead of overlapping. */
  .team-banner { display: block; aspect-ratio: auto; min-height: 0; background: var(--plum-deep); }
  .team-banner img { position: static; aspect-ratio: 4 / 3; object-position: center 26%; }
  .team-banner::before { display: none; }
  .team-banner-copy { padding: 26px 20px 28px; max-width: none; }
  .member-body { padding: 44px 14px 14px; }
  .awards-grid, .ev-grid, .faq-grid, .impact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 38px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal-grid .gal-item:nth-child(9n+1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .hero h1 { max-width: 100%; }
  .impact-item b { font-size: 3.2rem; }
  .lockup-txt b { font-size: 0.88rem; }
  .lockup-txt span { font-size: 0.54rem; }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
  /* a loop nobody asked for is what this preference exists to turn off, but
     simply stopping it would strand four of the six panels off-screen, so
     the band becomes something you scroll by hand instead */
  .about-strip { overflow-x: auto; }
  .about-strip-row { animation: none !important; }
}
