
:root {
  --navy: #071f49;
  --navy-2: #001a40;
  --gold: #c88a1c;
  --red: #e31e2f;
  --ink: #102550;
  --paper: #fbfcfd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #fbfcfd;
  background-image: url("../images/youth-activities-watermark.png");
  background-position: center top;
  background-repeat: repeat;
  background-size: 900px 900px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 14px 24px 10px;
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  display: block;
  width: min(510px, 82vw);
  height: auto;
}

.page-shell {
  width: min(100% - 32px, 1000px);
  margin: 0 auto;
}

.mission {
  position: relative;
  padding: 16px 32px 18px;
  border: 1px solid #d8dce2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 5px rgba(246, 247, 249, 0.8);
}

.mission h1 {
  margin: 0;
  text-align: center;
  color: #152957;
  font: italic 650 clamp(1.1rem, 2vw, 1.65rem)/1.22 Georgia, serif;
}

.quote-mark {
  color: var(--gold);
  font-size: 1.25em;
  padding: 0 8px;
}

.journey {
  padding-top: 4px;
}

.section-kicker,
.rule-title {
  display: grid;
  grid-template-columns: minmax(25px, 90px) auto minmax(25px, 90px);
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.section-kicker span,
.rule-title > span {
  height: 2px;
  background: var(--gold);
}

.section-kicker h2 {
  margin: 0;
  padding: 2px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 17px;
  align-items: end;
  padding: 12px 0 18px;
}

.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 65px;
  height: 2px;
  background: var(--gold);
  z-index: -1;
}

.timeline-stage {
  text-align: center;
}

.timeline-stage img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 10px;
  outline: 1px solid #c8bea7;
  box-shadow: 0 3px 8px rgba(9, 29, 67, 0.14);
}

.timeline-stage.featured img {
  height: 230px;
  outline: 3px solid #ef9c1c;
}

.timeline-number {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin: 7px auto 4px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--gold);
  color: #fff;
  font-weight: 700;
}

.featured .timeline-number {
  background: var(--gold);
}

.timeline-stage h3 {
  margin: 0;
  min-height: 34px;
  font-size: 0.78rem;
  line-height: 1.18;
}

.partner {
  padding-top: 2px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(510px, 100%);
  margin: 0 auto 1px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--gold);
}

.partner h2 {
  margin: 0;
  color: #132957;
  font: 700 clamp(2rem, 4vw, 3rem)/1.05 Georgia, serif;
}

.partner-copy {
  margin: 5px 0 14px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 20px;
}

.video-card {
  position: relative;
  height: 172px;
  overflow: hidden;
  border-radius: 10px;
  color: white;
  box-shadow: 0 5px 14px rgba(4, 27, 70, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(4, 27, 70, 0.26);
}

.video-card img,
.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-card img {
  object-fit: cover;
  filter: none;
}

.video-overlay {
  background: rgba(0, 75, 197, 0.76);
}

.groups .video-overlay {
  background: rgba(0, 113, 104, 0.79);
}

.video-card strong {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 20px;
  right: 20px;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.08;
}

.play-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 56%;
  width: 62px;
  height: 62px;
  border: 4px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 15px;
  border-style: solid;
  border-width: 13px 0 13px 19px;
  border-color: transparent transparent transparent white;
}

.watch {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 14px;
  font-size: 0.82rem;
}

.arrow {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 7px;
  font-size: 2.2rem;
  line-height: 1;
}

.quick-links {
  padding-top: 6px;
}

.rule-title {
  grid-template-columns: 1fr auto 1fr;
}

.rule-title div {
  text-align: center;
}

.rule-title h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.rule-title p {
  margin: 3px 0 0;
  font-size: 0.72rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 7px;
}

.directory-card {
  position: relative;
  min-height: 130px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d8dbe0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 180ms ease, transform 180ms ease;
}

.directory-card:hover,
.directory-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.round-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  outline: 2px solid var(--gold);
  background: var(--navy);
  color: white;
  font-size: 1.75rem;
}

.round-icon.star {
  color: #ffc13c;
  font-size: 2.8rem;
}

.directory-copy {
  text-align: center;
}

.directory-copy strong {
  display: block;
  min-height: 30px;
  font-size: 0.66rem;
  line-height: 1.15;
}

.directory-copy small {
  display: block;
  margin-top: 3px;
  font-size: 0.58rem;
}

.directory-art {
  display: block;
  width: auto;
  object-fit: contain;
  margin: 5px auto 0;
}

.directory-laptop {
  height: 62px;
}

.directory-phone {
  height: 70px;
}

.device {
  position: relative;
  margin: 6px auto 0;
}

.laptop {
  width: 118px;
  height: 57px;
}

.laptop .screen {
  width: 102px;
  height: 49px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 7px;
  margin: auto;
  border: 4px solid #13203a;
  border-radius: 4px;
  background: white;
}

.laptop .screen i {
  background: linear-gradient(135deg, #1d56ad, #f2b83e);
}

.laptop .base {
  display: block;
  width: 118px;
  height: 5px;
  background: #bac0c9;
  border-radius: 0 0 50% 50%;
}

.phone {
  width: 52px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 5px solid #111;
  border-radius: 9px;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}

.rewards-phone {
  background: linear-gradient(#087f75, #035a54);
}

.heroes-phone {
  background: linear-gradient(#064bb9, #043387);
}

.mini-arrow {
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
}

.referral {
  display: grid;
  grid-template-columns: 70px minmax(260px, 1fr) minmax(330px, 1.25fr);
  align-items: center;
  gap: 18px;
  min-height: 155px;
  margin: 9px 0 6px;
  padding: 12px 25px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(100deg, #fff 0%, #fffaf4 100%);
}

.round-icon.people {
  background: var(--gold);
  font-size: 1rem;
  letter-spacing: -5px;
}

.referral-copy h2 {
  margin: 0 0 3px;
  font-size: 1.5rem;
}

.referral-copy p {
  margin: 0;
  color: #192033;
  font-size: 0.7rem;
  line-height: 1.12;
}

.referral-copy > strong {
  display: block;
  margin-top: 3px;
  color: #b66d14;
  font: italic 700 0.72rem Georgia, serif;
}

.gift-visual {
  height: 135px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gift-visual img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 100%;
  object-fit: contain;
}

.app-phone {
  z-index: 2;
  width: 75px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 6px solid #111;
  border-radius: 15px;
  color: white;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.12;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.2);
}

.app-phone.green {
  margin-right: -10px;
  background: linear-gradient(#07897d, #064e4c);
  transform: rotate(-3deg);
}

.app-phone.blue {
  margin-left: -10px;
  background: linear-gradient(#0758df, #052e96);
  transform: rotate(4deg);
}

.gift {
  position: relative;
  width: 96px;
  height: 108px;
  border: 1px solid #c9c5bb;
  border-radius: 7px;
  background: linear-gradient(90deg, #eee9e0, #fff, #ded9cf);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.gift .bow {
  position: absolute;
  left: 12px;
  top: -39px;
  color: var(--gold);
  font: 700 4.2rem/1 Georgia, serif;
  transform: rotate(-6deg);
}

.gift .ribbon {
  position: absolute;
  left: 41px;
  top: 0;
  width: 15px;
  height: 100%;
  background: linear-gradient(90deg, #b26b0d, #f1be4e, #b26b0d);
}

.site-footer {
  margin-top: 0;
  padding: 13px max(20px, calc((100% - 1000px) / 2)) 7px;
  background: linear-gradient(125deg, #06214d, #001a3d);
  color: white;
  border-top: 2px solid #163864;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
}

.footer-column {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2px 34px;
  border: 0;
  font: 0.75rem/1.35 Georgia, serif;
}

.footer-column > strong {
  margin-bottom: 2px;
  font-size: 0.82rem;
}

.footer-column > a:not(.signin-link) {
  width: max-content;
}

.footer-column a span {
  color: var(--gold);
  font-size: 1.2em;
}

.signin-column {
  align-items: center;
  text-align: center;
}

.signin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.8rem;
}

.signin-link > span:last-child {
  color: white;
  font-size: 1em;
}

.signin-icon {
  position: relative;
  width: 29px;
  height: 29px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.signin-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

.signin-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 15px;
  height: 7px;
  border: 1.5px solid var(--gold);
  border-radius: 10px 10px 6px 6px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 920px;
  margin: 9px auto 0;
  border: 0;
}

.footer-nav a {
  flex: 1;
  min-width: 0;
  padding: 8px 22px;
  border: 0;
  text-align: center;
  font: 0.7rem Georgia, serif;
}

.copyright {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 5px 0 0 88px;
  font: 0.64rem Georgia, serif;
}

.copyright small {
  opacity: 0.8;
  font-size: 0.52rem;
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline::after {
    display: none;
  }

  .timeline-stage.featured img,
  .timeline-stage img {
    height: 235px;
  }

  .referral {
    grid-template-columns: 58px 1fr;
  }

  .gift-visual {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 90px;
  }

  .brand {
    width: 100%;
  }

  .mission {
    padding: 14px 12px;
  }

  .mission br {
    display: none;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .video-card {
    height: 190px;
  }

  .desktop-break {
    display: none;
  }

  .referral {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .referral .round-icon {
    margin: auto;
  }

  .gift-visual {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-column,
  .footer-column:last-child {
    align-items: center;
    padding: 8px 22px;
    border-right: 0;
    border-left: 0;
    border: 0;
    text-align: center;
  }

  .footer-column > a:not(.signin-link) {
    width: auto;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-nav a,
  .footer-nav a:last-child {
    min-width: 0;
    border: 0;
  }

  .copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-left: 22px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 20px, 1000px);
  }

  .timeline-stage.featured img,
  .timeline-stage img {
    height: 205px;
  }

  .section-kicker h2 {
    text-align: center;
  }

  .gift-visual {
    transform: scale(0.86);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
