/* =========================================================
   TOP 30 UNDER 30 - Class of 2026
   Theme: dark event-night, single teal accent (brand).
   Shape system: pill for interactive, 14px radius for tiles.
   Built mobile-first; wider layouts layer on at 640px+.
   ========================================================= */

:root {
  --bg: #0a1519;
  --bg-2: #0d1c22;
  --surface: #11242c;
  --surface-2: #16303a;
  --line: rgba(214, 236, 242, 0.1);
  --text: #eef7f9;
  --muted: #a3bfc8;
  --accent: #4cb9cf;      /* buttons */
  --accent-bar: #2e7d92;  /* honoree name bars, program-style */
  --accent-ink: #06232b;  /* text on accent */
  --accent-soft: #83d5e6; /* accent-colored text on dark */
  --radius: 14px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #63c8dc; }
.btn-ghost { border-color: rgba(214, 236, 242, 0.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- top strip ---------- */
.top-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  max-width: 1140px; margin: 0 auto;
}
.strip-item {
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.strip-item:hover { transform: translateY(-2px); }
.strip-item.tile {
  background: #f7f5f0; border-radius: 10px; padding: 6px 12px;
  height: 54px; min-width: 96px;
}
.strip-item.tile img { max-height: 42px; max-width: 130px; object-fit: contain; }
.strip-item.bare img { height: 34px; width: auto; }
@media (prefers-reduced-motion: reduce) {
  .strip-item { transition: none; }
  .strip-item:hover { transform: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: 26px 16px 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(ellipse 70% 55% at 50% 30%, #10333d 0%, var(--bg) 70%);
}
.hero-lockup {
  width: min(78vw, 400px); height: auto;
}
.hero-meta {
  margin-top: 26px; font-size: 1.06rem; color: var(--muted); line-height: 1.7;
}
.hero-meta strong { color: var(--text); font-weight: 600; }
.hero-ctas {
  margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  width: 100%;
}

/* ---------- countdown strip ---------- */
.countdown {
  background: var(--bg-2); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 28px 0;
}
.countdown .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 20px 28px; flex-wrap: wrap; text-align: center;
}
.countdown-label { font-size: 1.05rem; color: var(--muted); }
.countdown-label strong { color: var(--text); }
.timer { display: flex; gap: 10px; }
.timer .unit {
  min-width: 70px; text-align: center; padding: 11px 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.timer .num {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.timer .lab {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

/* ---------- section scaffolding ---------- */
section { padding: 64px 0; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 {
  font-size: clamp(1.7rem, 5.4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.12;
}
.section-head .intro { margin-top: 18px; text-align: left; }
.section-head .intro p { color: var(--muted); font-size: 1.0rem; margin-bottom: 12px; }
.tap-hint { margin-top: 6px; color: var(--accent-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- class grid: 3 per row, program-style ---------- */
.class-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.class-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 900px; margin: 0 auto;
}
.honoree {
  display: block; width: 100%; text-align: left; border: 1px solid var(--line);
  background: var(--surface); font: inherit; color: inherit; cursor: pointer;
  border-radius: 10px; overflow: hidden; padding: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.honoree:hover, .honoree:focus-visible { transform: translateY(-4px); border-color: rgba(76, 185, 207, 0.6); }
.honoree:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.honoree .photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.honoree .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.honoree:hover .photo img { transform: scale(1.045); }
.honoree .photo .fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: var(--accent-soft);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.honoree .meta {
  padding: 8px 9px 10px; background: var(--accent-bar);
  min-height: 64px;
}
.honoree .meta .name { font-weight: 700; font-size: 0.82rem; line-height: 1.2; color: #ffffff; }
.honoree .meta .co { color: rgba(255, 255, 255, 0.85); font-size: 0.7rem; margin-top: 2px; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) {
  .honoree, .honoree .photo img { transition: none; }
  .honoree:hover { transform: none; }
  .honoree:hover .photo img { transform: none; }
}

/* ---------- Q&A modal ---------- */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(5, 13, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  width: 100%; height: 100%; overflow-y: auto;
  padding: 20px 18px 40px;
  overscroll-behavior: contain;
}
.modal-close {
  position: sticky; top: 0; float: right; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.05rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent-soft); }
.modal-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; padding-right: 52px; }
.modal-head img {
  width: 84px; height: 96px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line);
}
.modal-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.modal-role { color: var(--accent-soft); font-size: 0.92rem; font-weight: 600; margin-top: 4px; line-height: 1.35; }
.modal-body { max-width: 640px; }
.modal-body .qa { padding: 18px 0; border-top: 1px solid var(--line); }
.modal-body .qa:first-child { border-top: 0; margin-top: 10px; }
.modal-body .q {
  color: var(--accent-soft); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; line-height: 1.45;
}
.modal-body .a { margin-top: 8px; color: var(--text); font-size: 0.98rem; }
.modal-body .a p { margin-bottom: 10px; color: #d5e5ea; }
.modal-body .a p:last-child { margin-bottom: 0; }
.modal-links { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.follow-label { font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; }
.follow-row { display: flex; flex-wrap: wrap; gap: 10px; }
.follow-pill {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(214, 236, 242, 0.28);
  font-size: 0.9rem; font-weight: 600; color: var(--accent-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.follow-pill:hover { border-color: var(--accent); background: rgba(76, 185, 207, 0.12); }
@media (prefers-reduced-motion: reduce) {
  .follow-pill { transition: none; }
}

/* ---------- the night (timeline + credits) ---------- */
.rundown { border-top: 1px solid var(--line); }
.rundown .step { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rundown .time {
  color: var(--accent-soft); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.rundown h3 { font-size: 1.35rem; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; }
.rundown p { color: var(--muted); margin-top: 6px; font-size: 0.97rem; max-width: 60ch; }

.credits {
  margin-top: 44px; display: flex; flex-direction: column; gap: 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.credit { display: flex; align-items: center; gap: 16px; }
.credit img {
  height: 54px; width: 54px; object-fit: contain; border-radius: 10px;
  background: #f6f3ec; padding: 4px; flex: none;
}
.credit .role {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.credit .who { font-weight: 700; font-size: 1.02rem; margin-top: 2px; }

/* ---------- sponsors ---------- */
.tier { margin-bottom: 38px; }
.tier:last-child { margin-bottom: 0; }
.tier h3 { font-size: 1.0rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-tile {
  background: #f7f5f0; border-radius: var(--radius);
  height: 84px; flex: 1 1 150px; max-width: 260px;
  display: flex; align-items: center; justify-content: center; padding: 12px 20px;
  transition: transform 0.2s ease;
}
a.logo-tile:hover { transform: translateY(-3px); }
.logo-tile img { max-height: 60px; max-width: 100%; object-fit: contain; }
.tier-title .logo-tile { height: 104px; flex-basis: 200px; max-width: 320px; }
.tier-title .logo-tile img { max-height: 80px; }
@media (prefers-reduced-motion: reduce) {
  .logo-tile { transition: none; }
  a.logo-tile:hover { transform: none; }
}

/* ---------- company wall ---------- */
.company-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.company-tile {
  background: #f7f5f0; border-radius: 10px; height: 76px;
  display: flex; align-items: center; justify-content: center; padding: 10px 14px;
  transition: transform 0.2s ease;
}
a.company-tile:hover { transform: translateY(-3px); }
.company-tile img { max-height: 52px; max-width: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .company-tile { transition: none; }
  a.company-tile:hover { transform: none; }
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 40px 0 48px;
  background: var(--bg);
}
footer .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.foot-logo { height: 30px; width: auto; }
footer .fine { color: var(--muted); font-size: 0.92rem; max-width: 60ch; }
footer .fine a { color: var(--accent-soft); }
footer .fine a:hover { text-decoration: underline; }

/* =========================================================
   WIDER SCREENS
   ========================================================= */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  section { padding: 88px 0; }
  .top-strip { padding: 16px 24px; }
  .strip-item.tile { height: 64px; min-width: 140px; padding: 8px 18px; }
  .strip-item.tile img { max-height: 48px; max-width: 170px; }
  .strip-item.bare img { height: 44px; }
  .hero { padding: 36px 24px 72px; }
  .hero-lockup { width: min(52vw, 440px); }
  .hero-ctas .btn { min-width: 200px; }
  .countdown .wrap { justify-content: space-between; text-align: left; }
  .timer .unit { min-width: 84px; padding: 13px 8px; }
  .timer .num { font-size: 1.9rem; }
  .class-grid { gap: 18px; }
  .honoree { border-radius: var(--radius); }
  .honoree .meta { padding: 12px 14px 14px; min-height: 74px; }
  .honoree .meta .name { font-size: 1.0rem; }
  .honoree .meta .co { font-size: 0.82rem; margin-top: 3px; }
  .modal {
    height: auto; max-height: 88vh; width: min(94vw, 720px);
    border-radius: var(--radius); padding: 26px 30px 44px;
  }
  .modal-head img { width: 100px; height: 116px; }
  .modal-name { font-size: 1.55rem; }
  .rundown { display: grid; grid-template-columns: repeat(3, 1fr); }
  .rundown .step { padding: 34px 30px 12px 0; border-bottom: 0; }
  .rundown .step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
  .rundown p { max-width: 30ch; }
  .credits { flex-direction: row; flex-wrap: wrap; gap: 36px; padding: 24px 32px; }
  .credit + .credit { padding-left: 36px; border-left: 1px solid var(--line); }
  .company-wall { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
  .company-tile { height: 92px; }
  .company-tile img { max-height: 62px; }
  footer .wrap { flex-direction: row; justify-content: space-between; text-align: left; }
}
