
#content.home-page { padding-block: 0; }

#content.home-page > .section-band:first-child { padding-top: calc(var(--space-7) + var(--header-room) + var(--size-header-sm)); }
@media (min-width: 600px) { #content.home-page > .section-band:first-child { padding-top: var(--space-7); } } 

#content.home-page > .hero.section-band:first-child { padding-top: 0; }

.hero {
  position: relative;
  display: flex;
  overflow: visible;
  flex-direction: column;
  min-height: var(--size-hero-sm);
}
@media (min-width: 600px) {
  
  .hero { min-height: var(--size-hero-lg); max-width: 100%; }
}

@media (min-width: 900px) {
  .hero { justify-content: center; }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: clip;
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-scrim);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 600px) {
  .hero.has-photo { aspect-ratio: var(--ratio-hero-sm); }
}
@media (min-width: 900px) {
  .hero.has-photo { aspect-ratio: var(--ratio-hero-lg); }
}

.hero-title {
  width: 100%;
  margin: 0;
  font: inherit;
}

.hero-lockup {
  display: block;
  text-decoration: none;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-inner { margin-top: var(--space-5); }
.hero-lockup { position: relative; }

.hero-lockup,
.hero-mark {
  container-type: inline-size;
  --hero-zoom: 1;
}

.hero-lockup:has(> .hero-art) { --hero-zoom: max(1, min(var(--hero-phone-zoom), (0.5 - var(--hero-phone-edge)) / (0.5 - var(--hero-reach, 0)))); }
@media (min-width: 600px) {
  .hero-lockup:has(> .hero-art) { --hero-zoom: 1; }
}
.hero-stage {
  position: relative;
  display: grid;
  
  grid-template: 100% / 100%;
  place-items: center;
  width: 100%;
  overflow: clip;
}
.hero-frame {
  position: relative;
  display: block;
  
  width: calc(100% * var(--hero-zoom));
  aspect-ratio: var(--ratio-hero-video);
}
.hero-poster-image,
.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video { opacity: 0; }
.hero-video.is-playing { opacity: 1; }

.hero-art {
  position: absolute;
  
  left: calc((100% - 100% * var(--hero-zoom)) / 2 + var(--art-left) * var(--hero-zoom));
  
  --hero-frame-h: calc(100cqw * var(--hero-zoom) * 9 / 16);
  top: calc((100% - var(--hero-frame-h)) / 2 + var(--art-top) * var(--hero-frame-h));
  width: calc(var(--art-width) * var(--hero-zoom));
  margin: 0;
}

.hero-lockup.is-live .hero-art {
  opacity: 0;
  clip-path: inset(0 var(--art-clip-right) 0 var(--art-clip-left));
}
.hero-lockup.is-live.is-shown .hero-art { opacity: 1; }
.hero-lockup.is-live.is-open .hero-art { clip-path: inset(0 0 0 0); }

@media (min-width: 900px) {
  .hero-stage {
    --hero-frame-h: calc(100cqw * 9 / 16);
    height: clamp(calc(var(--hero-frame-h) * var(--hero-mark-share)), calc(100vh * var(--hero-window-share)), var(--hero-frame-h));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-video { transition: opacity var(--motion-hero-ribbons) var(--ease-settle); }
  .hero-lockup.is-live .hero-art { transition: clip-path var(--motion-hero-ribbons) var(--ease-settle); }
}

.hero-status,
.hero-line {
  margin: 0;
  color: var(--color-ground);
  font: var(--weight-regular) var(--text-body-sm) / var(--leading-body) var(--font-body);
}

.hero-countdown {

  margin: var(--space-6) 0 0;
  
  color: var(--color-green);
  
  font: var(--weight-medium) var(--text-subheading) / var(--leading-tight) var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.hero-countdown .fixture-chip-figure {
  color: var(--color-lime);
  font-weight: inherit;
}

.hero-cta { margin-top: var(--space-5); }

.hero-mark {
  
  width: 100%;
  margin: 0;
}
.hero-mark .hero-art { margin-inline: auto; }

#content.home-page .card-grid,
#content.home-page .home-gallery .wp-block-gallery {
  gap: var(--space-3);
}

.home-fixtures .card-grid:has(> li:nth-child(3)),
.home-news .card-grid:has(> li:nth-child(3)),
.home-alumni .card-grid:has(> li:nth-child(3)),
.home-videos .card-grid:has(> li:nth-child(2)) {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: var(--peek-basis);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: var(--space-6);
  margin-block: calc(var(--space-6) * -1);
  
  margin-inline: calc(var(--container-pad) * -1);
  padding-inline: var(--container-pad);
  
  scroll-padding-inline: var(--container-pad);
}
.home-fixtures .card-grid:has(> li:nth-child(3))::-webkit-scrollbar,
.home-news .card-grid:has(> li:nth-child(3))::-webkit-scrollbar,
.home-alumni .card-grid:has(> li:nth-child(3))::-webkit-scrollbar,
.home-videos .card-grid:has(> li:nth-child(2))::-webkit-scrollbar {
  display: none;
}
.home-fixtures .card-grid:has(> li:nth-child(3)) > li,
.home-news .card-grid:has(> li:nth-child(3)) > li,
.home-alumni .card-grid:has(> li:nth-child(3)) > li,
.home-videos .card-grid:has(> li:nth-child(2)) > li {
  scroll-snap-align: start;
  
  position: relative;
}
.home-fixtures .card-grid:has(> li:nth-child(3)) .reveal,
.home-news .card-grid:has(> li:nth-child(3)) .reveal,
.home-alumni .card-grid:has(> li:nth-child(3)) .reveal,
.home-videos .card-grid:has(> li:nth-child(2)) .reveal {
  --reveal-rise: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
  .home-fixtures .card-grid:has(> li:nth-child(3)) > li > .match-card:hover,
  .home-fixtures .card-grid:has(> li:nth-child(3)) > li > .match-card:active,
  .home-news .card-grid:has(> li:nth-child(3)) > li > .news-card-ink:hover,
  .home-news .card-grid:has(> li:nth-child(3)) > li > .news-card-ink:active {
    transform: translateY(calc(-1 * var(--lift-card))) scale(var(--pop-card));
  }
  }
}

.home-fixtures .match-card {
  --pop-card: 1;
  --reveal-scale: 1;
  --lift-card: 0px;
}

.home-fixtures .card-grid:has(> li:nth-child(3)) .duel-side:not(.has-ribbon-art),
.home-news .card-grid:has(> li:nth-child(3)) .duel-side:not(.has-ribbon-art) {
  gap: var(--space-2);
  padding: var(--space-2);
}
.home-fixtures .card-grid:has(> li:nth-child(3)) .duel .crest-chip,
.home-news .card-grid:has(> li:nth-child(3)) .duel .crest-chip {
  width: var(--crest-sm);
  height: var(--crest-sm);
}
.home-fixtures .card-grid:has(> li:nth-child(3)) .duel-name,
.home-news .card-grid:has(> li:nth-child(3)) .duel-name {
  font-size: var(--text-body-lg);
}

.home-fixtures .card-grid .match-card-kicker,
.home-fixtures .card-grid .match-card-venue,
.home-news .card-grid .match-card-kicker,
.home-news .card-grid .match-card-venue {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-fixtures .card-grid .fixture-lockup-names {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-fixtures .fixture-lockup-box {
  position: relative;
  display: block;
  width: 100%;
  margin-block: calc(var(--lockup-reach) / 2 * sin(var(--lockup-turn)));
  clip-path: inset(-50% 0);
}

.home-fixtures .fixture-lockup-layer {
  position: absolute;
  left: var(--layer-x);
  top: var(--layer-y);
  display: block;
  width: var(--layer-w);
  height: var(--layer-h);
  rotate: calc(-1 * var(--lockup-turn));
  transform: translateX(0);
}
.home-fixtures .fixture-lockup-layer.is-home { --layer-dir: -1; }
.home-fixtures .fixture-lockup-layer.is-away { --layer-dir: 1; }

@keyframes derby-fixture-fly {
  0% { transform: translateX(calc(var(--layer-fly) * var(--layer-dir))); }
  100% { transform: translateX(0); }
}

.home-fixtures .match-card:hover .fixture-lockup-layer,
.home-fixtures .match-card:focus-visible .fixture-lockup-layer,
.home-fixtures .fixture-lockup-box.is-flying .fixture-lockup-layer {
  animation: derby-fixture-fly var(--motion-fixture-fly) var(--ease-settle);
}

@media (prefers-reduced-motion: reduce) {
  .home-fixtures .match-card:hover .fixture-lockup-layer,
  .home-fixtures .match-card:focus-visible .fixture-lockup-layer,
  .home-fixtures .fixture-lockup-box.is-flying .fixture-lockup-layer {
    animation: none;
  }
  
}
@media (prefers-reduced-motion: reduce) {
  
  .home-fixtures .card-grid:has(> li:nth-child(3)),
  .home-news .card-grid:has(> li:nth-child(3)),
  .home-alumni .card-grid:has(> li:nth-child(3)),
  .home-videos .card-grid:has(> li:nth-child(2)) {
    scroll-behavior: auto;
  }
}
@media (min-width: 900px) {
  
  .home-fixtures .card-grid:has(> li:nth-child(4)),
  .home-news .card-grid:has(> li:nth-child(4)),
  .home-alumni .card-grid:has(> li:nth-child(4)),
  .home-videos .card-grid:has(> li:nth-child(4)) {
    --peek-basis: var(--peek-basis-lg);
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .home-fixtures,
  .home-news,
  .home-alumni,
  .home-videos {
    container-type: inline-size;
    overflow-x: clip;
  }
  
  .home-fixtures .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))),
  .home-news .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))),
  .home-alumni .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))),
  .home-videos .card-grid:has(> li:nth-child(2)):not(:has(> li:nth-child(4))) {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    scrollbar-width: auto;
    padding-block: 0;
    margin-block: 0;
    margin-inline: 0;
    padding-inline: 0;
  }
  .home-fixtures .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) .duel-side:not(.has-ribbon-art),
  .home-news .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) .duel-side:not(.has-ribbon-art) {
    gap: var(--space-3);
    padding: var(--space-4);
  }
  .home-fixtures .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) .duel .crest-chip,
  .home-news .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) .duel .crest-chip {
    width: var(--crest-md);
    height: var(--crest-md);
  }
  .home-fixtures .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) .duel-name,
  .home-news .card-grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) .duel-name {
    font-size: var(--text-heading);
  }
  
  .home-fixtures .card-grid:not(:has(> li:nth-child(4))) .match-card-kicker,
  .home-fixtures .card-grid:not(:has(> li:nth-child(4))) .match-card-venue,
  .home-news .card-grid:not(:has(> li:nth-child(4))) .match-card-kicker,
  .home-news .card-grid:not(:has(> li:nth-child(4))) .match-card-venue {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.scroll-progress {
  display: none;
  position: relative;
  height: var(--scroll-progress-height);
  background: var(--color-line);
  border-radius: var(--radius-sm);
}
.scroll-progress.is-scrollable { display: block; }
.scroll-progress-thumb {
  --scroll-progress-width: 46%;
  --scroll-progress-offset: 0%;
  position: absolute;
  inset-block: 0;
  width: var(--scroll-progress-width);
  left: var(--scroll-progress-offset);
  background: var(--color-ink);
  border-radius: var(--radius-sm);
}

.scroll-foot {
  display: none;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.scroll-foot:has(.is-scrollable) { display: flex; }
.scroll-foot .scroll-progress { flex: 1; }

.scroll-buttons {
  display: none;
  gap: var(--space-4);
}
.scroll-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-tap);
  height: var(--size-tap);
  padding: 0;
  border: 0;
  background: var(--color-ink);
  color: var(--color-ground);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background-color var(--motion-hover) var(--ease-settle);
}
.scroll-button .icon {
  width: var(--icon-md);
  height: var(--icon-md);
}
@media (hover: hover) {
.scroll-button:hover:enabled,
.scroll-button:active:enabled { background: var(--color-ink-deep); }
}
.scroll-button:disabled {
  background: var(--color-line);
  cursor: default;
}
@media (min-width: 900px) {
  .scroll-buttons.is-scrollable { display: flex; }
  
  .scroll-foot .scroll-progress { flex: 0 1 50%; }
  .scroll-foot .scroll-buttons { margin-inline-start: auto; }
}

.band-ink .scroll-progress { background: var(--color-line-on-ink); }
.band-ink .scroll-progress-thumb { background: var(--color-ground); }
.band-ink .scroll-button {
  background: var(--color-ground);
  color: var(--color-ink);
}
@media (hover: hover) {
.band-ink .scroll-button:hover:enabled,
.band-ink .scroll-button:active:enabled { background: var(--color-muted-on-ink); }
}
.band-ink .scroll-button:disabled { background: var(--color-line-on-ink); }

.home-gallery .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.home-gallery .wp-block-image {
  margin: 0;
}
.home-gallery .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--ratio-card);
  object-fit: cover;
}
@media (min-width: 600px) {
  .home-gallery .wp-block-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-gallery-empty {
  margin: 0;
  color: var(--color-muted-on-ink);
  font: var(--weight-regular) var(--text-body-lg) / var(--leading-body) var(--font-body);
}

.home-news-empty,
.home-alumni-empty {
  max-width: var(--measure-prose);
  margin: 0;
  color: var(--color-support);
  font: var(--weight-regular) var(--text-body-lg) / var(--leading-body) var(--font-body);
}
.home-videos-empty {
  margin: 0;
  color: var(--color-muted-on-ink);
  font: var(--weight-regular) var(--text-body-lg) / var(--leading-body) var(--font-body);
}

.home-alumni .alumni-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-4);
  background: var(--color-ground);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
}
.home-alumni .alumni-headshot {
  display: block;
  width: var(--crest-lg);
  height: var(--crest-lg);
  object-fit: cover;
  border-radius: var(--radius-card);
}
.home-alumni .alumni-quote {
  margin: 0;
  color: var(--color-ink);
  font: var(--weight-regular) var(--text-body-lg) / var(--leading-body) var(--font-body);
}
.home-alumni .alumni-name {
  margin: 0;
  color: var(--color-ink);
  font: var(--weight-regular) var(--text-heading) / var(--leading-tight) var(--font-display);
}

.home-alumni .alumni-name + .alumni-school {
  margin-block-start: calc(var(--space-3) * -1 + var(--space-1));
}
.home-alumni .alumni-school {
  margin: 0;
  color: var(--color-support);
  font: var(--weight-medium) var(--text-label) / var(--leading-body) var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}

@media (prefers-reduced-motion: no-preference) and (width < 900px) {
  .home-alumni .alumni-card.reveal.is-hidden {
    opacity: 0;
    transform: translateY(var(--reveal-rise)) rotate(calc(var(--reveal-flip, 1) * var(--reveal-tilt))) scale(var(--reveal-scale));
  }
}

.home-videos .card-grid:not(:has(> li:nth-child(2))) {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  
  .home-videos .card-grid:not(:has(> li:nth-child(2))) {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-videos .card-grid:has(> li:nth-child(2)):not(:has(> li:nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-videos .video-facade {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  text-decoration: none;
  color: var(--color-ground);
  cursor: pointer;
}

.home-videos .video-poster {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio-card);
  overflow: hidden;
  background: var(--color-ink-deep);
  border-radius: var(--radius-card);
}
.home-videos .video-poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-videos .video-play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-tap);
  height: var(--size-tap);
  border-radius: 50%;
  background: var(--color-cyan);
  color: var(--color-ink);
}
.home-videos .video-title {
  color: var(--color-ground);
  font: var(--weight-medium) var(--text-body-lg) / var(--leading-body) var(--font-body);
}

.home-videos .video-frame {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio-card);
  border: 0;
  border-radius: var(--radius-card);
}

.home-videos .video-play .icon {
  width: var(--icon-md);
  height: var(--icon-md);
}
@media (min-width: 900px) {
  .home-videos .video-play {
    width: var(--crest-lg);
    height: var(--crest-lg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home-videos .video-play { transition: background var(--motion-hover) var(--ease-settle); }
  @media (hover: hover) {
  .home-videos .video-facade:hover .video-play { background: var(--color-green); }
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .home-videos .video-facade {
    --reveal-tilt: 0deg;
  }
  .home-videos .card-grid > li {
    padding-block: calc(50% * sin(var(--ribbon-angle)));
    padding-inline: calc(50% / (var(--ratio-card)) * sin(var(--ribbon-angle)));
  }
  .home-videos .video-facade.reveal.is-hidden .video-poster {
    transform: rotate(calc(-1 * var(--ribbon-angle)));
  }
  .home-videos .video-facade.reveal.is-shown .video-poster {
    transition: transform var(--motion-reveal-rise) var(--ease-rise);
    
    transition-delay: calc(var(--reveal-index, 0) * var(--motion-stagger));
  }
}

.home-faq .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.home-faq .accordion { max-width: none; }
.home-faq .container > .button-text {
  position: relative;
  z-index: 4;
  justify-self: center;
  margin-block-start: var(--space-5);
}
@media (width < 600px) {
  .home-faq .container > .button-text {
    position: static;
    z-index: auto;
  }
}
@media (min-width: 600px) {
  .home-faq .container { grid-template-columns: 1fr auto; }
  .home-faq .container > .button-text {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    align-self: baseline;
    margin-block-start: 0;
  }
  .home-faq .accordion { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-button { transition: none; }
}
