/* ===========================================================================
   Code2College 10-Year Anniversary — public landing page
   Scoped under .anniv so nothing leaks into the rest of the app.
   Identity: deep navy + celebratory gold/champagne, orange for donate CTAs.
   =========================================================================== */

.anniv {
  --navy: #0E3B57;
  --navy-deep: #0a2c43;
  --navy-deeper: #071f30;
  --gold: #F4C84B;
  --gold-soft: #f7d979;
  --gold-deep: #d9a527;
  --orange: #F57531;
  --orange-dark: #e06428;
  --cream: #F6EDD0;
  --ink: #16222c;
  --muted: #5b6b78;
  --line: #e7e9ee;

  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  overflow-x: clip;
}

.anniv * { box-sizing: border-box; }

.anniv-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ------------------------------------------------------------- */
.anniv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.anniv-btn:hover { transform: translateY(-2px); }
.anniv-btn:active { transform: translateY(0); }
.anniv-btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #3a2b00;
  box-shadow: 0 10px 26px rgba(217, 165, 39, .35);
}
.anniv-btn--orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 26px rgba(245, 117, 49, .32);
}
.anniv-btn--orange:hover { background: var(--orange-dark); }
.anniv-btn--navy { background: var(--navy); color: #fff; }
.anniv-btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(14, 59, 87, .25);
}
.anniv-btn--ghost:hover { border-color: var(--navy); background: rgba(14,59,87,.04); }
.anniv-btn--block { width: 100%; }
.anniv-btn--sm { padding: 11px 20px; font-size: .92rem; }
.anniv-btn--lg { padding: 18px 40px; font-size: 1.1rem; }

/* ---- Shared headings ----------------------------------------------------- */
.anniv-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: var(--navy);
}
.anniv-h2 span { color: var(--gold-deep); }
.anniv-h2--center { text-align: center; }
.anniv-h2--light { color: #fff; }
.anniv-h2--light span { color: var(--gold); }
.anniv-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.anniv-kicker--light { color: var(--gold); }
.anniv-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.6;
}
.anniv-sub--light { color: rgba(255,255,255,.82); }

/* =========================================================================
   1 · Intro scroll stage + sticky hero
   ========================================================================= */
.anniv-stage {
  position: relative;
  height: 200vh;            /* JS drives hero fade over this scroll distance  */
  background: var(--navy);
}
.anniv-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, #15527a 0%, var(--navy) 42%, var(--navy-deeper) 100%);
  color: #fff;
}
/* faint celebratory glow rings behind the number */
.anniv-hero::before {
  content: "";
  position: absolute;
  width: min(80vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,200,75,.18), transparent 62%);
  filter: blur(6px);
  z-index: 0;
  animation: anniv-pulse 6s ease-in-out infinite;
}
@keyframes anniv-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.anniv-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 22px;
  transform-origin: center 38%;
  will-change: transform, opacity;
}

.anniv-hero__logo {
  display: block;
  width: clamp(180px, 26vw, 260px);
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.35));
  opacity: 0;
  animation: anniv-fade-down .8s ease .15s forwards;
}

/* The big "10" */
.anniv-bignum {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .82;
  font-size: clamp(8rem, 30vw, 22rem);
  letter-spacing: -.04em;
  display: inline-flex;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.35));
  margin: 6px 0 4px;
}
.anniv-bignum .bn {
  display: inline-block;
  transform: translateY(40px) scale(.6);
  opacity: 0;
  /* Gradient must live on the glyph element itself — clipping the parent's
     background to text leaves inline-block children transparent. */
  background: linear-gradient(180deg, #fff 8%, var(--gold-soft) 52%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.anniv-bignum .bn-1 { animation: anniv-pop .9s cubic-bezier(.2,.9,.3,1.3) .35s forwards; }
.anniv-bignum .bn-0 { animation: anniv-pop .9s cubic-bezier(.2,.9,.3,1.3) .5s forwards; }
@keyframes anniv-pop {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes anniv-fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes anniv-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anniv-bigtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 4.2vw, 2.6rem);
  line-height: 1.12;
  margin: 10px 0 0;
  color: #fff;   /* beat the global h1 color rule */
}
.anniv-bigtitle .line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: anniv-fade-up .8s ease forwards;
}
.anniv-bigtitle .line:nth-child(1) { animation-delay: .7s; }
.anniv-bigtitle .line--accent { color: var(--gold); animation-delay: .85s; }

.anniv-eyebrow {
  margin: 22px 0 0;
  font-size: clamp(.85rem, 2vw, 1.05rem);
  letter-spacing: .06em;
  color: rgba(255,255,255,.72);
  opacity: 0;
  animation: anniv-fade-up .8s ease 1s forwards;
}

/* Scroll cue */
.anniv-scrollcue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  animation: anniv-fade-up .8s ease 1.3s forwards;
}
.anniv-scrollcue svg { animation: anniv-bob 1.8s ease-in-out infinite; }
@keyframes anniv-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* Confetti */
.anniv-confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.anniv-confetti .conf {
  position: absolute;
  top: -8%;
  width: 9px; height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: anniv-fall linear infinite;
}
@keyframes anniv-fall {
  0%   { transform: translateY(-10vh) rotate(0deg);   opacity: 0; }
  8%   { opacity: .9; }
  100% { transform: translateY(112vh) rotate(540deg); opacity: 0; }
}
/* spread the 18 confetti pieces across the width with varied color/timing */
.anniv-confetti .conf-0  { left: 5%;  background: var(--gold);   animation-duration: 7.5s; animation-delay: .2s; }
.anniv-confetti .conf-1  { left: 11%; background: var(--orange); animation-duration: 9s;   animation-delay: 1.4s; }
.anniv-confetti .conf-2  { left: 17%; background: var(--cream);  animation-duration: 8.2s; animation-delay: 2.6s; }
.anniv-confetti .conf-3  { left: 23%; background: var(--gold-soft); animation-duration: 10s; animation-delay: .8s; }
.anniv-confetti .conf-4  { left: 29%; background: #57b9e0;      animation-duration: 7.8s; animation-delay: 3.2s; }
.anniv-confetti .conf-5  { left: 35%; background: var(--gold);   animation-duration: 9.4s; animation-delay: 1.1s; }
.anniv-confetti .conf-6  { left: 41%; background: var(--orange); animation-duration: 8.6s; animation-delay: 2.1s; }
.anniv-confetti .conf-7  { left: 47%; background: var(--cream);  animation-duration: 10.5s; animation-delay: .5s; }
.anniv-confetti .conf-8  { left: 53%; background: var(--gold-soft); animation-duration: 7.2s; animation-delay: 3.8s; }
.anniv-confetti .conf-9  { left: 59%; background: #57b9e0;      animation-duration: 9.1s; animation-delay: 1.9s; }
.anniv-confetti .conf-10 { left: 65%; background: var(--gold);   animation-duration: 8.4s; animation-delay: .3s; }
.anniv-confetti .conf-11 { left: 71%; background: var(--orange); animation-duration: 10.2s; animation-delay: 2.9s; }
.anniv-confetti .conf-12 { left: 77%; background: var(--cream);  animation-duration: 7.6s; animation-delay: 1.6s; }
.anniv-confetti .conf-13 { left: 83%; background: var(--gold-soft); animation-duration: 9.7s; animation-delay: .9s; }
.anniv-confetti .conf-14 { left: 89%; background: #57b9e0;      animation-duration: 8.8s; animation-delay: 3.5s; }
.anniv-confetti .conf-15 { left: 94%; background: var(--gold);   animation-duration: 7.9s; animation-delay: 2.3s; }
.anniv-confetti .conf-16 { left: 8%;  background: var(--gold-soft); animation-duration: 10.8s; animation-delay: 4.1s; }
.anniv-confetti .conf-17 { left: 50%; background: var(--orange); animation-duration: 9.3s; animation-delay: 4.6s; }

/* =========================================================================
   2 · Intro / story
   ========================================================================= */
.anniv-intro {
  background: linear-gradient(180deg, #fff 0%, #fbfaf5 100%);
  padding: clamp(70px, 11vw, 130px) 0;
  text-align: center;
}
.anniv-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 44px;
}
.anniv-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 0 auto 44px;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: 0 8px 24px rgba(14,59,87,.05);
}
.fact__icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.fact__k {
  display: block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.fact__v { display: block; font-weight: 600; color: var(--navy); line-height: 1.45; }
.anniv-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   3 · Decade in numbers
   ========================================================================= */
.anniv-numbers {
  background: var(--navy);
  background:
    radial-gradient(100% 120% at 50% 0%, #15527a 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding: clamp(70px, 11vw, 120px) 0;
  color: #fff;
}
.anniv-numbers .anniv-h2 { color: #fff; }
.anniv-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
}
.stat__v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  background: linear-gradient(180deg, #fff, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.stat__l { font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.4; }

/* =========================================================================
   4 · Noel quote
   ========================================================================= */
.anniv-quote {
  background: var(--cream);
  padding: clamp(70px, 11vw, 120px) 0;
}
.anniv-quote .anniv-shell { max-width: 860px; text-align: center; }
.anniv-quote__eyebrow {
  text-transform: uppercase; letter-spacing: .2em;
  font-weight: 700; font-size: .8rem; color: var(--orange-dark);
  margin: 0 0 20px;
}
.anniv-quote__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 22px;
}
.anniv-quote__text span { color: var(--orange-dark); }
.anniv-quote__body {
  font-size: 1.08rem; line-height: 1.65; color: #4a4327;
  max-width: 640px; margin: 0 auto 16px;
}
.anniv-quote__attr { font-weight: 600; color: var(--navy); }

/* =========================================================================
   5 · The night (stations)
   ========================================================================= */
.anniv-night { background: #fff; padding: clamp(70px, 11vw, 120px) 0; }
.anniv-stations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.station {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  background: linear-gradient(180deg, #fff, #fbfaf5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.station:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14,59,87,.1); }
.station__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.station__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 8px;
}
.station__b { color: var(--muted); font-size: .96rem; line-height: 1.55; margin: 0; }

/* =========================================================================
   6 · RSVP
   ========================================================================= */
.anniv-rsvp {
  background:
    radial-gradient(120% 100% at 80% 0%, #15527a 0%, var(--navy) 50%, var(--navy-deep) 100%);
  padding: clamp(70px, 11vw, 120px) 0;
}
.anniv-rsvp__card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.32);
}
.anniv-rsvp__form-side { padding: clamp(30px, 4vw, 48px); }
.anniv-rsvp__form-side .anniv-h2 { color: var(--navy); }
.anniv-rsvp__lede { color: var(--muted); margin: 0 0 26px; line-height: 1.55; }

.anniv-field { margin-bottom: 16px; }
.anniv-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.anniv-field label span { color: var(--muted); font-weight: 400; }
.anniv-field input,
.anniv-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fcfcfd;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.anniv-field input:focus,
.anniv-field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(244,200,75,.25);
  background: #fff;
}
.anniv-field textarea { resize: vertical; }
.anniv-form button[type="submit"] { margin-top: 8px; }
.anniv-form__err {
  margin: 12px 0 0;
  color: #c0392b;
  font-size: .92rem;
  font-weight: 500;
}
/* honeypot */
.anniv-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* aside */
.anniv-rsvp__aside {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff;
  padding: clamp(30px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.anniv-rsvp__detail ul { list-style: none; margin: 0 0 26px; padding: 0; }
.anniv-rsvp__detail li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.anniv-rsvp__detail li:first-child { padding-top: 0; }
.anniv-rsvp__detail strong { display: block; font-size: 1.05rem; }
.anniv-rsvp__detail span { color: rgba(255,255,255,.66); font-size: .92rem; }
.anniv-rsvp__donate p { color: rgba(255,255,255,.8); margin: 0 0 12px; font-size: .96rem; }

.anniv-rsvp__success { text-align: center; }
.anniv-rsvp__check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  animation: anniv-pop .6s cubic-bezier(.2,.9,.3,1.3) both;
}
.anniv-rsvp__success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: #fff;
}
.anniv-rsvp__success p { color: rgba(255,255,255,.82); line-height: 1.6; margin: 0 0 22px; }

/* =========================================================================
   7 · Donate band + footer
   ========================================================================= */
.anniv-donateband {
  background: linear-gradient(135deg, var(--orange), #d85a1c);
  padding: clamp(60px, 9vw, 100px) 0;
  text-align: center;
}
.anniv-donateband .anniv-h2 { color: #fff; }
.anniv-donateband .anniv-btn--orange {
  background: #fff; color: var(--orange-dark);
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
}

.anniv-foot {
  background: var(--navy-deeper);
  color: rgba(255,255,255,.7);
  padding: 48px 0;
  text-align: center;
}
.anniv-foot__logo {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 auto 16px;
}
.anniv-foot__meta { line-height: 1.7; margin: 0 0 10px; font-size: .95rem; }
.anniv-foot__contact a { color: var(--gold); text-decoration: none; }
.anniv-foot__contact a:hover { text-decoration: underline; }
/* Standalone-mode legal line (only rendered when the platform footer is off) */
.anniv-foot__legal {
  margin: 20px 0 0;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.anniv-foot__legal a { color: inherit; text-decoration: none; }
.anniv-foot__legal a:hover { color: rgba(255,255,255,.75); text-decoration: underline; }
.anniv-foot__sep { margin: 0 8px; }

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */
.anniv .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0ms);
}
.anniv .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .anniv-stats { grid-template-columns: repeat(2, 1fr); }
  .anniv-stations { grid-template-columns: repeat(2, 1fr); }
  .anniv-rsvp__card { grid-template-columns: 1fr; }
  .anniv-rsvp__aside { order: -1; }
}
@media (max-width: 640px) {
  .anniv-facts { grid-template-columns: 1fr; }
  .anniv-stats { grid-template-columns: 1fr; }
  .anniv-stations { grid-template-columns: 1fr; }
  .anniv-stage { height: 175vh; }
}

/* =========================================================================
   Reduced motion — kill scroll-driven + decorative animation
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .anniv-stage { height: auto; }
  .anniv-hero { position: relative; height: auto; min-height: 90vh; padding: 90px 0; }
  .anniv *,
  .anniv *::before,
  .anniv *::after {
    animation: none !important;
    transition: none !important;
  }
  .anniv .reveal { opacity: 1; transform: none; }
  .anniv-bignum .bn { opacity: 1; transform: none; }
  .anniv-hero__logo,
  .anniv-bigtitle .line,
  .anniv-eyebrow,
  .anniv-scrollcue { opacity: 1; }
  .anniv-confetti { display: none; }
}
