/* =====================================================================
   ACADEMY STORY — the club's own summary of the Academy
   =====================================================================
   Three sections that sit between the "never more than eight" grid and the
   programme cards on academy.html: what the Academy is and who it is for,
   the coaching DNA, and everything that runs alongside the weekly sessions.
   The page itself is a Webflow export, so everything here is scoped to
   .as-section and sets its own type rather than leaning on Webflow's
   element defaults. */

.as-section {
  --as-green: var(--_colors---first, #0c0c0d);
  --as-cream: var(--_colors---second, #e7e6e2);
  --as-red: var(--_colors---third, #ec2029);
  --as-display: "Formula condensed", Impact, sans-serif;
  --as-body: var(--_typography---paragraphs--font-family, "Helveticaneue Roman", Arial, sans-serif);
  --as-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  width: 100%;
  padding: clamp(90px, 10vw, 140px) 0;
  overflow: hidden;
  font-family: var(--as-body);
}

.as-section--dark { background: var(--as-green); color: var(--as-cream); }
.as-section--red { background: var(--as-red); color: var(--as-green); }
.as-section--light { background: var(--as-cream); color: var(--as-green); }

.as-shell {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* :where keeps this reset at zero specificity, so every class below can
   set its own spacing without fighting it. Webflow's element defaults are
   what it is here to clear. */
.as-section :where(h2, h3, p, blockquote, ul, ol, figure) {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
}

.as-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--as-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.as-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

/* Formula Condensed's capitals overshoot the line box, so the leading stays
   at .94 to keep stacked lines from riding into each other. */
.as-display {
  font-family: var(--as-display);
  font-size: clamp(60px, 7.4vw, 118px);
  font-weight: 900;
  line-height: .94;
  text-transform: uppercase;
}

.as-head {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 80px;
  align-items: start;
}

/* Heading on the left, kicker on the right (desktop only: below 992px the
   grid stacks and the kicker stays above the heading). */
.as-head--flip { grid-template-columns: 1.28fr .72fr; }
.as-head--flip .as-display { order: -1; }
.as-head--flip .as-kicker { justify-self: end; }

@media (max-width: 991px) {
  .as-head--flip .as-display { order: 0; }
  .as-head--flip .as-kicker { justify-self: start; }
}

.as-copy p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.68;
}

.as-copy p + p { margin-top: 20px; }

/* ---------- 1. What the Academy is ---------- */
.as-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
  align-items: start;
  margin-top: 70px;
}

.as-quote {
  padding: 34px 36px;
  border-radius: 10px;
  background: var(--as-red);
  color: var(--as-green);
}

.as-quote blockquote {
  font-family: var(--as-display);
  font-size: clamp(44px, 4.6vw, 70px);
  font-weight: 900;
  line-height: .94;
  text-transform: uppercase;
}

.as-quote figcaption {
  margin-top: 16px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
}

.as-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid rgba(231, 230, 226, .25);
}

.as-stat {
  padding: 22px 16px 0 0;
}

.as-stat + .as-stat {
  padding-left: 18px;
  border-left: 1px solid rgba(231, 230, 226, .25);
}

.as-stat strong {
  display: block;
  font-family: var(--as-display);
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 900;
  line-height: .94;
}

.as-stat span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  opacity: .75;
}

/* The five habits that give a Romulus player away. */
.as-traits {
  margin-top: 90px;
}

.as-traits-title {
  font-family: var(--as-display);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}

.as-traits ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 30px;
  list-style: none;
  counter-reset: as-trait;
  border-top: 1px solid rgba(231, 230, 226, .25);
}

.as-traits li {
  counter-increment: as-trait;
  padding: 24px 20px 0 0;
  font-size: 17px;
  line-height: 1.4;
}

.as-traits li + li {
  padding-left: 20px;
  border-left: 1px solid rgba(231, 230, 226, .25);
}

.as-traits li::before {
  content: counter(as-trait, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--as-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--as-red);
}

/* The two age groups, as a pair of doors. */
.as-pathway {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 90px;
}

.as-door {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px 32px;
  border: 1px solid rgba(231, 230, 226, .25);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform .45s var(--as-ease), background-color .45s var(--as-ease);
}

.as-door:hover,
.as-door:focus-visible {
  transform: translateY(-5px);
  background: rgba(231, 230, 226, .06);
}

.as-door-age {
  font-family: var(--as-display);
  font-size: clamp(70px, 7vw, 110px);
  font-weight: 900;
  line-height: .94;
  color: var(--as-red);
}

.as-door h3 {
  font-family: var(--as-display);
  font-size: 36px;
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}

.as-door p {
  font-size: 16px;
  line-height: 1.6;
  opacity: .85;
}

.as-door-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  text-transform: uppercase;
}

.as-door-link svg {
  width: 14px;
  fill: currentColor;
  transition: transform .45s var(--as-ease);
}

.as-door:hover .as-door-link svg { transform: translateX(5px); }

.as-entry {
  max-width: 820px;
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.68;
}

/* ---------- 2. The coaching DNA ---------- */
.as-dna {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.as-dna-words {
  margin-top: 30px;
  font-family: var(--as-display);
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900;
  line-height: .94;
  text-transform: uppercase;
}

.as-dna-words span { display: block; }

.as-dna-words .as-dna-why { color: var(--as-cream); }

.as-dna-lede {
  margin-top: 26px;
  font-family: var(--as-display);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}

.as-dna .as-copy { margin-top: 30px; }

.as-modules {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(12, 12, 13, .45);
}

.as-modules strong {
  flex: none;
  font-family: var(--as-display);
  font-size: clamp(80px, 8vw, 120px);
  font-weight: 900;
  line-height: .94;
}

.as-modules p {
  font-size: 16px;
  line-height: 1.6;
}

.as-modules p b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

/* ---------- 3. Everything that runs alongside ---------- */
.as-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 70px;
}

.as-extra {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  border: 1px solid rgba(12, 12, 13, .2);
  border-radius: 10px;
  background: rgba(12, 12, 13, .03);
  color: inherit;
  text-decoration: none;
  transition: transform .45s var(--as-ease), background-color .45s var(--as-ease);
}

a.as-extra:hover,
a.as-extra:focus-visible {
  transform: translateY(-5px);
  background: rgba(12, 12, 13, .07);
}

.as-extra-tag {
  font-size: 12px;
  text-transform: uppercase;
  opacity: .65;
}

.as-extra h3 {
  font-family: var(--as-display);
  font-size: 32px;
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}

.as-extra p {
  font-size: 15px;
  line-height: 1.6;
}

.as-extra .as-door-link { color: var(--as-green); }

.as-coverage {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: end;
  margin-top: 90px;
  padding-top: 50px;
  border-top: 1px solid rgba(12, 12, 13, .3);
}

.as-coverage h3 {
  font-family: var(--as-display);
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 900;
  line-height: .94;
  text-transform: uppercase;
}

.as-coverage p {
  font-size: 18px;
  line-height: 1.6;
}

.as-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--as-green);
  color: var(--as-cream);
  font-size: 14px;
  text-decoration: none;
  transition: background-color .35s var(--as-ease), color .35s var(--as-ease);
}

.as-button:hover {
  background: var(--as-red);
  color: var(--as-green);
}

.as-button svg {
  width: 14px;
  fill: currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .as-intro,
  .as-dna { gap: 55px; }
  .as-traits ol { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .as-traits li:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 991px) {
  .as-head,
  .as-intro,
  .as-dna,
  .as-coverage { grid-template-columns: 1fr; }
  .as-head { gap: 30px; }
  .as-extras { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .as-shell { width: calc(100% - 36px); }
  .as-display { font-size: clamp(52px, 15vw, 78px); }
  .as-copy p,
  .as-entry,
  .as-coverage p { font-size: 16px; }
  .as-intro { margin-top: 40px; }
  .as-quote { padding: 26px 24px; }
  .as-stats { grid-template-columns: 1fr; }
  .as-stat,
  .as-stat + .as-stat { padding: 18px 0; border-left: 0; border-bottom: 1px solid rgba(231, 230, 226, .25); }
  .as-traits,
  .as-pathway { margin-top: 60px; }
  .as-traits ol { grid-template-columns: 1fr; row-gap: 0; }
  .as-traits li,
  .as-traits li + li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-left: 0; border-bottom: 1px solid rgba(231, 230, 226, .25); }
  .as-traits li::before { margin: 0; font-size: 22px; }
  .as-pathway,
  .as-extras { grid-template-columns: 1fr; }
  .as-door,
  .as-extra { padding: 26px 22px; }
  .as-extras { margin-top: 40px; }
  .as-coverage { margin-top: 60px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .as-door,
  .as-extra { transition: none; }
}

/* ---------- Home: choose First Team or Academy ---------- */
.as-choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}

.as-choose-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--as-cream);
  text-decoration: none;
  isolation: isolate;
}

.as-choose-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--as-ease);
}

.as-choose-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 12, 13, .92) 0%, rgba(12, 12, 13, .45) 45%, rgba(12, 12, 13, .1) 100%);
  transition: background .6s var(--as-ease);
}

.as-choose-card:hover img,
.as-choose-card:focus-visible img { transform: scale(1.05); }
.as-choose-card:hover::before { background: linear-gradient(to top, rgba(236, 32, 41, .88) 0%, rgba(12, 12, 13, .5) 55%, rgba(12, 12, 13, .1) 100%); }
.as-choose-card:focus-visible { outline: 3px solid var(--as-red); outline-offset: 4px; }

.as-choose-copy { padding: 40px; max-width: 520px; }

.as-choose-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--as-red);
  color: #fff;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .4s, color .4s;
}
.as-choose-card:hover .as-choose-tag { background: var(--as-cream); color: var(--as-green); }

.as-choose-card h3 {
  margin: 0 0 14px;
  font-family: var(--as-display);
  font-size: clamp(52px, 6vw, 92px);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

.as-choose-card p {
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(231, 230, 226, .85);
}

.as-choose-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 14px;
  line-height: 1;
}
.as-choose-link svg { width: 16px; fill: currentColor; transition: transform .35s var(--as-ease); }
.as-choose-card:hover .as-choose-link { background: var(--as-cream); color: var(--as-green); border-color: var(--as-cream); }
.as-choose-card:hover .as-choose-link svg { transform: translateX(4px); }

.as-choose-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(231, 230, 226, .18);
}

.as-choose-path li { position: relative; }
.as-choose-path li + li { border-left: 1px solid rgba(231, 230, 226, .18); }

.as-choose-path a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 24px;
  color: inherit;
  text-decoration: none;
  font-family: var(--as-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .3s;
}
.as-choose-path a span { color: var(--as-red); font-size: 18px; letter-spacing: .04em; }
.as-choose-path a:hover { color: var(--as-red); }
.as-choose-path li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: rgba(231, 230, 226, .4);
  font-size: 22px;
}

@media (max-width: 991px) {
  .as-choose-card { min-height: 480px; }
  .as-choose-copy { padding: 30px; }
}

@media (max-width: 767px) {
  .as-choose { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .as-choose-card { min-height: 420px; }
  .as-choose-card::before { background: linear-gradient(to top, rgba(12, 12, 13, .95) 0%, rgba(12, 12, 13, .72) 55%, rgba(12, 12, 13, .15) 100%); }
  .as-choose-copy { padding: 24px; }
  .as-choose-path { grid-template-columns: 1fr; }
  .as-choose-path li + li { border-left: 0; border-top: 1px solid rgba(231, 230, 226, .18); }
  .as-choose-path a { padding: 16px 4px; font-size: 24px; }
  .as-choose-path li:not(:last-child)::after { content: "\2193"; right: 6px; }
}

/* ---------- Sponsor banner: The Herd ----------
   Their artwork (2400x400) runs full width. On phones it would be ~65px
   tall, so there it is shown taller and cropped to the elephant. */
.herd-banner {
  background: #20223b;
  overflow: hidden;
}

.herd-banner-link { display: block; }

.herd-banner-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.herd-banner-link:hover img { transform: scale(1.02); }
.herd-banner-link:focus-visible { outline: 2px solid #9f6bba; outline-offset: -4px; }

@media (max-width: 767px) {
  .herd-banner-link img { height: 160px; object-fit: cover; object-position: center; }
}

/* Phones: the "Built like a professional academy" cards swipe sideways
   instead of stacking, so the section stays one card tall. The next card
   peeks in from the right to show there is more. */
@media (max-width: 767px) {
  .as-extras {
    display: flex;
    gap: 12px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .as-extras::-webkit-scrollbar { display: none; }
  .as-extra {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* ---------- Home: holiday camp banner ---------- */
.hc-banner { padding: clamp(60px, 7vw, 96px) 0; }
.hc-banner-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px 60px; flex-wrap: wrap; }
.hc-banner-copy { display: grid; gap: 20px; max-width: 640px; }
.hc-banner-title { font-size: clamp(56px, 6.4vw, 104px); }
.hc-banner-meta { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.55; }
.hc-banner-side { display: grid; gap: 18px; justify-items: start; }
.hc-banner-prices { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-banner-prices[hidden] { display: none; }
.hc-banner-price {
  display: grid;
  min-width: 96px;
  padding: 12px 14px 10px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  text-align: center;
}
.hc-banner-price strong { font-family: var(--as-display); font-size: 38px; font-weight: 900; line-height: .95; }
.hc-banner-price span { margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hc-banner-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 100px;
  background: var(--as-green);
  color: var(--as-cream);
  font-size: 16px;
  text-decoration: none;
  transition: transform .4s var(--as-ease);
}
.hc-banner-button:hover { transform: translateY(-2px); }
.hc-banner-button svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 767px) {
  .hc-banner-inner { align-items: flex-start; }
  .hc-banner-meta { font-size: 16px; }
  .hc-banner-price strong { font-size: 32px; }
}

/* Formula Condensed has no £ glyph, so browsers fall back to a thin one.
   Give the symbol a heavy condensed face that does have it. Scoped to the
   price boxes so their label styles (small uppercase spans) do not apply. */
.gbp,
.hc-banner-price .gbp {
  display: inline;
  margin: 0 .02em 0 0;
  opacity: 1;
  font-family: "HelveticaNeue-CondensedBlack", "Helvetica Neue Condensed Black", "Helvetica Neue", "Roboto Condensed", "Arial Narrow", Impact, "Arial Black", sans-serif;
  font-size: .92em;
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: 0;
  line-height: 0;
  text-transform: none;
  vertical-align: baseline;
}
