/* NASL — North American Students London
   Colours come from the badge: navy field, white lettering, the red swoosh. */

:root {
  --navy: #13286b;
  --navy-deep: #0b1a4a;
  --navy-step: #1a3380;
  --red: #d8202a;
  --red-deep: #b5121c;
  --white: #ffffff;
  --paper: #f2f4f9;
  --paper-step: #e3e8f3;
  --ink-soft: #c5d0ee;         /* secondary text on navy */
  --navy-soft: #3d4f86;        /* secondary text on paper */

  --font-display: "Gambarino", "Times New Roman", serif;
  --font-text: "General Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-display: clamp(4.75rem, 12vw, 11.5rem);

  --gutter: clamp(16px, 2.2vw, 32px);
  --section-gap: clamp(80px, 9vw, 160px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-press: 140ms;
  --t-hover: 220ms;
}

/* ---------- Reset and base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-wrap: balance;
}
h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.on-paper :focus-visible, .paper :focus-visible { outline-color: var(--navy); }
html { scrollbar-color: var(--navy-step) var(--navy-deep); }
input, textarea { caret-color: var(--red); }

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

.skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: absolute; left: var(--gutter); top: 12px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 18px; font-weight: 500;
}

.wrap { padding-inline: var(--gutter); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Links and buttons ---------- */

.link {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 56px; padding: 0 28px;
  font-family: var(--font-text); font-size: var(--step-body); font-weight: 500;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--red); color: var(--white);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.arrow { width: 0.9em; height: 0.9em; flex: none; }
.btn .arrow { transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-deep); }
  .btn--navy:hover { background: var(--navy-deep); }
  .btn--white:hover { background: var(--paper-step); }
  .btn:hover .arrow { transform: translateX(4px); }
}

/* ---------- Header ---------- */

.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
}
.site-header--over { position: absolute; inset: 0 0 auto 0; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-family: var(--font-display); font-size: 1.75rem; line-height: 1;
}
.brand img { width: 52px; height: 52px; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav-list a:not(.btn) { text-decoration: none; padding: 10px 0; position: relative; }
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-hover) var(--ease-out);
}
.nav-list a[aria-current="page"]::after { transform: scaleX(1); background: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .nav-list a:not(.btn):hover::after { transform: scaleX(1); }
}
.nav-list .btn { min-height: 48px; padding: 0 20px; }
.menu-toggle {
  display: none; min-height: 48px; padding: 0 18px; border: 0; border-radius: 0;
  background: var(--white); color: var(--navy); font-weight: 500; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: fixed; inset: 0; z-index: 30;
    background: var(--navy-deep);
    padding: 96px var(--gutter) 40px;
    display: flex; flex-direction: column;
    visibility: hidden; opacity: 0;
    transition: opacity 150ms ease-out, visibility 0s linear 150ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 200ms var(--ease-out); }
  .site-nav .nav-list { transform: translateY(-8px); transition: transform 150ms ease-out; }
  .site-nav.is-open .nav-list { transform: none; transition: transform 240ms var(--ease-out); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-list a:not(.btn) { font-family: var(--font-display); font-size: 3rem; line-height: 1.05; }
  .nav-list li:last-child { margin-top: 24px; width: 100%; }
  .nav-list .btn { width: 100%; min-height: 56px; }
  .menu-toggle[aria-expanded="true"] { position: relative; z-index: 40; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: max(100svh, 680px);
  display: grid;
  grid-template-rows: 82fr minmax(150px, 18fr);
  overflow: hidden;
  --hero-top: max(16vh, 120px);
  --hero-size: clamp(3rem, 11vw, 13rem);
}
.hero__field { background: var(--navy); padding: 0 var(--gutter) 40px; position: relative; }
/* The society's full name runs the width of the screen on two lines. */
.hero__field h1 {
  font-size: var(--hero-size);
  line-height: 0.86;
  padding-top: var(--hero-top);
}
.hero__field h1 .line { white-space: nowrap; }
.hero__below { display: flex; align-items: flex-start; gap: 5vw; margin-top: 40px; }
.hero__tagline { font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; }
.hero__more { display: inline-block; margin-top: 20px; font-size: var(--step-body); }
/* The next event, live, in the space between the intro and the photo. */
.hero__next {
  display: grid; gap: 6px; max-width: 26vw;
  text-decoration: none;
}
.hero__next-title { font-family: var(--font-display); font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.05; }
.hero__next-meta { color: var(--ink-soft); }
.hero__next-count { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero__next-rsvp {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .hero__next:hover .hero__next-rsvp { text-decoration-color: currentColor; }
  .hero__next:hover .arrow { transform: translateX(4px); }
}
.hero__next .arrow { transition: transform var(--t-hover) var(--ease-out); }

.hero__band {
  background: var(--red);
  display: flex; align-items: center; justify-content: flex-start; gap: 40px;
  padding: 24px var(--gutter);
  position: relative; z-index: 1;
}
/* Sentence and action stay left of the photo's foot. */
.hero__band p { max-width: min(30ch, 30vw); font-size: var(--step-body); line-height: 1.4; }
.hero__band .btn { flex: none; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; flex: none; }

/* The photo is stuck on over the end of "London" and straddles the seam. */
.hero__photo {
  position: absolute; z-index: 2;
  left: 72vw; width: 24vw; aspect-ratio: 3 / 4;
  top: calc(var(--hero-top) + var(--hero-size) * 0.86 + 2vw);
  transform: rotate(5deg);
}
/* Laptop widths: a smaller photo that stays above the seam so the button keeps its room. */
@media (min-width: 861px) and (max-width: 1199px) {
  .hero__photo { width: 22vw; }
}
.hero__photo figcaption { display: none; }
.hero__photo .arch { width: 100%; height: 100%; border-radius: 999px 999px 0 0; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

@media (max-width: 860px) {
  .hero { min-height: 0; display: flex; flex-direction: column; --hero-top: 128px; --hero-size: 12.4vw; }
  .hero__photo { order: 1; }
  .hero__band { order: 2; }
  .hero__below { flex-direction: column; gap: 28px; margin-top: 24px; }
  .hero__intro, .hero__next { max-width: 40%; }
  .hero__tagline { font-size: var(--step-body); }
  .hero__next-title { font-family: var(--font-text); font-weight: 500; font-size: var(--step-body); line-height: 1.3; }
  .hero__next-meta { display: none; }
  /* On a phone the photo tucks under the end of "London" and drops onto the red band. */
  .hero__field { padding-bottom: 32px; min-height: calc(var(--hero-top) + 19vw + 65vw); }
  .hero__photo {
    position: absolute; left: auto; right: -6%;
    top: calc(var(--hero-top) + 19vw);
    width: 58%;
  }
  .hero__band { flex-direction: column; align-items: stretch; gap: 24px; padding-top: calc(12vw + 24px); padding-bottom: 32px; }
  .hero__band p { max-width: 36ch; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- One crew, every campus ---------- */

.campus { background: var(--navy-deep); padding: var(--section-gap) 0; overflow: hidden; }
.campus__head {
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: end;
}
.campus__head h2 { font-size: var(--step-head); max-width: 14ch; }
.campus__copy { display: grid; gap: 16px; max-width: 60ch; font-size: var(--step-lead); line-height: 1.4; }
.campus__copy p + p { font-size: var(--step-body); line-height: 1.5; }
.campus__pics { padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campus__pics img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.campus__pics figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--ink-soft); }

/* The universities slide left in one continuous band. */
.marquee { margin: clamp(48px, 6vw, 96px) 0; }
.marquee__row { display: flex; width: max-content; }
.marquee__track {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  padding: 0 var(--gutter);
  font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 7rem); line-height: 1.1; letter-spacing: -0.02em;
}
.marquee__track li { display: inline-flex; align-items: center; white-space: nowrap; }
.marquee__star { width: 0.32em; height: 0.32em; margin: 0 0.5em; color: var(--red); flex: none; }
.marquee.is-running .marquee__track { flex-wrap: nowrap; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee.is-running .marquee__row { animation: marquee 60s linear infinite; }
  .marquee.is-running:hover .marquee__row { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
/* Without motion the band becomes a wrapped list that doesn't move. */
@media (prefers-reduced-motion: reduce) {
  .marquee.is-running .marquee__row { width: auto; }
  .marquee.is-running .marquee__track { flex-wrap: wrap; padding: 0 var(--gutter); }
  .marquee.is-running .marquee__track[aria-hidden] { display: none; }
}

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



.log { background: var(--paper); color: var(--navy); padding: var(--section-gap) var(--gutter); }
.log__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 24px; }
.log__head h2 { font-size: var(--step-head); }
.log__head p { max-width: 40ch; }
.lineup { font-size: var(--step-lead); line-height: 1.5; }
.lineup__group {
  position: sticky; top: 0; z-index: 1;
  background: var(--paper);
  color: var(--red);
  padding: 64px 0 16px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.lineup__group h3 { font-size: inherit; font-weight: 400; }
.lineup__count { color: var(--navy); }
.lineup__row {
  display: grid;
  grid-template-columns: 36% 16% 1fr auto;
  gap: 0 24px;
  align-items: baseline;
  padding: 6px 0;
}
.lineup__row a { text-decoration: none; }
.lineup__row .when { text-align: right; font-variant-numeric: tabular-nums; }
.lineup__row--past { color: var(--navy-soft); }
.lineup__rsvp { font-size: var(--step-body); }
.lineup__row a.rsvp-link {
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.log__more { margin-top: 64px; }

@media (max-width: 860px) {
  .lineup__row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "what what" "fmt when";
    padding: 9px 0;
  }
  .lineup__row .what { grid-area: what; font-size: var(--step-lead); line-height: 1.25; }
  .lineup__row .fmt { grid-area: fmt; font-size: var(--step-small); color: var(--navy-soft); }
  .lineup__row .where { display: none; }
  .lineup__row .when { grid-area: when; font-size: var(--step-small); color: var(--navy-soft); }
}

/* ---------- Ground control (live clocks) ---------- */

.ground {
  background: var(--navy);
  padding: var(--section-gap) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.ground h2 { font-size: var(--step-head); margin-bottom: 20px; }
.ground__intro { max-width: 46ch; margin-bottom: 40px; }
.homes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.homes button {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--navy-step); color: var(--white);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.homes button:active { transform: scale(0.97); }
.homes button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .homes button:not([aria-pressed="true"]):hover { background: var(--navy-deep); }
}
.readout { transition: filter 180ms ease, opacity 180ms ease; }
.readout.is-switching { filter: blur(2px); opacity: 0.6; transition-duration: 90ms; }
.readout__time { font-family: var(--font-display); font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.readout__verdict { font-size: var(--step-lead); margin-top: 16px; }
.readout__london { margin-top: 12px; color: var(--ink-soft); }
.ground__offsets { margin-top: 24px; color: var(--ink-soft); }
.ground figure video, .ground figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--navy-deep); }
.ground figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--ink-soft); }
.js .ground__offsets { display: none; }
.no-js-only { display: none; }

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

/* ---------- Inset panel (what we do) ---------- */

.panel-wrap { background: var(--red); }
.panel {
  position: relative; overflow: hidden;
  background: var(--red);
  padding: var(--section-gap) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: 48px;
}
.panel h2 { font-size: var(--step-head); max-width: 11ch; }
.panel__text { grid-column: 2; grid-row: 1 / span 2; }
/* The porthole sits under the campus list and is cut by the panel's bottom edge. */
.panel__shape {
  grid-column: 1; grid-row: 2;
  width: min(34vw, 560px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  margin-bottom: -9vw;
}
.panel__shape img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 85%; }
.panel__text { display: grid; gap: 56px; align-content: start; max-width: 380px; }
.panel__text h3 { font-size: var(--step-lead); margin-bottom: 12px; }
.panel__text p, .panel__text li { font-size: var(--step-body); }
.panel__text ul { display: grid; gap: 6px; }
.panel__text li, .feature .prose li, .topics li { position: relative; padding-left: 1.1em; }
.panel__text li::before, .feature .prose li::before, .topics li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--red);
}
.panel__text li::before { background: var(--white); }
.panel__reach { margin-top: 32px; max-width: 26ch; font-size: var(--step-lead); line-height: 1.35; }
.panel .unis { flex-direction: column; gap: 2px; font-size: clamp(1.75rem, 3vw, 2.75rem); }
.panel .unis li:nth-child(even) { color: var(--white); }

@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; padding: var(--section-gap) var(--gutter) 0; min-height: 0; }
  .panel h2 { font-size: 10vw; }
  .panel__text { grid-column: 1; grid-row: auto; }
  .panel__shape { grid-column: 1; grid-row: auto; width: 86%; margin: 24px auto -22%; }
  .panel__text { max-width: none; gap: 40px; }
}

/* ---------- Photo tiles with label strips ---------- */

.tiles-section { background: var(--navy-deep); padding: var(--section-gap) var(--gutter); }
.tiles-section h2 { font-size: var(--step-head); margin-bottom: 20px; }
.tiles-section > p { max-width: 52ch; margin-bottom: 48px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tile__strip {
  min-height: 96px; padding: 12px;
  display: grid; gap: 6px; align-content: start;
  font-size: var(--step-small); font-variant-numeric: tabular-nums;
}
.tile__strip .row { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.tile__strip .row span { white-space: nowrap; }
.tile__strip strong { font-weight: 500; font-size: var(--step-body); }
.tile:nth-child(4n+1) .tile__strip { background: var(--white); color: var(--navy); }
.tile:nth-child(4n+2) .tile__strip { background: var(--red); color: var(--white); }
.tile:nth-child(4n+3) .tile__strip { background: var(--navy-step); color: var(--white); }
.tile:nth-child(4n+4) .tile__strip { background: var(--paper-step); color: var(--navy); }
.tile figure { overflow: hidden; }
.tile img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.04); }
}

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile__strip .row--meta { display: none; }
}

/* ---------- Reply card (E-Board call) ---------- */

.reply {
  background: var(--red);
  padding: var(--section-gap) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 7fr);
  align-items: end;
  overflow: hidden;
}
.reply__lead { grid-column: 1; padding-bottom: 64px; font-size: var(--step-lead); line-height: 1.35; }
.reply__pic { width: min(100%, 320px); margin-bottom: 32px; transform: rotate(-3deg); }
.reply__pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.reply__card {
  grid-column: 3;
  background: var(--paper); color: var(--navy);
  aspect-ratio: 7 / 5;
  padding: 48px;
  margin-bottom: -60px;
  transform: rotate(2deg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px;
}
.reply__card h2 { font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
.reply__card p { max-width: 36ch; }
.reply__card .btn { width: 100%; margin-top: 12px; }

@media (max-width: 860px) {
  .reply { grid-template-columns: 1fr; padding-bottom: 0; }
  .reply__lead { grid-column: 1; padding-bottom: 40px; }
  .reply__card { grid-column: 1; width: 92%; margin: 0 auto -40px; aspect-ratio: auto; padding: 36px 22px 60px; transform: rotate(1deg); }
  .reply__card .btn { min-height: 52px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); padding: var(--section-gap) var(--gutter) 40px; }
.footer__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 48px; align-items: center; }
.footer__badge { width: clamp(120px, 14vw, 200px); height: auto; }
.footer__invite h2 { font-size: var(--step-head); margin-bottom: 16px; }
.footer__invite p { max-width: 48ch; margin-bottom: 28px; }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px;
  margin-top: clamp(56px, 7vw, 96px);
}
.footer__cols h3 { font-size: var(--step-body); font-weight: 500; color: var(--ink-soft); margin-bottom: 12px; }
.footer__cols ul { display: grid; gap: 4px; }
.footer__cols a { display: inline-flex; min-height: 36px; align-items: center; }
.footer__cols .link { text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .footer__cols .link:hover { text-decoration-color: currentColor; }
}
.footer__cols .link:focus-visible { text-decoration-color: currentColor; }
.footer__bottom {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px;
  font-size: 1rem; color: var(--ink-soft);
}
.footer__bottom p { max-width: 75ch; }
.footer__bottom a { color: var(--white); }

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__badge { width: 120px; }
  .footer__invite .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr; }
}



.page-hero {
  background: var(--navy);
  padding: 40px var(--gutter) var(--section-gap);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.page-hero h1 { font-size: clamp(3.75rem, 9vw, 9rem); line-height: 0.88; margin-bottom: 32px; }
.page-hero p { font-size: var(--step-lead); max-width: 38ch; line-height: 1.35; }
.page-hero .btn { margin-top: 32px; }
.page-hero figure { transform: rotate(3deg); width: min(100%, 50svh, 460px); justify-self: end; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.page-hero figure.arch .shutter { border-radius: 999px 999px 0 0; overflow: hidden; }
.page-hero figure.arch img { border-radius: 999px 999px 0 0; }
.page-hero figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .page-hero h1 { font-size: 15vw; }
  .page-hero figure { width: 72%; margin-left: auto; }
}

.split {
  padding: var(--section-gap) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split h2 { font-size: var(--step-head); margin-bottom: 32px; }
.split .prose { display: grid; gap: 20px; max-width: 62ch; }
.split .prose p { font-size: var(--step-body); }
.split figure img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split figcaption { margin-top: 10px; font-size: var(--step-small); }
.split:has(> .stack) { grid-template-columns: 1fr; gap: 48px; }
.split > .stack { grid-template-columns: 1fr 1fr; align-items: start; }
.split > .stack figure img { aspect-ratio: 3 / 2; }
.split figcaption { color: inherit; }
.navy-deep { background: var(--navy-deep); }
.paper { background: var(--paper); color: var(--navy); }
.paper figcaption, .paper .soft { color: var(--navy-soft); }
.redfield { background: var(--red); color: var(--white); }
@media (max-width: 860px) {
  .split, .split--flip { grid-template-columns: 1fr; gap: 40px; }
  .split > .stack { grid-template-columns: 1fr; }
}

.facts { display: grid; gap: 32px; }
.facts li { display: grid; gap: 6px; }
.facts__n { font-family: var(--font-display); font-size: var(--step-head); line-height: 0.95; }
.facts__l { font-size: var(--step-body); }
.stack { display: grid; gap: 24px; }
.stack video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--navy-deep); }
.split video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--navy-deep); }

/* Big list (what we do) */
.biglist { display: grid; gap: 40px; }
.biglist li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: baseline; }
.biglist h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; }
@media (max-width: 860px) { .biglist li { grid-template-columns: 1fr; gap: 8px; } }

/* Universities */
.unis { display: flex; flex-wrap: wrap; gap: 8px 40px; font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 4.25rem); line-height: 1.1; }
.unis li:nth-child(even) { color: var(--ink-soft); }
.paper .unis li:nth-child(even) { color: var(--red); }

/* Featured event */
.feature {
  background: var(--paper); color: var(--navy);
  padding: var(--section-gap) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center;
}
.feature + .log { padding-top: 0; }
.feature h2 { font-size: var(--step-head); margin-bottom: 16px; }
.feature__meta { font-size: var(--step-lead); margin-bottom: 32px; font-variant-numeric: tabular-nums; }
.feature__count { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; color: var(--red); margin-bottom: 32px; font-variant-numeric: tabular-nums; }
.feature .prose { display: grid; gap: 16px; max-width: 60ch; }
.feature .prose ul { display: grid; gap: 4px; }

.feature figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--navy-soft); }
.feature .btn { margin-top: 32px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 40px; } }

/* Team roster */
.roster { padding: var(--section-gap) var(--gutter); background: var(--paper); color: var(--navy); }
.roster h2 { font-size: var(--step-head); margin-bottom: 16px; }
.roster > p { max-width: 56ch; margin-bottom: 56px; }
.crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 16px; }
.crew__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-step); }
.crew__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.crew__name { font-family: var(--font-display); font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.05; margin-top: 16px; overflow-wrap: anywhere; }
.crew__role { color: var(--red); font-weight: 500; margin-top: 6px; }
.crew__uni { color: var(--navy-soft); font-size: var(--step-small); margin-top: 4px; }
.crew__link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-small); }
@media (max-width: 1100px) { .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 10px; } }

/* Resources */
.resource { padding: var(--section-gap) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.resource--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.resource--flip figure { order: 2; }
.resource h2 { font-size: var(--step-head); margin-bottom: 24px; }
.resource figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.resource .prose { display: grid; gap: 20px; max-width: 60ch; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; font-size: var(--step-lead); }

.resource .actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 12px; }
@media (max-width: 860px) {
  .resource, .resource--flip { grid-template-columns: 1fr; gap: 40px; }
  .resource--flip figure { order: 0; }
  .topics { grid-template-columns: 1fr; }
}

/* Channels (get involved) */
.channels { display: grid; gap: 4px; }
.channels li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding: 16px 0; }
.channels a {
  text-decoration: none;
  font-family: var(--font-display); font-size: var(--step-head); line-height: 1;
}
.channels p { font-size: var(--step-body); }
.channels .arrow { display: inline-block; width: 0.5em; height: 0.5em; vertical-align: 0.06em; transition: transform var(--t-hover) var(--ease-out); }
.channels__name { font-family: var(--font-display); font-size: var(--step-head); line-height: 1; color: var(--navy-soft); }

@media (hover: hover) and (pointer: fine) {
  .channels a:hover .arrow { transform: translateX(6px); }
  .channels a:hover { color: var(--red); }
}
@media (max-width: 860px) {
  .channels li { flex-direction: column; }
}

/* ---------- Motion ---------- */

/* Reduced motion keeps a gentle fade so content still arrives, with no travel. */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] > *, .js .stair__lines span, .js .lineup[data-rows] .lineup__row { opacity: 0; transition: opacity 300ms ease; }
  .js [data-reveal].is-in > *, .js .stair__lines.is-in span, .js .lineup[data-rows].is-in .lineup__row { opacity: 1; }
  .site-nav .nav-list, .site-nav.is-open .nav-list { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }

  .js .lineup[data-rows] .lineup__row { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .lineup[data-rows].is-in .lineup__row { opacity: 1; transform: none; }

  .js .shutter { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-out); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  .js .hero__field h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
  .js .hero__field h1 .line > span { display: block; transform: translateY(105%); transition: transform 1000ms var(--ease-out); }
  .js .hero__field h1 .line:nth-child(2) > span { transition-delay: 90ms; }
  .js .hero.is-in .hero__field h1 .line > span { transform: none; }

  .js .stair__lines span { opacity: 0; transform: translateX(-24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .stair__lines.is-in span { opacity: 1; transform: none; }
}
