/* ══════════════════════════════════════════════
   INSPIRO 2026 — Premium Emerald Theme
   ══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bg:       #030f0a;
  --bg2:      #051a12;
  --surface:  rgba(10, 48, 32, .42);
  --surface2: rgba(14, 62, 42, .55);
  --lime:     #b8f06c;
  --mint:     #50d4a0;
  --gold:     #dbb567;
  --white:    #edf5e8;
  --muted:    #7b9d8a;
  --muted2:   #546e5f;
  --line:     rgba(140, 210, 160, .10);
  --glass:    rgba(140, 210, 160, .12);
  --glass-h:  rgba(140, 210, 160, .22);
  --radius:   10px;
  --mono:     'DM Mono', ui-monospace, monospace;
  --sans:     'Inter', 'Noto Sans Sinhala', system-ui, sans-serif;
  --si:       'Noto Sans Sinhala', 'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.hero, .countdown, .agenda, .guests, .schools, .closing {
  scroll-margin-top: 90px;
}
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
ol { list-style: none; padding: 0; }

/* ── Shared ── */
.wrap { width: min(1120px, 90%); margin-inline: auto; }
.label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 3px;
  color: var(--mint);
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 10px 0 0;
  line-height: 1.15;
}
.section-title span { color: var(--lime); }
.section-subtitle {
  font-family: var(--si);
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.9;
}
.dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: middle;
  margin: 0 12px;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════
   WELCOME SCREEN
   ══════════════════════════════════════════════ */
.welcome {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}
.welcome__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.welcome__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(12, 64, 44, .55) 0%, transparent 56%),
    radial-gradient(ellipse at 20% 80%, rgba(8, 50, 34, .4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(16, 60, 42, .3) 0%, transparent 50%);
  pointer-events: none;
}
.welcome__grid-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(184, 240, 108, .025) 50%, transparent 50.15%),
    linear-gradient(0deg,  transparent 49.85%, rgba(184, 240, 108, .025) 50%, transparent 50.15%);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse, #000, transparent 70%);
  pointer-events: none;
}
.welcome__content {
  position: relative; z-index: 2;
  text-align: center;
  width: min(92%, 680px);
  padding: 48px 0;
  animation: fadeUp 1s cubic-bezier(.22,1,.36,1) both;
}
.welcome__eyebrow {
  font: 500 10px/1 var(--mono);
  letter-spacing: 3.5px;
  color: var(--lime);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.welcome__line {
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime));
}
.welcome__line:last-child {
  background: linear-gradient(90deg, var(--lime), transparent);
}
.welcome__logo {
  width: min(460px, 78vw);
  height: auto;
  margin: 28px auto 10px;
  filter: drop-shadow(0 10px 30px rgba(200, 165, 60, .18));
}
.welcome__sub {
  font: 500 10px/1 var(--mono);
  letter-spacing: 4px;
  color: var(--mint);
}
.welcome__school {
  font-family: var(--si);
  font-size: 13px;
  color: var(--gold);
  margin: 10px 0 0;
}
.welcome__heading {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  margin: 22px 0 10px;
  letter-spacing: -0.8px;
  line-height: 1.25;
}
.welcome__heading em { font-style: normal; color: var(--lime); }
.welcome__copy {
  font-family: var(--si);
  font-size: 15px;
  color: rgba(200, 218, 206, .82);
  line-height: 2;
  margin-bottom: 30px;
}
.welcome__cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  border: 1px solid rgba(184, 240, 108, .5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(184, 240, 108, .15) 0%, rgba(80, 212, 160, .10) 100%);
  color: var(--lime);
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  transition: all .3s ease;
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.welcome__cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  opacity: 0;
  transition: opacity .3s ease;
}
.welcome__cta:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(184, 240, 108, .15);
}
.welcome__cta:hover::before { opacity: 1; }
.welcome__cta span, .welcome__cta svg { position: relative; z-index: 1; }
.welcome__cta:hover span, .welcome__cta:hover svg { color: #082818; }
.welcome__date {
  font: 400 10px/1 var(--mono);
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 28px;
}
.welcome__scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font: 400 9px/1 var(--mono);
  letter-spacing: 2px;
  color: var(--muted2);
  z-index: 2;
  white-space: nowrap;
}
.welcome__scroll span { color: var(--lime); margin-left: 6px; }

/* Welcome transition */
.welcome.leaving {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   SITE CONTAINER
   ══════════════════════════════════════════════ */
.site {
  display: none; opacity: 0;
  position: relative;
  transition: opacity .8s ease;
}
.site.visible { display: block; }
.site.shown   { opacity: 1; }
.site__canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 80px;
  padding: 0 max(5vw, 24px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(3, 15, 10, .78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand img {
  width: 140px; height: auto;
}
.topbar__tag {
  font: 500 9px/1 var(--mono);
  letter-spacing: 2.5px;
  color: var(--muted);
}
.topbar__nav {
  display: flex; align-items: center; gap: 8px;
}
.topbar__nav a {
  font: 500 12px/1 var(--sans);
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.topbar__nav a:hover {
  color: var(--white);
  border-color: var(--glass-h);
  background: rgba(184, 240, 108, .06);
}
.topbar__progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--lime), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding: 70px 0 60px;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 2px;
  color: var(--lime);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 2.4s ease-in-out infinite;
}
.hero__text .label { margin-top: 36px; }
.hero__title {
  font-size: clamp(50px, 8vw, 96px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -4px;
  margin: 14px 0 28px;
}
.hero__title span {
  display: block;
  font-size: .44em;
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--lime);
  margin-top: 6px;
}
.hero__desc {
  font-family: var(--si);
  font-size: 15px;
  line-height: 2.1;
  color: rgba(200, 216, 206, .78);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 36px;
}
.meta-item {
  display: flex; align-items: center; gap: 10px;
}
.meta-item__icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--glass);
  border-radius: 50%;
  color: var(--lime);
}
.meta-item span:last-child {
  display: flex; flex-direction: column; gap: 2px;
}
.meta-item small {
  font: 500 9px/1 var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.meta-item strong {
  font-size: 12px; font-weight: 500;
}

/* Hero Art */
.hero__art {
  height: 460px;
  position: relative;
  display: grid; place-items: center;
}
.hero__emblem-wrap {
  position: relative;
  width: 370px;
  height: 370px;
  display: grid; place-items: center;
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
  pointer-events: none;
}
.hero__ring--outer {
  width: 370px; height: 370px;
  border: 1.5px dashed rgba(184, 240, 108, .28);
  animation: rotate 65s linear infinite;
}
.hero__ring--inner {
  width: 295px; height: 295px;
  border: 1px dotted rgba(80, 212, 160, .24);
  animation: rotate 90s linear infinite reverse;
}
.hero__glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(80, 212, 160, .24);
  filter: blur(90px);
}
.hero__emblem {
  position: relative;
  width: 215px; height: 215px;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.5));
  z-index: 1;
}
.hero__symbol {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(184, 240, 108, .6);
  pointer-events: none;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.hero__symbol--1 { top: 34px; left: 8%; font-size: 34px; animation-delay: 0s; }
.hero__symbol--2 { top: 20%; right: 6%; font-size: 28px; animation-delay: -1.8s; }
.hero__symbol--3 { bottom: 20%; right: 6%; font-size: 20px; animation-delay: -3.5s; }
.hero__symbol--4 { bottom: 18%; left: 8%; font-size: 28px; animation-delay: -5s; }
.hero__art-label {
  position: absolute; bottom: 8px;
  font: 500 8px/1 var(--mono);
  letter-spacing: 2.5px;
  color: var(--muted2);
}

/* ══════════════════════════════════════════════
   COUNTDOWN (3D FLIP CLOCK)
   ══════════════════════════════════════════════ */
.countdown {
  position: relative; z-index: 1;
  padding: 80px 0 95px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.countdown__grid {
  display: flex; justify-content: center; gap: 18px;
  margin: 44px auto 24px;
}
.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.flip-unit__label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 2.5px;
  color: var(--muted);
}
.flip-card {
  position: relative;
  width: 124px;
  height: 112px;
  border-radius: 12px;
  perspective: 520px;
  background: #04160e;
  border: 1px solid rgba(140, 210, 160, .18);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}
.flip-card--accent {
  border-color: rgba(184, 240, 108, .36);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, .55),
    0 0 28px rgba(184, 240, 108, .09),
    inset 0 1px 0 rgba(184, 240, 108, .14);
}
.flip-card__top,
.flip-card__bottom,
.flip-card__flap-top,
.flip-card__flap-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card__top,
.flip-card__flap-top {
  top: 0;
  align-items: flex-end;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(180deg, #0b2c1e 0%, #072015 100%);
  transform-origin: center bottom;
}
.flip-card__bottom,
.flip-card__flap-bottom {
  bottom: 0;
  align-items: flex-start;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(180deg, #051810 0%, #092519 100%);
  transform-origin: center top;
}
.flip-card__top span,
.flip-card__bottom span,
.flip-card__flap-top span,
.flip-card__flap-bottom span {
  font: 600 58px/1 var(--mono);
  letter-spacing: -2px;
  color: var(--lime);
  text-shadow: 0 2px 10px rgba(184, 240, 108, .18);
  user-select: none;
}
.flip-card__top span,
.flip-card__flap-top span {
  transform: translateY(50%);
}
.flip-card__bottom span,
.flip-card__flap-bottom span {
  transform: translateY(-50%);
}
.flip-card__flap-top {
  z-index: 3;
  animation: flipTopDown .24s ease-in forwards;
}
.flip-card__flap-bottom {
  z-index: 3;
  transform: rotateX(90deg);
  animation: flipBottomDown .24s ease-out .24s forwards;
}
.flip-card__seam {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(2, 8, 5, .9);
  box-shadow: 0 1px 0 rgba(184, 240, 108, .08);
  z-index: 4;
}
.flip-card__seam::before,
.flip-card__seam::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 5px;
  height: 8px;
  border-radius: 2px;
  background: rgba(140, 210, 160, .22);
}
.flip-card__seam::before { left: 4px; }
.flip-card__seam::after { right: 4px; }

.countdown__note {
  font: 400 12px/1 var(--mono);
  color: var(--muted2);
}

/* ══════════════════════════════════════════════
   AGENDA
   ══════════════════════════════════════════════ */
.agenda {
  position: relative; z-index: 1;
  padding: 70px 0 100px;
  border-bottom: 1px solid var(--line);
}
.agenda__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 50px;
}
.agenda__badge {
  min-width: 110px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  text-align: center;
  border: 1px solid rgba(184, 240, 108, .3);
  border-radius: var(--radius);
  background: var(--surface);
}
.agenda__badge span, .agenda__badge small {
  font: 500 9px/1 var(--mono);
  letter-spacing: 2px;
  color: var(--muted);
}
.agenda__badge strong {
  font: 600 46px/1 var(--mono);
  color: var(--lime);
}
.timeline {
  max-width: 850px;
  margin: auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 100px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--lime) 0%, rgba(184, 240, 108, .06) 100%);
}
.tl {
  display: grid;
  grid-template-columns: 76px 48px 1fr;
  align-items: center;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.tl.in-view { opacity: 1; transform: none; }
.tl time {
  font: 500 12px/1 var(--mono);
  color: var(--lime);
  text-align: right;
  padding-right: 18px;
}
.tl__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid #0d3922;
  box-shadow: 0 0 0 3px rgba(184, 240, 108, .10);
  justify-self: center;
  z-index: 1;
  transition: box-shadow .25s ease;
}
.tl:hover .tl__dot {
  box-shadow: 0 0 0 5px rgba(184, 240, 108, .2);
}
.tl__card {
  min-height: 54px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--glass);
  border-radius: 8px;
  transition: all .25s ease;
}
.tl:hover .tl__card {
  transform: translateX(4px);
  border-color: var(--glass-h);
  background: var(--surface2);
}
.tl__num {
  font: 500 10px/1 var(--mono);
  color: var(--muted2);
  min-width: 20px;
}
.tl__card p {
  font-family: var(--si);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(220, 235, 224, .88);
}

/* ══════════════════════════════════════════════
   GUESTS
   ══════════════════════════════════════════════ */
.guests {
  position: relative; z-index: 1;
  padding: 75px 0 95px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.guests__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 46px auto 0;
  text-align: left;
}
.guest-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass);
  background: var(--surface);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.guest-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-h);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.guest-card--primary {
  border-color: rgba(219, 181, 103, .28);
}
.guest-card--primary:hover {
  border-color: rgba(219, 181, 103, .5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4), 0 0 32px rgba(219, 181, 103, .06);
}
.guest-card__photo {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #071f15;
}
.guest-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform .6s ease;
}
.guest-card:hover .guest-card__photo img {
  transform: scale(1.04);
}
.guest-card__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(3, 15, 10, .5) 35%, transparent 55%);
  pointer-events: none;
}
.guest-card__body { padding: 20px 22px 24px; }
.guest-card__role {
  font-family: var(--si);
  font-size: 12px;
  color: var(--mint);
  margin-bottom: 6px;
}
.guest-card--primary .guest-card__role { color: var(--gold); }
.guest-card__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.guest-card__time {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--mono);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(184, 240, 108, .06);
  border: 1px solid var(--glass);
}
.guest-card__time svg { color: var(--lime); flex-shrink: 0; }

/* ══════════════════════════════════════════════
   SCHOOLS
   ══════════════════════════════════════════════ */
.schools {
  position: relative; z-index: 1;
  padding: 75px 0 95px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.schools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
  text-align: left;
}
.school {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--glass);
  border-radius: 8px;
  transition: all .25s ease;
}
.school:hover {
  transform: translateY(-2px);
  border-color: var(--glass-h);
  background: var(--surface2);
}
.school__num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 500 10px/1 var(--mono);
  color: var(--lime);
  border: 1px solid rgba(184, 240, 108, .22);
  background: rgba(184, 240, 108, .06);
}
.school h4 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 3px;
}
.school p {
  font: 500 9px/1 var(--mono);
  letter-spacing: 1.5px;
  color: var(--mint);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   CLOSING
   ══════════════════════════════════════════════ */
.closing {
  position: relative; z-index: 1;
  padding: 0 0 90px;
}
.closing__card {
  position: relative;
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--glass);
  background: linear-gradient(130deg, rgba(12, 60, 40, .6), rgba(10, 48, 32, .5) 50%, rgba(14, 62, 42, .6));
  overflow: hidden;
}
.closing__glow {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(130px);
  opacity: .08;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
}
.closing__card > *:not(.closing__glow) { position: relative; }
.closing__heading {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 18px 0;
}
.closing__heading span { color: var(--lime); }
.closing__si {
  font-family: var(--si);
  font-size: 14px;
  color: rgba(200, 218, 206, .72);
}
.closing__date {
  font: 400 10px/1 var(--mono);
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 32px;
  line-height: 2;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  position: relative; z-index: 1;
  padding: 36px 20px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer__logos {
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
}
.footer__logos img {
  width: 68px; height: 60px;
  object-fit: contain;
}
.footer__logos img:first-child { border-radius: 50%; }
.footer__logo--wide { width: 120px !important; }
.footer__title {
  font: 500 10px/1 var(--mono);
  letter-spacing: 2.5px;
  color: rgba(200, 218, 206, .6);
  margin-bottom: 8px;
}
.footer__school {
  font-family: var(--si);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer__tag {
  font-size: 11px;
  color: var(--muted2);
  display: block;
}
.footer__top {
  display: inline-block;
  margin-top: 18px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 1.5px;
  color: var(--lime);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(184, 240, 108, .2);
  border-radius: 999px;
  transition: all .25s ease;
}
.footer__top:hover {
  background: rgba(184, 240, 108, .08);
  border-color: rgba(184, 240, 108, .45);
}

/* ══════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .6; }
}
@keyframes flipTopDown {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(-90deg); }
}
@keyframes flipBottomDown {
  0%   { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .schools__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar { height: 64px; }
  .topbar__brand img { width: 115px; }
  .topbar__tag { display: none; }
  .topbar__nav a { font-size: 11px; padding: 6px 10px; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 50px 0 40px;
    gap: 0;
  }
  .hero__art { height: 320px; grid-row: 1; }
  .hero__emblem-wrap { width: 270px; height: 270px; }
  .hero__emblem { width: 165px; height: 165px; }
  .hero__ring--outer { width: 268px; height: 268px; }
  .hero__ring--inner { width: 215px; height: 215px; }
  .hero__symbol--1 { top: 18px; left: 6%; font-size: 26px; }
  .hero__symbol--2 { top: 16%; right: 6%; font-size: 22px; }
  .hero__symbol--3 { bottom: 16%; right: 6%; font-size: 16px; }
  .hero__symbol--4 { bottom: 14%; left: 6%; font-size: 22px; }
  .hero__text .label { margin-top: 24px; }
  .hero__title { letter-spacing: -2.5px; }
  .hero__art-label { font-size: 7px; bottom: 2px; }
  .hero__art { margin-bottom: 10px; }

  .countdown { padding: 60px 0 70px; }
  .countdown__grid { gap: 8px; }
  .flip-card { width: 74px; height: 72px; border-radius: 9px; }
  .flip-card__top, .flip-card__flap-top { border-radius: 8px 8px 0 0; }
  .flip-card__bottom, .flip-card__flap-bottom { border-radius: 0 0 8px 8px; }
  .flip-card__top span, .flip-card__bottom span, .flip-card__flap-top span, .flip-card__flap-bottom span {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .flip-unit__label { font-size: 7px; letter-spacing: 1.5px; }

  .agenda, .guests, .schools { padding: 55px 0 70px; }
  .agenda__header { align-items: center; }
  .agenda__badge { min-width: 90px; padding: 12px 10px; }
  .agenda__badge strong { font-size: 38px; }

  .timeline::before { left: 70px; }
  .tl { grid-template-columns: 54px 36px 1fr; }
  .tl time { font-size: 11px; padding-right: 10px; }
  .tl__card { padding: 11px 12px; gap: 10px; }
  .tl__card p { font-size: 12px; }
  .tl__num { font-size: 9px; min-width: 16px; }

  .guests__grid { grid-template-columns: 1fr; gap: 20px; max-width: 400px; }
  .schools__grid { grid-template-columns: 1fr; gap: 10px; }

  .closing__card { padding: 55px 16px; }
}

@media (max-width: 390px) {
  .welcome__logo { width: 72vw; }
  .welcome__copy { font-size: 13px; }
  .hero__desc { font-size: 14px; }
  .hero__meta { gap: 14px; }
  .hero__meta strong { font-size: 11px; }
  .tl { grid-template-columns: 46px 28px 1fr; }
  .timeline::before { left: 60px; }
  .tl__card p { font-size: 11px; }
  .tl__num { display: none; }
  .flip-card { width: 64px; height: 64px; }
  .flip-card__top span, .flip-card__bottom span, .flip-card__flap-top span, .flip-card__flap-bottom span {
    font-size: 30px;
  }
  .flip-unit__label { font-size: 6px; }
}

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