:root {
  color-scheme: light;
  --blue-950: #031c61;
  --blue-800: #073ba8;
  --blue-600: #0a64ed;
  --cyan: #40d7ff;
  --red: #ef2b2d;
  --yellow: #ffd528;
  --ink: #102252;
  --muted: #5e6d91;
  --paper: #ffffff;
  --cloud: #eef7ff;
  --shadow: 0 22px 60px rgba(3, 28, 97, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 4%, rgba(64, 215, 255, .45), transparent 23rem),
    linear-gradient(180deg, #0877eb 0 30rem, var(--cloud) 30rem 100%);
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.speed-lines {
  position: absolute;
  inset: 0 0 auto;
  height: 31rem;
  overflow: hidden;
  pointer-events: none;
  background: repeating-linear-gradient(155deg, transparent 0 42px, rgba(255,255,255,.08) 43px 46px, transparent 47px 83px);
}
main { position: relative; width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { position: relative; padding: 70px 20px 46px; color: white; text-align: center; }
.eyebrow { display: inline-block; padding: 7px 14px; border: 2px solid rgba(255,255,255,.65); border-radius: 999px; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 900; }
h1 { margin: 20px 0 12px; font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: .92; letter-spacing: -.055em; text-transform: uppercase; text-shadow: 0 5px 0 var(--blue-950); }
h1 span { display: inline-block; color: var(--yellow); transform: rotate(-4deg); text-shadow: 0 5px 0 #9b4600; }
.hero-copy { max-width: 620px; margin: 0 auto; font-size: clamp(1.05rem, 2.7vw, 1.35rem); font-weight: 700; }
.hero-actions { position: relative; z-index: 2; display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.hero-actions a { min-width: 170px; padding: 13px 18px; border: 2px solid white; border-radius: 999px; text-decoration: none; font-weight: 900; transition: transform .16s, background .16s; }
.hero-actions a:first-child { color: var(--blue-950); background: var(--yellow); border-color: var(--yellow); box-shadow: 0 5px 0 #9b6100; }
.hero-actions a:last-child { color: white; background: rgba(3,28,97,.22); }
.hero-actions a:hover { transform: translateY(-2px); }
.rings { position: absolute; inset: 42px 0 auto; pointer-events: none; }
.rings i { position: absolute; display: block; width: 34px; aspect-ratio: 1; border: 7px solid var(--yellow); border-radius: 50%; box-shadow: 0 3px 0 #a96600; }
.rings i:nth-child(1) { left: 3%; top: 80px; transform: rotateY(55deg); }
.rings i:nth-child(2) { right: 8%; top: 20px; transform: scale(.7) rotateY(45deg); }
.rings i:nth-child(3) { right: 1%; top: 180px; transform: scale(1.2) rotateY(58deg); }
.countdown-panel { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(420px, 1.2fr); gap: 26px; align-items: center; margin: 0 auto 34px; padding: 22px 26px; border: 3px solid var(--yellow); border-radius: 24px; color: white; background: linear-gradient(120deg, var(--blue-950), #0a4fc8); box-shadow: 0 10px 0 #021544, var(--shadow); }
.countdown-copy span { display: block; color: var(--yellow); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 950; }
.countdown-copy strong { display: block; margin-top: 5px; line-height: 1.25; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.countdown-grid div { padding: 10px 5px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.09); text-align: center; }
.countdown-grid b { display: block; color: var(--yellow); font-size: clamp(1.4rem, 4vw, 2rem); font-variant-numeric: tabular-nums; line-height: 1; }
.countdown-grid small { display: block; margin-top: 5px; color: #d8e9ff; text-transform: uppercase; letter-spacing: .09em; font-size: .58rem; font-weight: 850; }
.invite-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr); gap: 28px; align-items: center; }
.flyer-card, .details-card, #rsvp-form, .success-panel { background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow); }
.flyer-card { border-radius: 28px; padding: 12px; transform: rotate(-1deg); }
.flyer-window { aspect-ratio: 1060 / 1484; overflow: hidden; border-radius: 19px; background: #168be9; }
.flyer-window img { display: block; width: 100%; height: 100%; object-fit: contain; }
.details-card { border-radius: 30px; padding: clamp(24px, 5vw, 48px); }
.detail-row { display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid #dce8f6; }
.detail-icon { display: grid; place-items: center; width: 58px; aspect-ratio: 1; border-radius: 17px; color: white; background: linear-gradient(145deg, var(--blue-600), var(--blue-950)); font-size: 1.15rem; font-weight: 1000; box-shadow: 0 6px 0 #02184e; }
.detail-icon.pin { color: var(--red); background: #fff1df; box-shadow: 0 6px 0 #f4c48d; font-size: 1.7rem; }
.detail-row strong { display: block; font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
.detail-row span { display: block; margin-top: 5px; color: var(--muted); line-height: 1.5; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.quick-actions a, .calendar-link, .update-link { display: block; border-radius: 14px; padding: 14px 16px; text-align: center; text-decoration: none; font-weight: 850; }
.quick-actions a:first-child, .calendar-link { color: white; background: var(--blue-600); }
.quick-actions a:last-child, .update-link { color: var(--blue-800); background: #e6f4ff; }
.waiver-callout { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 16px; padding: 17px 18px; border: 2px solid #f0c500; border-radius: 16px; background: #fff8cf; }
.waiver-callout strong, .waiver-callout span { display: block; }
.waiver-callout strong { color: var(--blue-950); font-size: 1rem; }
.waiver-callout span { margin-top: 3px; color: #715c00; font-size: .82rem; line-height: 1.4; }
.waiver-callout a, .waiver-link { border-radius: 12px; color: white; background: var(--blue-950); text-decoration: none; font-weight: 900; }
.waiver-callout a { padding: 12px 14px; white-space: nowrap; }
.waiver-link { display: block; padding: 14px 16px; text-align: center; }
.mission-plan { position: relative; overflow: hidden; margin-top: 72px; padding: clamp(28px, 5vw, 48px); border: 3px solid var(--yellow); border-radius: 30px; color: white; background: linear-gradient(145deg, #021750, var(--blue-800)); box-shadow: 0 12px 0 #011039, var(--shadow); }
.mission-plan::after { position: absolute; right: -70px; bottom: -90px; width: 230px; aspect-ratio: 1; border: 34px solid rgba(255,213,40,.12); border-radius: 50%; content: ""; }
.mission-heading { position: relative; z-index: 2; max-width: 690px; }
.mission-heading > span { color: var(--yellow); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 950; }
.mission-heading h2 { margin: 5px 0 8px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .98; text-transform: uppercase; }
.mission-heading p { margin: 0; color: #d8e9ff; }
.mission-track { position: absolute; z-index: 0; top: 190px; left: 15%; right: 15%; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 22px); }
.mission-track i { position: absolute; top: 50%; width: 22px; aspect-ratio: 1; border: 5px solid var(--yellow); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 3px 0 #9b6100; }
.mission-track i:nth-child(1) { left: 0; }
.mission-track i:nth-child(2) { left: 50%; }
.mission-track i:nth-child(3) { left: 100%; }
.mission-steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 0; padding: 0; list-style: none; }
.mission-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; min-width: 0; padding: 20px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.mission-steps li > b { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--blue-950); background: var(--yellow); box-shadow: 0 4px 0 #9b6100; font-size: 1.2rem; }
.mission-steps span { display: block; color: #8eeaff; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; font-weight: 900; }
.mission-steps strong { display: block; margin-top: 3px; font-size: 1.05rem; }
.mission-steps p { margin: 8px 0 12px; color: #d8e9ff; font-size: .8rem; line-height: 1.45; }
.mission-steps a { color: var(--yellow); font-size: .82rem; font-weight: 900; }
.rsvp-section { padding: 88px 0 72px; }
.section-heading { max-width: 660px; margin: 0 auto 30px; text-align: center; }
.section-heading span { color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 950; }
.section-heading h2, .success-panel h2 { margin: 4px 0 8px; color: var(--blue-950); font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1; text-transform: uppercase; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
#rsvp-form, .success-panel { max-width: 850px; margin: 0 auto; border-radius: 28px; padding: clamp(22px, 5vw, 46px); }
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
legend { margin-bottom: 14px; font-weight: 900; font-size: 1.12rem; }
.attendance-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.attendance-options label { position: relative; cursor: pointer; }
.attendance-options input { position: absolute; opacity: 0; }
.attendance-options span { display: grid; min-height: 90px; place-content: center; padding: 15px; border: 2px solid #cbdcf0; border-radius: 16px; text-align: center; font-weight: 900; transition: .18s ease; }
.attendance-options small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.attendance-options input:checked + span { color: white; border-color: var(--blue-600); background: linear-gradient(145deg, var(--blue-600), var(--blue-800)); transform: translateY(-2px); box-shadow: 0 6px 0 var(--blue-950); }
.attendance-options input:checked + span small { color: #d7efff; }
.attendance-options input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid label { color: var(--ink); font-weight: 800; }
.form-grid label > span { color: var(--muted); font-weight: 500; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: 8px; border: 2px solid #cbdcf0; border-radius: 13px; padding: 13px 14px; color: var(--ink); background: white; outline: none; transition: border .15s, box-shadow .15s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(10,100,237,.12); }
.full-width { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-message { min-height: 24px; margin: 18px 0 4px; color: #a21c1c; font-weight: 750; }
.submit-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 16px; padding: 16px 22px; color: white; background: linear-gradient(90deg, var(--red), #ff6338); box-shadow: 0 7px 0 #9b1515; cursor: pointer; font-size: 1.1rem; font-weight: 950; transition: .15s; }
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 9px 0 #9b1515; }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.submit-button b { font-size: 1.5rem; }
.privacy-note { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: .78rem; }
.success-panel { text-align: center; }
.success-ring { display: grid; width: 74px; aspect-ratio: 1; margin: 0 auto 20px; place-items: center; border: 10px solid var(--yellow); border-radius: 50%; color: var(--blue-800); font-size: 2rem; font-weight: 1000; }
.success-panel p { max-width: 560px; margin: 0 auto 24px; color: var(--muted); font-size: 1.06rem; }
.success-panel a { max-width: 520px; margin: 10px auto; }
footer { padding: 24px; color: #d6eaff; background: var(--blue-950); text-align: center; font-size: .82rem; font-weight: 750; }
.mobile-dock { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: 76px; background: linear-gradient(180deg, #0877eb 0 31rem, var(--cloud) 31rem 100%); }
  main { width: min(100% - 22px, 620px); }
  .hero { padding: 48px 8px 34px; }
  .hero-actions { flex-direction: column; width: min(280px, 100%); margin: 22px auto 0; }
  .hero-actions a { padding: 12px 16px; }
  .countdown-panel { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .countdown-copy { text-align: center; }
  .countdown-grid { gap: 6px; }
  .countdown-grid div { padding: 9px 2px; border-radius: 11px; }
  .invite-grid { grid-template-columns: 1fr; gap: 18px; }
  .flyer-card { order: 1; }
  .details-card { order: 2; padding: 22px; }
  .rsvp-section { padding: 62px 0 52px; }
  .attendance-options, .form-grid { grid-template-columns: 1fr; }
  .attendance-options span { min-height: 70px; }
  .full-width { grid-column: auto; }
  .quick-actions { grid-template-columns: 1fr; }
  .waiver-callout { grid-template-columns: 1fr; }
  .waiver-callout a { text-align: center; }
  .mission-plan { margin-top: 56px; padding: 26px 20px; }
  .mission-track { display: none; }
  .mission-steps { grid-template-columns: 1fr; margin-top: 24px; }
  .mission-steps li { grid-template-columns: 42px 1fr; }
  .mobile-dock { position: fixed; z-index: 50; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 8px; padding: 8px; border: 1px solid rgba(255,255,255,.65); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 12px 35px rgba(3,28,97,.3); backdrop-filter: blur(14px); }
  .mobile-dock a { padding: 13px 12px; border-radius: 12px; text-align: center; text-decoration: none; font-weight: 950; }
  .mobile-dock a:first-child { color: white; background: linear-gradient(90deg, var(--red), #ff6338); }
  .mobile-dock a:last-child { color: var(--blue-950); background: #e8f4ff; }
  .rings i:nth-child(3) { display: none; }
}

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