/* Football Plus editorial layouts */
:root { --paper:#f4f0e4; --print:#232320; --pitch-gold:#ffd600; }
.site-header, .editorial-home .site-header { border-bottom: 1px solid #ffffff26; }
.site-header nav a:not(.book) { text-underline-offset: 6px; }
.editorial-sheet { overflow: clip; border-radius: 0; margin-top: 0; padding-top: 0; }
.editorial-home .home-intro {
  width: 100%; max-width:none; padding: clamp(68px,11vw,160px) max(6vw,calc((100% - 1320px)/2));
  background:var(--paper); color:var(--print); gap:clamp(28px,8vw,120px);
}
.home-intro .tag, .home-intro .link { color:#655300; }
.home-intro .link { border-color:currentColor; }
.home-intro .large,.home-intro p,.home-intro .secondary-line { color:#535046; }
.editorial-home .home-intro h2 { font-size:clamp(44px,6.4vw,94px); line-height:1; }
.editorial-home .academy-panels {
  width:min(1320px,88%); margin:0 auto; padding:clamp(44px,7vw,90px) 0 22px;
  display:grid; grid-template-columns:1.15fr 1.5fr .8fr; gap:clamp(8px,2vw,24px); align-items:end;
}
.editorial-home .academy-tile { min-height:clamp(145px,19vw,290px); border-radius:0; padding:clamp(12px,2.4vw,36px); }
.editorial-home .academy-tile.pitch { min-height:clamp(185px,27vw,390px); background-position:center; }
.editorial-home .facts { width:min(1320px,88%); margin:28px auto 0; padding-block:30px; }
.editorial-home .programs { width:100%; display:flex; flex-direction:column; gap:18px; padding:clamp(65px,10vw,145px) 0; }
.editorial-home .programs .title-row,.editorial-home .programme-controls { width:min(1320px,88%); margin-inline:auto; }
.editorial-home .programs .title-row { display:grid; grid-template-columns:1fr auto; align-items:end; }
.editorial-home .program-grid { width:100%; padding:12px 6vw 30px; scroll-padding-inline:6vw; grid-auto-columns:clamp(260px,37vw,510px); gap:18px; }
.editorial-home .program-card { border-radius:0; min-height:clamp(300px,33vw,480px); }
.club-timeline { position:relative; background:var(--paper); color:var(--print); padding:clamp(45px,9vw,110px) 0; }
.club-timeline::before { content:''; position:absolute; left:50%; top:5%; bottom:5%; width:1px; background:#a19a87; pointer-events:none; }
.editorial-home .club-timeline > section {
  width:min(1250px,88%); min-height:0; margin:0 auto; padding:clamp(26px,5vw,70px) 0;
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(42px,10vw,150px); align-items:center;
  background:none; border-radius:0; overflow:visible; color:var(--print);
}
.editorial-home .club-timeline > section::after { content:none; }
.club-timeline > section:nth-child(odd) > :first-child { order:2; }
.club-timeline > section:nth-child(even) > :first-child { order:0; }
.club-timeline .griffin-copy { padding:0; }
.club-timeline .griffin-copy::before { content:none; }
.club-timeline p,.club-timeline .griffin-copy p { color:#514c40; }
.club-timeline .tag,.club-timeline .chapter-copy span,.club-timeline .flow-link { color:#695500; }
.club-timeline .chapter-image,.club-timeline .griffin-photo,.club-timeline .foundation-image {
  aspect-ratio:4/3; height:auto; min-height:0; border-radius:0;
}
.club-timeline h2 { font-size:clamp(34px,4.6vw,66px); letter-spacing:-.055em; }
.editorial-home .cta { margin:0; width:100%; max-width:none; border-radius:0; padding:clamp(55px,8vw,110px) 6vw; }
.page-hero { width:min(1500px,92%); margin:clamp(15px,4vw,58px) auto; border-radius:0; grid-template-columns:1fr 1.2fr; }
.page-hero-img { height:clamp(290px,43vw,570px); }
.page-hero h1 { font-size:clamp(38px,6vw,88px); line-height:.98; }
.page-content { width:min(1120px,88%); }
.page-content > h2,.program-detail h2 { font-size:clamp(28px,4vw,50px); }
.page-content > h2 { border-top:1px solid #ffffff30; padding-top:22px; }
.explore-grid>a,.contact-card { border-radius:0; }
@supports (animation-timeline: view()) {
  @media(prefers-reduced-motion:no-preference) {
    .home-intro .large { animation: focus-copy linear both; animation-timeline:view(); animation-range:entry 0% cover 40%; }
    .program-card > div { animation: card-copy linear both; animation-timeline:view(inline); animation-range:entry 0% cover 28%; }
    .club-timeline .griffin-photo,.club-timeline .foundation-image,.page-hero-img {
      animation: photo-window linear both; animation-timeline:view(); animation-range:entry 0% cover 48%;
    }
  }
}
@keyframes focus-copy { from { opacity:.24; filter:blur(4px); } to { opacity:1; filter:none; } }
@keyframes card-copy { from { opacity:.45; translate:24px 0; } to { opacity:1; translate:0 0; } }
@keyframes photo-window { from { clip-path:inset(10% 0 10% 0); translate:0 30px; } to { clip-path:inset(0); translate:0 0; } }
@media(max-width:850px) {
  .editorial-home .programs .title-row,.page-hero { grid-template-columns:1fr; }
  .editorial-home .club-timeline > section { grid-template-columns:1fr; gap:25px; width:86%; padding-left:18px; }
  .club-timeline::before { left:7%; }
  .club-timeline > section:nth-child(odd) > :first-child { order:0; }
  .editorial-home .academy-panels { grid-template-columns:1fr 1fr; }
  .editorial-home .academy-tile.pitch { grid-row:auto; grid-column:1/-1; }
}

:root { --paper:#101010; --print:#fff8db; --pitch-gold:#ffd600; }
.editorial-home .editorial-sheet { background:#101010; }
.home-intro .tag,.home-intro .link,.club-timeline .tag,
.club-timeline .chapter-copy span,.club-timeline .flow-link { color:var(--pitch-gold); }
.home-intro .large,.home-intro p,.home-intro .secondary-line,
.club-timeline p,.club-timeline .griffin-copy p { color:#ddd6bd; }
.club-timeline::before { background:#ffd60066; }
.club-timeline > section#teams > .griffin-photo { order:0; }
.page-hero,.site-header,.editorial-home .site-header,footer { background:#151515; }

.editorial-home .site-header {
  height: 76px;
  padding-inline: clamp(20px, 5vw, 84px);
  color: #fff8df;
  background: rgba(18, 18, 16, .68);
  border-bottom-color: #ffffff24;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.editorial-home.intro-header-ready .site-header {
  position: fixed;
  inset: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
  pointer-events: none;
}
.editorial-home.intro-header-ready .site-header.intro-ended {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.editorial-home .site-header nav { background: transparent; }
.editorial-home .site-header nav .book { flex-shrink: 0; }
.editorial-home main [id] { scroll-margin-top: 90px; }

.club-timeline { overflow: clip; }
.club-timeline::before { content: none; }
.editorial-home .club-timeline > section {
  width: min(1120px, 78%);
  padding-block: clamp(60px, 8vw, 130px);
  gap: clamp(28px, 6vw, 90px);
  --chapter-position: 4vw;
  translate: var(--chapter-position) 0;
}
.editorial-home .club-timeline > section:nth-child(even) {
  --chapter-position: -4vw;
}
.editorial-home .club-timeline > section { transform: translateX(var(--chapter-drift-x, 0px)); }
@media (max-width: 850px) {
  .editorial-home .site-header { height: 68px; }
  .editorial-home .site-header nav {
    top: 100%;
    gap: 4px;
    background: #181816f5;
    border-bottom: 1px solid #ffffff24;
  }
  .editorial-home .club-timeline > section {
    width: 86%;
    padding: 42px 0;
    --chapter-position: 0px;
  }
  .editorial-home .club-timeline > section:nth-child(even) {
    --chapter-position: 0px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-home.intro-header-ready .site-header { transition: none; }
}

.editorial-home .academy-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.editorial-home .academy-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #101010e8, #10101010 80%), var(--gallery-photo) center / cover;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  pointer-events: none;
}
.editorial-home .academy-tile.club { --gallery-photo: url('academy-photos/teams-tile.webp'); }
.editorial-home .academy-tile.pathway { --gallery-photo: url('academy-photos/pathway-tile.webp'); }
.editorial-home .academy-tile:focus-visible { outline: 2px solid #fff8df; outline-offset: 4px; }
@media (min-width: 851px) {
  .editorial-home .academy-panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .editorial-home .academy-panels > .academy-tile {
    min-height: clamp(300px, 32vw, 490px);
  }
  .editorial-home .academy-panels:has(.club:is(:hover, :focus-visible)) {
    grid-template-columns: minmax(0, 2.15fr) minmax(0, .9fr) minmax(0, .8fr);
  }
  .editorial-home .academy-panels:has(.pathway:is(:hover, :focus-visible)) {
    grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 2.05fr);
  }
}
.editorial-home .academy-tile:is(.club, .pathway):is(:hover, :focus-visible)::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.editorial-home .academy-tile.pathway:is(:hover, :focus-visible) { color: #fff8df; }
@media (prefers-reduced-motion: no-preference) {
  .editorial-home .academy-panels { transition: grid-template-columns .65s cubic-bezier(.22, 1, .36, 1); }
  .editorial-home .academy-tile::before { transition: clip-path .6s cubic-bezier(.22, 1, .36, 1); }
}

.editorial-home .programs { display: block; }
.programme-stage { display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 24px); }
.editorial-home .programme-stage .programme-controls { order: 2; }
.editorial-home .programme-stage .program-grid {
  grid-template-columns: none;
  grid-auto-columns: clamp(244px, 32vw, 550px);
  align-items: start;
  padding-block: 8px 16px;
}
.editorial-home .programme-stage .program-card {
  min-height: clamp(235px, 36vh, 390px);
  margin: 0;
  transform: none;
}
.editorial-home .programme-stage .program-card:nth-child(even) { margin-top: clamp(20px, 7vh, 70px); }
.editorial-home .programme-stage .program-card:nth-child(3n + 1) { min-height: clamp(275px, 43vh, 460px); }
@media (min-width: 900px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .editorial-home .programs { min-height: 165svh; padding: 0; }
  .programme-stage { position: sticky; top: 76px; min-height: calc(100svh - 76px); justify-content: center; }
  .editorial-home .programme-stage .title-row h2 { font-size: clamp(28px, 4.4vh, 56px); }
  .editorial-home .programme-stage .program-grid { scroll-snap-type: none; scrollbar-width: none; }
}
@media (max-width: 650px) {
  .editorial-home .programme-stage .program-grid { grid-auto-columns: 74%; }
}

/* The arrow badge opens into the pill on hover or keyboard focus. */
a:is(.book, .button) {
  --button-fill: #494026;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 17px 45px;
}
a:is(.book, .button.yellow) { --button-fill: #fff08a; }
a:is(.book, .button)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: calc(50% - 14px) 7px calc(50% - 14px) calc(100% - 35px);
  border-radius: 100px;
  background: var(--button-fill);
  pointer-events: none;
}
a:is(.book, .button)::after {
  content: '→' / '';
  position: absolute;
  inset-inline-end: 7px;
  top: calc(50% - 14px);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font: 17px/1 system-ui, sans-serif;
  pointer-events: none;
}
a:is(.book, .button):is(:focus-visible, :active)::before { inset: 0; }
a:is(.book, .button):focus-visible,
.programme-controls button:focus-visible { outline: 2px solid #fff3b0; outline-offset: 3px; }
@media (hover: hover) {
  a:is(.book, .button):hover::before { inset: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  a:is(.book, .button)::before { transition: inset .42s cubic-bezier(.2,.75,.2,1); }
  a:is(.book, .button)::after { transition: transform .32s cubic-bezier(.2,.75,.2,1); }
  a:is(.book, .button):is(:hover, :focus-visible)::after { transform: translateX(3px); }
  a:is(.book, .button):active::after { transform: translateX(3px) scale(.86); }
  .programme-controls button { transition: background-color .2s, color .2s, scale .18s; }
  .programme-controls button:active:not(:disabled) { scale: .9; }
}

@media (prefers-reduced-motion: no-preference) {
  main p.paragraph-reveal:not(.paragraph-visible), footer p.paragraph-reveal:not(.paragraph-visible) {
    opacity: 0;
    filter: blur(3px);
    animation: none;
  }
  main p.paragraph-reveal.paragraph-visible, footer p.paragraph-reveal.paragraph-visible {
    animation: paragraph-arrive .26s ease-out both;
  }
  main p.paragraph-reveal:focus-within, footer p.paragraph-reveal:focus-within {
    opacity: 1;
    filter: none;
    animation: none;
  }
}
@keyframes paragraph-arrive {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}

@media (max-width: 850px) {
  .site-header { padding-inline: clamp(16px, 5vw, 34px); }
  .site-header .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ffffff40;
    border-radius: 22px;
    background: #191919;
    color: var(--ink);
  }
  .site-header nav.open {
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #181816;
  }
  .site-header nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .site-header nav .book { align-self: start; margin-top: 8px; }

  .editorial-home .hero {
    height: auto;
    min-height: min(760px, 100svh);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .editorial-home .hero-inner {
    padding: clamp(120px, 29svh, 300px) 6vw 82px;
  }
  .editorial-home .hero h1 {
    font-size: clamp(36px, 9.6vw, 66px);
    line-height: 1;
  }
  .editorial-home .hero-overlay {
    background: linear-gradient(0deg, #111 0%, #141414e9 20%, #14141485 57%, #14141420 100%);
  }
  .editorial-home .insta-on-hero { inset: auto 6vw 22px auto; }
  .editorial-home .home-intro { padding: 56px 6vw 34px; }
  .editorial-home .home-intro h2 { font-size: clamp(35px, 8.8vw, 60px); }
  .editorial-home .club-timeline > section {
    width: calc(100% - 12vw);
    padding: 30px 0;
    gap: 20px;
  }
  .club-timeline h2 { font-size: clamp(31px, 8.2vw, 52px); }
  .editorial-home .programs .title-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .editorial-home .programs .title-row > .link { justify-self: start; }
  .editorial-home .programme-stage .program-grid { overscroll-behavior-inline: contain; }
  .editorial-home .programme-stage .program-card:nth-child(even) { margin-top: 24px; }
  .editorial-home .cta { padding-block: 42px; gap: 18px; }
  .foot-top { gap: 24px 16px; }
  footer a { overflow-wrap: anywhere; }
}
@media (max-width: 500px) {
  .editorial-home .hero .actions { align-items: stretch; }
  .editorial-home .hero .actions > a { width: min(100%, 300px); }
  .editorial-home .academy-tile { min-width: 0; }
  .editorial-home .academy-tile strong { font-size: clamp(24px, 7vw, 34px); }
  .editorial-home .programme-stage .program-grid { grid-auto-columns: 80%; }
  .editorial-home .programme-stage .program-card { padding: 16px; }
  .page-hero h1 { font-size: clamp(30px, 9vw, 39px); overflow-wrap: anywhere; }
}
@media (max-width: 850px) and (prefers-reduced-motion: no-preference) {
  main p.paragraph-reveal.paragraph-visible, footer p.paragraph-reveal.paragraph-visible {
    animation-duration: .24s;
  }
}
