/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--gutter);
  transition:
    background-color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgb(10 26 58 / 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.nav__brand img {
  height: 38px;
  width: auto;
}
.nav__name {
  font: 400 1.5rem/1 var(--serif);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding-left: 0.85rem;
  border-left: 1px solid rgb(255 255 255 / 0.3);
}
.nav__name em {
  text-transform: none;
}
.nav__actions {
  display: flex;
  gap: 0.6rem;
}
.btn--sm {
  min-height: 2.6rem;
  padding: 0 1.05rem;
  font-size: 0.78rem;
}
@media (max-width: 520px) {
  .nav__name {
    display: none;
  }
  .nav__actions .btn--ghost {
    display: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--night) url('../media/hero-poster.webp') center / cover;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 52%, rgb(5 15 38 / 0.35), rgb(5 15 38 / 0.82) 78%),
    linear-gradient(to bottom, rgb(5 15 38 / 0.55), transparent 22%, transparent 62%, var(--navy) 99%);
}
.hero__shade::after {
  /* film grain, as in the launch film's grade */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__lockup {
  --L: min(19vw, 27svh, 15.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 6rem;
}
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  line-height: 1;
  text-shadow: 0 2px 30px rgb(5 15 38 / 0.45);
}
.lockup__first {
  font-style: italic;
  font-size: calc(var(--L) * 0.56);
  line-height: 0.9;
  margin-bottom: -0.06em;
}
.lockup__last {
  font-size: var(--L);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.lockup__for {
  display: flex;
  align-items: center;
  gap: 0.32em;
  margin-top: 0.16em;
  font-size: calc(var(--L) * 0.34);
}
.lockup__for .rule {
  width: 1.15em;
  height: max(3px, 0.04em);
  background: var(--gold);
  transform-origin: center;
}
.lockup__cq {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.74em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
  padding: 0 0.1em;
  text-shadow: 0 2px 18px rgb(5 15 38 / 0.6);
}
.lockup__place {
  font-size: max(0.95rem, calc(var(--L) * 0.2));
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 0.05em;
}
.hero__role {
  margin-top: clamp(1.4rem, 3svh, 2.2rem);
  font-weight: 700;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.hero__cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(255 255 255 / 0.85);
}
.hero__cue-line {
  width: 2px;
  height: 2.6rem;
  background: linear-gradient(var(--gold), var(--gold)) top / 100% 40% no-repeat rgb(255 255 255 / 0.2);
  animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue {
  0% {
    background-position: 0 -120%;
  }
  100% {
    background-position: 0 260%;
  }
}
.hero__pause {
  position: absolute;
  right: var(--gutter);
  bottom: 1.4rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  background: rgb(5 15 38 / 0.35);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.hero__pause:hover {
  border-color: var(--gold);
  background: rgb(5 15 38 / 0.6);
}
.hero__pause svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.hero__pause .i-play,
.hero__pause[aria-pressed='true'] .i-pause {
  display: none;
}
.hero__pause[aria-pressed='true'] .i-play {
  display: block;
}

/* Lockup entrance: an echo of the film's end card */
@media (prefers-reduced-motion: no-preference) {
  .lockup__first {
    animation: rise 1.1s var(--ease-out) 0.15s both;
  }
  .lockup__last {
    animation: slam 1.2s var(--ease-out) 0.3s both;
  }
  .lockup__for .rule {
    animation: rule 0.9s var(--ease-out) 0.9s both;
  }
  .lockup__cq {
    animation: write 1.1s cubic-bezier(0.55, 0, 0.3, 1) 0.95s both;
  }
  .lockup__place,
  .hero__role,
  .hero__ctas {
    animation: rise 1s var(--ease-out) 1.35s both;
  }
  .hero__ctas {
    animation-delay: 1.5s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 0.4em;
    filter: blur(6px);
  }
}
@keyframes slam {
  from {
    opacity: 0;
    scale: 1.14;
    filter: blur(14px);
    letter-spacing: 0.04em;
  }
}
@keyframes rule {
  from {
    transform: scaleX(0);
  }
}
@keyframes write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 -10% 0 0);
  }
}

/* =========================================================
   ENDORSED
   ========================================================= */
.endorsed {
  background: var(--night);
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}
.endorsed__inner {
  max-width: 76rem;
  margin: 0 auto;
}
.endorsed__quote {
  font: 400 clamp(2.3rem, 5.4vw, 5rem) / 1.04 var(--serif);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.endorsed__date {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.endorsed__date svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}
.endorsed__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.endorsed__body p {
  max-width: 54ch;
  color: var(--mist);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}
.endorsed__film {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.endorsed__film svg {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--gold);
  fill: var(--navy);
  transition: transform 0.3s var(--ease-out);
}
.endorsed__film:hover svg {
  transform: scale(1.08);
}

/* Three reasons to back Matt */
.reasons {
  list-style: none;
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 0;
}
.reason {
  padding-top: 1.4rem;
  border-top: 3px solid var(--gold);
}
.reason__title {
  font: 400 clamp(1.7rem, 2.4vw, 2.1rem) / 1.08 var(--serif);
  margin-bottom: 1rem;
}
.reason p {
  color: var(--mist);
  font-size: 1.05rem;
  max-width: 42ch;
}
.reason__facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.reason__facts li {
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.35;
}
.reason__facts strong {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.reason__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
}
.reason__more svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: translate 0.3s var(--ease-out);
}
.reason__more:hover svg {
  translate: 0.3rem 0;
}
@media (min-width: 860px) {
  .reasons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* =========================================================
   WHY (the billboard)
   ========================================================= */
.why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--royal);
}
.why__flag {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.why__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.2;
}
.why__flag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--royal) 30%, rgb(18 105 178 / 0.55));
}
.why__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter) 0;
}
.why__title {
  font: 400 clamp(3rem, 6.4vw, 5.6rem) / 0.98 var(--serif);
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}
.why__letter > p:not([class]) {
  max-width: 58ch;
  color: var(--ice);
  font-size: 1.15rem;
}
.why__letter > p + p {
  margin-top: 1rem;
}
.why__pull {
  margin-top: 1.8rem !important;
  max-width: 26ch;
  font: italic 400 clamp(1.7rem, 2.8vw, 2.5rem) / 1.12 var(--serif);
}
.why__sign {
  display: flex;
  flex-direction: column;
  margin-top: 1.8rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ice);
}
.why__sign span {
  font: 400 3.4rem/1 var(--script);
  color: var(--gold);
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}
.why__cta {
  margin-top: 2.2rem;
  justify-self: start;
}
.why__slab {
  margin-top: 2.4rem !important;
}
.why__portrait {
  width: min(92vw, 34rem);
  justify-self: center;
  margin-top: 2.5rem;
  filter: drop-shadow(0 30px 50px rgb(0 40 90 / 0.45));
}
@media (min-width: 1024px) {
  .why__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
  }
  .why__letter {
    padding-bottom: clamp(5rem, 9vw, 8rem);
  }
  .why__portrait {
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 38rem;
    margin-top: 0;
  }
}

/* =========================================================
   JOIN
   ========================================================= */
.join {
  background: var(--navy);
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter);
}
.join__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}
.join__title {
  font: 400 clamp(3rem, 6.4vw, 5.6rem) / 0.98 var(--serif);
  letter-spacing: -0.01em;
}
.join__intro p {
  margin-top: 1.4rem;
  max-width: 44ch;
  color: var(--mist);
  font-size: 1.15rem;
}
@media (min-width: 1024px) {
  .join__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

.form {
  position: relative;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.8);
}
.ticks {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.6rem;
}
.ticks legend,
.fields-legend {
  padding: 0;
  margin-bottom: 0.9rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.tick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.tick:hover {
  border-color: rgb(255 181 48 / 0.7);
}
.tick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.box {
  position: relative;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--white);
  background: var(--night);
  transition: border-color 0.2s;
}
.box::after {
  content: '';
  position: absolute;
  left: 0.42rem;
  top: 0.05rem;
  width: 0.5rem;
  height: 1rem;
  border: solid var(--gold);
  border-width: 0 0.24rem 0.24rem 0;
  rotate: 42deg;
  scale: 0;
  transition: scale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tick input:checked + .box {
  border-color: var(--gold);
}
.tick input:checked + .box::after {
  scale: 1;
}
.tick:has(input:checked) {
  border-color: var(--gold);
  background: rgb(255 181 48 / 0.08);
}
.tick input:focus-visible + .box {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@media (min-width: 640px) {
  .ticks {
    grid-template-columns: 1fr 1fr;
  }
  .ticks legend {
    grid-column: 1 / -1;
  }
  .tick--wide {
    grid-column: 1 / -1;
  }
}

.fields {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}
@media (min-width: 640px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .field--wide {
    grid-column: 1 / -1;
  }
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field[hidden] {
  display: none;
}
.field span {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--mist);
}
.field input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0 0.95rem;
  border: 1px solid rgb(255 255 255 / 0.26);
  border-radius: 2px;
  background: var(--night);
  color: var(--white);
  font: 500 1.05rem var(--sans);
  caret-color: var(--gold);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:hover {
  border-color: rgb(255 255 255 / 0.5);
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(255 181 48 / 0.28);
}
.field input:user-invalid {
  border-color: #ff9b8a;
}
.form__error {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  background: rgb(255 120 100 / 0.12);
  border: 1px solid rgb(255 155 138 / 0.6);
  color: #ffd2ca;
  font-size: 0.98rem;
}
.form__submit {
  width: 100%;
  margin-top: 1.6rem;
  min-height: 3.6rem;
  font-size: 1.05rem;
}
.form__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.form__fine {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--mist);
}
.form__done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  background: var(--navy-2);
  color: var(--white);
  outline: none;
}
.form__done[hidden] {
  display: none;
}
.form__done svg {
  width: 3.4rem;
  height: 3.4rem;
  color: var(--gold);
}
.form__done h3 {
  font: 400 clamp(2rem, 3.5vw, 3rem) / 1.05 var(--serif);
}
.form__done p {
  color: var(--mist);
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   DONATE
   ========================================================= */
.donate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  background: var(--gold);
  color: var(--navy);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}
.donate__title {
  font: 400 clamp(2.4rem, 5vw, 4.4rem) / 1 var(--serif);
  letter-spacing: -0.01em;
  max-width: 16ch;
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  background: var(--night);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) 2.5rem;
}
.foot__lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
  font-size: clamp(2.8rem, 8.5vw, 7.5rem);
  line-height: 1.05;
}
.foot__cq {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.8em;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--gold);
}
.foot__aa {
  font-family: var(--serif);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.foot__row img {
  height: 48px;
  width: auto;
}
.foot__auth {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--mist);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 699px) {
  .hero__lockup {
    --L: min(25vw, 22svh);
    padding-bottom: 5rem;
  }
  .lockup__place {
    letter-spacing: 0.16em;
  }
}
