/*
 * Community credits after the finale.
 * This page uses one real show photograph, strong civic recognition, and
 * stationary credits so gratitude feels ceremonial without becoming an ad.
 */

.thanks-page {
  --gratitude-night: #02050a;
  --gratitude-ink: #071018;
  --gratitude-snow: #f8f7f2;
  --gratitude-ice: #8be7ff;
  --gratitude-ice-bright: #c7f4ff;
  --gratitude-gold: #ffd27a;
  --gratitude-copy: #b9c6d4;
  --gratitude-line: rgba(199, 244, 255, 0.2);
  background: var(--gratitude-night);
}

.thanks-page main {
  overflow: clip;
  background: var(--gratitude-night);
}

.thanks-page main::before {
  display: none;
}

.thanks-page main > section:first-child {
  padding-top: clamp(8rem, 13vw, 12rem);
}

.thanks-page .gratitude-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.34fr);
  align-content: end;
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
  min-height: max(44rem, 100svh);
  padding: clamp(8rem, 13vw, 12rem) var(--gutter) clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid rgba(199, 244, 255, 0.25);
  background: #010309;
}

.thanks-page .gratitude-stage-photo,
.thanks-page .gratitude-stage-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.thanks-page .gratitude-stage-photo {
  z-index: -3;
  max-width: none;
  object-fit: cover;
  object-position: center 48%;
}

.thanks-page .gratitude-stage-wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 3, 9, 0.92) 0%, rgba(1, 3, 9, 0.63) 45%, rgba(1, 3, 9, 0.12) 76%),
    linear-gradient(180deg, rgba(1, 3, 9, 0.55) 0%, transparent 35%, rgba(1, 3, 9, 0.93) 100%);
}

.thanks-page .gratitude-watermark {
  position: absolute;
  z-index: -1;
  top: clamp(5.5rem, 10vw, 9rem);
  left: calc(var(--gutter) * -0.35);
  margin: 0;
  color: rgba(248, 247, 242, 0.035);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(7rem, 21vw, 23rem);
  font-weight: 800;
  letter-spacing: -0.105em;
  line-height: 0.72;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.thanks-page .gratitude-stage-copy {
  position: relative;
  z-index: 1;
  max-width: 65rem;
}

.thanks-page .gratitude-stage .section-label {
  margin: 0 0 clamp(1.4rem, 3vw, 2.7rem);
  color: var(--gratitude-ice-bright);
}

.thanks-page .gratitude-stage h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--gratitude-snow);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(4rem, 8.5vw, 9.4rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.87;
}

.thanks-page .gratitude-stage h1 span {
  display: inline-block;
  color: var(--gratitude-ice-bright);
  font-family: inherit;
  font-weight: inherit;
}

.thanks-page .gratitude-stage-lede {
  max-width: 42rem;
  margin: clamp(1.7rem, 3vw, 2.5rem) 0 0;
  color: #e1e8ee;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.thanks-page .gratitude-scroll {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 44px;
  margin-top: 2rem;
  color: var(--gratitude-snow);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.thanks-page .gratitude-scroll i {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(199, 244, 255, 0.55);
  border-radius: 50%;
  color: var(--gratitude-ice-bright);
  font-style: normal;
  transition: color 180ms ease, background-color 180ms ease;
}

.thanks-page .gratitude-scroll:hover i,
.thanks-page .gratitude-scroll:focus-visible i {
  color: var(--gratitude-ink);
  background: var(--gratitude-ice-bright);
}

.thanks-page .gratitude-stage-credit {
  position: relative;
  z-index: 1;
  margin: 0 0 0 auto;
  padding: 1.35rem 0 0 1.4rem;
  border-top: 1px solid rgba(199, 244, 255, 0.55);
  color: rgba(248, 247, 242, 0.72);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.thanks-page .gratitude-stage-credit span,
.thanks-page .gratitude-stage-credit strong {
  display: block;
}

.thanks-page .gratitude-stage-credit strong {
  color: var(--gratitude-ice-bright);
  font-weight: 700;
}

.thanks-page .city-stage {
  position: relative;
  isolation: isolate;
  padding: clamp(6rem, 11vw, 12rem) var(--gutter) clamp(4rem, 7vw, 7rem);
  overflow: hidden;
  color: var(--gratitude-ink);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.85), transparent 24rem),
    linear-gradient(120deg, #91e8ff 0%, #c7f4ff 52%, #e6fbff 100%);
  scroll-margin-top: 4.4rem;
}

.thanks-page .city-stage::before {
  content: "REXBURG";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.08em;
  color: rgba(7, 16, 24, 0.05);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(8rem, 24vw, 25rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.72;
  pointer-events: none;
}

.thanks-page .city-stage-heading,
.thanks-page .community-credits-heading,
.thanks-page .community-promise-heading {
  display: grid;
  grid-template-columns: clamp(4rem, 8vw, 8rem) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  max-width: 104rem;
  margin: 0 auto;
}

.thanks-page .credit-number {
  margin: 0;
  color: currentColor;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
  opacity: 0.24;
}

.thanks-page .city-stage .section-label {
  margin: 0 0 1.3rem;
  color: var(--gratitude-ink);
}

.thanks-page .city-stage .section-label::before {
  background: currentColor;
}

.thanks-page .city-stage h2 {
  max-width: 9ch;
  margin: 0;
  color: var(--gratitude-ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(4.2rem, 10vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.79;
}

.thanks-page .city-stage-story {
  display: grid;
  grid-template-columns: minmax(18rem, 0.88fr) minmax(22rem, 1.12fr);
  gap: clamp(3rem, 9vw, 10rem);
  max-width: 82rem;
  margin: clamp(5rem, 9vw, 10rem) auto 0;
  padding-top: clamp(2.2rem, 4vw, 4rem);
  border-top: 1px solid rgba(7, 16, 24, 0.34);
}

.thanks-page .city-pullquote {
  max-width: 13ch;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.6rem, 5.3vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.thanks-page .city-story-copy {
  max-width: 41rem;
}

.thanks-page .city-story-copy p {
  margin: 0 0 1.4rem;
  color: rgba(7, 16, 24, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.82;
}

.thanks-page .city-stage-line {
  max-width: 104rem;
  margin: clamp(5rem, 9vw, 9rem) auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(7, 16, 24, 0.34);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: right;
  text-transform: uppercase;
}

.thanks-page .community-credits {
  position: relative;
  padding: clamp(7rem, 12vw, 13rem) var(--gutter);
  color: var(--gratitude-snow);
  background:
    linear-gradient(180deg, rgba(139, 231, 255, 0.07), transparent 22rem),
    var(--gratitude-night);
}

.thanks-page .community-credits-heading {
  grid-template-columns: clamp(4rem, 8vw, 8rem) minmax(20rem, 1fr) minmax(16rem, 0.55fr);
  align-items: end;
}

.thanks-page .community-credits-heading .section-label,
.thanks-page .community-promise-heading .section-label {
  margin: 0 0 1.35rem;
  color: var(--gratitude-ice);
}

.thanks-page .community-credits-heading h2,
.thanks-page .community-promise-heading h2 {
  margin: 0;
  color: var(--gratitude-snow);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(3.6rem, 7.5vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.89;
}

.thanks-page .community-credits-heading > p:last-child {
  margin: 0 0 0.4rem;
  color: var(--gratitude-copy);
  font-size: 1rem;
  line-height: 1.8;
}

.thanks-page .community-credit-roll {
  max-width: 104rem;
  margin: clamp(5rem, 9vw, 9rem) auto 0;
  padding: 0;
  border-top: 1px solid var(--gratitude-line);
  list-style: none;
}

.thanks-page .community-credit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 0.52fr) minmax(16rem, 0.9fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: start;
  padding: clamp(2.8rem, 5.5vw, 5.5rem) 0;
  border-bottom: 1px solid var(--gratitude-line);
}

.thanks-page .community-credit::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gratitude-ice);
  transition: width 450ms ease;
}

.thanks-page .community-credit:hover::before,
.thanks-page .community-credit:focus-within::before {
  width: clamp(5rem, 12vw, 12rem);
}

.thanks-page .community-credit-featured::before {
  width: clamp(5rem, 12vw, 12rem);
  background: var(--gratitude-gold);
}

.thanks-page .community-credit-role {
  margin: 0.5rem 0 0;
  color: var(--gratitude-ice);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.thanks-page .community-credit-featured .community-credit-role {
  color: var(--gratitude-gold);
}

.thanks-page .community-credit h3 {
  margin: 0;
  color: var(--gratitude-snow);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.thanks-page .community-credit > p:last-child {
  max-width: 39rem;
  margin: 0;
  color: var(--gratitude-copy);
  font-size: 1rem;
  line-height: 1.82;
}

.thanks-page .gratitude-signoff {
  max-width: 104rem;
  margin: clamp(3.5rem, 7vw, 7rem) auto 0;
  color: var(--gratitude-gold);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-align: right;
}

.thanks-page .gratitude-signoff strong {
  color: var(--gratitude-snow);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thanks-page .community-promise {
  padding: clamp(7rem, 11vw, 12rem) var(--gutter);
  color: var(--gratitude-ink);
  background: var(--gratitude-snow);
  scroll-margin-top: 4.4rem;
}

.thanks-page .community-promise-heading {
  color: var(--gratitude-ink);
}

.thanks-page .community-promise-heading .section-label {
  color: #146d84;
}

.thanks-page .community-promise-heading h2 {
  color: var(--gratitude-ink);
}

.thanks-page .promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 104rem;
  margin: clamp(4.5rem, 8vw, 8rem) auto 0;
  border-top: 1px solid rgba(7, 16, 24, 0.22);
  border-left: 1px solid rgba(7, 16, 24, 0.22);
}

.thanks-page .promise-item {
  display: grid;
  grid-template-columns: clamp(2rem, 4vw, 4rem) minmax(0, 1fr);
  gap: 0 clamp(1.1rem, 3vw, 3rem);
  align-content: start;
  min-height: clamp(22rem, 31vw, 31rem);
  padding: clamp(2rem, 4.5vw, 4.5rem);
  border-right: 1px solid rgba(7, 16, 24, 0.22);
  border-bottom: 1px solid rgba(7, 16, 24, 0.22);
}

.thanks-page .promise-index {
  grid-row: 1 / 3;
  margin: 0;
  color: #146d84;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.thanks-page .promise-item h3 {
  max-width: 13ch;
  margin: 0 0 1.7rem;
  color: var(--gratitude-ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.thanks-page .promise-item > p:last-child {
  grid-column: 2;
  max-width: 37rem;
  margin: 0;
  color: rgba(7, 16, 24, 0.74);
  font-size: 0.98rem;
  line-height: 1.8;
}

.thanks-page .community-invitation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.45fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  max-width: 104rem;
  margin: clamp(4rem, 8vw, 8rem) auto 0;
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid rgba(7, 16, 24, 0.32);
}

.thanks-page .community-invitation > p {
  max-width: 34ch;
  margin: 0;
  color: var(--gratitude-ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.thanks-page .community-invitation .partner-link {
  width: 100%;
  margin: 0;
  color: var(--gratitude-snow);
  background: var(--gratitude-ink);
}

.thanks-page .community-invitation .partner-link:hover,
.thanks-page .community-invitation .partner-link:focus-visible {
  color: var(--gratitude-ink);
  background: var(--gratitude-ice);
}

@media (max-width: 960px) {
  .thanks-page .community-credits-heading {
    grid-template-columns: clamp(4rem, 8vw, 7rem) minmax(0, 1fr);
  }

  .thanks-page .community-credits-heading > p:last-child {
    grid-column: 2;
    max-width: 38rem;
    margin-top: 2rem;
  }

  .thanks-page .community-credit {
    grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  }

  .thanks-page .community-credit > p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .thanks-page main > section:first-child,
  .thanks-page .gratitude-stage {
    padding-top: 7.5rem;
  }

  .thanks-page .gratitude-stage {
    grid-template-columns: minmax(0, 1fr);
    min-height: max(42rem, 100svh);
    gap: 2rem;
  }

  .thanks-page .gratitude-stage-photo {
    object-position: 57% center;
  }

  .thanks-page .gratitude-stage-wash {
    background:
      linear-gradient(90deg, rgba(1, 3, 9, 0.63), rgba(1, 3, 9, 0.2)),
      linear-gradient(180deg, rgba(1, 3, 9, 0.56) 0%, rgba(1, 3, 9, 0.12) 27%, rgba(1, 3, 9, 0.96) 73%);
  }

  .thanks-page .gratitude-watermark {
    top: 7rem;
    left: -0.08em;
    font-size: clamp(5.5rem, 28vw, 9rem);
    white-space: normal;
  }

  .thanks-page .gratitude-stage h1 {
    max-width: 10ch;
    font-size: clamp(3.6rem, 15.5vw, 6rem);
    line-height: 0.9;
  }

  .thanks-page .gratitude-stage-lede {
    line-height: 1.65;
  }

  .thanks-page .gratitude-stage-credit {
    margin: 0;
    padding: 1.1rem 0 0;
    text-align: left;
  }

  .thanks-page .city-stage-heading,
  .thanks-page .community-credits-heading,
  .thanks-page .community-promise-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .thanks-page .credit-number {
    margin-bottom: 1rem;
    font-size: 2.2rem;
  }

  .thanks-page .city-stage h2,
  .thanks-page .community-credits-heading h2,
  .thanks-page .community-promise-heading h2 {
    font-size: clamp(3.4rem, 16vw, 5.8rem);
  }

  .thanks-page .city-stage-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
  }

  .thanks-page .city-pullquote {
    max-width: 12ch;
  }

  .thanks-page .city-stage-line {
    text-align: left;
  }

  .thanks-page .community-credits-heading > p:last-child {
    grid-column: 1;
  }

  .thanks-page .community-credit {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 3rem;
  }

  .thanks-page .community-credit > p:last-child {
    grid-column: 1;
    margin-top: 0.5rem;
  }

  .thanks-page .community-credit-role {
    margin-top: 0;
  }

  .thanks-page .gratitude-signoff {
    text-align: left;
  }

  .thanks-page .promise-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .thanks-page .promise-item {
    min-height: 0;
    padding-block: 3rem;
  }

  .thanks-page .community-invitation {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .thanks-page .community-invitation .partner-link {
    max-width: 28rem;
  }
}

@media (max-width: 430px) {
  .thanks-page .gratitude-stage {
    min-height: 46rem;
  }

  .thanks-page .gratitude-stage h1 {
    font-size: clamp(3.2rem, 15vw, 4.4rem);
  }

  .thanks-page .gratitude-scroll {
    align-items: flex-start;
    max-width: 15rem;
    line-height: 1.5;
  }

  .thanks-page .gratitude-scroll i {
    flex: 0 0 2.5rem;
  }

  .thanks-page .promise-item {
    grid-template-columns: 2rem minmax(0, 1fr);
    padding-inline: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-page .gratitude-scroll i,
  .thanks-page .community-credit::before {
    transition: none;
  }
}
