/*
  3BL Esports — site styles

  Palette comes from the brand kit in /new logos (Color Pallet.jpg).
  The signature element is the woven 3BL lettering band (.weave), a CSS mask
  over assets/brand/weave.svg, so it can take any brand color.

  Display face: self-hosted in assets/fonts/display-bold.*
  Text face: Alexandria by Mohamed Gaber (Google Fonts, OFL).
*/

@font-face {
  font-family: "3BL Display";
  src: url("fonts/display-bold.woff2") format("woff2"),
       url("fonts/display-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --smoke: #100c08;
  --fire: #ff9408;
  --piquante: #ca3f16;
  --burgundy: #95122c;
  --hat: #f3f4f5;
  --cloud: #dbe0e1;
  --cream: #fffcf4;

  /* derived */
  --ember: #1b1510;
  --ash: #2a221b;
  --line: rgb(255 252 244 / 0.12);
  --muted: #a99e93;

  --display: "3BL Display", "Arial Black", sans-serif;
  --text: "Alexandria", system-ui, sans-serif;

  /* type scale (classic: 12 14 16 18 21 24 36 48 60 72) */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-21: 1.3125rem;
  --fs-24: 1.5rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;
  --header-h: 4.5rem;
  --weave-h: 3.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--smoke);
  color: var(--hat);
  font-family: var(--text);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--fire);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--fire);
  color: var(--smoke);
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

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

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

/* ---------- display type ---------- */

.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  color: var(--cloud);
  font-size: var(--fs-18);
  line-height: 1.6;
}

/* ---------- weave band ---------- */

.weave {
  display: block;
  height: var(--weave-h);
  background: var(--weave-color, var(--fire));
  -webkit-mask: url("brand/weave.svg") 0 0 / auto 100% repeat-x;
          mask: url("brand/weave.svg") 0 0 / auto 100% repeat-x;
}
.weave--vertical {
  -webkit-mask-image: url("brand/weave-vertical.svg");
          mask-image: url("brand/weave-vertical.svg");
}
.weave--fire { --weave-color: var(--fire); }
.weave--piquante { --weave-color: var(--piquante); }
.weave--burgundy { --weave-color: var(--burgundy); }
.weave--thin { --weave-h: 2.5rem; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--fire);
  border-radius: 2px;
  background: var(--fire) linear-gradient(var(--cream), var(--cream)) no-repeat 0 0 / 0% 100%;
  color: var(--smoke);
  font-weight: 700;
  font-size: var(--fs-16);
  line-height: 1.2;
  transition: background-size 0.35s cubic-bezier(0.7, 0, 0.2, 1), color 0.2s, border-color 0.2s, transform 0.1s;
}
.button:hover { background-size: 100% 100%; border-color: var(--cream); }
.button:active { transform: scale(0.97); }

.button--ghost {
  background: transparent linear-gradient(var(--fire), var(--fire)) no-repeat 0 0 / 0% 100%;
  color: var(--hat);
  border-color: rgb(255 252 244 / 0.5);
}
.button--ghost:hover { background-size: 100% 100%; border-color: var(--fire); color: var(--smoke); }

.text-link {
  color: var(--fire);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--fire);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile nav inside the header box */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(16 12 8 / 0.94);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header::before { background: rgb(16 12 8 / 0.82); backdrop-filter: blur(12px); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand img { width: 2.25rem; height: auto; }
.brand span {
  font-family: var(--display);
  font-size: var(--fs-14);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--cloud);
  font-size: var(--fs-14);
  font-weight: 500;
}
.site-nav a:hover { color: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--cream); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.2rem;
  height: 2px;
  background: var(--fire);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--hat);
  font: 500 var(--fs-14) / 1 var(--text);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 52rem) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--smoke);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0s 0.2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem var(--gutter);
  }
  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: var(--fs-24);
    text-transform: uppercase;
    color: var(--hat);
  }
  .site-nav a[aria-current="page"] { color: var(--fire); }
  .site-nav a[aria-current="page"]::after { display: none; }

  body.nav-locked { overflow: hidden; }
}
@media (min-width: 52.01rem) {
  .site-nav .weave { display: none; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head p { color: var(--muted); max-width: 36rem; }

/* light section — Chef's Hat ground */
.section--light {
  background: var(--hat);
  color: var(--smoke);
}
.section--light .lede { color: #3b332c; }
.section--light .text-link { color: var(--burgundy); }

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

/* photos are 675px wide, so they sit in a panel near native size rather than full-bleed */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero__slides {
  position: relative;
  aspect-ratio: 675 / 535;
  overflow: hidden;
  background: var(--ember);
}
.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.hero__slides img.is-leaving { opacity: 1; z-index: 0; }
.hero__slides img.is-active { opacity: 1; z-index: 1; }

@media (max-width: 52rem) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero__media { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .hero__dots { padding-inline: var(--gutter); }
}

/* the title is sized from its own column, not the viewport, so it can never
   run into the photo ("ESPORTS" is ~6.4em wide) */
.hero__text { container-type: inline-size; min-width: 0; }

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.4vw, 5.75rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--cream);
}
@supports (font-size: 1cqi) {
  .hero__title { font-size: clamp(2.5rem, 15cqi, 7rem); }
}
.hero__title > span { display: block; }
.hero__title > span:last-child { color: var(--fire); }

.hero__lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--cloud);
  font-size: clamp(var(--fs-16), 1.6vw, var(--fs-21));
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero .weave { --weave-h: clamp(2.75rem, 4.5vw, 4rem); }

@keyframes rise {
  from { transform: translateY(0.35em); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- team list ---------- */

.team-list { border-bottom: 1px solid var(--line); }

.team-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--line);
}
.team-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}
.team-row:hover::before,
.team-row:focus-visible::before { transform: scaleX(1); }
.team-row:focus-visible { outline-offset: -3px; }

.team-row__icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.team-row:hover .team-row__icon { transform: rotate(-8deg) scale(1.12); }

.team-row__name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.team-row:hover .team-row__name { transform: translateX(0.6rem); }

.team-row__meta {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: var(--fs-14);
}
.team-row:hover .team-row__meta { color: var(--cloud); }

.team-row__thumb {
  width: 11rem;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), clip-path 0.4s;
}
.team-row:hover .team-row__thumb {
  transform: scale(1.08);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 40rem) {
  .team-row { grid-template-columns: 2.25rem 1fr; padding-inline: 0.25rem; }
  .team-row__icon { width: 2.25rem; height: 2.25rem; }
  .team-row__thumb { display: none; }
}

/* ---------- results table ---------- */

.results + .results { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.results__caption {
  caption-side: top;
  padding-bottom: 0.9rem;
  text-align: left;
}
.results__caption > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}
.results__caption strong {
  font-family: var(--display);
  font-size: var(--fs-21);
  font-weight: 700;
  text-transform: uppercase;
}
.results__caption span { color: var(--muted); font-size: var(--fs-14); }

.results table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.results th:nth-child(1) { width: 24%; }
.results th:nth-child(3) { width: 16%; }
.results th:nth-child(4) { width: 14%; }

.results th {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-12);
  font-weight: 500;
  text-align: left;
}

.results td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.results tbody tr:hover { background: var(--ember); }

.match-date { color: var(--cloud); font-size: var(--fs-14); white-space: nowrap; }
.match-date time { display: block; }
.match-date small { color: var(--muted); font-size: var(--fs-12); }

.opponent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.opponent img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.score {
  font-family: var(--display);
  font-size: var(--fs-21);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.score--none { color: var(--muted); font-family: var(--text); font-size: var(--fs-14); }

.outcome {
  display: inline-block;
  min-width: 4.5rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.outcome--win { background: var(--fire); color: var(--smoke); }
.outcome--loss { border-color: rgb(255 252 244 / 0.35); color: var(--cloud); }
.outcome--draw { border-color: var(--fire); color: var(--fire); }
.outcome--none { color: var(--muted); padding-inline: 0; text-align: left; }

.watch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--cloud);
  font-size: var(--fs-14);
  white-space: nowrap;
}
.watch:hover { color: var(--fire); }

@media (max-width: 46rem) {
  .results thead { display: none; }
  .results table, .results tbody, .results caption { display: block; }
  .results tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "opp score"
      "date outcome";
    gap: 0.4rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .results td { display: block; padding: 0; border: 0; }
  .results td:nth-child(1) { grid-area: date; }
  .results td:nth-child(2) { grid-area: opp; }
  .results td:nth-child(3) { grid-area: score; text-align: right; }
  .results td:nth-child(4) { grid-area: outcome; text-align: right; }
  .match-date time { display: inline; }
  .match-date small::before { content: " "; }
  .outcome--none { text-align: right; }
}

/* ---------- titles ---------- */

.titles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.titles__year {
  display: grid;
  grid-template-columns: minmax(6rem, 14rem) 1fr;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.titles__year h3 {
  font-family: var(--display);
  font-size: clamp(var(--fs-36), 5vw, var(--fs-48));
  line-height: 1;
  color: var(--fire);
}

.titles__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem 2rem;
  align-content: center;
}
.titles__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-18);
  font-weight: 500;
}
.titles__list img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
}
.titles__list small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-12);
  font-weight: 400;
}

@media (max-width: 40rem) {
  .titles__year { grid-template-columns: 1fr; }
}

/* ---------- about split (light) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
}

.prose {
  max-width: 38rem;
  font-size: var(--fs-18);
  line-height: 1.7;
}
.prose p + p { margin-top: 1.1em; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid currentColor;
}
.facts div {
  padding: 1.1rem 0 1.25rem;
  border-bottom: 1px solid rgb(16 12 8 / 0.18);
}
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts dt {
  font-size: var(--fs-14);
  color: #5a5048;
}
.facts dd {
  margin-top: 0.3rem;
  font-family: var(--display);
  font-size: clamp(var(--fs-24), 3.4vw, var(--fs-36));
  line-height: 1;
  text-transform: uppercase;
  color: var(--burgundy);
}
.section:not(.section--light) .facts div { border-bottom-color: var(--line); }
.section:not(.section--light) .facts dt { color: var(--muted); }
.section:not(.section--light) .facts dd { color: var(--fire); }

/* ---------- page header (inner pages) ---------- */

.page-head {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.page-head .lede { margin-top: 1rem; }

.banner {
  position: relative;
  background: var(--ember);
}
.banner img {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ember);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- roster ---------- */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 40rem) {
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player__name { font-size: var(--fs-16); }
}

.player__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ember);
  isolation: isolate;
}
/* woven backdrop behind each cut-out */
.player__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--burgundy);
  opacity: 0.55;
  -webkit-mask: url("brand/weave.svg") 0 0 / auto 25% repeat;
          mask: url("brand/weave.svg") 0 0 / auto 25% repeat;
}
.player__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--ember) 5%, rgb(27 21 16 / 0) 60%);
}
.player__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__body { padding-top: 0.9rem; }
.player__body .socials { margin: 0.4rem 0 0 -0.6rem; }
.player__name {
  font-family: var(--display);
  font-size: var(--fs-21);
  line-height: 1;
  text-transform: uppercase;
}
.player__role {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: var(--fs-14);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--cloud);
  font-size: 1.05rem;
  transition: color 0.15s;
}
.socials a:hover { color: var(--fire); }

.empty-roster {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--ember);
}
.empty-roster img { width: clamp(4rem, 10vw, 7rem); opacity: 0.9; }
.empty-roster h2 {
  font-family: var(--display);
  font-size: clamp(var(--fs-21), 3vw, var(--fs-36));
  line-height: 1.05;
  text-transform: uppercase;
}
.empty-roster p { margin-top: 0.75rem; color: var(--cloud); max-width: 34rem; }
.empty-roster .hero__actions { margin-top: 1.5rem; }
@media (max-width: 40rem) {
  .empty-roster { grid-template-columns: 1fr; }
}

/* ---------- about page ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.pull-quote {
  max-width: 50rem;
  font-family: var(--text);
  font-size: clamp(var(--fs-21), 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}
.pull-quote::before {
  content: "";
  display: block;
  width: 4rem;
  height: 0.35rem;
  margin-bottom: 1.5rem;
  background: var(--piquante);
}

.leader {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.leader img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--ember);
}
.leader__role { color: var(--fire); font-size: var(--fs-14); font-weight: 500; }
.leader__name {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: clamp(var(--fs-24), 4vw, var(--fs-36));
  line-height: 1;
  text-transform: uppercase;
}
.leader .prose { margin-top: 1.25rem; color: var(--cloud); }
@media (max-width: 40rem) {
  .leader { grid-template-columns: 1fr; }
  .leader img { max-width: 12rem; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ember);
}
.site-footer .weave { --weave-h: 2.75rem; background-color: var(--piquante); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 46rem) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer__brand .brand img { width: 3rem; }
.site-footer__brand .brand span { font-size: var(--fs-18); }
.site-footer__brand p { margin-top: 1rem; color: var(--muted); max-width: 22rem; font-size: var(--fs-14); }

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: var(--fs-14);
  font-weight: 500;
}
.site-footer__links a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--cloud);
}
.site-footer__links a:hover { color: var(--fire); }
.site-footer .socials { margin-left: -0.6rem; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-12);
}
.site-footer__base a { color: var(--cloud); text-decoration: underline; text-underline-offset: 0.2em; }

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

/* ---------- spacing utilities ---------- */

.mt-s { margin-top: 0.75rem; }
.mt-m { margin-top: 1.25rem; }
.mt-l { margin-top: 1.75rem; }
.mb-l { margin-bottom: 1.75rem; }

/* ---------- hero media controls ---------- */

.hero__media { min-width: 0; }

.hero__dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.hero__dot {
  flex: 1;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero__dot span {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgb(255 252 244 / 0.2);
}
.hero__dot span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot[aria-current="true"] span::after { transform: scaleX(1); }
.hero__dot:hover span { background: rgb(255 252 244 / 0.4); }

/* fire bar that leads each photo wipe */
.hero__slides::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 0.5rem;
  background: var(--fire);
  opacity: 0;
  pointer-events: none;
}

/* ---------- results ticker ---------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ember);
}
.ticker__track {
  display: flex;
  width: max-content;
}
.ticker__list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0.95rem 1.125rem;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: var(--fs-14);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__item b { color: var(--fire); font-weight: 700; }
.ticker__item--hash { color: var(--piquante); }
.ticker__item--hash::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 1.65rem;
  background: var(--fire);
  transform: rotate(45deg);
}
.ticker__item--hash::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 1.65rem;
  background: var(--fire);
  transform: rotate(45deg);
}
.ticker__tag {
  padding: 0.3rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--text);
  font-size: var(--fs-12);
  font-weight: 700;
}
.ticker__tag--win { border-color: var(--fire); background: var(--fire); color: var(--smoke); }
.ticker__tag--loss { color: var(--muted); }
.ticker__tag--draw { color: var(--fire); }

/* ---------- drifting weave ---------- */

.weave--drift {
  --tile: calc(var(--weave-h) * 0.92316); /* weave.svg is 326.58 x 353.77 */
  position: relative;
  overflow: hidden;
  background: none;
  -webkit-mask: none;
          mask: none;
}
.weave--drift::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--tile));
  width: calc(100% + 2 * var(--tile));
  background: var(--weave-color, var(--fire));
  -webkit-mask: url("brand/weave.svg") 0 0 / auto 100% repeat-x;
          mask: url("brand/weave.svg") 0 0 / auto 100% repeat-x;
}
.weave--drift.weave--vertical::before {
  -webkit-mask-image: url("brand/weave-vertical.svg");
          mask-image: url("brand/weave-vertical.svg");
}
.site-footer .weave--drift { background: none; --weave-color: var(--piquante); }

/* ---------- tilt ---------- */

[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- motion (only when the visitor allows it) ---------- */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion [data-reveal="slide"] { transform: translateX(-2.5rem); }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="wipe"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
}
.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}
.motion.reveal-all [data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: none;
}

/* hero title waits for its decode effect */
.motion:not(.reveal-all) .hero__title:not(.is-ready) { visibility: hidden; }
.scramble-char { display: inline-block; text-align: center; }
.scramble-char.is-glyph { color: var(--piquante); }

@media (prefers-reduced-motion: no-preference) {
  .hero__lede, .hero__actions { animation: fade 0.8s 0.5s ease both; }
  .hero__dots { animation: fade 0.8s 0.9s ease both; }

  .hero__slides img.is-active { animation: wipe-in 0.9s cubic-bezier(0.7, 0, 0.2, 1) both; }
  .hero__media.is-wiping .hero__slides::after { animation: wipe-bar 0.9s cubic-bezier(0.7, 0, 0.2, 1) both; }

  .hero__dot[aria-current="true"] span::after { animation: dot-fill 6s linear both; }
  .hero__media:hover .hero__dot span::after,
  .hero__media:focus-within .hero__dot span::after { animation-play-state: paused; }

  .weave--drift { animation: weave-reveal 1.4s 0.3s cubic-bezier(0.7, 0, 0.2, 1) both; }
  .weave--drift::before { animation: weave-drift 14s linear infinite; }
  .weave--reverse::before { animation-direction: reverse; animation-duration: 22s; }
  .site-footer .weave--drift { animation: none; }

  .ticker { animation: fade 0.8s 1s ease both; }
  .ticker__track { animation: ticker 50s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }

  .page-title { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-head .lede { animation: fade 0.8s 0.25s ease both; }
  .banner img { animation: wipe-in 1s 0.15s cubic-bezier(0.7, 0, 0.2, 1) both; }

  .player__photo img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .player:hover .player__photo img { transform: scale(1.05); }
  .player:hover .player__photo::before { animation: weave-pan 6s linear infinite; }
}

@keyframes wipe-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes wipe-bar {
  0% { left: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 0.5rem); opacity: 0; }
}
@keyframes dot-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes weave-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes weave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(var(--tile)); }
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
@keyframes weave-pan {
  to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}
