/* ==========================================================================
   McMaster AIAA — styles
   Edit the colour tokens below to re-theme the whole site.
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}

:root {
  /* Brand colours: white page + AIAA navy. Swap these to re-theme the whole site. */
  --navy: #0b2a5b;        /* AIAA navy */
  --night: #030a1a;       /* deep navy (space) */

  /* Light theme (default): white page, navy text. */
  --bg: #ffffff;
  --soft: #f3f6fb;        /* pale blue-grey panels, like the old site */
  --panel: #ffffff;
  --ink: #0b2a5b;         /* main text */
  --muted: #4b6188;       /* secondary text */
  --line: rgba(11, 42, 91, 0.16);
  --hover: rgba(11, 42, 91, 0.06);
  --accent: #0b2a5b;      /* buttons, lines */
  --on-accent: #ffffff;   /* text on top of accent */
  --hi: #1b56b8;          /* small highlighted text */

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 78rem;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Dark (navy) sections reuse the same classes with flipped colours. */
.on-dark {
  --bg: #0b2a5b; --soft: #0b2a5b; --panel: #030a1a; --ink: #ffffff; --muted: #b3c0da;
  --line: rgba(255, 255, 255, 0.22); --hover: rgba(255, 255, 255, 0.09);
  --accent: #ffffff; --on-accent: #0b2a5b; --hi: #8fb8ff;
  color: var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 0.92; letter-spacing: 0.005em; }

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

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Stars (fade in as you climb) ---------- */
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(11, 42, 91, 0.08); }
.site-header.menu-open { background: transparent; border-bottom-color: transparent; }
.site-header.menu-open .menu-toggle { color: #fff; border-color: rgba(255,255,255,.35); }
.site-header.menu-open .brand { opacity: 0; }
.site-header.is-hidden { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { height: 3.1rem; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.01em; color: var(--ink); }
.brand-text small { font-size: 0.78rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }
.nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 1rem; padding: 0.3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--hi); }
.nav .nav-join {
  background: var(--accent); color: var(--on-accent); padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600;
  transition: background-color 0.25s, transform 0.25s;
}
.nav .nav-join::after { display: none; }
.nav .nav-join:hover { background: var(--hi); }
.nav .nav-join[aria-current="page"] { color: var(--on-accent); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-weight: 600; padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
}

@media (max-width: 1400px) { .brand-text small { display: none; } }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-block; position: relative; z-index: 61; }
  .nav {
    position: fixed; inset: 0; z-index: 60; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 0.4rem; padding: 6rem var(--gutter) 3rem; background: var(--night); color: #fff;
    --ink: #fff; --muted: #b3c0da; --accent: #fff; --on-accent: #0b2a5b; --hi: #8fb8ff; --line: rgba(255,255,255,.22);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.6s var(--ease); }
  .nav a { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 14vw, 5rem); line-height: 1; }
  .nav .nav-join { font-size: clamp(3rem, 14vw, 5rem); padding: 0; background: none; color: var(--hi); border-radius: 0; }
  .nav .nav-join:hover { background: none; }
}

/* ---------- Page curtain (transition between pages) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--navy); color: #fff;
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(100%);
}
.curtain span { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 16vw, 12rem); letter-spacing: 0.02em; }
html.is-entering .curtain { transform: translateY(0); }

/* ---------- Altimeter (scroll = altitude) ---------- */
.altimeter {
  --alt: #0b2a5b; --alt-dim: rgba(11, 42, 91, 0.25); --alt-hi: #1b56b8;
  position: fixed; right: clamp(0.8rem, 2vw, 1.6rem); top: 50%; z-index: 20;
  height: min(52vh, 28rem); transform: translateY(-50%); width: 12.5rem; pointer-events: none;
  color: var(--alt); transition: color 0.4s;
}
/* Flips to white while it is over a dark (navy) section such as the hero and footer. */
.altimeter.over-dark { --alt: #ffffff; --alt-dim: rgba(255, 255, 255, 0.3); --alt-hi: #8fb8ff; }
.alt-track { position: absolute; right: 4.4rem; top: 0; bottom: 0; width: 2px; background: var(--alt-dim); transition: background-color 0.4s; }
.alt-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--alt); transition: background-color 0.4s; }
.alt-tick { position: absolute; right: -4px; width: 10px; height: 2px; background: var(--alt); opacity: 0.7; transition: background-color 0.4s; }
.alt-tick span {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: 0.74rem; color: var(--alt); text-align: right; line-height: 1.2; opacity: 0.85;
}
.alt-marker { position: absolute; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--alt); transform: translateY(50%); transition: background-color 0.4s; }
.alt-readout {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--alt); white-space: nowrap; line-height: 1;
}
.alt-readout small { font-size: 0.95rem; font-weight: 700; margin-left: 0.15rem; color: var(--alt-hi); }
@media (max-width: 1499px) { .alt-tick span { display: none; } .altimeter { width: 7rem; } .alt-track { right: 3.6rem; } }
@media (min-width: 701px) and (max-width: 1400px) { .wrap { padding-right: 7rem; } }
@media (max-width: 700px) { .altimeter { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--hi); border-color: var(--hi); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Masked line reveal (hero + page titles) ---------- */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; }
.js .line > span { transform: translateY(110%); }
.js .fade-in { opacity: 0; transform: translateY(14px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 9rem 0 clamp(3rem, 8vh, 6rem); overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% 115%, #2a6fd6 0%, rgba(42, 111, 214, 0) 62%),
    radial-gradient(120% 90% at 85% 125%, #0f3f8f 0%, #0b2a5b 38%, #030a1a 80%);
}
.hero-path { z-index: 1; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-path path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; opacity: 0.85; }
.hero-path .orbit { stroke: var(--line); stroke-dasharray: 3 9; opacity: 1; }
.hero-path circle { fill: var(--accent); }
.hero h1 { font-size: clamp(3.5rem, 15.5vw, 12rem); font-weight: 900; line-height: 0.92; }
.hero h1 .line > span { white-space: nowrap; }
.hero-copy { position: relative; z-index: 2; }
.hero-sub { margin-top: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.6rem; max-width: 46rem; }
.hero-sub p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(5rem, 12vw, 10rem) 0; }
.big-statement {
  font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: 0.005em;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem); max-width: 22ch; margin: 0;
}
.big-statement .w { opacity: 0.18; }
.lede { margin-top: clamp(2rem, 5vw, 4rem); display: grid; gap: 1rem; max-width: 40rem; color: var(--muted); }
.lede p { margin: 0; }

.section-title { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; margin-bottom: clamp(2.5rem, 6vw, 5rem); }

/* ---------- Flight plan timeline ---------- */
.plan { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding-left: clamp(2.2rem, 6vw, 5rem); list-style: none; margin: 0; }
.plan-line { position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--line); }
.plan-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.stop { position: relative; opacity: 0.4; transition: opacity 0.6s; }
.stop::before {
  content: ""; position: absolute; left: calc(-1 * clamp(2.2rem, 6vw, 5rem) + 0.45rem); top: 0.75rem;
  width: 14px; height: 14px; margin-left: -6px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted); transition: background-color 0.4s, border-color 0.4s, transform 0.4s;
}
.stop.is-reached { opacity: 1; }
.stop.is-reached::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.stop-when { color: var(--hi); font-weight: 600; margin-bottom: 0.4rem; }
.stop h3 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; margin-bottom: 0.9rem; }
.stop p { color: var(--muted); margin: 0 0 0.6rem; }
.stop a.inline { color: var(--hi); text-underline-offset: 3px; }

.section.soft { background: var(--soft); }
.footer { background: var(--navy); }

/* ---------- Two-column text blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 900; }
.split .body p { color: var(--muted); }
.split .body p:first-child { color: var(--ink); font-size: 1.2rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.link-arrow {
  display: inline-flex; gap: 0.5rem; align-items: center; color: var(--hi); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color 0.3s, gap 0.3s;
}
.link-arrow:hover { border-color: var(--accent); gap: 0.9rem; }

/* ---------- Ruled rows (goals, events) ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1rem, 5vw, 5rem);
  padding: clamp(1.6rem, 3.4vw, 2.8rem) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), background-color 0.4s;
}
.rows > li:hover { padding-left: 1.2rem; background: linear-gradient(90deg, var(--hover), transparent 70%); }
.rows h3 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; }
.rows p { margin: 0 0 0.6rem; color: var(--muted); }
.rows .when { color: var(--hi); font-weight: 600; margin-bottom: 0.35rem; }
@media (max-width: 800px) { .rows > li { grid-template-columns: 1fr; gap: 0.7rem; } }

.goal-list > li { grid-template-columns: 1fr; }
.goal-list p { font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--ink); font-family: var(--body); max-width: 40ch; margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(9rem, 20vh, 13rem) 0 clamp(2.5rem, 6vw, 5rem); background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(4rem, 13vw, 11rem); font-weight: 900; line-height: 0.86; max-width: 14ch; }
.page-head h1.long { font-size: clamp(3.2rem, 9.5vw, 8.5rem); max-width: none; }
.page-head p { margin-top: 1.6rem; color: var(--muted); font-size: 1.2rem; max-width: 44ch; }

/* ---------- Members ---------- */
.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.person {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) 2.4rem; gap: 1.4rem; align-items: center;
  padding: 1.2rem 0.5rem; border-bottom: 1px solid var(--line);
  transition: background-color 0.35s, color 0.35s, padding 0.45s var(--ease);
}
.person:hover { background: var(--accent); color: var(--on-accent); padding-inline: 1.4rem; }
.person:hover .person-meta, .person:hover .person-role { color: var(--on-accent); }
.avatar {
  width: 4.2rem; height: 4.2rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--soft); color: var(--hi); font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1; }
.person-role { font-weight: 600; color: var(--hi); transition: color 0.35s; }
.person-meta { color: var(--muted); transition: color 0.35s; }
.person a.social { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid currentColor; }
.person a.social:hover { background: var(--on-accent); color: var(--accent); }
@media (max-width: 860px) {
  .person { grid-template-columns: 3.4rem minmax(0, 1fr) 2.4rem; gap: 1rem; }
  .avatar { width: 3.4rem; height: 3.4rem; font-size: 1.2rem; }
  .person-role, .person-meta { grid-column: 2; }
  .person a.social { grid-column: 3; grid-row: 1; }
}
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.member-grid li { padding: 1rem 0.2rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.1rem; }
.member-grid strong { font-weight: 600; }
.member-grid span { color: var(--muted); font-size: 0.95rem; }
.empty { color: var(--muted); padding: 2rem 0; }

/* ---------- Calendar ---------- */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cal-title { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; }
.cal-controls { display: flex; gap: 0.6rem; }
.icon-btn, .chip {
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; height: 2.8rem; padding: 0 1.2rem;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.icon-btn.sq { width: 2.8rem; padding: 0; }
.icon-btn:hover, .chip:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-dow { padding: 0.7rem 0.6rem; color: var(--muted); font-weight: 600; font-size: 0.9rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day {
  position: relative; min-height: clamp(4.2rem, 11vw, 7.4rem); padding: 0.5rem; text-align: left; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.3rem; overflow: hidden;
}
.cal-day.out { color: var(--muted); opacity: 0.45; }
.cal-day.today .num { background: var(--accent); color: var(--on-accent); }
.cal-day .num { font-weight: 600; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.95rem; }
.cal-ev {
  font: inherit; font-size: 0.8rem; font-weight: 600; text-align: left; cursor: pointer; border: 0; border-radius: 4px;
  background: var(--accent); color: var(--on-accent); padding: 0.15rem 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.cal-ev:hover { background: var(--hi); color: #fff; }
@media (max-width: 700px) { .cal-ev { font-size: 0; height: 0.55rem; padding: 0; } .cal-dow { font-size: 0.75rem; padding: 0.5rem 0.2rem; } }

.undated { margin-top: clamp(2.5rem, 5vw, 4rem); }
.undated h2, .undated h4 { font-family: var(--display); font-weight: 800; line-height: 1; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1.2rem; }
.undated .rows h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.undated button.title-btn { all: unset; cursor: pointer; }

dialog.event-dialog {
  border: 1px solid var(--line); border-radius: 1rem; background: var(--bg); color: var(--ink); padding: 2rem; width: min(32rem, calc(100% - 2rem));
}
dialog.event-dialog::backdrop { background: rgba(16, 6, 11, 0.72); backdrop-filter: blur(4px); }
.event-dialog h2 { font-size: 2.8rem; margin-bottom: 1.2rem; }
.event-dialog dl { margin: 0 0 1.2rem; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; }
.event-dialog dt { color: var(--hi); font-weight: 600; }
.event-dialog dd { margin: 0; }
.event-dialog p { color: var(--muted); }

/* ---------- Contact / join ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; text-decoration: none;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0.5rem; transition: background-color 0.35s, color 0.35s, padding 0.45s var(--ease);
}
.contact-list a:hover { background: var(--accent); color: var(--on-accent); padding-inline: 1.4rem; }
.contact-list .k { font-weight: 600; color: var(--hi); transition: color 0.35s; min-width: 7rem; }
.contact-list a:hover .k { color: var(--on-accent); }
.contact-list .v { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { padding: clamp(5rem, 10vw, 9rem) 0 2rem; margin-top: 0; }
.footer-cta {
  display: block; text-decoration: none; font-family: var(--display); font-weight: 900; line-height: 0.85;
  font-size: clamp(5rem, 22vw, 20rem); transition: color 0.4s, letter-spacing 0.6s var(--ease);
}
.footer-cta:hover { color: var(--hi); letter-spacing: 0.03em; }
.footer-row { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; justify-content: space-between; align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-row strong { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.footer-row p { margin: 0; color: var(--muted); }
.footer-row a.email { color: var(--ink); text-underline-offset: 3px; }
.social { display: flex; gap: 0.7rem; }
.social a { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.25s, color 0.25s; }
.social a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.social svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Our mission: smaller type + orbit diagram ---------- */
.mission { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.mission-statement {
  font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: 0.005em;
  font-size: clamp(1.7rem, 3.2vw, 2.9rem); max-width: 26ch; margin: 0;
}
.mission-statement .w { opacity: 0.2; }
.mission .lede { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.pillars { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); max-width: 36rem; }
.pillars li { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.98rem; }
.pillars b { font-family: var(--display); color: var(--hi); margin-right: 0.5rem; font-weight: 800; }
.orbit-fig {
  margin: 0; padding: clamp(1rem, 3vw, 2rem); border-radius: 1.5rem; color: #b3c0da;
  background: radial-gradient(90% 90% at 50% 40%, #12336f 0%, #071b44 55%, #030a1a 100%);
  box-shadow: 0 24px 60px rgba(11, 42, 91, 0.25);
}
.orbit-fig figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #b3c0da; }
.orbit-svg { width: 100%; height: auto; max-width: 34rem; margin-inline: auto; overflow: visible; }
.orbit-svg .ring { fill: none; stroke: #8fb8ff; stroke-opacity: 0.55; stroke-width: 1.4; stroke-dasharray: 3 8; }
.orbit-svg .sat circle { fill: #fff; stroke: #8fb8ff; stroke-width: 3; }
.orbit-svg .sat .num { fill: #030a1a; font: 700 18px var(--body); }
.orbit-svg .spin { transform-box: view-box; transform-origin: 300px 300px; animation: orbit 60s linear infinite; }
.orbit-svg .spin2 { animation-duration: 90s; animation-direction: reverse; }
.orbit-svg .spin3 { animation-duration: 130s; }
.orbit-svg .spin4 { animation-duration: 180s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .mission { grid-template-columns: 1fr; } .orbit-svg { max-width: 26rem; } }

/* ---------- Future initiatives: flight plan + calendar ---------- */
.initiatives { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.initiatives .stop h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cal-card {
  position: sticky; top: 6rem; container-type: inline-size;
  border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 2.4vw, 1.8rem);
  background: var(--panel); box-shadow: 0 12px 40px rgba(11, 42, 91, 0.08);
}
.cal-card .cal-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cal-card .cal-bar { margin-bottom: 1.1rem; }
.cal-card .cal-day { min-height: 4.6rem; padding: 0.35rem; }
.cal-card .cal-ev { font-size: 0.72rem; }
.cal-card .undated { margin-top: 1.4rem; }
.cal-card .rows > li { grid-template-columns: 1fr; gap: 0.4rem; padding: 1rem 0; }
.cal-card .rows > li:hover { padding-left: 0.6rem; }
.cal-card .rows h3 { font-size: 1.6rem; }
.cal-card .rows p { font-size: 0.95rem; }
@container (max-width: 34rem) { .cal-card .cal-ev, .cal-ev { font-size: 0; height: 0.5rem; padding: 0; } .cal-card .cal-day { min-height: 3.4rem; } }
@media (max-width: 1000px) { .initiatives { grid-template-columns: 1fr; } .cal-card { position: static; } }

/* ---------- Members: photo cards ---------- */
.exec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.exec-card { position: relative; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 10px 30px rgba(11, 42, 91, 0.08); }
.exec-photo { aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #123a7a, #061a40); }
.exec-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.exec-card:hover .exec-photo img { transform: scale(1.06); }
.exec-photo svg { width: 62%; height: auto; color: rgba(143, 184, 255, 0.5); }
.exec-info { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.15rem; }
.exec-info .person-name { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.exec-info .person-role { color: var(--hi); }
.exec-info .person-meta { font-size: 0.92rem; }
.exec-card a.social { color: #fff; position: absolute; top: 0.8rem; right: 0.8rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(3, 10, 26, 0.65); backdrop-filter: blur(4px); border: 1px solid var(--line); transition: background-color 0.25s, color 0.25s; }
.exec-card a.social:hover { background: #fff; color: var(--navy); }
.member-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.member-grid li { grid-template-columns: 3.2rem 1fr; column-gap: 0.9rem; align-items: center; padding: 0.9rem 0.2rem; }
.member-grid .m-avatar { grid-row: span 2; width: 3.2rem; height: 3.2rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--soft); color: var(--hi); font-family: var(--display); font-weight: 800; border: 1px solid var(--line); }
.member-grid .m-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .line > span, .js .fade-in { transform: none; opacity: 1; }
  .big-statement .w { opacity: 1; }
  .stop { opacity: 1; }
  .curtain { display: none; }
  .orbit-svg .spin { animation: none; }
}

/* ---------- Sponsors page ---------- */
.sponsor-tier + .sponsor-tier { margin-top: clamp(2rem, 4vw, 3.5rem); }
.sponsor-tier h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: clamp(0.8rem, 2vw, 1.4rem); }
.sponsor-card {
  display: grid; place-items: center; height: 8.5rem; padding: 1.2rem; text-decoration: none; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
a.sponsor-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 42, 91, 0.14); }
.sponsor-card img { max-width: 100%; max-height: 5rem; width: auto; height: auto; object-fit: contain; }
.sponsor-name { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.sponsor-card.placeholder { border-style: dashed; background: transparent; color: var(--muted); font-weight: 600; }
.sponsor-card.placeholder:hover { color: var(--ink); border-color: var(--ink); }
.become {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem); border-radius: 1.5rem; background: linear-gradient(160deg, #12336f 0%, #0b2a5b 45%, #030a1a 100%);
}
.become-title { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; margin-bottom: 1.4rem; }
.become-copy p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.become-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.become-list li { display: grid; gap: 0.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.become-list b { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.become-list span { color: var(--muted); }
@media (max-width: 900px) { .become { grid-template-columns: 1fr; } }


/* =========================================
   MEMBERS ORGANIZATIONAL CHART
========================================= */

.org-chart {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Shared profile cards */

.org-person {
  width: 100%;
  max-width: 190px;
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid rgba(11, 42, 91, 0.13);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(11, 42, 91, 0.08);
  text-align: left;
}

.org-photo {
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #7193c7;
  background: linear-gradient(145deg, #193f78, #071d42);
}

.org-photo svg {
  width: 65px;
  height: 65px;
}

.org-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.org-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.org-name {
  color: #0b2a5b;
  font-size: 1rem;
  line-height: 1.2;
}

.org-role {
  color: #24558c;
  font-size: 0.78rem;
  font-weight: 600;
}

.org-meta {
  color: #718096;
  font-size: 0.7rem;
}

.org-linkedin {
  color: #24558c;
  font-size: 0.72rem;
  text-decoration: none;
  margin-top: 4px;
}

/* Faculty advisor */

.org-advisor-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-advisor {
  border: 2px solid #b7c9e3;
}

.org-advisor-area::after {
  content: "";
  height: 38px;
  border-left: 2px dashed #9aafcf;
}

/* Chair and Vice Chair */

.org-leadership {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.org-chair,
.org-vice-chair {
  width: 190px;
  margin-top: 0;
}


.org-chair .org-photo,
.org-vice-chair .org-photo {
  height: 165px;
}

.org-vice-chair::before {
  display: none;
}

/* Department branches */

.org-departments {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 55px;
}

.org-departments::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #9aafcf;
}

.org-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.org-branch::before {
  content: "";
  position: absolute;
  top: -28px;
  height: 28px;
  width: 2px;
  background: #9aafcf;
}

.org-department-title {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  margin: 0;
  border-radius: 8px;
  background: #0b2a5b;
  color: white;
  font-size: 0.9rem;
  text-align: center;
}

.org-people {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.org-people .org-person {
  max-width: 100%;
}

/* General members */

.member-item .m-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive layout */

@media (max-width: 900px) {
  .org-departments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 45px;
  }

  .org-departments::before {
    display: none;
  }

  .org-branch::before {
    display: none;
  }
}


@media (max-width: 600px) {
  .org-chart {
    padding-left: 8px;
    padding-right: 8px;
  }

  .org-leadership {
    gap: 12px;
  }

  .org-chair,
  .org-vice-chair {
    width: 145px;
  }

  .org-chair .org-photo,
  .org-vice-chair .org-photo {
    height: 120px;
  }

  .org-departments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .org-person {
    max-width: 160px;
  }

  .org-photo {
    height: 120px;
  }

  .org-department-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .org-departments {
    grid-template-columns: 1fr;
  }
}

/* Individual member photo positioning */
.org-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Giada - move photo framing down */
.person-giada-dipasquale .org-photo img {
  object-position: center 50%;
}

/* Koen - move photo framing down */
.person-koen-gerber .org-photo img {
  object-position: center 40%;
}

/* LinkedIn icon on member cards */
.org-linkedin {
  position: absolute;
  right: 12px;
  bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  color: #0a66c2;
  background: #eef5fc;
  border-radius: 6px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.org-linkedin svg {
  width: 18px;
  height: 18px;
}

.org-linkedin:hover {
  background: #d9eafa;
  transform: translateY(-2px);
}

.org-linkedin:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 3px;
}

/* Make room for the icon */
.org-info {
  position: relative;
  padding-bottom: 42px;
}


/* PROJECTS PAGE */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.project-card {
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid rgba(11, 42, 91, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(11, 42, 91, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 42, 91, 0.13);
}

.project-image {
  height: 210px;
  overflow: hidden;
  background: #0b2a5b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-placeholder {
  color: #fff;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 2rem;
}

.project-info {
  padding: 20px;
}

.project-name {
  margin: 0 0 10px;
  color: #0b2a5b;
  font-size: 1.25rem;
}

.project-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #e8f0fb;
  color: #17447e;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-department {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.85rem;
}

.project-description {
  margin: 0 0 16px;
  color: var(--text, #334155);
  line-height: 1.65;
}

.project-link {
  display: inline-block;
  color: #17447e;
  font-weight: 600;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link:focus-visible {
  outline: 2px solid #17447e;
  outline-offset: 4px;
}

/* Tablet */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-image {
    height: 200px;
  }

  .project-info {
    padding: 16px;
  }
}

/* Fix large headings getting clipped */
.page-head h1,
.section-title {
  height: auto;
  max-height: none;
  overflow: visible;
  line-height: 1.15;
  padding-bottom: 0.12em;
}

/* =========================================
   MEMBERS ORGANIZATIONAL CHART — SIX COLUMNS
========================================= */

.org-chart {
  max-width: 1320px;
  width: 100%;
}

.org-departments {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.org-branch {
  min-width: 0;
}

.org-person {
  width: 100%;
  max-width: none;
}

.org-department-title {
  min-height: 42px;
  padding: 7px 4px;
  font-size: 0.82rem;
  line-height: 1.15;
}

.org-people {
  gap: 10px;
}

.org-photo {
  height: 105px;
}

.org-info {
  padding: 10px;
  gap: 4px;
}

.org-name {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.org-role {
  font-size: 0.72rem;
  line-height: 1.3;
}

.org-meta {
  font-size: 0.66rem;
  line-height: 1.3;
}

/* Smaller screens: preserve all six departments in one row */
@media (max-width: 900px) {
  .org-departments {
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .org-departments::before,
  .org-branch::before {
    display: none;
  }
}

/* Allow long member titles to wrap */
.org-role {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
  line-height: 1.3;
  overflow-wrap: break-word;
  padding-right: 28px;
}

/* Individual member photo adjustments */

/* Basmalah — slightly more zoomed in */
.person-basmalah-saeed .org-photo img {
  transform: scale(1.15);
  transform-origin: center center;
}

/* Dr. Cree — fill the image area without excessive cropping */
.person-dr-cree .org-photo img {
  width: 50%;
  height: 50%;
  object-fit: cover;
  object-position: center 35%;
  transform: none;
}

/* Dr. Cree — Faculty Advisor */
.person-dr-cree .org-photo {
  height: 135px;
  overflow: hidden;
  background: #ffffff;
}

.person-dr-cree .org-photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  transform: none !important;
}

/* Allow Dr. Cree's faculty title to display fully */
.person-dr-cree .org-meta {
  display: block;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: normal;
  line-height: 1.3;
}

/* LinkedIn icon: top-right of the text area, same size on every card */
.org-info { position: relative; padding: 10px; min-height: 0; }
.org-linkedin {
  top: 10px; right: 10px; bottom: auto;
  width: 28px; height: 28px; z-index: 2;
  background: #eef5fc; box-shadow: none;
}
.org-linkedin:hover { background: #d9eafa; }
.org-name, .org-role { padding-right: 34px; }
.org-meta { padding-right: 0; }

/* Lock LinkedIn icon size: identical on every card */
.org-person .org-linkedin {
  box-sizing: border-box !important;
  width: 28px !important; height: 28px !important;
  min-width: 28px !important; min-height: 28px !important;
  max-width: 28px !important; max-height: 28px !important;
  padding: 0 !important; margin: 0 !important;
  top: 10px !important; right: 10px !important; bottom: auto !important; left: auto !important;
  transform: none;
}
.org-person .org-linkedin:hover { transform: none; }
.org-person .org-linkedin svg {
  width: 16px !important; height: 16px !important; flex: none;
}

/* Org chart: horizontal line runs from the center of Projects to the center of Web & Technology */
.org-departments::before {
  left: calc((100% - 60px) / 12);
  right: calc((100% - 60px) / 12);
}

/* Dr. Cree: portrait-shaped photo so his head isn't cropped */
.org-advisor-area .org-advisor { width: 215px; max-width: 215px; }
.org-advisor-area .person-dr-cree .org-photo { height: auto; aspect-ratio: 4 / 5; }
.org-advisor-area .person-dr-cree .org-photo img { object-position: center 15%; }

/* Danah: keep "Chair & Co-Founder" on one line, and give her name room */
.org-chair, .org-vice-chair { width: 240px; }
.person-danah-shaath .org-role { white-space: nowrap; }

/* Chair and Vice Chair: taller photo area, anchored to the top so heads aren't cropped */
.org-chair .org-photo,
.org-vice-chair .org-photo { height: auto; aspect-ratio: 1 / 1; }
.org-chair .org-photo img,
.org-vice-chair .org-photo img { object-position: center 8%; }

/* Org chart: all department columns share rows, so second-row cards line up */
.org-departments { row-gap: 0; }
.org-branch {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0; gap: 0;
  align-items: stretch; justify-items: stretch;
}
.org-people { display: contents; }
.org-branch .org-person { margin-top: 10px; }

/* Org chart: keep the connector stub centered above each department */
.org-branch::before {
  left: 50%;
  transform: translateX(-50%);
}

/* Org chart: seven departments */
.org-departments { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.org-departments::before {
  left: calc((100% - 72px) / 14);
  right: calc((100% - 72px) / 14);
}
@media (max-width: 900px) {
  .org-departments { grid-template-columns: repeat(7, minmax(145px, 1fr)); }
}

/* Org chart: departments wrap into rows of six, each row with its own connector line */
.org-departments { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.org-departments::before { display: none; }
.org-branch::after {
  content: ""; position: absolute; top: -28px; left: -6px; right: -6px;
  height: 2px; background: #9aafcf;
}
.org-branch:nth-child(6n+1)::after { left: 50%; }
.org-branch:nth-child(6n)::after,
.org-branch:last-child::after { right: 50%; }
.org-branch:nth-child(n+7) { margin-top: 70px; }

@media (max-width: 900px) {
  .org-departments { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
  .org-branch::after { display: none; }
  .org-branch:nth-child(n+7) { margin-top: 30px; }
}

/* Org chart: rows of five (ten departments = two even rows) */
.org-departments { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.org-branch:nth-child(6n+1)::after { left: -6px; }
.org-branch:nth-child(6n)::after { right: -6px; }
.org-branch:nth-child(5n+1)::after { left: 50%; }
.org-branch:nth-child(5n)::after,
.org-branch:last-child::after { right: 50%; }
.org-branch:nth-child(n+6) { margin-top: 70px; }

@media (max-width: 900px) {
  .org-departments { grid-template-columns: repeat(5, minmax(145px, 1fr)); }
  .org-branch:nth-child(n+6) { margin-top: 30px; }
}

/* Org chart: six departments in a single row */
.org-departments { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.org-branch:nth-child(5n+1)::after { left: -6px; }
.org-branch:nth-child(5n)::after { right: -6px; }
.org-branch:nth-child(6n+1)::after { left: 50%; }
.org-branch:nth-child(6n)::after,
.org-branch:last-child::after { right: 50%; }
.org-branch:nth-child(n+6) { margin-top: 0; }
.org-branch:nth-child(n+7) { margin-top: 70px; }

@media (max-width: 900px) {
  .org-departments { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
  .org-branch:nth-child(n+6) { margin-top: 0; }
  .org-branch:nth-child(n+7) { margin-top: 30px; }
}

/* Org chart: seven departments in a single row */
.org-departments { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.org-branch:nth-child(6n+1)::after { left: -6px; }
.org-branch:nth-child(6n)::after { right: -6px; }
.org-branch:nth-child(7n+1)::after { left: 50%; }
.org-branch:nth-child(7n)::after,
.org-branch:last-child::after { right: 50%; }
.org-branch:nth-child(n+7) { margin-top: 0; }
.org-branch:nth-child(n+8) { margin-top: 70px; }

@media (max-width: 900px) {
  .org-departments { grid-template-columns: repeat(7, minmax(145px, 1fr)); }
  .org-branch:nth-child(n+7) { margin-top: 0; }
  .org-branch:nth-child(n+8) { margin-top: 30px; }
}

/* Fix homepage hero heading width */
.hero h1 {
  font-size: clamp(4rem, 11vw, 10.5rem);
  max-width: 100%;
  letter-spacing: -0.025em;
}

/* Members chart: Tasha + Danah, then Dr. Cree, then Koen + Giada, then departments */
.org-advisor-area::before { content: ""; height: 38px; border-left: 2px dashed #9aafcf; }
.org-secretaries { display: flex; flex-direction: row; justify-content: center; gap: 24px; }
.org-secretary { width: 215px; max-width: 215px; }
.org-secretary .org-photo { height: auto; aspect-ratio: 1 / 1; }
.org-secretary .org-photo img { object-position: center 20%; }

.org-departments::before {
  display: block; content: ""; position: absolute;
  top: -55px; left: 50%; right: auto; width: 0; height: 27px;
  background: none; border-left: 2px dashed #9aafcf;
}
.org-departments { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.org-departments .org-branch::after { left: -6px; right: -6px; }
.org-departments .org-branch:nth-child(6n+1)::after { left: 50%; }
.org-departments .org-branch:nth-child(6n)::after,
.org-departments .org-branch:last-child::after { right: 50%; }
.org-departments .org-branch { margin-top: 0; }
.org-departments .org-branch:nth-child(n+7) { margin-top: 70px; }

@media (max-width: 900px) {
  .org-departments::before { display: none; }
  .org-departments { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
  .org-departments .org-branch:nth-child(n+7) { margin-top: 30px; }
}

/* Dr. Cree and the secretaries share one row */
.org-advisor-row { display: flex; flex-direction: row; align-items: stretch; justify-content: center; gap: 24px; }
.org-secretary .org-photo { height: auto; aspect-ratio: 4 / 5; }
.org-secretary .org-photo img { object-position: center 20%; }

/* Giada: center on the photo inside her tall screenshot and zoom past the black bars */
.org-secretary.person-giada-dipasquale .org-photo img {
  object-position: center 50%;
  transform: scale(1.9);
}

/* One continuous dashed line from the Dr. Cree row down to the department line */
.org-advisor-area::after { border-left-color: transparent; }
.org-departments::before {
  top: -93px;
  height: 65px;
  left: calc(50% - 1px);
}

/* Boluwatiwi: show the top of his head, and keep his name on one line */
.person-boluwatiwi-mafikuyomi .org-photo img { object-position: center 0%; }
.person-boluwatiwi-mafikuyomi .org-name { font-size: 0.78rem; letter-spacing: -0.01em; }