/* Brunel University RFC — squad information pages.
   Navy, gold, grey, plus paper. Dark for the moments that should hit,
   light for the information people actually came to read. */

:root {
  --navy: #050B1C;
  --navy-2: #0A1730;
  --navy-3: #12213F;
  --gold: #E8B93B;
  --gold-2: #F5D579;
  --paper: #EDF1F7;
  --paper-2: #DDE4EE;
  --ink: #050B1C;
  --ink-soft: #465063;
  --grey: #8A93A6;
  --grey-light: #DCE1EA;
  --line-dark: rgba(220, 225, 234, 0.16);
  --line-light: rgba(5, 11, 28, 0.14);
  --measure: 74rem;
  --bar-h: 3.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--gold);
}

.bar :focus-visible,
.tabs :focus-visible,
.band--dark :focus-visible,
.band--feature :focus-visible,
.sources :focus-visible,
.foot :focus-visible {
  outline-color: var(--gold);
  box-shadow: 0 0 0 6px var(--navy);
}

/* The strip scrolls, so a ring drawn outside the link is clipped away. */
.tabs__link:focus-visible { outline-offset: -3px; box-shadow: none; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.15rem; }

@media (min-width: 900px) { .wrap { padding: 0 2.25rem; } }

/* ---------------------------------------------------------------- top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.15rem;
  background: rgba(5, 11, 28, 0.96);
}

.bar__id { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }

.bar__crest {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(232, 185, 59, 0.5);
}

.bar__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bar__switch { display: flex; gap: 0.3rem; }

.chip {
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(220, 225, 234, 0.45);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey-light);
  white-space: nowrap;
  transition: border-color 200ms ease, color 200ms ease;
}

.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip--on { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.chip--on:hover { color: var(--navy); }

/* ------------------------------------------------------------------- tabs */

.tabs {
  position: sticky;
  top: var(--bar-h);
  z-index: 29;
  background: var(--navy-2);
  border-bottom: 1px solid var(--line-dark);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tabs__inner {
  display: flex;
  gap: 0.15rem;
  width: max-content;
  min-width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 0.7rem;
}

.tabs__link {
  position: relative;
  padding: 0.75rem 0.75rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--grey);
  white-space: nowrap;
  transition: color 200ms ease;
}

.tabs__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.tabs__link:hover { color: #fff; }
.tabs__link:hover::after { transform: scaleX(1); }
.tabs__link[aria-current="page"] { color: #fff; }
.tabs__link[aria-current="page"]::after { transform: scaleX(1); }

@media (min-width: 900px) { .tabs__inner { padding: 0 2rem; } }

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

.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  animation: drift 22s ease-out both;
}

.hero__photo--top { object-position: 50% 18%; }
.hero__photo--centre { object-position: 50% 38%; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 11, 28, 0.96) 4%, rgba(5, 11, 28, 0.45) 48%, rgba(5, 11, 28, 0.25) 100%),
    linear-gradient(to right, rgba(5, 11, 28, 0.6) 0%, rgba(5, 11, 28, 0) 55%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3.5rem 0 2.4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  animation: draw 700ms 200ms ease-out both;
}

.hero__title {
  margin: 0;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 13vw, 7rem);
  line-height: 0.84;
  text-transform: uppercase;
  color: #fff;
}

.hero__stand {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--grey-light);
}

/* ------------------------------------------------------------------ bands */

.band { padding: 3rem 0; background: var(--paper); }
.band--tint { background: var(--paper-2); }
.band--dark { background: var(--navy); color: var(--grey-light); }
.band--feature { background: var(--navy-3); color: var(--grey-light); }

.band__title {
  margin: 0 0 1.4rem;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.band--dark .band__title { color: #fff; }

.band__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #6A5210; /* 5.05:1 on paper. Gold itself is 1.62:1 there. */
}

.band--dark .band__kicker,
.band--feature .band__kicker { color: var(--gold); }

.band--feature .band__kicker { color: var(--gold); }
.band--feature .band__title { color: #fff; }
.band--feature .band__note { color: var(--grey-light); }
.band--feature .stat { background: transparent; }
.band--feature .stats { background: rgba(220, 225, 234, 0.14); }
.band--feature .stat__value { color: var(--gold); }
.band--feature .stat__key { color: var(--grey-light); }
.band--feature .stat__note { color: var(--grey-light); }
.band--feature .note { background: rgba(232, 185, 59, 0.1); color: var(--grey-light); }
.band--feature .note__tag { color: var(--gold); }

.band__note { margin: 1rem 0 0; max-width: 44rem; color: var(--ink-soft); }
.band--dark .band__note { color: var(--grey); }

/* ------------------------------------------------------------------ stats */

.stats { display: grid; gap: 1px; background: var(--line-light); }

.band--dark .stats { background: var(--line-dark); }

.stat { padding: 1.4rem 1.2rem; background: var(--paper); }
.band--dark .stat { background: var(--navy); }
.band--tint .stat { background: var(--paper-2); }

.stat__value {
  display: block;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 0.85;
  color: var(--ink);
}

.band--dark .stat__value { color: var(--gold); }

/* Numbers get the full size. Words get a size that still reads as a heading. */
.stat__value--text {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.02;
}

.stat__key {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.band--dark .stat__key { color: var(--grey); }

.stat__note { display: block; margin-top: 0.35rem; font-size: 0.86rem; color: var(--ink-soft); }
.band--dark .stat__note { color: var(--grey); }

/* ---------------------------------------------------------------- gallery */

.gallery { display: grid; gap: 0.6rem; }

.shot {
  position: relative;
  overflow: hidden;
  background: var(--navy-2);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

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

.shot--tall { aspect-ratio: 3 / 4; }
.shot--wide { aspect-ratio: 16 / 9; }
.shot--square { aspect-ratio: 1 / 1; }

.shot__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(5, 11, 28, 0.9), rgba(5, 11, 28, 0));
  font-size: 0.75rem;
  color: var(--grey-light);
}

/* ------------------------------------------------------------------ split */

.split { display: grid; gap: 1.6rem; align-items: start; }

@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 2.6rem; }
  .split--wide-left { grid-template-columns: 1.4fr 1fr; }

  /* Photograph on the left, text on the right. The text stays first in the
     markup so a narrow screen and a screen reader both get it first. */
  .split--flip { grid-template-columns: 1fr 1.05fr; }
  .split--flip > :first-child { order: 2; }
  .split--flip > :last-child { order: 1; }
}

/* ------------------------------------------------------------------ cards */

.cards { display: grid; gap: 0.8rem; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 12rem;
  padding: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--navy-2);
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 11, 28, 0.92) 8%, rgba(5, 11, 28, 0.25) 70%);
  transition: background 400ms ease;
}

.card:hover img { transform: scale(1.05); }
.card:hover::after { background: linear-gradient(to top, rgba(5, 11, 28, 0.96) 8%, rgba(5, 11, 28, 0.45) 80%); }

.card__body { position: relative; z-index: 2; }

.card__title {
  display: block;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.card__note { display: block; margin-top: 0.3rem; font-size: 0.84rem; color: var(--grey-light); }

.card__go { display: block; margin-top: 0.55rem; font-size: 0.75rem; font-weight: 600; color: var(--gold); }

/* --------------------------------------------------------------- fixtures */

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

.band--dark .fixtures { border-top-color: var(--gold); }

.fixture {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.3rem 0.9rem;
  align-items: center;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--line-light);
  transition: background 200ms ease, padding-left 200ms ease;
}

.band--dark .fixture { border-bottom-color: var(--line-dark); }

.fixture:hover { background: rgba(232, 185, 59, 0.12); padding-left: 1rem; }

.fixture__round {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.band--dark .fixture__round { color: var(--grey); }

.fixture__main { display: flex; flex-direction: column; }

.fixture__opp {
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.band--dark .fixture__opp { color: #fff; }

.fixture__date { font-size: 0.8rem; color: var(--ink-soft); }
.band--dark .fixture__date { color: var(--grey); }

.ha {
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ha--home { background: var(--gold); color: var(--navy); }
.ha--away { border: 1px solid var(--line-light); color: var(--ink-soft); }
.band--dark .ha--away { border-color: var(--line-dark); color: var(--grey); }

/* ----------------------------------------------------------------- people */

.people { display: grid; gap: 0.8rem; list-style: none; margin: 0; padding: 0; }

.person {
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border-left: 3px solid var(--gold);
}

.band--tint .person { background: #fff; }
.band--dark .person { background: var(--navy-2); }

.person__name {
  display: block;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.band--dark .person__name { color: #fff; }

.person__role {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.band--dark .person__role { color: var(--gold); }

.person__note { display: block; margin-top: 0.4rem; font-size: 0.88rem; color: var(--ink-soft); }
.band--dark .person__note { color: var(--grey); }

/* --------------------------------------------------------------- timeline */

.prose { max-width: 44rem; }
.prose p { margin: 0 0 1.05rem; font-size: 1.02rem; line-height: 1.68; }
.prose p:last-child { margin-bottom: 0; }
.band--dark .prose { color: var(--grey-light); }
.band--feature .prose { color: var(--grey-light); }

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

.moment {
  position: relative;
  padding: 0 0 1.6rem 1.6rem;
  border-left: 2px solid var(--line-light);
}

.band--dark .moment { border-left-color: var(--line-dark); }

.moment::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--gold);
}

.moment:last-child { border-left-color: transparent; padding-bottom: 0; }

.moment__date {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.band--dark .moment__date { color: var(--gold); }

.moment__text { display: block; margin-top: 0.3rem; font-size: 1.02rem; }

/* ------------------------------------------------------------------ names */

.names { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.name {
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
  border-left: 2px solid var(--gold);
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.band--dark .name { background: var(--navy-3); color: #fff; }

/* ------------------------------------------------------------------ lists */

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

.list li {
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}

.band--dark .list li { border-bottom-color: var(--line-dark); }

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.6rem;
  height: 2px;
  background: var(--gold);
}

/* ------------------------------------------------------------------- rows */

.rows { border-top: 1px solid var(--line-light); }
.band--dark .rows { border-top-color: var(--line-dark); }

.row {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-light);
}

.band--dark .row { border-bottom-color: var(--line-dark); }

.row__key {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.band--dark .row__key { color: var(--gold); }

.row__value { font-size: 1rem; }
.row__detail a { color: inherit; }

@media (min-width: 700px) {
  .row { grid-template-columns: 14rem 1fr; gap: 1.2rem; align-items: baseline; }
}

/* ------------------------------------------------------------------- misc */

.address {
  margin: 0 0 1rem;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: background 200ms ease, color 200ms ease;
}

.button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.button--quiet { background: transparent; color: var(--navy); }
.button--quiet:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.map {
  width: 100%;
  min-height: 22rem;
  height: 100%;
  aspect-ratio: 4 / 3;
  align-self: stretch;
  border: 0;
  filter: saturate(0.9);
}

@media (min-width: 860px) {
  .map { aspect-ratio: auto; }
}

.quote {
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--gold);
}

.quote + .quote { margin-top: 1.6rem; }

.quote__text {
  margin: 0;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.band--dark .quote__text { color: #fff; }

.quote__who {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.band--dark .quote__who { color: var(--grey); }

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }

.pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.band--dark .pill { border-color: var(--line-dark); color: var(--grey); }
.pill--on { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }

.note {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.2rem;
  background: rgba(232, 185, 59, 0.16);
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
}

.band--dark .note { background: rgba(232, 185, 59, 0.1); color: var(--grey-light); }

.note__tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.band--dark .note__tag { color: var(--gold); }

/* ---------------------------------------------------------------- sources */

.sources { padding: 2.2rem 0; background: var(--navy-2); color: var(--grey); }

.sources__title {
  margin: 0 0 0.4rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.sources__note { margin: 0 0 0.8rem; max-width: 42rem; font-size: 0.84rem; }

.sources__list { margin: 0; padding: 0; list-style: none; font-size: 0.84rem; }
.sources__list li { padding: 0.3rem 0; border-bottom: 1px solid var(--line-dark); }
.sources__list a { color: var(--grey-light); }

/* ------------------------------------------------------------------- foot */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.4rem 0;
  background: var(--navy);
  color: var(--grey);
}

.foot__back { font-size: 0.8rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.foot__back:hover { text-decoration: underline; }
.foot__draft { margin: 0; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ------------------------------------------------------------------ grids */

@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .fixture { grid-template-columns: 3rem 1fr auto; }
}

@media (min-width: 980px) {
  .band { padding: 4.5rem 0; }
  .gallery--three { grid-template-columns: repeat(3, 1fr); }
  .people--three { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 66vh; }
  .hero__inner { padding: 6rem 0 3rem; }
}

/* ----------------------------------------------------------------- motion */

@keyframes drift {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo, .hero__eyebrow::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot img, .card img, .fixture { transition: none; }
}

/* ============================================================== texture ==
   The pieces that stop this reading as a document: the crest ghosted into
   the ground, a ticker of the season's facts, counted numbers, monogram
   tiles where a portrait does not exist yet, and photographic panels
   behind the dark bands. */

.band { position: relative; overflow: hidden; }

.band > .wrap { position: relative; z-index: 2; }

/* Crest ghosted into a band, bleeding off the right edge. */
.band--crest::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -9rem;
  width: 22rem;
  height: 22rem;
  transform: translateY(-50%);
  background: url("assets/cv-bru-crest-roundel.png") center / contain no-repeat;
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}

.band--dark.band--crest::before { opacity: 0.09; }

@media (max-width: 780px) {
  .band--crest::before { right: -10rem; width: 20rem; height: 20rem; opacity: 0.05; }
}

/* A photograph sunk into the ground of a dark band. */
.band__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.2) contrast(1.05);
}

.band--dark .band__bg + .wrap { position: relative; }

.band--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(5, 11, 28, 0.96) 12%, rgba(5, 11, 28, 0.62) 65%, rgba(5, 11, 28, 0.9) 100%);
}

/* Stacked gold cubes, used as a section marker. */
.cubes { display: flex; gap: 0.3rem; margin-bottom: 1rem; }

.cubes span {
  width: 0.7rem;
  height: 0.7rem;
  background: #8A6A16;
  animation: cube-in 500ms ease-out both;
}

.band--dark .cubes span,
.band--feature .cubes span { background: var(--gold); }

.cubes span:nth-child(2) { opacity: 0.7; animation-delay: 80ms; }
.cubes span:nth-child(3) { opacity: 0.4; animation-delay: 160ms; }

@keyframes cube-in {
  from { transform: translateY(8px) scale(0.6); opacity: 0; }
}

/* Ticker of season facts. */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--navy-2);
  color: var(--grey-light);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--line-dark);
}

.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item::after { content: ""; width: 0.45rem; height: 0.45rem; background: var(--gold); }

.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Monogram tile, for people with no photograph on file. */
.person { position: relative; display: flex; gap: 0.9rem; align-items: flex-start; }

.person__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  background: var(--navy);
  color: var(--gold);
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.band--dark .person__mark { background: var(--navy-3); color: var(--gold); }

.person__body { min-width: 0; }

/* Numbers that count up when they arrive. */
.stat__value { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .cubes span { animation: none; }
}

/* Graphic hero, for a page with no photograph good enough to fill a screen.
   Deliberate type on navy beats a 700px frame stretched to 1400. */

.hero--graphic {
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(232, 185, 59, 0.16) 0%, rgba(5, 11, 28, 0) 62%),
    linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 58%);
}

.hero--graphic::after { background: none; }

.hero--graphic::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  width: 34rem;
  height: 34rem;
  background: url("assets/cv-bru-crest-roundel.png") center / contain no-repeat;
  border-radius: 50%;
  opacity: 0.13;
  animation: drift 26s ease-out both;
}

.hero--graphic .hero__inner::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 5px;
  background: var(--gold);
  transform-origin: left;
  animation: draw 900ms 150ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .hero--graphic::before, .hero--graphic .hero__inner::before { animation: none; }
}

/* On navy, the navy button disappears. Gold carries it instead. */
.band--dark .button {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.band--dark .button:hover { background: var(--gold); color: var(--navy); }

/* ---------------------------------------------------- fixture set switch --
   Buttons across the top of the fixtures page, one per competition. With no
   JavaScript every panel is shown, each under its own competition heading,
   so the page still works. */

.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.switch__btn {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 2px solid rgba(220, 225, 234, 0.45);
  border-radius: 999px;
  font-family: Archivo, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-light);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.switch__btn:hover { border-color: var(--gold); color: var(--gold); }

.switch__btn.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.panel + .panel { margin-top: 3rem; }

/* Only once the switch is live does hiding a panel become safe. */
.panels[data-switch="on"] .panel { display: none; }
.panels[data-switch="on"] .panel.is-on { display: block; }

.panel__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 1.2rem;
}

.panel__comp {
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: #fff;
}

.panel__note { font-size: 0.9rem; color: var(--grey); }

.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--grey);
}

.tally strong {
  font-family: "Big Shoulders Display", Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold);
  margin-right: 0.3rem;
}

.band--dark .block__sub { margin-top: 2.2rem; }

/* Faces sit high in a rugby frame, so every cropped image follows the focal
   point recorded for it in the manifest rather than defaulting to the middle. */

.shot img, .card img, .band__bg { object-position: 50% 35%; }
.shot img.is-top, .card img.is-top, .band__bg.is-top { object-position: 50% 20%; }
.shot img.is-centre, .card img.is-centre, .band__bg.is-centre { object-position: 50% 38%; }
.shot img.is-bottom, .card img.is-bottom, .band__bg.is-bottom { object-position: 50% 62%; }

/* A gallery that ran short of fresh photographs still needs to look composed. */
.gallery:has(.shot:only-child) { grid-template-columns: minmax(0, 1fr); }

/* ======================================================== phone layout ==
   The desktop layout works on a phone but wears it badly: the wordmark
   wraps, two sticky rows eat a third of the screen, and the spacing is
   tuned for a wide column. This section fits it to the hand. */

@media (max-width: 619.98px) {
  :root { --bar-h: 3.1rem; }

  .wrap { padding: 0 1rem; }

  .bar { padding: 0 1rem; gap: 0.6rem; }
  .bar__crest { width: 2.1rem; height: 2.1rem; }

  .chip { padding: 0.42rem 0.7rem; font-size: 0.62rem; }

  /* The tab strip scrolls sideways, so say so with a fade at the edge
     rather than leaving people to guess. */
  .tabs {
    -webkit-mask-image: linear-gradient(to right, #000 84%, transparent 100%);
    mask-image: linear-gradient(to right, #000 84%, transparent 100%);
  }

  .tabs__inner { padding: 0 0.6rem; }
  .tabs__link { padding: 0.62rem 0.6rem 0.55rem; font-size: 0.76rem; }

  .hero { min-height: 52vh; }
  .hero__inner { padding: 2.6rem 0 1.9rem; }
  .hero__title { font-size: clamp(2.6rem, 14vw, 4rem); }
  .hero__stand { font-size: 0.96rem; }
  .hero__eyebrow { font-size: 0.58rem; letter-spacing: 0.2em; }
  .hero__eyebrow::before { width: 1.4rem; }

  .ticker { padding: 0.65rem 0; }
  .ticker__item { font-size: 1rem; gap: 1.6rem; }
  .ticker__track { gap: 1.6rem; animation-duration: 46s; }

  .band { padding: 2.4rem 0; }
  .band__title { margin-bottom: 1.1rem; }
  .cubes { margin-bottom: 0.7rem; }

  /* Numbers read better two across than stacked down the page. */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1rem 0.9rem; }
  .stat:only-child,
  .stats > .stat:nth-child(3):last-child,
  .stat:has(.stat__value--text) { grid-column: 1 / -1; }
  .stat__value { font-size: clamp(2.2rem, 12vw, 3rem); }
  .stat__value--text { font-size: 1.25rem; }

  .fixture { grid-template-columns: 1.6rem 1fr auto; gap: 0.2rem 0.7rem; padding: 0.8rem 0.4rem; }
  .fixture__opp { font-size: 1.25rem; }
  .fixture__date { font-size: 0.74rem; }
  .ha { padding: 0.2rem 0.55rem; font-size: 0.56rem; }

  .switch { gap: 0.35rem; }
  .switch__btn { flex: 1 1 auto; padding: 0.65rem 0.8rem; font-size: 0.74rem; }

  .card { min-height: 10.5rem; padding: 0.95rem; }
  .card__title { font-size: 1.45rem; }

  .person { padding: 0.95rem 1rem; gap: 0.75rem; }
  .person__mark { width: 2.7rem; height: 2.7rem; font-size: 1rem; }
  .person__name { font-size: 1.35rem; }

  .address { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .actions { gap: 0.5rem; }
  .button { padding: 0.75rem 1.1rem; }
  .map { min-height: 16rem; aspect-ratio: 4 / 3; }

  .quote__text { font-size: 1.35rem; }
  .name { font-size: 1.1rem; padding: 0.42rem 0.8rem; }

  .moment { padding-left: 1.15rem; padding-bottom: 1.3rem; }
  .moment__text { font-size: 0.96rem; }

  .note { padding: 0.9rem 1rem; font-size: 0.86rem; }

  .sources { padding: 1.8rem 0; }
  .foot { padding: 1.1rem 0; }

  /* A tapped anchor should not land under the sticky bars. */
  html { scroll-padding-top: calc(var(--bar-h) + 2.6rem); }
}

@media (max-width: 380px) {
  .hero__title { font-size: clamp(2.3rem, 15vw, 3.2rem); }
  .stats { grid-template-columns: 1fr; }
}

/* Touch devices: hover states never resolve, so make the resting state the
   readable one and give links a visible press instead. */
@media (hover: none) {
  .card:active { transform: scale(0.995); }
  .fixture:active { background: rgba(232, 185, 59, 0.14); }
  .shot img, .card img { transition: none; }
}


/* The ticker moves on its own, so it needs a control that is not hover.
   WCAG 2.2.2: any motion running past five seconds must be stoppable. */
.ticker.is-paused .ticker__track { animation-play-state: paused; }

.ticker__pause {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.ticker__pause:hover { background: var(--gold); color: var(--navy); }

/* A skip link, because eleven links sit ahead of the content on every page. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { left: 0.5rem; top: 0.5rem; }


/* A portrait photograph in a full-width band would be cropped to a sliver, so
   it keeps its shape and sits centred instead. */
.shot--framed {
  max-width: 30rem;
  margin: 0 auto;
}
