/* =========================================================
   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, .95);
  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: radial-gradient(50% 70% at 50% 0%, rgba(230, 236, 255, .16) 0%, rgba(230, 236, 255, .06) 45%, rgba(230, 236, 255, 0) 100%);
  transform-origin: 50% 0;
  will-change: transform;
}
.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:
    linear-gradient(90deg, rgba(5, 11, 34, .96) 0%, rgba(5, 11, 34, .78) 45%, rgba(5, 11, 34, .4) 100%),
    var(--bg, none) center 22% / cover no-repeat,
    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 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(116px, 0, 0); } }

/* Top of the page, above the header */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto -116px;
  height: 3px;
  background: var(--kit-run);
  animation: stripe-run 5s linear infinite;
  will-change: transform;
}
.site-header { overflow: hidden; }
.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 -116px;
  z-index: 2;
  height: 4px;
  background: var(--kit-run);
  animation: stripe-run 6s linear infinite;
  will-change: transform;
}
.page-hero::after { inset: auto 0 0 -116px; }
.intro::after { inset: auto 0 0 -116px; 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; }
}

/* =========================================================
   Team sheet
   ========================================================= */
.teamsheet-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.teamsheet-head .display { margin-bottom: 0; }
.teamsheet-match { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--brass-soft); }

.teamsheet-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.teamsheet-label { margin: 0 0 .4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hair); font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }

.lineup { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 3rem; }
.lineup-subs { columns: 1; }
.lineup-player {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  transition: padding .45s var(--ease);
}
.lineup-player::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 1px; background: var(--kit-red); transform: scaleY(0); transition: transform .45s var(--ease); }
.lineup-player:hover { padding-left: .9rem; }
.lineup-player:hover::before { transform: none; }
.lineup-num { min-width: 2.2rem; font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--brass-soft); font-variant-numeric: lining-nums tabular-nums; }
.lineup-subs .lineup-num { font-size: 1.35rem; color: rgba(227, 204, 151, .7); }
.lineup-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.lineup-subs .lineup-name { font-size: 1.1rem; color: rgba(244, 238, 226, .85); }
.lineup-tag { margin-left: auto; padding: .2rem .5rem; font-size: .58rem; font-weight: 600; letter-spacing: .2em; border: 1px solid var(--hair); color: var(--brass); }
.teamsheet-note { margin: 1.6rem 0 0; font-size: .85rem; color: var(--mist); }

@media (max-width: 900px) {
  .teamsheet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lineup { columns: 1; }
}
.lineup-captain { background: var(--brass); border-color: var(--brass); color: var(--abyss); }
.lineup-captain + .lineup-tag { margin-left: .4rem; }

/* ---------- Football Web Pages table embed ---------- */
.table-embed { border-top: 2px solid var(--brass); background: #fff; min-height: 320px; box-shadow: 0 30px 60px -40px rgba(5, 11, 34, .35); }
.table-embed iframe { display: block; width: 100% !important; border: 0; }
.table-credit { margin: .9rem 0 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(10, 27, 78, .55); }
.table-credit a { color: var(--royal); text-decoration: none; border-bottom: 1px solid currentColor; }
.table-credit a:hover { color: var(--kit-red); }
.table-block-gap { margin-top: clamp(3rem, 6vw, 5rem); }

html, body { overflow-x: clip; }
.stack { will-change: transform; }

/* ---------- Team sheet: players only ---------- */
.teamsheet-list .lineup { columns: 2; column-gap: clamp(2.5rem, 6vw, 6rem); border-top: 1px solid var(--hair); }
@media (max-width: 700px) { .teamsheet-list .lineup { columns: 1; } }

/* ---------- Photo break ---------- */
.photo-break { position: relative; z-index: 7; height: clamp(420px, 78vh, 820px); overflow: hidden; background: var(--abyss); isolation: isolate; }
.photo-break-img { position: absolute; inset: -12% 0; z-index: -2; background: var(--bg) center 38% / cover no-repeat; }
.photo-break::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 11, 34, .55) 0%, rgba(5, 11, 34, 0) 30%, rgba(5, 11, 34, 0) 60%, rgba(5, 11, 34, .85) 100%); }
.photo-break-caption { position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 4vw, 3rem); margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); }
.photo-break-caption span { display: block; margin-bottom: .5rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: 0; text-transform: none; font-style: italic; color: var(--brass-soft); }


/* ---------- Mark Mellor photo backgrounds ---------- */
.matchday {
  background:
    linear-gradient(90deg, rgba(5, 11, 34, .97) 0%, rgba(5, 11, 34, .88) 45%, rgba(10, 27, 78, .72) 100%),
    url('../assets/img/matchday-bg.jpg') center 35% / cover no-repeat,
    var(--grove);
}
.teamsheet { position: relative; isolation: isolate; }
.teamsheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 11, 34, .9) 0%, rgba(5, 11, 34, .96) 55%, var(--abyss) 100%),
    url('../assets/img/teamsheet-bg.jpg') center 30% / cover no-repeat;
}

/* =========================================================
   Menu: refined side drawer (replaces the full-screen menu)
   ========================================================= */
.menu {
  inset: 0 auto 0 0;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 3rem;
  padding: 128px clamp(1.75rem, 3.4vw, 3rem) 2.4rem;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(197, 164, 101, .05) 0%, transparent 30%),
    var(--abyss);
  border-right: 1px solid rgba(197, 164, 101, .18);
  box-shadow: 40px 0 120px rgba(0, 0, 0, .45);
  clip-path: none;
  transform: translateX(-102%);
  transition: transform .8s var(--ease), visibility 0s linear .8s;
}
.menu.is-open { clip-path: none; transform: none; transition: transform .8s var(--ease), visibility 0s; }

/* Dim the page behind the drawer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(3, 7, 22, .62);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
  pointer-events: none;
}
body.menu-open::after { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }

.menu-nav ul { border-top: 1px solid var(--hair); }
.menu-nav li { overflow: visible; border-bottom: 1px solid var(--hair); }
.menu-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(244, 238, 226, .82);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .35s, padding-left .45s var(--ease);
}
.menu-nav a span { min-width: 1.6rem; font-family: var(--serif); font-style: italic; font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--brass); }
.menu-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), var(--kit-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.menu-nav a:hover, .menu-nav a:focus-visible { color: var(--ivory); font-style: normal; padding-left: .5rem; }
.menu-nav a:hover::after, .menu-nav a:focus-visible::after { transform: none; }
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open .menu-nav li:nth-child(1) a { transition-delay: .18s, .18s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(2) a { transition-delay: .23s, .23s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(3) a { transition-delay: .28s, .28s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(4) a { transition-delay: .33s, .33s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(5) a { transition-delay: .38s, .38s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(6) a { transition-delay: .43s, .43s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(7) a { transition-delay: .48s, .48s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(8) a { transition-delay: .53s, .53s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(9) a { transition-delay: .58s, .58s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(10) a { transition-delay: .63s, .63s, 0s, 0s; }
.menu.is-open .menu-nav li:nth-child(11) a { transition-delay: .68s, .68s, 0s, 0s; }

.menu-side { gap: 1.8rem; padding: 0; border: 0; font-size: .9rem; line-height: 1.6; color: rgba(244, 238, 226, .6); transition: opacity .8s var(--ease) .5s; }
.menu-side .eyebrow { margin-bottom: .45rem; font-size: .62rem; }
.menu-side p { margin: 0; }
.menu-match { font-size: 1.1rem; line-height: 1.35; color: var(--ivory); }
.menu-staff { justify-self: start; padding-top: 1.4rem; border-top: 1px solid var(--hair); width: 100%; font-size: .66rem; }

@media (max-width: 760px) {
  .menu { width: 100%; padding-top: 104px; gap: 2.5rem; }
  .menu-side { padding-top: 0; border-top: 0; }
}

/* ---------- Last result card: crest instead of the kit stripe ---------- */
.result { overflow: hidden; isolation: isolate; }
.result::before {
  content: "";
  position: absolute;
  inset: auto -90px -100px auto;
  z-index: -1;
  width: clamp(240px, 26vw, 300px);
  height: clamp(240px, 26vw, 300px);
  background: url('../assets/img/crest.png') center / contain no-repeat;
  opacity: .055;
  transform: rotate(-8deg);
  animation: none;
  will-change: auto;
}

/* League table: sit on the ivory page and show every team without an inner scrollbar */
.table-embed { background: transparent; box-shadow: none; min-height: 0; }
#table .table-embed iframe { min-height: 900px !important; }
@media (max-width: 700px) { #table .table-embed iframe { min-height: 1100px !important; } }

/* ---------- Fixtures section: the crest as a backdrop ---------- */
#fixtures { isolation: isolate; overflow: hidden; }
#fixtures::after {
  content: "";
  position: absolute;
  top: clamp(2rem, 6vw, 5rem);
  right: clamp(-12rem, -8vw, -4rem);
  z-index: -1;
  width: clamp(420px, 52vw, 820px);
  aspect-ratio: 1;
  background: url('../assets/img/crest.png') center / contain no-repeat;
  opacity: .07;
  filter: saturate(.6);
  pointer-events: none;
}
@media (max-width: 760px) {
  #fixtures::after { top: 1rem; right: -40%; width: 110vw; opacity: .05; }
}

/* Small privacy note under forms */
.form-privacy { margin: 1rem 0 0; font-size: .78rem; line-height: 1.5; text-align: center; color: var(--mist); }
.form-privacy a { color: var(--brass-soft); }
.footer-legal { display: flex; gap: 1.6rem; }
.footer-legal a { color: inherit !important; text-decoration: none; }
.footer-legal a:hover { color: var(--brass-soft) !important; }
.tix-secure a, .basket-secure a { color: var(--brass-soft); }

/* ---------- Team photo (team sheet section) ---------- */
.teamsheet-photo { position: relative; margin: 0 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; border: 1px solid rgba(197, 164, 101, .3); background: var(--grove); }
.teamsheet-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1428; object-fit: cover; }
.teamsheet-photo::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, rgba(5, 11, 34, 0) 0%, rgba(5, 11, 34, .85) 100%); pointer-events: none; }
.teamsheet-photo figcaption { position: absolute; left: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 1; margin: 0; font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); }
.teamsheet-photo figcaption span { display: block; margin-bottom: .35rem; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--brass-soft); }
.teamsheet-note .link { margin-left: .6rem; }
@media (max-width: 560px) { .teamsheet-photo figcaption { position: static; padding: 1rem; } .teamsheet-photo::after { display: none; } }

/* ---------- Own league table ---------- */
.table-own { border-top: 2px solid var(--brass); background: #fff; box-shadow: 0 30px 60px -40px rgba(5, 11, 34, .35); }
.table-own .league-table th { background: var(--ivory); }
.table-own .league-table th abbr { text-decoration: none; cursor: help; }
.table-own .league-table td { padding: .95rem .6rem; }
@media (max-width: 700px) {
  .table-own .league-table { min-width: 0; font-size: .9rem; }
  .table-own .league-table th, .table-own .league-table td { padding: .75rem .28rem; }
  .table-own .league-table th { letter-spacing: .1em; }
  .table-own .league-table td { letter-spacing: 0; line-height: 1.25; }
  .table-own .league-table td.col-team { font-size: .98rem; }
  .table-own .league-table .col-pos { width: 2.4rem; }
}
.site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.form-error a { color: var(--brass-soft); overflow-wrap: anywhere; }

/* ---------- Events ---------- */
.page-title.is-long { font-size: clamp(2.6rem, 6vw, 5.6rem); }
.event-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.event-card { display: flex; flex-direction: column; color: var(--ivory); text-decoration: none; background: var(--grove); border: 1px solid var(--hair); transition: border-color .4s var(--ease), transform .5s var(--ease); }
.event-card[hidden] { display: none; }
.event-card:hover { border-color: rgba(197, 164, 101, .6); transform: translateY(-4px); }
.event-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--abyss); }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.event-card:hover .event-card-img img { transform: scale(1.05); }
.event-card-img.is-empty { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(64, 108, 230, .35), transparent 70%), var(--abyss); }
.event-card-img.is-empty img { width: 84px; height: 84px; object-fit: contain; opacity: .6; }
.event-card-date { position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 58px; height: 64px; background: var(--brass); color: var(--abyss); line-height: 1; }
.event-card-date strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.event-card-date span { margin-top: -.5rem; font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.event-card-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.4rem 1.4rem 1.2rem; }
.event-card-type { font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.event-card-title { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; }
.event-card-when { font-size: .9rem; color: rgba(244, 238, 226, .75); }
.event-card-summary { font-size: .92rem; line-height: 1.6; color: rgba(244, 238, 226, .7); }
.event-card-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hair); font-size: .82rem; color: var(--brass-soft); }
.event-card-more { flex: none; font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); }
.event-card:hover .event-card-more { color: var(--ivory); }
.event-none { grid-column: 1 / -1; margin: 0; padding: 2rem 0; border-top: 1px solid var(--hair); color: var(--mist); }
.event-none a { color: var(--brass-soft); }
.event-past { margin-top: clamp(4rem, 8vw, 6rem); }
.event-cards-past .event-card { background: rgba(244, 238, 226, .03); }
.event-cards-past .event-card-date { background: var(--grove); color: var(--brass-soft); border: 1px solid rgba(197, 164, 101, .4); }
.event-filters { margin: 0; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.event-detail-copy .display { margin-bottom: 1.6rem; }
.event-detail-text p { font-size: 1.08rem; line-height: 1.85; color: rgba(10, 27, 78, .85); }
.event-facts { position: sticky; top: 100px; display: grid; gap: 1.1rem; padding: clamp(1.6rem, 3vw, 2.2rem); background: #fff; border-top: 2px solid var(--brass); box-shadow: 0 30px 60px -40px rgba(5, 11, 34, .35); }
.event-fact { display: grid; gap: .3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); }
.event-fact span { font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(10, 27, 78, .55); }
.event-fact strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--grove); }
.event-facts .btn-line { color: var(--grove); border-color: var(--grove); }
.event-facts .btn-line:hover { color: #fff; }
.whats-on .section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.whats-on .section-head .display { margin-bottom: 0; }
@media (max-width: 960px) { .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .event-detail-grid { grid-template-columns: 1fr; } .event-facts { position: static; } }
@media (max-width: 620px) { .event-cards { grid-template-columns: 1fr; } }

/* ---------- Match reports ---------- */
.result-report { position: relative; z-index: 1; grid-column: 1 / -1; justify-self: start; display: inline-block; margin-top: 1rem; font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--brass-soft); border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.result-report:hover { color: var(--kit-red); }

/* ---------- Menu groups ---------- */
.menu-group + .menu-group { margin-top: 1.6rem; }
.menu-group-title { margin: 0 0 .5rem; font-size: .6rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--brass); opacity: 0; transition: opacity .6s var(--ease) .2s; }
.menu.is-open .menu-group-title { opacity: 1; }

/* ---------- Bank transfer details ---------- */
.pay-details .modal-text { margin-bottom: 1.4rem; }
.pay-rows { margin: 0 0 1.2rem; border-top: 1px solid var(--line); }
.pay-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.pay-row dt { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }
.pay-row dd { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--ivory); overflow-wrap: anywhere; }
.pay-row.is-ref dd span { color: var(--brass-soft); }
.pay-copy { flex: none; padding: .35rem .7rem; background: none; border: 1px solid var(--line); color: var(--mist); font: inherit; font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.pay-copy:hover { border-color: var(--brass); color: var(--brass-soft); }
.pay-note { margin: 0 0 .7rem; font-size: .88rem; line-height: 1.6; color: rgba(244, 238, 226, .78); }
.pay-details .btn-block { margin-top: 1rem; }
@media (max-width: 480px) { .pay-row { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Event booking (inside the white details box) ---------- */
.event-book { display: grid; gap: .2rem; padding-top: .4rem; }
.event-book-title { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.4rem; color: var(--grove); }
.event-book-note { margin: .4rem 0 0; font-size: .82rem; line-height: 1.5; color: rgba(10, 27, 78, .65); }
.event-book-type { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); color: var(--grove); }
.event-book-type span:first-child { display: grid; }
.event-book-type small { font-size: .85rem; color: #9A7A3E; }
.event-book .tix-step { display: inline-grid; grid-template-columns: 38px 38px 38px; align-items: center; border: 1px solid rgba(10, 27, 78, .2); }
.event-book .tix-step button { height: 38px; background: none; border: 0; color: var(--grove); font-size: 1.1rem; cursor: pointer; transition: background-color .3s, color .3s; }
.event-book .tix-step button:hover:not(:disabled) { background: var(--kit-red); color: #fff; }
.event-book .tix-step button:disabled { opacity: .3; cursor: default; }
.event-book .tix-step-value { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.event-book .tix-step-value { color: var(--grove); }
.event-book .form-row { margin: .6rem 0 0; }
.event-book .form-row label { color: rgba(10, 27, 78, .6); }
.event-book .form-row input { color: var(--grove); border-bottom-color: rgba(10, 27, 78, .25); }
.event-book .form-row input:focus { border-bottom-color: #9A7A3E; }
.event-book-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .8rem; font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(10, 27, 78, .6); }
.event-book-total strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: 0; color: var(--grove); }
.event-book .form-error { color: var(--grove); background: rgba(195, 51, 47, .08); }

/* ---------- Newsletter sign-up (footer) ---------- */
.footer-news { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 1.6rem clamp(2rem, 5vw, 4rem); align-items: start; padding-top: 2.6rem; padding-bottom: 2.6rem; border-top: 1px solid var(--line); }
.footer-news .eyebrow { margin-bottom: .6rem; color: var(--brass-soft); }
.footer-news .eyebrow::before { display: none; }
.footer-news-copy p:last-child { color: var(--mist); }
.news-fields { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .8rem; }
.news-fields input { width: 100%; min-width: 0; padding: .85rem 1rem; background: rgba(244, 238, 226, .05); color: var(--ivory); border: 1px solid var(--line); border-radius: 0; font: inherit; }
.news-fields input::placeholder { color: rgba(244, 238, 226, .45); }
.news-fields input:focus { outline: none; border-color: var(--brass); }
.news-fields .btn { white-space: nowrap; }
.news-consent { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; font-size: .82rem; line-height: 1.5; color: var(--mist); cursor: pointer; }
.news-consent input { flex: none; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brass); }
.news-consent a { color: var(--brass-soft); }
.news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-msg { margin: .9rem 0 0 !important; font-size: .9rem; color: var(--brass-soft); }
.news-msg.is-error { color: #ff8a8a; }
@media (max-width: 860px) {
  .footer-news { grid-template-columns: 1fr; text-align: center; }
  .footer-news .eyebrow { justify-content: center; }
  .news-fields { grid-template-columns: 1fr; }
  .news-consent { text-align: left; }
}

/* ---------- League bar (The Pitching In Northern Premier League) ---------- */
:root { --league-h: 40px; --npl-red: #D20221; }
.league-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 101;
  display: flex;
  align-items: center;
  height: var(--league-h);
  overflow: hidden;
  background: var(--npl-red);
  color: #fff;
  text-decoration: none;
  transition: transform .6s var(--ease);
}
.league-bar::before, .league-bar::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 8%; pointer-events: none; }
.league-bar::before { left: 0; background: linear-gradient(90deg, var(--npl-red), transparent); }
.league-bar::after { right: 0; background: linear-gradient(270deg, var(--npl-red), transparent); }
.league-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.league-bar:hover .league-track { animation-play-state: paused; }
.league-group { display: flex; align-items: center; gap: 1.1rem; padding-right: 1.1rem; white-space: nowrap; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.league-group i { width: 5px; height: 5px; margin: 0 1.2rem; background: #fff; opacity: .6; transform: rotate(45deg); }
.league-npl { display: inline-grid; place-items: center; width: 34px; height: 22px; background: #fff; color: var(--npl-red); font-size: .62rem; font-weight: 800; letter-spacing: .06em; clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%); }
.league-pitch { position: relative; padding: .2rem .8rem; border: 1.5px solid #fff; font-weight: 800; letter-spacing: .14em; }
.league-pitch::before, .league-pitch::after { content: ""; position: absolute; top: 50%; width: 6px; height: 10px; margin-top: -5px; border: 1.5px solid #fff; }
.league-pitch::before { left: -1.5px; border-left: 0; border-radius: 0 6px 6px 0; }
.league-pitch::after { right: -1.5px; border-right: 0; border-radius: 6px 0 0 6px; }
.site-header { top: var(--league-h); transition: background-color .6s var(--ease), border-color .6s var(--ease), height .6s var(--ease), top .6s var(--ease); }
body:has(.site-header.is-solid) .league-bar,
body.menu-open .league-bar { transform: translateY(-100%); }
.site-header.is-solid, body.menu-open .site-header { top: 0; }
@media (max-width: 700px) {
  :root { --league-h: 34px; }
  .league-group { font-size: .6rem; letter-spacing: .14em; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .league-track { animation: none; } }

/* ---------- Live score ---------- */
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-badge {
  position: fixed;
  left: var(--gutter);
  bottom: 1.4rem;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1.2rem;
  background: rgba(5, 11, 34, .94);
  border: 1px solid var(--line);
  border-left: 3px solid var(--kit-red);
  color: var(--ivory);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: badge-in .6s var(--ease) both;
}
@keyframes badge-in { from { opacity: 0; transform: translateY(14px); } }
.live-dot { display: inline-flex; align-items: center; gap: .5rem; font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #ff6b6b; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; animation: live-pulse 1.4s ease-in-out infinite; }
.live-teams { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.live-badge:hover .live-teams { color: var(--brass-soft); }
body.menu-open .live-badge { display: none; }
.result.is-live .eyebrow { color: #ff6b6b; }
.result.is-live .eyebrow::before { background: #ff3b3b; animation: live-pulse 1.4s ease-in-out infinite; }
.live-scorers { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .8rem; font-size: .85rem; color: var(--mist); }
.live-scorers p { margin: 0; }
.live-scorers p:last-child { text-align: right; }
@media (max-width: 600px) {
  .live-badge { left: 50%; right: auto; transform: translateX(-50%); bottom: 1rem; animation: none; }
  .live-teams { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .live-dot::before, .result.is-live .eyebrow::before { animation: none; } }
