@font-face {
  font-family: Cinzel;
  src: url("/assets/fonts/Cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #06162d;
  --navy-deep: #030b18;
  --gold: #edbc51;
  --gold-bright: #f5d56a;
  --ivory: #f5f2e9;
  --crimson: #b50928;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg, .bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.bg img {
  transform: scale(1.06);
  animation: kenburns 32s ease-in-out alternate infinite;
  filter: saturate(1.06) contrast(1.04);
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 44%, transparent 0%, rgba(3, 11, 24, .18) 55%, rgba(3, 11, 24, .62) 100%),
    linear-gradient(to bottom, rgba(3, 11, 24, .28) 0%, transparent 26%, transparent 68%, rgba(3, 11, 24, .7) 100%);
}

.pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .15;
}
.pitch line, .pitch ellipse {
  fill: none;
  stroke: #f5f2e9;
  stroke-width: 0.18;
  vector-effect: non-scaling-stroke;
}

.ball {
  position: absolute;
  right: 7vw;
  bottom: 14vh;
  width: min(8.5vw, 100px);
  height: auto;
  opacity: .16;
  animation: drift 22s ease-in-out infinite;
}
.ball circle, .ball path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
}

#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6vw;
  text-align: center;
  /* Sit on the haze over midfield, leaving grass for the CTA */
  margin-top: -6vh;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.crest {
  display: block;
  width: clamp(112px, 18vw, 210px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55));
  animation: rise 1.15s var(--ease) both;
}
.crest img {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  animation: rise 1.15s var(--ease) .18s both;
}

.name {
  font-family: Cinzel, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 6.6rem);
  line-height: .9;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 40px rgba(237, 188, 81, .22);
}

.sub {
  margin-top: .45em;
  font-family: Cinzel, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(.7rem, 1.8vw, 1.35rem);
  letter-spacing: .46em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  padding-left: .12em;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 1.15s var(--ease) .4s both;
}

.tagline {
  margin: 1.85rem 0 0;
  font-size: clamp(.78rem, 1.35vw, .98rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ivory);
}
.tagline span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.tagline span::before,
.tagline span::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--crimson), var(--gold), transparent);
  opacity: .9;
}

.yt {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.25rem .7rem 1.05rem;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(237, 188, 81, .55);
  border-radius: 999px;
  background: rgba(6, 22, 45, .5);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .28);
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.yt svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: #ff3b3b;
}
.yt svg .play { fill: var(--ivory); }
.yt:hover,
.yt:focus-visible {
  background: rgba(181, 9, 40, .28);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(237, 188, 81, .25), 0 10px 36px rgba(181, 9, 40, .3);
  transform: translateY(-2px);
  outline: none;
}
.yt:focus-visible {
  box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--gold);
}

@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(0, -1.2%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-18px, -14px) rotate(18deg); }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  main { margin-top: 0; padding: 8vh 5vw 10vh; }
  h1 { align-items: center; text-align: center; }
  .name { font-size: clamp(2.15rem, 12vw, 3.3rem); }
  .sub { letter-spacing: .32em; padding-left: 0; }
  .crest { width: clamp(104px, 34vw, 148px); }
  .ball { width: 56px; right: 6vw; bottom: 10vh; }
}

@media (prefers-reduced-motion: reduce) {
  .bg img, .crest, h1, .cta, .ball {
    animation: none !important;
    filter: none;
    transform: none;
    opacity: 1;
  }
  .bg img { transform: scale(1.04); }
  .yt:hover, .yt:focus-visible { transform: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
  main { margin-top: 0; padding: 3vh 4vw; }
  .crest { width: 88px; }
  .name { font-size: clamp(1.8rem, 7vw, 3rem); }
  .tagline { margin-top: 1rem; }
}

/* Settled state for screenshots (?shot=1) and very late paint */
html.shot .crest,
html.shot h1,
html.shot .cta {
  animation: none !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}
html.shot .bg img {
  animation-delay: -10s;
}
html.shot .ball {
  animation-delay: -8s;
}
