/* ============================================================
   Minerva FC · club site
   Built on the brand pack: Minerva Black, White, Deep Minerva
   Green and Antique Gold, with Archivo set wide for display.
   Layout borrows the shape of a top-flight club site: utility
   bar, crest + nav, full-bleed hero, matchday strip, news grid.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-2: #141414;
  --white: #ffffff;
  --paper: #f4f3ef;
  --green: #0b3d2e;
  --green-2: #0f4d3a;
  --gold: #b89b5e;
  --gold-2: #cdb27a;
  --ink: #0a0a0a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: rgba(10, 10, 10, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
  background: var(--black);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

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

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

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

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.kicker {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.wordmark {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}

.btn i {
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.btn:hover i {
  transform: translateX(4px);
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
}

.btn--gold:hover {
  background: var(--gold-2);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}

.btn--white:hover {
  background: var(--gold);
}

.btn--black {
  background: var(--black);
  color: var(--white);
}

.btn--black:hover {
  background: var(--green);
}

.btn--line {
  border-color: currentColor;
}

.btn--line:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.on-light .btn--line:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.7rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-arrow i {
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* ============================================================
   HEADER: utility bar + main bar
   ============================================================ */
.utility {
  background: #000;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  position: relative;
  z-index: 61;
}

.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 34px;
}

.utility nav {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.utility nav::-webkit-scrollbar {
  display: none;
}

.utility a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.utility a:first-child {
  padding-left: 0;
}

.utility a:hover {
  color: var(--white);
}

.utility a[aria-current="true"] {
  color: var(--white);
}

.utility__where {
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.utility__where b {
  color: var(--gold);
  font-weight: 600;
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s;
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header);
}

.crest {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.crest img {
  height: 46px;
  width: auto;
}

.crest .wordmark {
  font-size: 0.92rem;
}

.mainnav {
  display: flex;
  height: 100%;
  margin-left: auto;
}

.mainnav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.mainnav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.mainnav a:hover,
.mainnav a[aria-current="page"] {
  color: var(--white);
}

.mainnav a:hover::after,
.mainnav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.burger i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.menu-open .burger i:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .burger i:nth-child(2) {
  opacity: 0;
}

.menu-open .burger i:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* full-screen menu on small screens */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: var(--black);
  color: var(--white);
  padding: calc(var(--header) + 34px + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.menu-open .drawer {
  opacity: 1;
  visibility: visible;
}

.drawer a.drawer__big {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
}

.drawer a.drawer__big[aria-current="page"] {
  color: var(--gold);
}

.drawer__links {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.drawer__links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .mainnav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 560px) {
  :root {
    --header: 64px;
  }

  .crest img {
    height: 38px;
  }

  .crest .wordmark {
    font-size: 0.8rem;
    letter-spacing: 0.26em;
  }

  .utility__where {
    display: none;
  }
}

/* ============================================================
   HOME HERO: the huddle, full bleed
   ============================================================ */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header) - 34px), 860px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero .wrap {
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(40px, 7vw, 88px);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero__kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  max-width: 13ch;
  margin-bottom: 22px;
}

.hero p {
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sound {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vw, 88px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s;
}

.sound:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: var(--gold);
}

.sound svg {
  width: 18px;
  height: 18px;
}

.sound .on,
.sound[aria-pressed="true"] .off {
  display: none;
}

.sound[aria-pressed="true"] .on {
  display: block;
}

@media (max-width: 760px) {
  .sound {
    top: 16px;
    bottom: auto;
  }
}

/* ============================================================
   MATCHDAY STRIP: last result / next up / season
   ============================================================ */
.strip {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
}

.strip .wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.strip__cell {
  padding: 26px 28px;
  border-left: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strip__cell:first-child {
  border-left: 0;
  padding-left: 0;
}

.strip__label {
  color: rgba(255, 255, 255, 0.55);
}

.fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.fixture__team {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.fixture__team:last-child {
  justify-content: flex-end;
  text-align: right;
}

.fixture__team img {
  width: 30px;
  height: auto;
  flex-shrink: 0;
}

.badge-text {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.result {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 34px;
  padding: 0 10px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.result--w {
  background: var(--gold);
  color: var(--black);
}

.result--f {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.on-light .result--f,
.results .result--f {
  background: var(--paper);
  color: var(--ink);
}

.result--x {
  background: transparent;
  color: var(--ink-3);
  border: 1.5px dashed currentColor;
}

.strip__meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.strip__next {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.stats {
  display: flex;
  gap: 26px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.35;
}

@media (max-width: 960px) {
  .strip .wrap {
    grid-template-columns: 1fr;
  }

  .strip__cell {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding-left: 0;
    padding-right: 0;
  }

  .strip__cell:first-child {
    border-top: 0;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--paper {
  background: var(--paper);
}

.section--black {
  background: var(--black);
  color: var(--white);
}

.section--green {
  background: var(--green);
  color: var(--white);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
  flex-wrap: wrap;
}

.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
}

.section__title em {
  font-style: normal;
  color: var(--gold);
}

.section--paper .section__title em,
.on-light .section__title em {
  color: var(--green);
}

.section__sub {
  max-width: 40rem;
  color: var(--ink-2);
  margin-top: 14px;
}

.section--black .section__sub,
.section--green .section__sub {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- page header (inner pages) ---------- */
.pagehead {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.pagehead__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.pagehead__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.92));
}

.pagehead .wrap {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.pagehead h1 {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
}

.pagehead--article h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 22ch;
}

.pagehead p {
  max-width: 38rem;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.pagehead .kicker {
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

/* tabs under a page header */
.tabs {
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  position: sticky;
  top: var(--header);
  z-index: 40;
}

.tabs .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs .wrap::-webkit-scrollbar {
  display: none;
}

.tabs button,
.tabs a {
  position: relative;
  padding: 16px 14px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.tabs button::after,
.tabs a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.tabs button:hover,
.tabs a:hover,
.tabs [aria-pressed="true"] {
  color: var(--white);
}

.tabs [aria-pressed="true"]::after {
  transform: scaleX(1);
}

/* ============================================================
   NEWS
   ============================================================ */
.news {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news--feature .card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
}

.section--paper .card {
  background: var(--white);
}

.section--black .card {
  background: var(--black-2);
  color: var(--white);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black);
}

.news--feature .card:first-child .card__media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 320px;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card__tag--green {
  background: var(--green);
  color: var(--white);
}

.card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__body h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.news--feature .card:first-child .card__body h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.card__body p {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.section--black .card__body p {
  color: rgba(255, 255, 255, 0.66);
}

.card__date {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* artwork card (no photo) */
.card__art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--green);
}

.card__art img {
  width: auto;
  height: 62%;
  object-fit: contain;
}

.card:hover .card__art img {
  transform: none;
}

@media (max-width: 1080px) {
  .news {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .news--feature .card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .news--feature .card:first-child .card__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* ============================================================
   ARTICLE
   ============================================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}

.article__body > * + * {
  margin-top: 1.2em;
}

.article__body p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #1f1f1f;
}

.article__body p:first-child {
  font-size: 1.24rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

.article__body h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-top: 1.8em;
}

.article__body a {
  color: var(--green);
  text-underline-offset: 3px;
}

.article__body figure img {
  width: 100%;
}

.article__body figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.quote {
  margin: 2em 0;
  padding: 28px 0 28px 28px;
  border-left: 4px solid var(--gold);
}

.quote p {
  font-family: var(--font-display) !important;
  font-stretch: 112%;
  font-weight: 800 !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  color: var(--ink) !important;
}

.quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-stretch: 112%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article__credit {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-3);
}

.article__more {
  margin-top: 56px;
}

/* ============================================================
   MATCHES
   ============================================================ */
.next {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--black);
  color: var(--white);
}

.next__copy {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.next__copy .kicker {
  color: var(--gold);
}

.next__copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.next__copy p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
}

.next__media {
  min-height: 280px;
}

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

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

  .next__media {
    order: -1;
    min-height: 220px;
  }
}

.results {
  border-top: 2px solid var(--ink);
}

.results__month {
  padding: 30px 0 12px;
  border-bottom: 1px solid var(--line);
}

.results__month h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.match {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.match__when b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}

.match__when span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-stretch: 112%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match__comp {
  color: var(--green);
  margin-bottom: 6px;
}

.match__teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  text-transform: uppercase;
  line-height: 1.2;
}

.match__teams .v {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.8em;
}

.match__venue {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.match__side {
  display: flex;
  align-items: center;
  gap: 18px;
}

.match__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.match--off .match__teams {
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .match {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .match__when {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .match__side {
    justify-content: space-between;
  }

  .match__links {
    flex-direction: row;
    gap: 18px;
  }
}

/* ============================================================
   SQUAD
   ============================================================ */
.rail {
  position: relative;
}

.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.rail__track::-webkit-scrollbar {
  display: none;
}

.rail__track > * {
  scroll-snap-align: start;
}

.rail__btns {
  display: flex;
  gap: 8px;
}

.rail__btns button {
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.rail__btns button:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.squad {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.player {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  min-height: 320px;
  isolation: isolate;
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../pack/logo/svg/mark/minerva-mark-gold.svg") no-repeat 115% 30% / 80% auto;
  opacity: 0.12;
  transition: transform 0.9s var(--ease), opacity 0.4s;
}

.player:hover::before {
  transform: scale(1.06) rotate(-2deg);
  opacity: 0.2;
}

.player__top {
  padding: 18px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.player__num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--gold);
}

.player__num--none {
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.9);
}

.player__tag {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.player__photo {
  flex: 1;
  position: relative;
  margin-top: 8px;
}

.player__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.player__name {
  position: relative;
  margin-top: auto;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.player__name span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.player__name b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.player__role {
  margin-top: 8px;
  color: var(--gold);
}

.player--black {
  background: var(--black-2);
}

.player--join {
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  justify-content: flex-end;
}

.player--join::before {
  background-image: url("../pack/logo/svg/mark/minerva-mark-black.svg");
  opacity: 0.1;
}

.player--join .player__name {
  background: none;
}

.player--join .player__name span {
  color: rgba(0, 0, 0, 0.7);
}

/* team photos stand in for player cards while names are off the site */
.teams {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.teamshot {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.teamshot button {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}

.teamshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.teamshot:hover img {
  transform: scale(1.04);
}

.teamshot figcaption {
  padding: 16px 18px 20px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.25;
}

.teamshot figcaption .kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.teams .player--join {
  min-height: 0;
}

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

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

  .teams .player--join {
    min-height: 220px;
  }
}

.staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.staff__card {
  padding: 24px;
  border-top: 4px solid var(--gold);
  background: var(--white);
}

.staff__card .kicker {
  color: var(--green);
}

.staff__card h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.staff__card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.staff__card a {
  color: var(--green);
}

/* ============================================================
   GALLERY
   ============================================================ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(160px, 17vw, 240px);
  gap: 8px;
}

.mosaic a {
  position: relative;
  overflow: hidden;
  background: var(--black-2);
}

.mosaic a:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.3s;
}

.mosaic a:hover img {
  transform: scale(1.05);
}

@media (max-width: 760px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

}

.masonry {
  columns: 4 260px;
  column-gap: 10px;
}

.masonry--few {
  columns: 2 320px;
}

.masonry figure {
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  background: var(--black-2);
}

.masonry figure[hidden] {
  display: none;
}

.masonry button {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.masonry img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease);
}

.masonry button:hover img {
  transform: scale(1.03);
}

.masonry figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.masonry figure:hover figcaption {
  opacity: 1;
}

.gallery-group + .gallery-group {
  margin-top: 56px;
}

.gallery-group[hidden] {
  display: none;
}

.gallery-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.gallery-group__head h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.gallery-group__head p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

/* ---------- videos ---------- */
.reel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.reel__side {
  display: grid;
  gap: 16px;
}

.clip {
  position: relative;
  background: #000;
  overflow: hidden;
}

.clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.clip__label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 7px 12px;
  background: var(--gold);
  color: var(--black);
  pointer-events: none;
}

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

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  color: var(--white);
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
}

.lightbox__bar p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  min-height: 0;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100svh - 140px);
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: var(--gold);
  color: var(--black);
}

.lightbox__nav--prev {
  left: var(--gutter);
}

.lightbox__nav--next {
  right: var(--gutter);
}

.lightbox__close {
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__count {
  text-align: center;
  padding: 14px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   CLUB
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split p + p {
  margin-top: 1em;
}

.split .btn {
  margin-top: 28px;
}

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

.bigquote {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 20ch;
}

.bigquote::before {
  content: "\201C";
  display: block;
  color: var(--gold);
  font-size: 1.6em;
  line-height: 0.7;
  margin-bottom: 10px;
}

.bigquote + cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid currentColor;
}

.values > div {
  padding: 26px 24px 8px 0;
}

.values b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.values span {
  color: var(--ink-2);
  font-size: 0.92rem;
}

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

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

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.numbers > div {
  background: var(--black);
  padding: 28px 24px;
}

.numbers b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--gold);
}

.numbers span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

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

.timeline {
  list-style: none;
  border-left: 2px solid var(--ink);
  margin-left: 8px;
}

.timeline li {
  position: relative;
  padding: 0 0 34px 30px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--ink);
}

.timeline li.is-next::before {
  background: var(--white);
}

.timeline .kicker {
  color: var(--green);
}

.timeline h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.timeline p {
  margin-top: 6px;
  color: var(--ink-2);
  max-width: 40rem;
}

/* ---------- partner band ---------- */
.partner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 2px solid var(--ink);
}

.partner__logo {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  padding: 18px 20px;
  background: var(--black);
  color: var(--white);
}

.partner p {
  color: var(--ink-2);
  max-width: 44rem;
}

.partner h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 6px 0 8px;
}

.partner .kicker {
  color: var(--green);
}

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

  .partner__logo {
    justify-self: start;
  }
}

/* ============================================================
   JOIN
   ============================================================ */
.join {
  position: relative;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.join::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  top: 50%;
  width: min(52vw, 640px);
  aspect-ratio: 800 / 940;
  transform: translateY(-50%);
  background: url("../pack/logo/svg/mark/minerva-mark-gold.svg") no-repeat center / contain;
  opacity: 0.16;
}

.join .wrap {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.join h2 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  max-width: 12ch;
}

.join p {
  max-width: 34rem;
  margin: 18px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.join__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

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

.facts > div {
  background: var(--white);
  padding: 26px 24px;
}

.facts .kicker {
  color: var(--green);
}

.facts h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.facts p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.faq {
  max-width: 860px;
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.02rem;
  text-transform: uppercase;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 44rem;
}

.faq a {
  color: var(--green);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer__brand img {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}

.footer__brand .wordmark {
  color: var(--white);
  font-size: 1rem;
}

.footer__brand p {
  margin-top: 12px;
  max-width: 22rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom p {
  max-width: 54rem;
}

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   MOTION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@view-transition {
  navigation: auto;
}

.utility {
  view-transition-name: utility;
}

.header {
  view-transition-name: header;
}

::view-transition-group(utility),
::view-transition-group(header) {
  animation-duration: 0.01ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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