:root {
  --bg-green: #63ca57;
  --bg-green-deep: #51b449;
  --sky-blue: #7fd4ff;
  --sky-blue-strong: #50b9ee;
  --soft-yellow: #edf3a9;
  --ink: #163423;
  --card: #f8ffd6;
  --shadow-strong: 0 12px 0 rgba(17, 63, 32, 0.25);
  --shadow-soft: 0 18px 35px rgba(12, 46, 26, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 12%, #7bde6d 0%, var(--bg-green) 40%, var(--bg-green-deep) 100%);
  line-height: 1.55;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.2), transparent 35%),
    radial-gradient(circle at 6% 65%, rgba(255, 255, 255, 0.15), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 35%);
}

main,
.hero,
.footer {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, rgba(237, 243, 169, 0.96), rgba(248, 255, 214, 0.95));
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(80, 185, 238, 0.42);
  box-shadow: 0 8px 18px rgba(17, 63, 32, 0.12);
}

.topbar-inner {
  width: min(1080px, calc(100% - 1rem));
  margin-inline: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #244e35;
}

.topbar-countdown {
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.topbar-countdown span {
  color: #249dd8;
  font-weight: 800;
}

.hero {
  padding: 1.5rem 0 2rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.85rem;
  background: rgba(248, 255, 214, 0.8);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wordmark {
  margin: 1.1rem 0 0.8rem;
  line-height: 0.88;
}

.wordmark .line {
  display: block;
  font-family: "Bungee", "Impact", sans-serif;
  letter-spacing: 0.03em;
  text-shadow: 0 7px 0 rgba(14, 61, 27, 0.22);
}

.wordmark .tech,
.wordmark .year {
  color: var(--sky-blue);
  font-size: clamp(3.5rem, 12vw, 7.2rem);
}

.wordmark .unity {
  color: var(--soft-yellow);
  font-size: clamp(4.8rem, 16vw, 9.2rem);
}

.event-date {
  margin: 0.75rem auto 0;
  display: inline-block;
  font-size: clamp(1.4rem, 3.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(14, 61, 27, 0.28);
  border: 2px solid rgba(237, 243, 169, 0.65);
  border-radius: 14px;
  padding: 0.35rem 0.85rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.tagline {
  margin: 0.8rem auto 0;
  max-width: 56ch;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 700;
}

.subtagline {
  margin: 0.45rem auto 0;
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-rsvp-wrap {
  margin-top: 1rem;
}

.countdown-status {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions,
.location-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sky-blue);
  color: #0e3851;
  box-shadow: 0 6px 0 rgba(27, 111, 147, 0.35);
}

.btn-secondary {
  background: #f7ffcf;
  color: #314f30;
  border-color: rgba(49, 79, 48, 0.16);
}

.btn-rsvp {
  background: linear-gradient(120deg, #7dd8ff, #2ea4ff 45%, #66c6ff);
  color: #fff;
  box-shadow: 0 8px 0 rgba(22, 79, 130, 0.38), 0 0 16px rgba(85, 209, 255, 0.5);
  border-color: rgba(172, 237, 255, 0.85);
}

.btn-rsvp:hover {
  background: linear-gradient(120deg, #94e0ff, #35adff 45%, #78cfff);
}

.btn-rsvp-hero {
  position: relative;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  padding: 1.05rem 1.8rem;
  border-width: 3px;
  box-shadow: 0 10px 0 rgba(22, 79, 130, 0.42), 0 0 26px rgba(85, 209, 255, 0.68);
}

.btn-rsvp-hero::after {
  content: "✦";
  position: absolute;
  top: -8px;
  right: -8px;
  color: #fff8b5;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255, 246, 170, 0.95);
  animation: sparkle 1.8s ease-in-out infinite;
}

@keyframes sparkle {
  0% { transform: scale(0.85) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.18) rotate(20deg); opacity: 1; }
  100% { transform: scale(0.85) rotate(0deg); opacity: 0.7; }
}

.panel {
  margin: 1rem auto;
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.6vw, 2rem);
  background: linear-gradient(165deg, rgba(248, 255, 214, 0.97), rgba(245, 255, 196, 0.96));
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(22, 52, 35, 0.08);
}

.panel h2 {
  margin: 0;
  font-family: "Bungee", "Impact", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  color: #3f9fd0;
  letter-spacing: 0.02em;
}

.panel p {
  margin-bottom: 0;
}

.chips {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.chip {
  background: rgba(127, 212, 255, 0.2);
  border: 1px solid rgba(63, 159, 208, 0.35);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.83rem;
  padding: 0.34rem 0.65rem;
}

.story-photo {
  margin: 1rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(22, 52, 35, 0.14);
  box-shadow: 0 10px 22px rgba(12, 46, 26, 0.14);
}

.story-photo img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.story-photo-contain img {
  max-height: none;
  object-fit: contain;
  background: rgba(22, 52, 35, 0.06);
}

.timeline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.timeline li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 1.1rem;
  border-left: 6px solid rgba(80, 185, 238, 0.7);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 10px;
}

.timeline h3 {
  margin: 0;
  font-size: 1.04rem;
}

.timeline p {
  margin-top: 0.4rem;
}

.legacy-panel {
  background: linear-gradient(165deg, rgba(238, 248, 181, 0.97), rgba(245, 255, 210, 0.96));
}

.legacy-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.legacy-card {
  margin: 0;
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.63);
  border: 1px solid rgba(22, 52, 35, 0.1);
}

.legacy-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #2d6d89;
}

.legacy-value {
  margin: 0.4rem 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.25;
  font-weight: 800;
}

.legacy-note {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.legacy-subhead {
  margin-top: 1rem;
  font-weight: 800;
}

.org-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.org-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(80, 185, 238, 0.18);
  border: 1px solid rgba(80, 185, 238, 0.42);
  color: #22556b;
}

.speakers-panel {
  background: linear-gradient(165deg, rgba(232, 249, 207, 0.97), rgba(247, 255, 218, 0.96));
}

.speaker-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.speaker-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(22, 52, 35, 0.12);
  box-shadow: 0 8px 18px rgba(12, 46, 26, 0.1);
}

.speaker-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.speaker-card figcaption {
  padding: 0.65rem 0.7rem 0.75rem;
  line-height: 1.25;
}

.speaker-card strong {
  display: block;
  font-size: 0.93rem;
}

.speaker-card span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #2f657d;
  font-weight: 700;
}

.media-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.media-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.address {
  font-weight: 800;
  color: #2e6b3e;
}

.map-frame {
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(22, 52, 35, 0.14);
  box-shadow: 0 10px 22px rgba(12, 46, 26, 0.14);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.footer {
  padding: 1.2rem 0 2rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .topbar-inner {
    min-height: 42px;
    padding: 0.25rem 0.2rem;
    justify-content: center;
  }

  .topbar-countdown {
    font-size: 0.8rem;
  }

  .legacy-stats {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 1.2rem;
  }

  .timeline li {
    padding-left: 0.85rem;
  }
}

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
