/* ========================================================================== */
/* UVEC shared stylesheet                                                     */
/* Only selectors used by the current static HTML pages are kept here.        */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Fonts: self-hosted in assets/fonts (SIL Open Font License).                */
/* -------------------------------------------------------------------------- */
@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* -------------------------------------------------------------------------- */
/* Design tokens: brand colours from the UVEC logo and print kit.             */
/* -------------------------------------------------------------------------- */
:root {
  --navy: #002855;
  --blue: #054bad;        /* UVic blue */
  --gold: #f5aa1c;
  --gold-light: #ffbe3d;
  --gold-tint: #fdf1d8;   /* selected row in "Up next" */
  --red: #e5262b;
  --green: #26a739;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --mist: #c9d7e3;
  --on-navy: #dbe4ef;
  --paper: #ffffff;
  --tint: #eef3f8;
  --line: #d9e1ea;

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header: 64px;
}

/* -------------------------------------------------------------------------- */
/* Global document defaults                                                   */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  /* Flex layout keeps the footer at the bottom on pages with little content. */
  min-height: 100vh; /* Fallback for browsers that don't support svh */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

img { max-width: 100%; height: auto; display: block; }

/* Keep keyboard focus visible against light and dark surfaces. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* -------------------------------------------------------------------------- */
/* Skip link                                                                  */
/* -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.skip:focus { left: 0; }

/* -------------------------------------------------------------------------- */
/* Shared content width and buttons                                           */
/* -------------------------------------------------------------------------- */
.wrap {
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75em 1.15em;
  border: 2px solid transparent;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 600 0.9rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-solid { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.btn-solid:hover { border-color: var(--gold-light); background: var(--gold-light); }
.btn-quiet { padding-inline: 0.5em; color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; }

/* -------------------------------------------------------------------------- */
/* Header and navigation                                                      */
/* -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
}

.brand img { width: auto; height: 30px; }

.nav { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); }

.navlink {
  color: var(--mist);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.navlink:hover,
.navlink[aria-current="page"] { color: #fff; }

/* Menu toggle: only shown when the header collapses on narrow windows. */
.navtoggle { display: none; }

@media (max-width: 640px) {
  .topbar .bar { flex-wrap: wrap; cursor: pointer; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.75rem;
    cursor: auto;
  }
  .topbar.is-open .nav { display: flex; }
  .navlink { padding: 0.7rem 0; font-size: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

  .navtoggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  /* Three-line icon that morphs into an X when open. */
  .navtoggle-icon,
  .navtoggle-icon::before,
  .navtoggle-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  }

  .navtoggle-icon { position: relative; }
  .navtoggle-icon::before,
  .navtoggle-icon::after { content: ""; position: absolute; left: 0; }
  .navtoggle-icon::before { top: -7px; }
  .navtoggle-icon::after { top: 7px; }

  .topbar.is-open .navtoggle-icon { background: transparent; }
  .topbar.is-open .navtoggle-icon::before { transform: translateY(7px) rotate(45deg); }
  .topbar.is-open .navtoggle-icon::after { transform: translateY(-7px) rotate(-45deg); }
}

/* -------------------------------------------------------------------------- */
/* Hero: the one bold element on the page                                     */
/* -------------------------------------------------------------------------- */
.hero {
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  background: var(--navy);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.6rem;
  font: 400 clamp(3.4rem, 8.4vw, 7.6rem)/0.9 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lede {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--on-navy);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

/* Photos taped up like prints, in the logo's colours. */
.collage { position: relative; aspect-ratio: 1 / 0.95; }

.print {
  position: absolute;
  margin: 0;
  padding: 10px 10px 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.print img { width: 100%; height: 100%; object-fit: cover; }
.print-1 { top: 6%; left: 0; z-index: 2; width: 64%; height: 46%; transform: rotate(-4deg); }
.print-2 { top: 0; right: 0; width: 52%; height: 58%; transform: rotate(3deg); }
.print-3 { bottom: 2%; left: 12%; z-index: 3; width: 56%; height: 42%; transform: rotate(2deg); }
.print-4 { right: 2%; bottom: 8%; z-index: 4; width: 44%; height: 38%; transform: rotate(-3deg); }

.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 1;
  width: 34%;
  height: 22px;
  opacity: 0.92;
  transform: translateX(-50%) rotate(-2deg);
}

.tape-gold { background: var(--gold); }
.tape-red { background: var(--red); }
.tape-green { background: var(--green); }
.tape-blue { background: var(--blue); }

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tinted { background: var(--tint); }

.section h2 {
  color: var(--navy);
  font: 400 clamp(2.2rem, 4.5vw, 3.4rem)/1 var(--display);
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-head p { max-width: 34rem; margin: 0; color: var(--ink-soft); }
.section-head a, .more a { font-weight: 600; }

/* About: the manifesto on the left, what we run on the right. */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-intro h2 { margin-bottom: 1.5rem; }
.manifesto { margin: 0; }

.manifesto p {
  color: var(--navy);
  font: 600 clamp(1.3rem, 2.2vw, 1.75rem)/1.35 var(--sans);
  letter-spacing: -0.01em;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 2.5rem;
}

/* Each one is topped with a logo colour, like the tape on the hero photos. */
.pillar { padding-top: 1.1rem; border-top: 4px solid var(--pillar-colour, var(--navy)); }
.pillar-gold { --pillar-colour: var(--gold); }
.pillar-red { --pillar-colour: var(--red); }
.pillar-green { --pillar-colour: var(--green); }
.pillar-blue { --pillar-colour: var(--blue); }
.pillar h3 { margin-bottom: 0.5rem; color: var(--navy); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.pillar p { color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------------------------------------------------------------- */
/* Events: the phone list, built by assets/js/events.js                       */
/* -------------------------------------------------------------------------- */
.agenda {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.event {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 1.75rem;
}

.event + .event { border-top: 1px solid var(--line); }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--navy);
  line-height: 1;
}

.event-day { font: 400 3rem/1 var(--display); }
.event-month { margin-top: 0.25rem; color: var(--blue); font-size: 0.85rem; font-weight: 700; }
.event-when { margin: 0 0 0.2rem; color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.event h3 { color: var(--ink); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.event-place { margin: 0.25rem 0 0; font-size: 0.9rem; }
.event-place a { color: var(--ink-soft); }
.event-actions { display: flex; align-items: center; gap: 0.25rem; }
.agenda-note { padding: 1.75rem; }
.more { margin: 1.25rem 0 0; }

/* -------------------------------------------------------------------------- */
/* Events: the calendar on wider screens, also built by events.js             */
/* -------------------------------------------------------------------------- */
/* Both columns stretch to the taller one, so their bottoms line up. */
.calendar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: stretch;
}

.calendar-wrap[hidden] { display: none; }

/* Once the calendar is up, the list is only for phones. */
.has-calendar .agenda { display: none; }

.calendar {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-head h3 {
  color: var(--navy);
  font: 400 1.6rem/1 var(--display);
  text-transform: uppercase;
}

.month-step {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.month-step:hover:not(:disabled) { background: var(--tint); }
.month-step:disabled { opacity: 0.3; cursor: default; }

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

/* The day rows share whatever height the calendar gets. */
.days { flex: 1; grid-auto-rows: 1fr; }

.weekdays span { padding: 0 0.4rem 0.4rem; color: var(--ink-soft); font-size: 0.78rem; font-weight: 600; }

.day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 92px;
  padding: 0.35rem;
  border-radius: 6px;
  background: var(--tint);
}

.day.is-blank { background: none; }
.day.is-before .day-number { opacity: 0.5; }
.day.is-today { box-shadow: inset 0 0 0 2px var(--navy); }
.day-number { color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; }

/* Chip colour shows state: navy upcoming, grey past, gold selected. */
.chip {
  padding: 0.25rem 0.4rem;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font: 600 0.72rem/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
}

.chip span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chip.is-past { background: var(--mist); color: var(--ink); }
.chip.is-selected { background: var(--gold); color: var(--navy); }
.chip:hover:not(.is-selected) { background: var(--blue); color: #fff; }

/* Detail panel and "Up next", stacked beside the calendar. "Up next" takes up the slack. */
.calendar-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-detail {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}

.detail-meta a { color: #fff; }

.detail-when {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.event-detail h3 { margin-bottom: 0.75rem; font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.detail-meta { color: var(--on-navy); font-size: 0.92rem; }
.event-detail .event-actions { flex-wrap: wrap; }
.event-detail .btn-quiet { color: #fff; }

/* Add to calendar menu */
.add-calendar { position: relative; }

.add-calendar-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 190px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(0, 40, 85, 0.18);
}

.add-calendar-menu[hidden] { display: none; }

.add-calendar-menu a,
.add-calendar-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font: 600 0.9rem/1.3 var(--sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.add-calendar-menu a:hover,
.add-calendar-menu button:hover { background: var(--tint); }

.up-next {
  flex: 1;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.up-next[hidden] { display: none; }
.up-next h3 { margin-bottom: 0.5rem; color: var(--navy); font: 400 1.25rem/1 var(--display); text-transform: uppercase; }
.up-next ol { margin: 0; padding: 0; list-style: none; }
.up-next li + li { border-top: 1px solid var(--line); }

.up-next-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.7rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.up-next-item:hover { background: var(--tint); }
.up-next-item.is-selected { background: var(--gold-tint); }

.up-next-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.up-next-day { color: var(--navy); font: 400 1.6rem/1 var(--display); }
.up-next-text { display: flex; flex-direction: column; min-width: 0; }
.up-next-title { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.up-next-when { color: var(--ink-soft); font-size: 0.8rem; }

/* -------------------------------------------------------------------------- */
/* Recaps                                                                     */
/* -------------------------------------------------------------------------- */
.recaps { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.recap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.recap:nth-child(even) .recap-photos { order: 2; }
.recap-photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }

.recap-photos img {
  width: 100%;
  height: clamp(220px, 28vw, 340px);
  border-radius: 10px;
  object-fit: cover;
}

.recap-meta { margin-bottom: 0.4rem; color: var(--blue); font-size: 0.88rem; font-weight: 600; }

.recap h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.recap-text p:last-child { max-width: 32rem; color: var(--ink-soft); }

/* -------------------------------------------------------------------------- */
/* Partners: a scrolling strip of logos and names, one colour throughout      */
/* -------------------------------------------------------------------------- */
/* A slim band right under the hero. */
.partners-band { padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: var(--tint); }

.partners-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
}

.partners-head h2 {
  color: var(--navy);
  font: 400 clamp(1.6rem, 3vw, 2.1rem)/1 var(--display);
  text-transform: uppercase;
}

.partners-head p { margin: 0; color: var(--ink-soft); }
.partners-head a { font-weight: 600; }

/* Full-bleed strip. Fade the ends instead of cutting items off. */
.marquee {
  overflow: hidden;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

/* partners.js sets animation-duration from the track width. */
.marquee.is-ready .marquee-track {
  animation: marquee-scroll 60s linear infinite;
}

/* Sliding by exactly half the track lands on the duplicated copy. */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 64px;
  padding: 0 clamp(1.25rem, 2.5vw, 2rem);
}

/* Logos are pre-made navy silhouettes (assets/img/Logos/partners/), so they match the text names. */
.marquee-item img {
  width: auto;
  max-width: 220px;
  height: 52px;
  object-fit: contain;
  opacity: 0.85;
}

/* Icon-only marks carry their name beside them. */
.marquee-item img + .marquee-name { margin-left: 0.6rem; }

.marquee-name {
  color: var(--navy);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.85;
}

.marquee-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }

/* -------------------------------------------------------------------------- */
/* Social footer                                                              */
/* -------------------------------------------------------------------------- */
.socialbar {
  padding: 3.5rem 0 2rem;
  background: var(--navy);
  color: #fff;
}

.footer-line {
  margin-bottom: 1.5rem;
  font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display);
  text-transform: uppercase;
}

.social {
  display: grid;
  /*  
  repeat (how many times, what size)
Used for modifying the number of columns in the footer

*/
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.social a:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.social a img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Copyright line below the social links. */
.colophon {
  padding-top: 2rem;
  color: var(--mist);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Smaller screens                                                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .calendar-wrap { grid-template-columns: 1fr; }
  .calendar-side { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero-grid, .section-head, .recap { grid-template-columns: 1fr; }
  .recap:nth-child(even) .recap-photos { order: 0; }
  .about { grid-template-columns: 1fr; }
  .collage { width: 100%; max-width: 520px; margin: 0 auto; }
  .social { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .has-calendar .calendar-wrap { display: none; }
  .has-calendar .agenda { display: block; }
}

@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; gap: 1.75rem; }
  .event { grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.25rem; }
  .event-day { font-size: 2.3rem; }
  .event-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .recap-photos img { height: 200px; }
  .marquee-item { height: 52px; }
  .marquee-item img { height: 42px; max-width: 180px; }
  .social { grid-template-columns: repeat(2, 1fr); }
}

/* Honour reduced-motion preferences. The partners sit still, wrapped in rows. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .marquee.is-ready .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 0.5rem; }
  .marquee-item[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
