/* Team Hightower — Kick Off 2026.
   The palette is not a choice: navy #001830 and gold #d8a848 are the two
   dominant colours of the embroidered patch, sampled from a photograph of it. */

:root {
  --navy:   #001830;
  --deep:   #000c1a;
  --gold:   #d8a848;
  --paper:  #f4efe6;
  --muted:  rgba(244, 239, 230, 0.62);
  --faint:  rgba(244, 239, 230, 0.16);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font: 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--gold); color: var(--deep); padding: 0.75rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; }

.kicker {
  margin: 0;
  font-size: clamp(0.6875rem, 1.1vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------------- hero -- */

/* The opening frame is a portrait — seven people standing in a row — and a
   portrait cropped to a widescreen band loses half of them. So the hero gives
   the photograph a column of its own instead of forcing type on top of it. */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}

.hero__line {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 1rem 0 1.5rem;
}

.hero__dates {
  margin: 0;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  line-height: 1.9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__figure { position: relative; margin: 0; overflow: hidden; }

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Weighted low: the wall above the group is empty, and the faces are not. */
  object-position: center 76%;
}

.hero__cue {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  animation: drift 2.6s ease-in-out infinite;
}

@keyframes drift { 0%,100% { transform: translateY(0); opacity: 0.5 } 50% { transform: translateY(6px); opacity: 1 } }

@media (max-width: 54rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  /* On a narrow screen, cropping a portrait to a fixed height cuts the people
     at both ends off. The photograph keeps its own shape instead. */
  .hero__figure { order: -1; height: auto; }
  .hero__figure img { height: auto; object-position: center; }
  .hero__inner { padding-block: clamp(2rem, 8vw, 3rem) clamp(2.5rem, 9vw, 4rem); }
}

/* -------------------------------------------------------------- statement -- */

.statement {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(5rem, 14vw, 9rem) var(--gutter);
  text-align: center;
}

.statement p {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.statement__lead { color: var(--paper) !important; }

/* ----------------------------------------------------------------- scenes -- */

.scene { margin-bottom: clamp(4rem, 10vw, 8rem); }

.scene__lead { position: relative; }

.scene__lead img {
  width: 100%;
  height: clamp(24rem, 78vh, 46rem);
  object-fit: cover;
}

.scene__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  /* Bright photographs were winning against the caption. The scrim is deep and
     reaches high enough that gold on white sky is still gold on dark. */
  background: linear-gradient(to top,
    rgba(0,12,26,0.97) 0%,
    rgba(0,12,26,0.88) 32%,
    rgba(0,12,26,0.55) 62%,
    rgba(0,12,26,0) 100%);
}

.scene__caption-inner { max-width: var(--wrap); margin-inline: auto; }

.scene__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.625rem;
}

.scene__when {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.scene__note {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  color: var(--muted);
}

/* Columns filled in script, not by CSS. Nothing is cropped to fit, and no
   column can end short of the others. */
.scene__grid {
  max-width: var(--wrap);
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

/* The odd frame out spans the measure instead of leaving a column short. */
.frame--full { flex: 0 0 100%; }

.column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.frame {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.frame img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- closing -- */

.closing {
  text-align: center;
  padding: clamp(5rem, 14vw, 10rem) var(--gutter) clamp(4rem, 10vw, 7rem);
  background: linear-gradient(to bottom, var(--navy), var(--deep));
}

.closing__line {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 1rem 0 2rem;
}

/* ------------------------------------------------------------------- coin -- */

.coin { position: relative; margin-inline: auto; }

.coin--small {
  width: clamp(200px, 24vw, 320px);
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
}

.closing .coin {
  width: clamp(220px, 32vw, 400px);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.coin__canvas { display: block; width: 100%; aspect-ratio: 1; }

.coin__fallback {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.55));
}

/* The flat badge is what everyone sees until the three-dimensional one is
   ready — and it is what they keep if WebGL is unavailable. */
.coin.is-live .coin__fallback { display: none; }
.coin:not(.is-live) .coin__canvas { display: none; }

.coin.is-live { cursor: grab; touch-action: pan-y; }
.coin.is-live:active { cursor: grabbing; }

/* ----------------------------------------------------------------- motion -- */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .hero__cue { animation: none; }
}

/* ----------------------------------------------------------------- mobile -- */

@media (max-width: 46rem) {
  .scene__grid { display: block; }
  .frame--landscape { aspect-ratio: 3 / 2; }
  .scene__lead img { height: 78svh; }
}
