/* =====================================================================
   The Worlds Top — Design System (theme.css)
   Patriotic + outer-space. Owned by the Design agent.
   Loaded on every page via <link rel="stylesheet" href="css/theme.css">.
   Fonts: Oswald (headings) + Inter (body), loaded via <link> in page head.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Custom properties / palette
   --------------------------------------------------------------------- */
:root {
  /* Space base */
  --space-900: #05060f; /* near-black navy, page base */
  --space-800: #0b1026;
  --space-700: #141a3a;

  /* Brand blue / red */
  --wt-blue: #1f2d8a;        /* logo blue */
  --wt-blue-bright: #3a57e8; /* links / accents / large headings + icons */
  --wt-blue-accent: #7e96ff; /* lighter brand blue for small UI text (AA on dark) */
  --wt-red: #d32030;         /* logo red */
  --wt-red-bright: #ff3b4e;

  /* Neutrals / text */
  --star: #f5f7ff;
  --text: #eef1ff;
  --text-dim: #9aa3c7;

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-hover: rgba(255, 255, 255, 0.07);

  /* Type */
  --font-head: "Oswald", "Saira Condensed", "Arial Narrow", system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1120px;
  --nav-h: 68px;

  /* Effects */
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 3px rgba(58, 87, 232, 0.55);

  /* Focus ring color */
  --focus: #8aa0ff;

  /* Motion */
  --t-fast: 120ms;
  --t: 200ms;
}

/* ---------------------------------------------------------------------
   2. Modern reset / base
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--space-900);
  /* Midnight radial gradient — lighter navy center -> near-black edges.
     NOT pure black so the logo's dark-blue wordmark keeps contrast. */
  background-image:
    radial-gradient(
      120% 80% at 50% -10%,
      var(--space-700) 0%,
      var(--space-800) 38%,
      var(--space-900) 78%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Page content sits above the starfield (z-index 0 from starfield). */
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--wt-blue-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------
   3. Accessibility helpers
   --------------------------------------------------------------------- */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus ring everywhere */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 1000;
  background: var(--wt-blue-bright);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: top var(--t);
}
.skip-link:focus {
  top: var(--sp-4);
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   4. Layout primitives
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

main {
  flex: 1 0 auto;
  display: block;
  width: 100%;
}

.section {
  padding-block: var(--sp-7);
}

.section--tight {
  padding-block: var(--sp-6);
}

/* ---------------------------------------------------------------------
   5. Typography scale
   --------------------------------------------------------------------- */
.h1,
h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.h2,
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
}

.h3,
h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--text-dim);
  max-width: 60ch;
}

.text-dim {
  color: var(--text-dim);
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  /* Lighter brand blue so small/visible label text clears WCAG AA on the dark base */
  color: var(--wt-blue-accent);
}

/* Section heading with a small star/triangle accent */
.section-heading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.section-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--wt-red);
  filter: drop-shadow(0 0 6px rgba(211, 32, 48, 0.6));
}

.section-heading .accent-star {
  color: var(--wt-blue-bright);
}

/* ---------------------------------------------------------------------
   6. Top navigation bar
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(5, 6, 15, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--nav-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
}

.nav__brand img {
  height: 38px;
  width: auto;
  /* Soft glow so the dark-blue wordmark reads on the dark bar */
  filter: drop-shadow(0 0 10px rgba(245, 247, 255, 0.25));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav__link:hover {
  background: var(--card-hover);
  text-decoration: none;
}

.nav__link.is-active,
.nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(58, 87, 232, 0.28), rgba(58, 87, 232, 0.12));
  box-shadow: inset 0 -2px 0 var(--wt-red-bright);
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.nav__toggle:hover {
  background: var(--card-hover);
}

.nav__toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background var(--t-fast);
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), top var(--t), bottom var(--t);
}

.nav__toggle-bars::before {
  top: -7px;
}
.nav__toggle-bars::after {
  bottom: -7px;
}

/* Open state animates to an X */
.nav__toggle[aria-expanded="true"] .nav__toggle-bars {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  bottom: 0;
  transform: rotate(-45deg);
}

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--sp-5) var(--sp-4);
    background: rgba(5, 6, 15, 0.97);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-2);

    /* Collapsed by default; revealed via [data-open] from site.js */
    display: none;
  }

  .nav__links[data-open="true"] {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding-block: var(--sp-3);
    font-size: 1.05rem;
  }
}

/* ---------------------------------------------------------------------
   7. Footer
   --------------------------------------------------------------------- */
.site-footer {
  flex: 0 0 auto;
  margin-top: var(--sp-8);
  border-top: 1px solid var(--card-border);
  background: rgba(5, 6, 15, 0.6);
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer__mark {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  font-size: 0.95rem;
}

.footer__dba {
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------
   8. Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t), border-color var(--t),
    box-shadow var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--wt-blue-bright), var(--wt-blue));
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 45, 138, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4f6bff, var(--wt-blue-bright));
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--wt-blue-bright);
}

.btn-red {
  /* Top stop kept at --wt-red (#d32030, 5.23:1 with #fff) and darker below so
     white label text clears WCAG AA (4.5:1) across the whole fill. */
  background: linear-gradient(180deg, var(--wt-red), #ad1a27);
  color: #fff;
  box-shadow: 0 6px 18px rgba(211, 32, 48, 0.4);
}

.btn-sm {
  /* Keep a 44px touch-target floor (contract: touch targets >= 44px) with a
     more compact label/padding for the small inline buttons. */
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------------------------------------------------------------------
   9. Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
  transition: border-color var(--t), background var(--t), transform var(--t);
}

a.card,
.card--link {
  display: block;
  color: inherit;
}

a.card:hover,
.card--link:hover {
  border-color: var(--wt-blue-bright);
  background: var(--card-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

.card__title {
  font-family: var(--font-head);
  margin-bottom: var(--sp-2);
}

/* Event / flyer card */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.event-card:hover {
  border-color: var(--card-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.event-card__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--space-800);
  cursor: zoom-in;
  border-radius: 0;
}

.event-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: opacity var(--t);
}

.event-card__media:hover img {
  opacity: 0.92;
}

.event-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
}

.event-card__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.15;
}

.event-card__subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.event-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: 0.92rem;
  color: var(--text-dim);
}

.event-card__meta strong {
  color: var(--text);
  font-weight: 600;
}

.event-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}

/* Responsive card grid */
.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ---------------------------------------------------------------------
   10. Badge pills
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge-upcoming {
  color: #8be0a3;
  background: rgba(46, 160, 88, 0.16);
  border-color: rgba(46, 160, 88, 0.4);
}

.badge-past {
  color: var(--text-dim);
  background: rgba(154, 163, 199, 0.12);
  border-color: rgba(154, 163, 199, 0.28);
}

.badge-active {
  color: #9fd0ff;
  background: rgba(58, 87, 232, 0.18);
  border-color: rgba(58, 87, 232, 0.45);
}

/* ---------------------------------------------------------------------
   11. Search input
   --------------------------------------------------------------------- */
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.search__icon {
  position: absolute;
  left: var(--sp-4);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

.search input,
.search__input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem 0.6rem 2.85rem;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.search input::placeholder,
.search__input::placeholder {
  color: var(--text-dim);
}

.search input:focus-visible,
.search__input:focus-visible {
  outline: none;
  border-color: var(--wt-blue-bright);
  background: var(--card-hover);
  box-shadow: var(--ring);
}

/* Generic form field */
.field {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
}

.field:focus-visible {
  outline: none;
  border-color: var(--wt-blue-bright);
  box-shadow: var(--ring);
}

/* ---------------------------------------------------------------------
   12. Registry table  (sticky header, zebra rows, responsive stacked cards)
   --------------------------------------------------------------------- */
.registry-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.registry-count {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.registry-wrap {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 70vh;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.registry-table caption {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.registry-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--star);
  background: var(--space-700);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--wt-blue-bright);
  white-space: nowrap;
}

.registry-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  /* Safety net: long unbreakable tokens from arbitrary CSV data must wrap
     rather than push the layout (esp. the mobile stacked cards) past 360px. */
  overflow-wrap: anywhere;
}

/* Zebra rows */
.registry-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.registry-table tbody tr:hover {
  background: var(--card-hover);
}

.registry-table .col-title {
  color: var(--text);
  font-weight: 600;
}

/* Loading skeleton rows */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: transparent !important;
  min-height: 1em;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  animation: skeleton-shimmer 1.3s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* State messages (loading/empty/error) */
.state-msg {
  padding: var(--sp-6);
  text-align: center;
  color: var(--text-dim);
}

.state-msg--error {
  color: #ffc2c8;
}

.notice {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  background: rgba(58, 87, 232, 0.1);
  border: 1px solid rgba(58, 87, 232, 0.35);
  color: var(--text);
  font-size: 0.9rem;
}

/* Responsive STACKED-CARD mode (driven by data-label attributes) */
@media (max-width: 700px) {
  .registry-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
    max-height: none;
  }

  .registry-table,
  .registry-table thead,
  .registry-table tbody,
  .registry-table tr,
  .registry-table td {
    display: block;
    width: 100%;
  }

  /* Hide the real header; each cell carries its own label */
  .registry-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .registry-table tbody tr {
    margin-bottom: var(--sp-4);
    background: var(--card) !important;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--shadow-1);
  }

  .registry-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: right;
    /* Allow the flex item (the value) to shrink so long tokens wrap in-card. */
    min-width: 0;
  }

  .registry-table tbody td:last-child {
    border-bottom: 0;
  }

  /* The label comes from data-label on each <td> */
  .registry-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    color: var(--text-dim);
    text-align: left;
  }

  .registry-table .col-title {
    font-size: 1.05rem;
  }
}

/* ---------------------------------------------------------------------
   13. Hero + logo glow
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h)); /* dynamic viewport on mobile (URL bar) */
  padding: var(--sp-8) var(--sp-5);
  overflow: hidden;
}

.hero__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  padding: var(--sp-6);
}

/* Soft light radial glow/halo behind the logo so the dark-blue wordmark reads */
.hero__logo-wrap::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgba(245, 247, 255, 0.85) 0%,
    rgba(225, 232, 255, 0.5) 38%,
    rgba(200, 212, 255, 0.18) 62%,
    rgba(200, 212, 255, 0) 80%
  );
  filter: blur(6px);
  border-radius: 50%;
  pointer-events: none;
}

.hero__logo {
  position: relative;
  width: min(560px, 82vw);
  height: auto;
  aspect-ratio: 950 / 295;
}

.hero__tagline {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.35rem);
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}

/* ---------------------------------------------------------------------
   14. Lightbox / modal
   --------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: rgba(2, 3, 10, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox[open],
.lightbox.is-open {
  display: flex;
}

.lightbox__dialog {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--space-800);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: var(--sp-3);
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__caption {
  padding: var(--sp-3) var(--sp-2) var(--sp-1);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.lightbox__close {
  position: absolute;
  top: calc(-1 * var(--sp-2));
  right: calc(-1 * var(--sp-2));
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wt-red);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: var(--shadow-2);
  border: 2px solid var(--space-800);
}

.lightbox__close:hover {
  background: var(--wt-red-bright);
}

/* Lock scroll when modal open (set by JS on body/html) */
.no-scroll {
  overflow: hidden;
}

/* ---------------------------------------------------------------------
   15. Utility classes
   --------------------------------------------------------------------- */
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: var(--sp-2);
}
.gap-4 {
  gap: var(--sp-4);
}
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-4 {
  margin-top: var(--sp-4);
}
.mt-6 {
  margin-top: var(--sp-6);
}
.mb-4 {
  margin-bottom: var(--sp-4);
}
.mb-6 {
  margin-bottom: var(--sp-6);
}
.hidden {
  display: none !important;
}
.full {
  width: 100%;
}
.stack {
  display: flex;
  flex-direction: column;
}
.stack-4 > * + * {
  margin-top: var(--sp-4);
}
.stack-2 > * + * {
  margin-top: var(--sp-2);
}

/* ---------------------------------------------------------------------
   16. Responsive tweaks down to 360px
   --------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--sp-4);
  }
  .nav {
    padding-inline: var(--sp-4);
  }
  .nav__brand img {
    height: 32px;
  }
  .section {
    padding-block: var(--sp-6);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  :root {
    --sp-5: 1.1rem;
  }
  .card,
  .event-card__body {
    padding: var(--sp-4);
  }
  .hero__logo {
    width: 86vw;
  }
}

/* ---------------------------------------------------------------------
   17. Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton::after {
    animation: none;
  }
}

/* Mobile perf: `background-attachment: fixed` causes repaint jank / gradient
   mis-coverage on iOS Safari and other touch browsers. Use a normal scrolling
   background on small screens (the starfield carries the motion regardless). */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}
