@charset "UTF-8";
/* ==========================================================================
   IEEE Computer Society Chapter, Sup'Com Student Branch
   Design system for the 2026-2027 board identity.

   Derived from the "Meet the Executive Board 2026-2027" poster set:
   off-black ground, neon line-art dragons, circuit traces, dot matrices,
   heavy condensed display type, one signature colour per board member.

   PALETTE RULE
     One interaction accent: --accent, the amber of the Computer Society
     mark itself. Every link, button, focus ring and hover state on the site
     uses it and nothing else. It is a light colour, so --accent-ink is the
     page ground rather than white.
     --duality-blue is decorative only. It appears solely in the paired
     wash quoted from the cover art, never as a button or link.
     Red survives in exactly one place outside the team grid: the form error
     state, where it means an error and not the brand.
     Per-member colours exist only inside the team grid, where the board's
     own artwork assigns one colour per person.

   SHAPE RULE
     Cards and containers  var(--r-lg)
     Media and inner cores var(--r-md)
     Inputs                var(--r-sm)
     Buttons and badges    var(--r-pill)

   THEME
     Dark only, by brand. color-scheme is pinned to dark.

   MOTION
     transform and opacity only. All reveals are IntersectionObserver
     driven and collapse to static under prefers-reduced-motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces, one cool grey family throughout */
  --bg: #07080c;
  --bg-elev: #0b0d13;
  --surface: #10131b;
  --surface-2: #171b25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  /* Ink */
  --ink: #edf0f6;
  --ink-2: #a2abbb;
  --ink-3: #6b7484;

  /* Accent system.
     The amber is the Computer Society mark's own colour, sampled from the
     logo: a single flat #FFA600 across the whole roundel. Because it is a
     light colour, the ink that sits on top of it is the page ground, not
     white -- white on this amber is 1.96:1 and cannot be read. Against the
     ground the amber itself runs 10.2:1, so it also works as text.
     --accent-rgb carries the same value for the translucent washes, which
     were hard-coded copies of the accent before and would not have followed
     this change. */
  --accent: #ffa600;
  --accent-hi: #ffbe45;
  --accent-ink: #07080c;
  --accent-rgb: 255, 166, 0;
  --duality-blue: #2e7dff;

  /* Board member signatures, team grid only */
  --m-chair: #e5202b;
  --m-vice: #f2b233;
  --m-secretary: #ec5c8d;
  --m-community: #4a90ff;
  --m-hr: #6fd03a;
  --m-training: #a45cf0;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;

  /* Space */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5.5rem, 11vw, 9.5rem);

  /* Radius */
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-heavy: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 260ms;
  --dur-slow: 720ms;

  /* Layers */
  --z-grain: 90;
  --z-nav: 100;
  --z-overlay: 200;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fixed film grain. Never on a scrolling container. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent-hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hi);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
  position: relative;
}

/* Optical correction: sections read better with slightly more bottom air. */
.section--lead {
  padding-block: calc(var(--section) * 0.62) var(--section);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: calc(var(--z-overlay) + 10);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}

h1,
.t-hero {
  font-size: clamp(2.6rem, 6.6vw, 5.75rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.025em;
}

h2,
.t-section {
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
}

h3,
.t-card {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.15em;
  max-width: 65ch;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

/* Telemetry micro-type. Metadata, roles, dates, counters. */
.telemetry {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

/* Brushed-metal quote from the cover lockup. Hero headline only. */
.metal {
  background: linear-gradient(
    176deg,
    #ffffff 4%,
    #c8ced9 32%,
    #7d8797 52%,
    #dfe4ec 70%,
    #9aa3b2 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.72rem 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover {
  --btn-bg: var(--accent-hi);
  color: var(--btn-ink);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

/* Button-in-button trailing glyph. */
.btn__icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translate(2px, -1px) scale(1.05);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  --btn-bg: var(--surface-2);
  --btn-ink: var(--ink);
  border-color: var(--accent);
}

.btn--ghost .btn__icon {
  background: rgba(255, 255, 255, 0.09);
}

/* Quiet tertiary link, used where a third button would be noise. */
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.link-quiet:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. Navigation. Floating glass pill, detached from the top edge.
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  padding-top: 1.1rem;
  transition: padding-top var(--dur-slow) var(--ease-heavy);
}

.nav.is-stuck {
  padding-top: 0.5rem;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 66px;
  padding: 0 0.6rem 0 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(11, 13, 19, 0.72);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(4, 5, 9, 0.5);
  transition: background-color var(--dur-slow) var(--ease-heavy),
    border-color var(--dur-slow) var(--ease-heavy);
}

.nav.is-stuck .nav__inner {
  background: rgba(9, 11, 16, 0.9);
  border-color: var(--line-2);
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__brand img {
  height: 34px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav__link[aria-current] {
  color: var(--ink);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.32);
}

.nav__cta {
  flex-shrink: 0;
  margin-left: 0.35rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
}

/* Hamburger that morphs into a cross. */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur-slow) var(--ease-heavy),
    opacity var(--dur) var(--ease);
}

.nav__toggle span:nth-child(1) {
  transform: translate(-50%, -5px);
}

.nav__toggle span:nth-child(2) {
  transform: translate(-50%, 0);
}

.nav__toggle span:nth-child(3) {
  transform: translate(-50%, 5px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* Full-screen menu with staggered mask reveal. */
.nav__panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  background: rgba(7, 8, 12, 0.94);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.nav__panel.is-open {
  display: flex;
}

.nav__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__panel li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  animation: menu-in 620ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

.nav__panel a {
  display: block;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-stretch: 82%;
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav__panel a[aria-current] {
  color: var(--accent-hi);
}

@keyframes menu-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav__list,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   7. Hero. Asymmetric split, red and blue duality wash from the cover.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 13vw, 9.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25% -12% auto -22%;
  height: 135%;
  pointer-events: none;
  background: radial-gradient(
      50% 44% at 6% 26%,
      rgba(var(--accent-rgb), 0.24),
      transparent 70%
    ),
    radial-gradient(
      50% 44% at 96% 64%,
      rgba(46, 125, 255, 0.22),
      transparent 70%
    );
}

/* Circuit dot matrix, quoted from the poster corner. */
.hero::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 4%;
  width: 190px;
  height: 150px;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.34) 1.4px,
    transparent 1.4px
  );
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 78%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.hero__brand::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--accent);
}

/* Two lines, always. The iron rule: a hero headline never runs to four. */
.hero__title {
  font-size: clamp(2.4rem, 5.3vw, 4.7rem);
  margin-bottom: 1.4rem;
}

.hero__line {
  display: block;
}

.hero__accent {
  color: var(--accent-hi);
}

.hero p {
  margin-bottom: 2rem;
  max-width: 46ch;
}

.hero__figure {
  position: relative;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(
    150deg,
    rgba(var(--accent-rgb), 0.16),
    rgba(46, 125, 255, 0.14)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 34px 80px rgba(4, 6, 14, 0.66);
}

/* Cap the poster so the whole hero clears a laptop viewport. */
.hero__figure {
  max-width: 415px;
  margin-left: auto;
}

.hero__figure img {
  width: 100%;
  border-radius: var(--r-md);
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__figure {
    max-width: 400px;
    margin-inline: 0;
  }
  .hero::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Statement block
   -------------------------------------------------------------------------- */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}

.statement__body p {
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
}

.statement__body strong {
  color: var(--ink);
  font-weight: 600;
}

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

/* --------------------------------------------------------------------------
   9. Photo mosaic. Varied spans, no equal-card row.
   -------------------------------------------------------------------------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 15vw, 190px);
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
  transition: transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
}

.mosaic figure:hover img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.06);
}

.mosaic figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.95rem 0.75rem;
  background: linear-gradient(transparent, rgba(7, 8, 12, 0.88));
  font-family: var(--font-display);
  font-stretch: 82%;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mosaic .m-a {
  grid-column: span 3;
  grid-row: span 2;
}
.mosaic .m-b {
  grid-column: span 3;
}
.mosaic .m-c {
  grid-column: span 2;
}
.mosaic .m-d {
  grid-column: span 1;
}
.mosaic .m-e {
  grid-column: span 2;
}
.mosaic .m-f {
  grid-column: span 4;
}

@media (max-width: 860px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .mosaic .m-a,
  .mosaic .m-b,
  .mosaic .m-c,
  .mosaic .m-d,
  .mosaic .m-e,
  .mosaic .m-f {
    grid-column: span 1;
    grid-row: span 1;
  }
  .mosaic .m-a {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* --------------------------------------------------------------------------
   10. Team. Gapless dense bento, six cells, six members, zero holes.
        4 cols x 3 rows = 12 units. Chair 4, Vice 2, Sec 1, Comm 1, HR 2, Tr 2.
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(300px, auto);
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.member {
  --a: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-slow) var(--ease-heavy),
    transform var(--dur-slow) var(--ease-heavy);
}

/* Accent hairline along the top edge, lit from the member's own colour. */
.member::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--a) 22%,
    var(--a) 78%,
    transparent
  );
  opacity: 0.55;
  transition: opacity var(--dur-slow) var(--ease-heavy);
  z-index: 2;
}

.member:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--a) 48%, transparent);
}

.member:hover::before {
  opacity: 1;
}

.member__media {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 4px 4px;
  background: var(--bg-elev);
}

.member__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform var(--dur-slow) var(--ease-out);
}

.member:hover .member__media img {
  transform: scale(1.045);
}

.member__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.95rem 0.75rem 0.7rem;
}

.member__name {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin: 0;
}

.member__role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a);
  margin: 0;
}

/* Whole card is the lightbox trigger. */
.member__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: var(--r-lg);
}

.member__link:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: -3px;
}

.member--chair {
  --a: var(--m-chair);
  grid-column: span 2;
  grid-row: span 2;
}
.member--vice {
  --a: var(--m-vice);
  grid-column: span 2;
}
.member--secretary {
  --a: var(--m-secretary);
  grid-column: span 1;
}
.member--community {
  --a: var(--m-community);
  grid-column: span 1;
}
.member--hr {
  --a: var(--m-hr);
  grid-column: span 2;
}
.member--training {
  --a: var(--m-training);
  grid-column: span 2;
}

@media (max-width: 1040px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(270px, auto);
  }
  .member--chair {
    grid-column: span 2;
    grid-row: span 1;
  }
  .member--vice,
  .member--hr,
  .member--training {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .team-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(340px, auto);
  }
  .member--chair,
  .member--vice,
  .member--secretary,
  .member--community,
  .member--hr,
  .member--training {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* --------------------------------------------------------------------------
   11. Events rail. Scroll-snap, replaces the old carousel dependency.
   -------------------------------------------------------------------------- */
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 30%);
  gap: 14px;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-bottom: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  /* Bleed the rail to the viewport edge so it reads as scrollable. */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: var(--r-pill);
}

.event {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease),
    transform var(--dur-slow) var(--ease-heavy);
}

.event:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: inherit;
}

.event__media {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
}

.event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.event:hover .event__media img {
  transform: scale(1.05);
}

.event__body {
  padding: 0.95rem 0.75rem 0.8rem;
}

.event__title {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0;
}

/* Full archive grid on events.html */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

/* --------------------------------------------------------------------------
   12. Pull quote
   -------------------------------------------------------------------------- */
.quote {
  max-width: 27ch;
  margin: 0;
}

.quote blockquote {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.quote__mark {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 1.5rem;
  background: var(--accent);
}

.quote figcaption {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.quote figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.quote-layout__figure {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.quote-layout__figure img {
  width: 100%;
  border-radius: var(--r-md);
}

@media (max-width: 860px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
  .quote {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.25rem;
  background: var(--bg-elev);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: start;
}

.footer__word {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

.social {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.social a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 148px;
}

/* Placeholder passes AA against --bg-elev. Never used as a label. */
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.24);
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin: 0;
}

.field__error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ff7a82;
  margin: 0;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff7a82;
}

.field.has-error .field__error {
  display: block;
}

.form__status {
  display: none;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  font-size: 0.9375rem;
}

.form__status.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   15. Gallery and lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery button {
  display: block;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
    transform var(--dur-slow) var(--ease-heavy);
}

.gallery button:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery button:hover img {
  transform: scale(1.05);
}

.lightbox {
  width: min(94vw, 760px);
  max-width: 94vw;
  max-height: 92dvh;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(4, 5, 9, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: calc(92dvh - 16px);
  object-fit: contain;
  border-radius: var(--r-md);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   16. Sub-page header
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-top: clamp(8.5rem, 14vw, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -60% -10% auto -20%;
  height: 190%;
  pointer-events: none;
  background: radial-gradient(
      44% 40% at 8% 34%,
      rgba(var(--accent-rgb), 0.2),
      transparent 70%
    ),
    radial-gradient(
      44% 40% at 92% 60%,
      rgba(46, 125, 255, 0.16),
      transparent 70%
    );
}

.page-head > * {
  position: relative;
  z-index: 1;
}

.page-head p {
  margin-top: 1.15rem;
}

/* --------------------------------------------------------------------------
   17. Empty state
   -------------------------------------------------------------------------- */
.empty {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--accent-hi);
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   18. Scroll reveal. transform and opacity only.
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .nav__panel li {
    opacity: 1;
    transform: none;
  }

  .member:hover,
  .event:hover,
  .gallery button:hover {
    transform: none;
  }

  .member:hover .member__media img,
  .event:hover .event__media img,
  .gallery button:hover img,
  .mosaic figure:hover img {
    transform: none;
  }
}
