/* Palette taken from the club's own shield: the red and green of the
   two halves, the gold of the lyre and rings, on the paper of the card.
   Gold measures 1.7:1 on the paper, so it is a fill and never a text
   colour. Red is 4.0:1 — large type and accents only. */
:root {
  --paper:      #F4F0E4;
  --red:        #E42731;
  --red-deep:   #B3141F;
  --green:      #046E30;
  --green-deep: #0C2A17;
  --gold:       #DAB63B;
  --muted:      #5C5344;
  --wood-lit:   #8A6A47;   /* behind the film before it paints */

  /* One family. The width axis does the work the second family would. */
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.5rem, 6vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--green-deep);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--green-deep); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ── Screen one: the video, and almost nothing else ───────── */

.hero {
  position: relative;
  height: 100svh;
  min-height: 26rem;
  overflow: hidden;
  background: var(--wood-lit);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The film dissolves into the paper of the next screen, so the two
   read as one sheet rather than two stacked panels. */
.hero__veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(to top, var(--paper) 12%, rgba(244, 240, 228, 0));
  pointer-events: none;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: opacity 400ms ease;
}

.hero__cue-text {
  --hop: -0.34em;

  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  transition: color 200ms ease;
}

/* The letters hop in sequence, so the word reads as a wave travelling
   down-page, then rests for most of the cycle. */
.hero__cue-letter {
  display: inline-block;
  animation: hop 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 55ms);
}

@keyframes hop {
  0%, 40%, 100% { transform: translateY(0); }
  18%           { transform: translateY(var(--hop)); }
}

.hero__cue:hover .hero__cue-text {
  --hop: -0.5em;
  color: var(--gold);
}

.hero__cue:hover .hero__cue-letter { animation-duration: 1.4s; }

/* A mark falling down the track, on repeat — the one thing on the
   first screen that says the page continues below. */

.hero__cue-track {
  --track: 2.75rem;
  --dot: 0.9rem;

  position: relative;
  display: block;
  width: 1px;
  height: var(--track);
  overflow: hidden;
  background: rgba(4, 110, 48, 0.25);
}

.hero__cue-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: var(--dot);
  background: var(--green);
  animation: fall 2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes fall {
  0%       { transform: translateY(calc(var(--dot) * -1)); opacity: 0; }
  25%      { opacity: 1; }
  75%      { opacity: 1; }
  100%     { transform: translateY(var(--track)); opacity: 0; }
}

/* Hovering shortens the wait — the cue answers the pointer. */
.hero__cue:hover .hero__cue-dot { animation-duration: 1.1s; }

/* Once they have started scrolling, the cue has done its job. */
.hero__cue.is-spent {
  opacity: 0;
  pointer-events: none;
}


/* ── Screen two: the paper it was printed on ──────────────── */

.card {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 10vh, 7rem) var(--gutter) clamp(4rem, 12vh, 8rem);
  background: var(--paper);
}

.card__inner {
  width: 100%;
  max-width: 44rem;
  text-align: center;
}


/* Logo — the image wins if a file has been dropped into assets/,
   otherwise the typographic lockup below stands in. */

.mark { margin: 0 0 clamp(2.25rem, 5vh, 3rem); }

.mark__img[hidden] { display: none; }

.mark__img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: min(100%, 15rem);
  max-height: clamp(8rem, 22vh, 11.5rem);
}

/* Stand-in for the shield when no logo file is present. */
.mark__type {
  margin: 0;
  font-weight: 700;
  font-variation-settings: "wdth" 118;   /* the cut-paper letters are wide */
  font-size: clamp(2.75rem, 11vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-indent: 0.04em;   /* balances the trailing letter-space */
  color: var(--green);
}

.mark__full {
  margin: 1.1rem 0 0;
  font-size: clamp(0.75rem, 2.4vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.11em;
  color: var(--muted);
}

/* The shield is split red | green. The divider says so. */
.rule {
  width: 4rem;
  height: 3px;
  margin: 0 auto clamp(1.75rem, 4vh, 2.5rem);
  border: 0;
  background: linear-gradient(to right, var(--red) 50%, var(--green) 50%);
}

.statement {
  margin: 0 0 clamp(2.75rem, 7vh, 4rem);
  font-size: clamp(1.0625rem, 2.6vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--green-deep);
}


/* Contacts — the last typographic moment on the page. */

.contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 5vh, 2.5rem);
}

.contact { display: grid; gap: 0.5rem; }

.contact__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact__value {
  justify-self: center;
  font-size: clamp(1.375rem, 5vw, 2.125rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--green);
  text-decoration: none;
  padding: 0 0.12em 0.05em;
  box-shadow: inset 0 -0.22em 0 var(--gold);
  transition: box-shadow 220ms ease, color 220ms ease;
  overflow-wrap: anywhere;
}

.contact__value:hover,
.contact__value:focus-visible {
  color: var(--green-deep);
  box-shadow: inset 0 -1em 0 var(--gold);
}

.social {
  list-style: none;
  margin: clamp(1.75rem, 5vh, 2.5rem) 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.social__link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--green);
  transition: color 200ms ease, background-color 200ms ease;
}

.social__link svg { width: 1.5rem; height: 1.5rem; }

.social__link:hover,
.social__link:focus-visible {
  color: var(--green-deep);
  background-color: var(--gold);
}


/* ── The single orchestrated reveal ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}


/* ── Portrait ─────────────────────────────────────────────
   The film is a landscape composition; cropping it to a tall
   phone screen cuts the lettering off at both edges. So on
   portrait it stops being a backdrop and becomes what it
   actually is — a card, lying on the paper. */

@media (max-aspect-ratio: 1 / 1) {
  .hero {
    background: var(--paper);
    padding: 0 clamp(0.75rem, 4vw, 2rem);
    display: grid;
    align-content: center;
    justify-items: center;
  }

  /* Card and cue centre together as one group, rather than the cue
     stranding itself at the foot of an empty screen. */
  .hero__cue {
    position: static;
    transform: none;
    margin-top: clamp(2rem, 6svh, 3.5rem);
  }

  .hero__video {
    position: static;
    width: 100%;
    height: auto;
    max-height: 62svh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 1.25rem 2.5rem -1rem rgba(12, 42, 23, 0.26);
  }

  .hero__veil { display: none; }
}

/* Phones and other small screens land straight on the contacts.
   The film is a landscape frame, so it stays off until there is
   room for it. Kept after the portrait rules so it wins there. */
@media (max-width: 60rem) {
  .hero { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cue-dot { animation: none; transform: translateY(0.9rem); opacity: 1; }
  .hero__cue-letter { animation: none; transform: none; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
