/* =========================================================
   Kidsgrove Athletic Football Club
   Crafted by WebHunted
   ========================================================= */

:root {
  /* Grove blue, ivory and brass, with kit red kept for accents */
  --abyss: #050B22;
  --grove: #0A1B4E;
  --grove-2: #102665;
  --royal: #1D43B0;
  --glow: rgba(64, 108, 230, .42);
  --ivory: #F4EEE2;
  --ivory-2: #EAE1CD;
  --brass: #C5A465;
  --brass-soft: #E3CC97;
  --kit-red: #C3332F;
  --sky: #7DB0DE;
  --white: #FFFFFF;
  --mist: #9AA5C7;

  --hair: rgba(197, 164, 101, .38);
  --line: rgba(244, 238, 226, .13);
  --line-dark: rgba(10, 27, 78, .15);

  /* Names shared with the shop and staff pages */
  --ink: var(--abyss);
  --night: var(--grove);
  --navy: var(--grove);
  --gold: var(--brass);
  --gold-soft: var(--brass-soft);
  --stone: var(--mist);
  --phoenix: var(--kit-red);
  --away-ink: var(--grove);
  --cream: var(--ivory);
  --kit-stripes: linear-gradient(90deg, var(--royal) 0 40%, var(--sky) 40% 50%, var(--kit-red) 50% 90%, var(--sky) 90% 100%);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header-h: 88px;
  --ease: cubic-bezier(.16, .84, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.intro-on { overflow: hidden; }

main { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 1px solid var(--brass-soft); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 400;
  padding: .75rem 1rem; background: var(--brass); color: var(--abyss); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.eyebrow, .label {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.4rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before, .label::before { content: ""; width: 36px; height: 1px; background: currentColor; }

.display {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.display em { font-style: italic; font-weight: 400; color: var(--brass-soft); }

.display-sm {
  margin: 0 0 .8rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.lead { font-size: 1.16rem; max-width: 33rem; color: rgba(244, 238, 226, .82); }

.link, .text-link {
  display: inline-block;
  padding-bottom: .4rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass-soft);
  background: linear-gradient(var(--kit-red), var(--kit-red)) left bottom / 0 1px no-repeat,
              linear-gradient(var(--hair), var(--hair)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link:hover, .text-link:hover { background-size: 100% 1px, 100% 1px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kit-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--white); border-color: var(--kit-red); }

.btn-brass, .btn-gold { background: var(--brass); color: var(--abyss); border-color: var(--brass); }
.btn-ghost, .btn-line { background: transparent; color: var(--ivory); border-color: rgba(244, 238, 226, .4); }
.btn-sm { padding: .8rem 1.3rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled::before { display: none; }

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(64, 108, 230, .28) 0%, transparent 70%),
    var(--grove);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease);
}
.intro-on .intro { display: flex; }
.intro.is-leaving { clip-path: inset(0 0 100% 0); }

.intro-mark { position: relative; width: 170px; height: 170px; margin-bottom: 2.2rem; }
.intro-mark img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  opacity: 0;
  transform: scale(.94);
  animation: intro-fade 1.4s var(--ease) .3s forwards;
}
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.intro-ring circle {
  fill: none;
  stroke: var(--brass);
  stroke-width: .8;
  stroke-dasharray: 616;
  stroke-dashoffset: 616;
  animation: ring-draw 1.8s var(--ease) .2s forwards;
}
.intro-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: .02em;
  opacity: 0;
  animation: intro-fade 1.2s var(--ease) .9s forwards;
}
.intro-line {
  display: block;
  width: 140px;
  height: 1px;
  margin: 1.2rem 0;
  background: var(--brass);
  transform: scaleX(0);
  animation: line-draw 1.2s var(--ease) 1.2s forwards;
}
.intro-est {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--brass-soft);
  opacity: 0;
  animation: intro-fade 1s var(--ease) 1.5s forwards;
}
@keyframes intro-fade { to { opacity: 1; transform: none; } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes line-draw { to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), height .6s var(--ease);
}
.site-header.is-solid {
  height: 74px;
  background: rgba(5, 11, 34, .86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.menu-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 0;
  background: none;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
}
.menu-lines { display: grid; gap: 8px; width: 30px; }
.menu-lines i { display: block; height: 1px; background: currentColor; transition: transform .45s var(--ease), width .45s var(--ease), background-color .3s; }
.menu-lines i:last-child { width: 20px; }
.menu-btn:hover .menu-lines i { background: var(--kit-red); }
.menu-btn:hover .menu-lines i:last-child { width: 30px; }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { width: 30px; transform: translateY(-4.5px) rotate(-45deg); }
.menu-word { font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }

.header-crest { opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.header-crest img { width: 48px; height: 48px; }
.site-header.is-solid .header-crest, body.menu-open .header-crest, .shop-header .header-crest { opacity: 1; transform: none; }

.header-tickets {
  justify-self: end;
  padding: .75rem 1.4rem;
  border: 1px solid var(--hair);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s;
}
.header-tickets:hover { background: var(--kit-red); border-color: var(--kit-red); color: var(--white); }

/* Shop page header */
.shop-header {
  background: rgba(5, 11, 34, .92);
  border-bottom-color: var(--line);
}

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 120px var(--gutter) 3rem;
  background:
    radial-gradient(ellipse 60% 70% at 85% 15%, rgba(64, 108, 230, .3) 0%, transparent 60%),
    var(--grove);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }

.menu-nav ul { margin: 0; padding: 0; list-style: none; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 1.4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform .9s var(--ease), color .35s;
}
.menu-nav a span { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; color: var(--brass); }
.menu-nav a:hover { color: var(--brass-soft); font-style: italic; }
.menu.is-open .menu-nav a { transform: none; }
.menu.is-open .menu-nav li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open .menu-nav li:nth-child(3) a { transition-delay: .12s; }
.menu.is-open .menu-nav li:nth-child(4) a { transition-delay: .18s; }
.menu.is-open .menu-nav li:nth-child(5) a { transition-delay: .24s; }
.menu.is-open .menu-nav li:nth-child(6) a { transition-delay: .3s; }

.menu-side { display: grid; gap: 2.5rem; padding-left: 3rem; border-left: 1px solid var(--hair); color: rgba(244, 238, 226, .78); opacity: 0; transition: opacity .8s var(--ease) .4s; }
.menu.is-open .menu-side { opacity: 1; }
.menu-side .eyebrow { margin-bottom: .6rem; }
.menu-match { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--ivory); }
.menu-staff { font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--mist); }
.menu-staff:hover { color: var(--kit-red); }

/* ---------- Full-screen panels that slide over each other ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.stack { position: sticky; top: 0; }
.stack + .stack, .statement, .stack + .section { box-shadow: 0 -50px 100px rgba(0, 0, 0, .5); }

/* ---------- Hero ---------- */
.hero {
  z-index: 1;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(64, 108, 230, .32) 0%, transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 120%, var(--grove-2) 0%, transparent 70%),
    var(--grove);
}
.hero-media { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 27, 78, .25) 0%, rgba(5, 11, 34, .7) 100%),
    linear-gradient(180deg, rgba(5, 11, 34, .55) 0%, rgba(10, 27, 78, .35) 40%, rgba(5, 11, 34, .9) 100%);
}

.beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 3s ease .3s; }
.is-loaded .beams { opacity: 1; }
.beam {
  position: absolute;
  top: -25%;
  width: 30vw;
  height: 160%;
  background: linear-gradient(180deg, rgba(230, 236, 255, .2) 0%, rgba(230, 236, 255, 0) 70%);
  filter: blur(46px);
  transform-origin: 50% 0;
}
.beam-l { left: 2%; animation: beam-l 18s ease-in-out infinite alternate; }
.beam-r { right: 2%; animation: beam-r 20s ease-in-out infinite alternate; }
@keyframes beam-l { from { transform: rotate(-30deg); } to { transform: rotate(-12deg); } }
@keyframes beam-r { from { transform: rotate(28deg); } to { transform: rotate(10deg); } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }
.hero-eyebrow { opacity: 0; transition: opacity 1.2s var(--ease) .2s; }
.hero-eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.is-loaded .hero-eyebrow { opacity: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Crest centrepiece with brass rings drawing around it */
.hero-crest {
  position: relative;
  width: clamp(230px, 38vh, 380px);
  aspect-ratio: 1;
  margin: 1rem 0 2.4rem;
}
.hero-crest img {
  position: absolute;
  inset: 11%;
  width: 78%;
  height: 78%;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px rgba(64, 108, 230, .35));
  opacity: 0;
  transform: scale(.92);
  transition: opacity 1.8s var(--ease) .35s, transform 1.8s var(--ease) .35s;
}
.is-loaded .hero-crest img { opacity: 1; transform: none; }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.hero-ring circle {
  fill: none;
  stroke: var(--brass);
  stroke-width: .6;
  stroke-dasharray: 616;
  stroke-dashoffset: 616;
  transition: stroke-dashoffset 2.6s var(--ease) .2s;
}
.hero-ring-outer { inset: -9%; width: 118%; height: 118%; transform: rotate(90deg); }
.hero-ring-outer circle { stroke: rgba(197, 164, 101, .35); stroke-width: .4; transition-delay: .6s; }
.is-loaded .hero-ring circle { stroke-dashoffset: 0; }

.hero-est {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, .8);
  opacity: 0;
  transition: opacity 1.2s var(--ease) .6s;
}
.hero-est i { width: 5px; height: 5px; background: var(--kit-red); transform: rotate(45deg); }
.is-loaded .hero-est { opacity: 1; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--ease) .8s, transform 1.2s var(--ease) .8s; }
.is-loaded .hero-actions { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
}
.scroll-cue i { position: relative; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Statement ---------- */
.statement {
  position: relative;
  z-index: 2;
  padding: clamp(8rem, 18vw, 14rem) 0;
  background: var(--abyss);
  overflow: hidden;
}
.statement-year {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.5rem, 4vw, 3.5rem);
  width: min(62vw, 760px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.statement-year text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 300px;
  letter-spacing: -8px;
  fill: rgba(197, 164, 101, 0);
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 3.2s var(--ease), fill 1.6s ease 2.4s;
}
.statement-year.is-drawn text { stroke-dashoffset: 0; fill: rgba(197, 164, 101, .22); }
.statement .wrap { position: relative; z-index: 1; }
.statement-link { margin-top: 3rem; }

.statement-text {
  max-width: 62rem;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -.015em;
}
.statement-text em { font-style: italic; }
.statement-text .w { color: rgba(244, 238, 226, .14); transition: color .5s ease; }
.statement-text .w.on { color: var(--ivory); }
.statement-text em .w.on { color: var(--brass-soft); }

/* ---------- Matchday ---------- */
.matchday {
  z-index: 3;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(64, 108, 230, .45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(195, 51, 47, .14) 0%, transparent 60%),
    linear-gradient(160deg, var(--grove-2) 0%, var(--grove) 60%, var(--abyss) 100%);
}
.matchday-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(3rem, 6vw, 6rem);
}
.match-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.match-title em { margin: .9rem 0 .7rem; font-size: .32em; font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--brass-soft); }

.match-meta { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--line); }
.match-meta div { padding: 1.3rem 2.4rem 0 0; margin-right: 2.4rem; border-right: 1px solid var(--line); }
.match-meta div:last-child { border-right: 0; margin-right: 0; }
.match-meta dt { margin-bottom: .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.match-meta dd { margin: 0; font-size: 1.05rem; font-weight: 500; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2.2rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.countdown div { padding: 1.7rem 0 1.4rem; text-align: center; border-right: 1px solid var(--line); }
.countdown div:last-child { border-right: 0; }
.countdown span {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown small { display: block; margin-top: .6rem; font-size: .6rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.matchday-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Feature panels (Fitzjohn, Suites, Collection) ---------- */
.feature { z-index: 4; background: var(--abyss); }
.feature-suites { z-index: 5; }
.feature-kit { z-index: 6; }

.feature-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 11, 34, .96) 0%, rgba(5, 11, 34, .75) 45%, rgba(5, 11, 34, .35) 100%),
    var(--bg, none) center / cover no-repeat,
    radial-gradient(ellipse 60% 80% at 80% 40%, rgba(64, 108, 230, .35) 0%, transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(125, 176, 222, .06) 58px 59px, transparent 59px 118px, rgba(195, 51, 47, .07) 118px 119px),
    var(--grove);
  transform: scale(1.06);
  transition: transform 2.4s var(--ease);
}
.feature-suites .feature-bg {
  background:
    linear-gradient(90deg, rgba(5, 11, 34, .96) 0%, rgba(5, 11, 34, .75) 45%, rgba(5, 11, 34, .35) 100%),
    var(--bg, none) center / cover no-repeat,
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(197, 164, 101, .22) 0%, transparent 65%),
    linear-gradient(160deg, #13235A 0%, var(--abyss) 80%);
}
.feature-kit .feature-bg {
  background:
    radial-gradient(ellipse 50% 70% at 75% 50%, rgba(64, 108, 230, .4) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 70% 70%, rgba(195, 51, 47, .16) 0%, transparent 65%),
    linear-gradient(160deg, var(--grove-2) 0%, var(--abyss) 85%);
}
.feature.in-view .feature-bg { transform: none; }

/* Fine brass frame inside each panel */
.feature::after {
  content: "";
  position: absolute;
  inset: clamp(1rem, 2.4vw, 2rem);
  border: 1px solid rgba(197, 164, 101, .22);
  pointer-events: none;
}

.feature-index {
  position: absolute;
  right: clamp(3rem, 7vw, 7rem);
  bottom: clamp(3rem, 6vw, 5rem);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(197, 164, 101, .3);
  pointer-events: none;
}

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.feature-grid-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.feature-copy { max-width: 38rem; }
.feature-copy address { margin: 1.8rem 0 1.6rem; color: var(--mist); }
.feature-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.suite-list { margin: 1.8rem 0 2.6rem; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4rem; border-top: 1px solid var(--line); }
.suite-list li { position: relative; padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.suite-list li::before { content: ""; position: absolute; left: 0; top: 1.65rem; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }

.kit-frame {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  margin: 0;
  padding: 14px;
  border: 1px solid var(--hair);
  background: rgba(5, 11, 34, .4);
}
.kit-frame::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  z-index: -1;
  border: 1px solid rgba(197, 164, 101, .18);
}
.kit-frame img { width: 100%; height: auto; filter: saturate(1.05) contrast(1.04); }
.kit-frame figcaption {
  margin-top: 1rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--brass);
}

/* ---------- Sections ---------- */
.section { position: relative; z-index: 7; padding: clamp(6rem, 12vw, 10rem) 0; }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

/* Ivory (away kit) */
.ivory {
  position: relative;
  z-index: 7;
  background: var(--ivory);
  color: var(--grove);
}
.ivory .eyebrow { color: #A07F42; }
.ivory .display, .ivory .display-sm { color: var(--grove); }
.ivory .display em { color: #9A7A3E; }

/* Deep (home kit) */
.deep {
  background:
    radial-gradient(ellipse 60% 70% at 90% 0%, rgba(64, 108, 230, .25) 0%, transparent 60%),
    var(--abyss);
  color: var(--ivory);
}

/* ---------- Fixtures ---------- */
.fixtures-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  margin-bottom: clamp(5rem, 9vw, 7.5rem);
}

.result {
  align-self: start;
  position: relative;
  padding: clamp(2.2rem, 4vw, 3.2rem);
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(64, 108, 230, .4) 0%, transparent 60%),
    var(--grove);
  color: var(--ivory);
  box-shadow: 0 40px 80px -40px rgba(5, 11, 34, .7);
}
.result::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(197, 164, 101, .25); pointer-events: none; }
.result .eyebrow { color: var(--brass); }
.result-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; text-align: center; }
.result-team { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.15; }
.result-score { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 6.5vw, 5rem); line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.result-meta { grid-column: 1 / -1; margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--mist); }

.fixture-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.fixture {
  position: relative;
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding .5s var(--ease);
}
.fixture::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 1px; background: var(--kit-red); transform: scaleY(0); transition: transform .5s var(--ease); }
.fixture:hover { padding-left: 1.2rem; }
.fixture:hover::before { transform: none; }
.fixture-date strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1; }
.fixture-date span { display: block; margin-top: .4rem; white-space: nowrap; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(10, 27, 78, .55); }
.fixture-opponent { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; transition: color .3s; }
.fixture:hover .fixture-opponent { color: var(--kit-red); }
.fixture-opponent small { display: block; margin-top: .25rem; font-family: var(--sans); font-weight: 500; font-size: .84rem; color: rgba(10, 27, 78, .58); }
.fixture-venue { padding: .45rem .9rem; font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; border: 1px solid rgba(10, 27, 78, .28); color: rgba(10, 27, 78, .7); }
.fixture-venue.is-home { background: var(--grove); border-color: var(--grove); color: var(--brass-soft); }

.table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.4rem; }
.table-head .display-sm { margin: 0; }
.table-head p { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(10, 27, 78, .55); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.league-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.league-table th { padding: .95rem .6rem; font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-align: center; color: rgba(10, 27, 78, .55); border-bottom: 1px solid var(--grove); }
.league-table td { padding: 1.1rem .6rem; text-align: center; border-bottom: 1px solid var(--line-dark); transition: background-color .3s; }
.league-table tbody tr:hover td { background: rgba(10, 27, 78, .04); }
.league-table .col-team { text-align: left; }
.league-table td.col-team { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; }
.league-table .col-pos { width: 4rem; }
.league-table td.col-pos { font-family: var(--serif); }
.league-table td.col-pts { font-weight: 700; }
.league-table tbody tr.is-us td,
.league-table tbody tr.is-us:hover td { background: var(--grove); color: var(--ivory); border-bottom-color: var(--grove); }
.league-table tbody tr.is-us td:first-child { box-shadow: inset 2px 0 0 var(--brass); }

/* ---------- Squad ---------- */
.squad { overflow: hidden; }
.squad-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3.2rem; }
.squad-head .display { margin-bottom: 0; }
.squad-arrows { display: flex; gap: .6rem; }
.arrow { width: 56px; height: 56px; display: grid; place-items: center; background: transparent; color: var(--ivory); border: 1px solid var(--hair); font-size: 1.05rem; cursor: pointer; transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.arrow:hover { background: var(--kit-red); border-color: var(--kit-red); }

.squad-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 24vw, 300px);
  gap: 1.4rem;
  margin: 0;
  padding: 0 var(--gutter) 1rem max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.squad-track::-webkit-scrollbar { display: none; }
.player {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.7rem;
  background:
    radial-gradient(ellipse 90% 60% at 70% 20%, rgba(64, 108, 230, .45) 0%, transparent 65%),
    linear-gradient(175deg, var(--grove-2) 0%, var(--grove) 50%, var(--abyss) 100%);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.player::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--kit-red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.player:hover { border-color: var(--hair); transform: translateY(-6px); }
.player:hover::after { transform: scaleX(1); }
.player-number { position: absolute; top: 1rem; right: 1.3rem; padding-right: .1em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 6.5rem; line-height: 1.1; color: transparent; -webkit-text-stroke: 1px rgba(197, 164, 101, .45); transition: -webkit-text-stroke-color .5s var(--ease); }
.player:hover .player-number { -webkit-text-stroke-color: var(--brass-soft); }
.player-name { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; margin-bottom: .5rem; }
.player-pos { margin: 0; font-size: .64rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }

/* ---------- Closing ---------- */
.closing {
  position: relative;
  z-index: 7;
  padding: clamp(7rem, 15vw, 12rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 30%, rgba(64, 108, 230, .35) 0%, transparent 70%),
    var(--grove);
  overflow: hidden;
  isolation: isolate;
}
.beams-soft .beam { opacity: .7; }
.closing-crest { width: 96px; height: 96px; margin: 0 auto 2.4rem; }
.closing-title { margin: 0 0 3rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: 1.02; letter-spacing: -.025em; }
.closing-title em { font-style: italic; font-weight: 400; color: var(--brass-soft); }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Partners ---------- */
.partners { padding: clamp(5rem, 9vw, 7rem) 0 clamp(4rem, 7vw, 5rem); text-align: center; }
.partners .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.partner-principal { margin: 0 0 3.4rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; color: var(--grove); }
.marquee { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; margin: 0; padding: 1.6rem 0; list-style: none; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { padding: 0 2.8rem; font-family: var(--serif); font-style: italic; font-size: 1.55rem; color: rgba(10, 27, 78, .6); white-space: nowrap; transition: color .3s; }
.marquee-track li:hover { color: var(--kit-red); }
.marquee-track li::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 5.6rem; vertical-align: middle; background: var(--brass); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 7; background: var(--abyss); padding-top: clamp(4.5rem, 9vw, 6.5rem); color: var(--mist); font-size: .95rem; }
.footer-top { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 3.5rem; }
.footer-top img { width: 84px; height: 84px; margin-bottom: 1.4rem; }
.footer-name { margin: 0 0 .3rem; font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); }
.footer-est { margin: 0; font-size: .66rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--brass); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid var(--line); text-align: center; }
.footer-grid .eyebrow { margin-bottom: 1rem; }
.footer-grid .eyebrow::before { display: none; }
.site-footer address, .site-footer p { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--kit-red); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .04em; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--brass-soft); }

/* ---------- Modals ---------- */
.modal {
  width: min(540px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: var(--grove);
  color: var(--ivory);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .85);
  overflow-y: auto;
}
.modal::backdrop { background: rgba(5, 11, 34, .82); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .6s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal-body { position: relative; padding: 2.9rem 2.4rem 2.4rem; }
.modal-body .eyebrow, .modal-body .label { margin-bottom: .8rem; }
.modal-title { margin-bottom: 1rem; padding-right: 2.5rem; font-family: var(--serif); font-weight: 500; font-size: 2.3rem; line-height: 1.05; }
.modal-text { color: rgba(244, 238, 226, .8); margin-bottom: 1.9rem; }
.modal-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: var(--ivory); border: 1px solid var(--line); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: border-color .3s, color .3s; }
.modal-close:hover { border-color: var(--kit-red); color: var(--kit-red); }

.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label { font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: .8rem 0; background: transparent; color: var(--ivory); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font: inherit; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-bottom-color: var(--brass); }
.form-row textarea { resize: vertical; }
.form-row select option { background: var(--grove); color: var(--ivory); }
.form-error { margin: 0 0 1.2rem; padding: .8rem 1rem; border-left: 2px solid var(--kit-red); background: rgba(195, 51, 47, .14); font-size: .9rem; }

/* ---------- Content sweeping in ---------- */
.js [data-sweep] { opacity: 0; transition: opacity 1.3s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
.js [data-sweep="left"]  { transform: translateX(-110px); }
.js [data-sweep="right"] { transform: translateX(110px); }
.js [data-sweep="up"]    { transform: translateY(70px); }
.js [data-sweep].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .matchday-grid, .feature-grid-split, .fixtures-grid { grid-template-columns: 1fr; align-items: start; }
  .kit-frame { justify-self: start; width: min(300px, 100%); }
}

/* Panels slide over each other only where each one fits on screen */
@media (max-width: 1024px), (max-height: 760px) {
  .stack:not(.hero) { position: relative; }
  .panel:not(.hero) { min-height: 0; padding: clamp(7rem, 15vw, 9rem) 0 clamp(5rem, 11vw, 7rem); }
}

@media (max-width: 760px) {
  :root { --header-h: 76px; }
  body { font-size: 1rem; }
  .site-header.is-solid { height: 66px; }
  .menu { grid-template-columns: 1fr; align-content: start; gap: 2.5rem; overflow-y: auto; }
  .menu-side { padding-left: 0; padding-top: 2rem; border-left: 0; border-top: 1px solid var(--hair); }
  .menu-word { display: none; }
  .header-tickets { padding: .65rem 1rem; letter-spacing: .2em; }
  .hero-crest { width: min(64vw, 260px); }
  .hero-est { letter-spacing: .24em; gap: .8rem; font-size: .66rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
  .countdown span { font-size: 2.2rem; }
  .match-meta div { padding-right: 1.2rem; margin-right: 1.2rem; }
  .suite-list { grid-template-columns: 1fr; }
  .fixture { grid-template-columns: 3.8rem minmax(0, 1fr); gap: 1rem; }
  .fixture-venue { grid-column: 2; justify-self: start; }
  .fixture-opponent { font-size: 1.2rem; }
  .squad-arrows { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-split { grid-template-columns: 1fr; gap: 0; }
  .feature-index { font-size: 5rem; }
  .js [data-sweep="left"]  { transform: translateX(-40px); }
  .js [data-sweep="right"] { transform: translateX(40px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-sweep] { opacity: 1; transform: none; }
  .statement-text .w { color: var(--ivory); }
}

/* =========================================================
   Scroll extras
   ========================================================= */

/* Reading progress line */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 150; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-soft) 70%, var(--kit-red)); transform: scaleX(0); transform-origin: left; }

/* Eyebrow lines draw in */
.js [data-sweep].eyebrow::before, .js [data-sweep] .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--d, 0s) + .3s); }
.js [data-sweep].in.eyebrow::before, .js [data-sweep].in .eyebrow::before { transform: none; }

/* Headlines wipe up into view */
.js .display[data-sweep], .js .display-sm[data-sweep], .js .closing-title[data-sweep] { clip-path: inset(0 0 62% 0); transform: translateY(40px); transition: clip-path 1.4s var(--ease) var(--d, 0s), opacity 1s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
.js .display[data-sweep].in, .js .display-sm[data-sweep].in, .js .closing-title[data-sweep].in { clip-path: inset(-15% -5% -25% -5%); transform: none; }

/* Parallax hooks (moved by main.js) */
[data-parallax] { will-change: transform; }

/* Honours strip */
.honours-strip {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 100%, rgba(64, 108, 230, .2) 0%, transparent 60%),
    var(--abyss);
  border-top: 1px solid var(--line);
}
.honours-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 3rem; }
.honours-head .display-sm em { font-style: italic; font-weight: 400; color: var(--brass-soft); }
.honours-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 3rem; padding: 0; list-style: none; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.honours-stats li { display: flex; flex-direction: column; padding: 2.4rem 1.6rem 2.2rem; border-right: 1px solid var(--line); }
.honours-stats li:first-child { padding-left: 0; }
.honours-stats li:last-child { border-right: 0; }
.honours-stats strong { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5.5vw, 4.8rem); line-height: 1; color: var(--brass-soft); font-variant-numeric: lining-nums tabular-nums; }
.honours-stats span { margin-top: .9rem; font-weight: 600; color: var(--ivory); }
.honours-stats small { margin-top: .3rem; font-size: .84rem; color: var(--mist); }

/* Facts under the Fitzjohn panel */
.feature-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
.feature-facts div { padding: 1.2rem 2.2rem 0 0; margin-right: 2.2rem; border-right: 1px solid var(--line); }
.feature-facts div:last-child { border-right: 0; margin-right: 0; }
.feature-facts dt { font-size: .64rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.feature-facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }

@media (max-width: 960px) {
  .honours-stats { grid-template-columns: 1fr 1fr; }
  .honours-stats li { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .honours-stats li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.4rem; }
  .honours-stats li:nth-child(even) { padding-left: 1.4rem; }
  .honours-stats li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .honours-stats { grid-template-columns: 1fr; }
  .honours-stats li, .honours-stats li:nth-child(even) { padding-left: 0; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .honours-stats li:last-child { border-bottom: 0 !important; }
  .statement-year { width: 90vw; opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .statement-year text { stroke-dashoffset: 0; fill: rgba(197, 164, 101, .22); }
  .js .display[data-sweep], .js .display-sm[data-sweep], .js .closing-title[data-sweep] { clip-path: none; }
}

/* =========================================================
   Home-kit stripes (royal, sky, red), gently running
   ========================================================= */
:root {
  --kit-run: repeating-linear-gradient(90deg,
    var(--royal) 0 44px, var(--sky) 44px 58px, var(--kit-red) 58px 102px, var(--sky) 102px 116px);
}
@keyframes stripe-run { to { background-position: 116px 0; } }

/* Top of the page, above the header */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--kit-run);
  animation: stripe-run 5s linear infinite;
}
.progress { top: 3px; }

/* Bands between sections */
.matchday::before,
.honours-strip::before,
.ivory::before,
.deep::before,
.closing::before,
.site-footer::before,
.page-hero::after,
.intro::after,
.result::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 4px;
  background: var(--kit-run);
  animation: stripe-run 6s linear infinite;
}
.page-hero::after { inset: auto 0 0 0; }
.intro::after { inset: auto 0 0 0; height: 5px; }
.result::before { height: 3px; }
.partners.ivory::before { display: none; }

/* Kit stripe under the hero buttons and on squad cards */
.hero-est i { background: var(--kit-red); }
.player::after { height: 3px; background: var(--kit-run); animation: stripe-run 4s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .site-header::before, .matchday::before, .honours-strip::before, .ivory::before, .deep::before,
  .closing::before, .site-footer::before, .page-hero::after, .intro::after, .result::before, .player::after { animation: none; }
}