/* =========================================================================
   Mora Lenz — public site
   Hand-written CSS port of the original Next.js + Tailwind design.
   No build step: this file is served as-is, so the site can be deployed
   over FTP with nothing to compile on the server.
   ====================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  --black: #000000;
  --black-50: #1c1c21;
  --black-100: #0e0e10;
  --black-200: #282732;
  --white-50: #d9ecff;
  --blue-50: #839cb5;
  --blue-100: #2d2d38;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --cyan: #06b6d4;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --maxw: 1280px;
  --nav-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Stop anchor targets from hiding behind the fixed navbar. */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(30, 89, 130, 0.24), transparent 72%),
    radial-gradient(ellipse 55% 30% at 100% 42%, rgba(22, 112, 125, 0.12), transparent 70%),
    #030508;
  color: #ffffff;
  font-family: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A quiet visual thread behind every Laravel page, not just the homepage. */
.site-main {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 72px 72px;
}

.site-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 22% at 8% 22%, rgba(59, 130, 246, 0.11), transparent 72%),
    radial-gradient(ellipse 46% 20% at 94% 68%, rgba(6, 182, 212, 0.08), transparent 72%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(255, 255, 255, 0.22);
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: #fff;
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------------------------------------------------------------- navbar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 20px;
  transition: background-color 0.3s ease, padding 0.3s ease,
    backdrop-filter 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 12px;
}

.navbar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__logo:hover {
  transform: scale(1.04);
  opacity: 0.85;
}

.navbar__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar__logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

/* Fallback mark shown until a real img/logo.png is uploaded — a simple lens
   icon plus wordmark, rather than bare text. */
.logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-fallback__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-fallback__word {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__brand .logo-fallback__word {
  font-size: 1.5rem;
}

.navbar__nav {
  display: none;
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__item {
  position: relative;
}

.navbar__link {
  color: var(--white-50);
  font-size: 0.98rem;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
  padding-block: 4px;
}

.navbar__link:hover,
.navbar__link[aria-current="page"] {
  color: #fff;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.3s ease;
}

.navbar__link:hover::after,
.navbar__link[aria-current="page"]::after {
  width: 100%;
}

/* Services dropdown */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--white-50);
  font-size: 0.98rem;
  transition: color 0.3s ease;
}

.navbar__dropdown-trigger:hover,
.navbar__dropdown[data-open="true"] .navbar__dropdown-trigger {
  color: #fff;
}

.navbar__dropdown-trigger svg {
  width: 15px;
  height: 15px;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.navbar__dropdown[data-open="true"] .navbar__dropdown-trigger svg {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 216px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Hide as soon as the fade-out finishes; the previous 1 s visibility
     transition left an empty dropdown visible after the pointer departed. */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.navbar__dropdown[data-open="true"] .navbar__dropdown-menu {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.navbar__dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar__dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__install,
.navbar__mobile-install {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.navbar__install {
  display: none;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar__install:hover,
.navbar__mobile-install:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar__install svg,
.navbar__mobile-install svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  transition: background-color 0.2s ease;
}

.navbar__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar__toggle svg {
  width: 24px;
  height: 24px;
}

.navbar__toggle .icon-close,
.navbar__toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.navbar__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.navbar__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 12px 20px 20px;
}

.navbar__mobile[data-open="true"] {
  display: block;
}

.navbar__mobile a,
.navbar__mobile .navbar__mobile-label {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: color 0.2s ease;
}

.navbar__mobile a:hover {
  color: var(--accent-soft);
}

.navbar__mobile-label {
  font-weight: 600;
}

.navbar__mobile-sub {
  padding-left: 16px;
}

.navbar__mobile-sub a {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 0;
  padding-block: 10px;
}

.navbar__mobile-install {
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 750;
}

.navbar__mobile-install:not([hidden]) {
  display: flex;
}

[hidden] {
  display: none !important;
}

/* Browser-native PWA install prompt, with an iOS-specific fallback message. */
.install-banner {
  position: fixed;
  z-index: 220;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: min(540px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(9, 13, 20, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
  animation: installBannerIn 0.35s ease-out both;
}

.install-banner__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.install-banner__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.install-banner__copy strong {
  font-size: 0.98rem;
}

.install-banner__copy span {
  color: #aeb8c8;
  font-size: 0.82rem;
  line-height: 1.4;
}

.install-banner__action {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #080b10;
  font-size: 0.85rem;
  font-weight: 800;
}

.install-banner__dismiss {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aeb8c8;
}

.install-banner__dismiss:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.install-banner__dismiss svg {
  width: 18px;
  height: 18px;
}

@keyframes installBannerIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .install-banner {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
  }

  .install-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .install-banner__action {
    grid-column: 2 / 4;
    width: 100%;
  }

  .install-banner__dismiss {
    align-self: start;
  }
}

/* CTA button (ink-fill on hover), ported from .cta-button */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 15px 32px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
}

.cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.cta:hover::before {
  width: 320%;
  height: 320%;
}

.cta__label,
.cta svg {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease, transform 0.4s ease;
}

.cta:hover .cta__label,
.cta:hover svg {
  color: #fff;
}

.cta svg {
  width: 18px;
  height: 18px;
}

.cta:hover svg {
  transform: translateY(3px);
}

.cta--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-transform: none;
  font-weight: 600;
}

.cta--ghost::before {
  background: #fff;
}

.cta--ghost:hover .cta__label,
.cta--ghost:hover svg {
  color: #000;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Shown on its own whenever public/img/landing-bg.jpeg hasn't been
     uploaded yet, and underneath it (harmlessly) once it has. Layered
     radial glows + a faint grid over the site's own palette, slowly
     drifting, so the hero reads as designed rather than "missing image". */
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 70% 55% at 18% 18%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(ellipse 65% 55% at 85% 15%, rgba(6, 182, 212, 0.28), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(96, 165, 250, 0.22), transparent 65%),
    linear-gradient(180deg, var(--black-100) 0%, var(--black-50) 55%, var(--black-200) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px);
  background-size: 140% 140%, 140% 140%, 160% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-position: 0% 0%, 100% 0%, 50% 100%, center, center, center;
  animation: heroGlowDrift 24s ease-in-out infinite alternate;
}

@keyframes heroGlowDrift {
  from {
    background-position: 0% 0%, 100% 0%, 50% 100%, center, center, center;
  }
  to {
    background-position: 8% 10%, 92% 12%, 52% 92%, center, center, center;
  }
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  animation: heroBreathe 20s ease-in-out infinite alternate;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

@keyframes heroBreathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 24px) 20px 64px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  animation: heroRise 1s ease-out both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  word-break: break-word;
}

.hero__title span.hero__line {
  display: block;
}

/* Vertical word slider, ported from the original .wrapper animation. */
.hero__slider {
  display: inline-flex;
  /* Without this, the flex default (align-items: stretch) squashes the
     9-word-tall track down to this box's own 1.15em, so the translateY(%)
     steps below move by fractions of a pixel and the words never visibly
     change — flex-start lets the track keep its natural (tall) height. */
  align-items: flex-start;
  height: 1.15em;
  overflow: hidden;
  vertical-align: bottom;
  margin-left: 0.25em;
}

.hero__slider-track {
  display: flex;
  flex-direction: column;
  /* Change every 1.5 seconds without showing two clipped words mid-scroll. */
  animation: wordSlider 20s infinite ease-in-out;
}

.hero__slider-track span {
  flex-shrink: 0;
  height: 1.15em;
  line-height: 1.15em;
  white-space: nowrap;
}


@keyframes wordSlider {
  100%,
  10% {
    transform: translateY(0);
  }
  12.5%,
  22.5% {
    transform: translateY(-12.5%);
  }
  25%,
  35% {
    transform: translateY(-25%);
  }
  37.5%,
  47.5% {
    transform: translateY(-37.5%);
  }
  50%,
  60% {
    transform: translateY(-50%);
  }
  62.5%,
  72.5% {
    transform: translateY(-62.5%);
  }
  75%,
  85% {
    transform: translateY(-75%);
  }
  87.5%,
  100% {
    transform: translateY(-87.5%);
  }

}

.hero__lede {
  color: var(--white-50);
  font-size: clamp(0.85rem, 2.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 46rem;
  margin: 0;
}

.hero__actions {
  margin-top: 8px;
}

.hero__wordmark {
  position: absolute;
  top: 28%;
  right: 4%;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  animation: wordmarkIn 2s ease-out both;
}

.hero__wordmark-svg {
  display: block;
  width: clamp(28rem, 55vw, 48rem);
  height: auto;
  overflow: visible;
}

.hero__wordmark-text {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 3.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.78));
  font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 130px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

@keyframes wordmarkIn {
  from {
    opacity: 0;
    transform: translateX(50px) scale(1.2);
  }
  to {
    opacity: 0.50;
    transform: translateX(0) scale(1);
  }
}

/* --------------------------------------------------------------- section */

.section {
  padding-block: clamp(56px, 9vw, 110px);
}

.section__head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto clamp(36px, 6vw, 64px);
}

.section__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(to bottom, #fff, #e5e7eb 45%, #6b7280);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lede {
  margin: 0;
  color: var(--gray-400);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -------------------------------------------------------- featured event */

.featured {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--black);
}

.featured__card {
  position: relative;
  display: flex;
  min-height: clamp(470px, 48vw, 610px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #090a0c;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
}

.featured__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.featured__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.78) contrast(1.1);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured__card:hover .featured__bg img {
  transform: scale(1.035);
}

.featured__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 3, 5, 0.97) 0%, rgba(2, 3, 5, 0.84) 47%, rgba(2, 3, 5, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 3, 5, 0.86) 0%, transparent 55%),
    radial-gradient(circle at 18% 22%, rgba(153, 27, 27, 0.18), transparent 34%);
}

.featured__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: clamp(30px, 5vw, 72px);
}

.featured__text {
  width: 100%;
  max-width: 58rem;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 26px);
}

.featured__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  padding: 7px 15px 7px 8px;
  border: 1px solid rgba(255, 82, 92, 0.58);
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(134, 12, 24, 0.94), rgba(82, 5, 15, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(244, 63, 94, 0.12),
    0 10px 30px rgba(190, 18, 60, 0.34);
  color: #fff5f5;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: rotate(-2deg);
}

.featured__label-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  flex: 0 0 29px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(50, 3, 10, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.featured__title {
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 4.65rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.featured__desc {
  margin: 0;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.62;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.82rem, 1.3vw, 0.98rem);
}

.meta-list__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-list__item svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

.featured__cta {
  min-width: 218px;
  padding-block: 17px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
}

.meta-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- countdown */

.countdown-panel {
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: min(100%, 320px);
}

.countdown-panel::before,
.countdown-panel::after {
  content: none;
}

.countdown-panel__title {
  margin: 0 0 10px;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.58);
  text-shadow: none;
}

.countdown-panel .countdown__unit {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px;
}

.countdown-panel .countdown__value {
  font-size: 1.08rem;
}

.countdown {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.countdown__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #fff;
}

.countdown__label {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.countdown--lg .countdown__unit {
  min-width: 76px;
  padding: 14px 16px;
}

.countdown--lg .countdown__value {
  font-size: 1.9rem;
}

.countdown--lg .countdown__label {
  font-size: 0.8rem;
}

/* Urgency states, applied by site.js */
.countdown.is-urgent .countdown__unit {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
}

.countdown.is-urgent .countdown__value {
  color: #fb923c;
}

.countdown.is-critical .countdown__unit {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.countdown.is-critical .countdown__value {
  color: #f87171;
}

.countdown__expired {
  color: #f87171;
  font-weight: 500;
  text-align: center;
}

/* --------------------------------------------------------------- showcase */

.showcase {
  position: relative;
  padding-block: clamp(56px, 9vw, 110px);
}

.showcase__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: rgba(88, 28, 135, 0.12);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.showcase__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 96px);
}

.showcase__row {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.showcase__media {
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #18181b;
  aspect-ratio: 16 / 9;
}

.showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.showcase__row:hover .showcase__media img {
  transform: scale(1.05);
}

.showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.showcase__row:hover .showcase__media::after {
  opacity: 1;
}

.showcase__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase__title {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(to right, #fff, var(--gray-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase__desc {
  margin: 0;
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1.75;
}

.showcase__rule {
  height: 4px;
  width: 80px;
  border-radius: 999px;
  background: linear-gradient(to right, #6366f1, #a855f7);
}

/* ------------------------------------------------------------ card grids */

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.event-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.event-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #18181b;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card__media img {
  transform: scale(1.05);
}

.event-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
  opacity: 0.8;
}

.event-card__date {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 500;
}

.event-card__date svg {
  width: 16px;
  height: 16px;
}

.event-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.event-card__title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.event-card__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.event-card__place svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.event-card__desc {
  margin: 0 0 24px;
  flex: 1;
  color: var(--gray-400);
  font-size: 0.92rem;
  line-height: 1.65;
}

.event-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

/* ---------------------------------------------------------- gallery albums */
.gallery-album__link { display: block; color: inherit; text-decoration: none; }
.gallery-slideshow { position: relative; overflow: hidden; height: 100%; min-height: 15rem; background: var(--ink-800, #172033); isolation: isolate; }
.gallery-slideshow__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 4s ease; }
.gallery-slideshow__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.gallery-slideshow img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slideshow__count { position: absolute; top: .75rem; right: .75rem; z-index: 1; padding: .3rem .55rem; border-radius: 999px; color: #fff; font-size: .75rem; background: rgba(0,0,0,.65); }
.event-card__media .gallery-slideshow { min-height: 100%; }
.showcase__media .gallery-slideshow { min-height: 100%; }

.gallery-hero { padding: calc(var(--nav-h) + 5.5rem) 0 3.5rem; text-align: center; background: radial-gradient(circle at 50% 0, rgba(59, 130, 246, .22), transparent 55%); }
.gallery-hero__eyebrow { display: inline-block; margin-bottom: 1rem; color: var(--accent, #d7aa48); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.gallery-section { padding-top: 1rem; }

.gallery-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.gallery-stats li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: var(--gray-400);
  font-size: 0.85rem;
}

.gallery-stats strong { color: #fff; font-weight: 700; margin-right: 2px; }

.gallery-album-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-album {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-album:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(96, 165, 250, 0.15);
  transform: translateY(-6px);
}

.gallery-album__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b0f17;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  color: #fff;
  text-align: left;
}

.gallery-album__open--empty { display: grid; place-items: center; cursor: default; color: var(--gray-500); }

/* Cover mosaic: one large photo, plus up to two smaller ones. */
.gallery-mosaic {
  display: grid;
  gap: 3px;
  height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.gallery-mosaic--2 { grid-template-columns: 1fr 1fr; }
.gallery-mosaic--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-mosaic--3 img:first-child { grid-row: 1 / span 2; }

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-album__open:hover .gallery-mosaic img { transform: scale(1.06); }

.gallery-album__open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 55%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-album__open:hover::after { opacity: 0.9; }

.gallery-album__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
}

.gallery-album__badge svg { width: 14px; height: 14px; }

.gallery-album__view {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-album__open:hover .gallery-album__view,
.gallery-album__open:focus-visible .gallery-album__view { opacity: 1; transform: none; }
.gallery-album__open--empty .gallery-album__view { position: static; opacity: 1; transform: none; }

.gallery-album__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.gallery-album__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--gray-500); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.gallery-album__title { margin: 0.7rem 0 0.5rem; color: #fff; font-size: 1.35rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.gallery-album__description { margin: 0; color: var(--gray-400); font-size: 0.92rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-album__facebook { align-self: flex-start; padding-top: 0.6rem; color: var(--accent-soft); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.gallery-album__facebook:hover { color: #fff; }
.gallery-album__body > .gallery-album__facebook:first-of-type { margin-top: auto; }

@media (max-width: 920px) { .gallery-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 600px) { .gallery-hero { padding-top: calc(var(--nav-h) + 3.5rem); } .gallery-album-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- lightbox */

body.has-lightbox { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  background: rgba(3, 5, 8, 0.96);
  backdrop-filter: blur(14px);
  animation: lightbox-in 0.25s ease;
}

.lightbox[hidden],
.lightbox [hidden] { display: none !important; }

@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.lightbox__heading { display: flex; flex-direction: column; min-width: 0; }
.lightbox__title { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__count { color: var(--gray-400); font-size: 0.82rem; }

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__btn svg { width: 22px; height: 22px; }

.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
}

.lightbox__figure {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100% - 40px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease;
  touch-action: pan-y;
}

.lightbox__img.is-loading { opacity: 0.25; }

.lightbox__caption { min-height: 1.4em; max-width: 48rem; text-align: center; color: #d1d5db; font-size: 0.92rem; }

.lightbox__nav:disabled { opacity: 0.25; cursor: default; }

.lightbox__strip {
  display: flex;
  gap: 8px;
  padding: 14px 20px 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.lightbox__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.5;
  background: #111;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--accent-soft); }

@media (max-width: 700px) {
  .lightbox__stage { padding: 0 8px; gap: 6px; }
  .lightbox__nav { position: absolute; bottom: 92px; z-index: 2; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__thumb { width: 56px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .gallery-album, .gallery-mosaic img { animation: none; transition: none; }
}

.event-card__more svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.event-card:hover .event-card__more svg {
  opacity: 1;
  transform: translateX(0);
}

.placeholder-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #27272a, #000);
  color: #3f3f46;
}

.placeholder-media svg {
  width: 46px;
  height: 46px;
}

/* --------------------------------------------------------- page headings */

.page-head {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 8px;
  text-align: center;
}

.page-head__title {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head__lede {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--gray-400);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 72px 24px;
  text-align: center;
  color: var(--gray-500);
  border: 1px dashed #27272a;
  border-radius: var(--radius-lg);
}

.empty-state p {
  margin: 0 0 6px;
}

/* -------------------------------------------------------- event detail */

.event-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.event-hero__bg {
  position: absolute;
  inset: 0;
}

.event-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.6) 45%,
    #000 100%
  );
}

.event-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 48px) 20px 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #fff;
}

.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

.event-hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose {
  max-width: 48rem;
  margin-inline: auto;
}

.prose p {
  color: #d1d5db;
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 0 22px;
}

.countdown-block {
  max-width: 48rem;
  margin: 56px auto 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.countdown-block h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------ team */

.team__groups {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 72px);
}

.team__group {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.team__group-head,
.team__subgroup-head {
  text-align: center;
}

.team__group-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  font-weight: 700;
}

.team__group-head p,
.team__subgroup-head p {
  margin: 0;
  color: var(--gray-400);
}

.team__subgroup {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team__subgroup-head h3 {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
}

.team__subgroup-head p {
  font-size: 0.9rem;
}

.member-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* ---- ranked rows ------------------------------------------------------- */

/*
   One row per tier, drawn as a hierarchy: the top role above the office-bearers
   above the general members. The short connector between rows carries the eye
   down the structure without drawing a full org chart, which does not survive
   a phone-width screen.
*/
.member-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.member-tiers .member-grid {
  width: 100%;
}

.member-tiers .member-grid + .member-grid {
  position: relative;
  padding-top: 28px;
}

.member-tiers .member-grid + .member-grid::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 1px;
  height: 28px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(96, 165, 250, 0.5),
    rgba(96, 165, 250, 0)
  );
}

/* Tier 1 — the top role, alone in a wider horizontal card. */
.member-grid--is-lead .member-card {
  display: flex;
  max-width: 640px;
  align-items: center;
  gap: 28px;
  text-align: left;
}

.member-grid--is-lead .member-card__avatar {
  flex: 0 0 auto;
  width: 164px;
  height: 164px;
  margin: 0;
}

.member-grid--is-lead .member-card__content {
  flex: 1;
  min-width: 0;
}

.member-grid--is-lead .member-card__name {
  font-size: 1.45rem;
}

.member-grid--is-lead .member-card__role {
  font-size: 0.95rem;
}

/* Tier 2 — office-bearers, between the lead and the rest. */
.member-grid--is-senior .member-card {
  max-width: 300px;
}

.member-grid--is-senior .member-card__avatar {
  width: 140px;
  height: 140px;
}

/* The rank's accent, strongest at the top of the structure. */
.member-card--lead {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(
    to bottom,
    rgba(37, 99, 235, 0.16),
    rgba(17, 24, 39, 0.55)
  );
}

.member-card--lead .member-card__avatar {
  border-color: rgba(96, 165, 250, 0.65);
}

.member-card--senior {
  border-color: rgba(96, 165, 250, 0.26);
}

@media (max-width: 600px) {
  .member-grid--is-lead .member-card {
    max-width: 420px;
    gap: 18px;
    padding: 18px;
  }

  .member-grid--is-senior .member-card {
    max-width: 320px;
  }

  .member-grid--is-lead .member-card__avatar {
    width: 104px;
    height: 104px;
  }

  .member-grid--is-senior .member-card__avatar {
    width: 128px;
    height: 128px;
  }

  .member-grid--is-lead .member-card__name {
    font-size: 1.2rem;
  }
}

.member-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(
    to bottom,
    rgba(31, 41, 55, 0.5),
    rgba(17, 24, 39, 0.5)
  );
  border: 1px solid var(--gray-700);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.member-card:hover {
  transform: scale(1.04);
  border-color: rgba(59, 130, 246, 0.5);
}

.member-card__avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gray-700);
  background: var(--gray-800);
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease;
}

.member-card:hover .member-card__avatar {
  border-color: var(--accent);
}

.member-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-card__initial {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gray-500);
}

.member-card__name {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.member-card:hover .member-card__name {
  color: var(--accent-soft);
}

.member-card__role {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.member-card__bio {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-400);
  font-style: italic;
  line-height: 1.6;
}

/* -------------------------------------------------------------- services */

.service-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: calc(var(--nav-h) + 48px);
  margin-bottom: clamp(56px, 9vw, 96px);
}

.service-hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #d4d4d8;
}

.service-hero__eyebrow svg {
  width: 16px;
  height: 16px;
}

.service-hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-hero__desc {
  margin: 0;
  max-width: 34rem;
  color: #a1a1aa;
  font-size: 1.15rem;
  line-height: 1.75;
}

.service-hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #18181b;
}

.carousel {
  position: absolute;
  inset: 0;
  background: #000;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel__slide.is-active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 55%);
  pointer-events: none;
}

.service-hero__features {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-hero__features span {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 500;
  color: #e4e4e7;
}

.package-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(24, 24, 27, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.package-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.package-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #18181b;
}

.package-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.package-card:hover .package-card__media img {
  transform: scale(1.05);
}

.package-card__offer {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #22c55e;
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.package-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.package-card__name {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.package-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.package-card__price strong {
  font-size: 1.85rem;
  font-weight: 700;
}

.package-card__price del {
  color: #71717a;
  font-size: 1.05rem;
}

.package-card__points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.package-card__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d4d4d8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.package-card__points svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #6366f1;
}

.package-card__cta {
  display: block;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  transition: background-color 0.2s ease;
}

.package-card__cta:hover {
  background: #e4e4e7;
}

/* --------------------------------------------------------------- contact */

.contact {
  background: linear-gradient(to bottom, #000, var(--gray-900));
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact__subtitle {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-700);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form__field textarea {
  resize: vertical;
  min-height: 150px;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--blue-50);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(31, 41, 55, 0.8);
}

.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.form__field select option {
  background: var(--gray-900);
  color: #fff;
}

.form__error {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #f87171;
}

.form__hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* A field the server rejected, so the message underneath has something to point
   at. site.js clears it again the moment the field is edited. */
.form__field input.is-invalid,
.form__field select.is-invalid,
.form__field textarea.is-invalid {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.08);
}

.form__field input.is-invalid:focus,
.form__field select.is-invalid:focus,
.form__field textarea.is-invalid:focus {
  border-color: #f87171;
}

.form__submit {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.form__submit:hover {
  background: #1d4ed8;
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Honeypot — hidden from people, visible to naive bots. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

.alert--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__icon--mail {
  background: #2563eb;
}

.contact__icon--map {
  background: #db2777;
}

.contact__item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.contact__item a {
  color: var(--accent-soft);
  transition: color 0.2s ease;
}

.contact__item a:hover {
  color: #93c5fd;
}

.contact__item p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-800);
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease;
}

.socials a svg {
  width: 22px;
  height: 22px;
}

.socials a:hover {
  background: #2563eb;
}

.socials a.is-instagram:hover {
  background: #db2777;
}

/* Find Us: the map sits inside a card that names the place, so the block reads
   as "University of Moratuwa" and not as an anonymous slab of street map. */
.map-card {
  margin: 0;
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(31, 41, 55, 0.4);
}

.map-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-700);
}

.map-card__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #db2777;
  display: grid;
  place-items: center;
}

.map-card__icon svg {
  width: 17px;
  height: 17px;
}

.map-card__place {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.map-card__place strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.map-card__place span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.map-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-top: 1px solid var(--gray-700);
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.map-card__link svg {
  width: 16px;
  height: 16px;
}

.map-card__link:hover {
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
}

.map-embed {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

/* Standalone use (outside .map-card) keeps its own frame. */
.map-embed:only-child {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-700);
}

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

/* ---------------------------------------------------------------- footer */

.footer {
  background: #0a0f18;
  border-top: 1px solid var(--gray-800);
  color: #d1d5db;
  padding: 64px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.footer__brand p {
  margin: 0;
  max-width: 26rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--gray-400);
}

.footer__col h2 {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9rem;
}

.footer__col a {
  color: var(--gray-400);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--accent-soft);
}

.footer__bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
}

.footer__bottom p {
  margin: 0;
}

.footer .socials a {
  width: 40px;
  height: 40px;
}

/* ------------------------------------------------------------ responsive */

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }

  .countdown__unit {
    min-width: 66px;
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }

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

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .service-hero {
    grid-template-columns: 1fr 1fr;
  }

  .service-hero__media {
    aspect-ratio: 4 / 5;
  }

  .showcase__row {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }

  .showcase__row:nth-child(even) {
    flex-direction: row-reverse;
  }

  .showcase__media {
    width: 65%;
  }

  .showcase__text {
    width: 35%;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .navbar {
    padding-inline: 40px;
  }

  .navbar__nav {
    display: flex;
  }

  .navbar__toggle {
    display: none;
  }

  .navbar__install:not([hidden]) {
    display: inline-flex;
  }

  .navbar__mobile {
    display: none !important;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------- reduced motion */

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

  .hero__slider-track,
  .hero__bg,
  .hero__bg img {
    animation: none !important;
  }
}

/* ---------------------------------------------------------------- print */

@media print {
  .navbar,
  .footer,
  .contact,
  .cta {
    display: none !important;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }
}

/* ------------------------------------------------- event page builder blocks */

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: #f59e0b;
  color: #000;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.event-blocks {
  /* The reading column. Widened per event by .event-body--wide, and read back
     by the "wider than text" image so it can size itself against it. */
  --col: 48rem;
  max-width: var(--col);
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.event-blocks .prose {
  max-width: none;
}

.event-blocks .prose p:last-child {
  margin-bottom: 0;
}

.event-blocks__text.is-center {
  text-align: center;
}

.event-blocks__text.is-right {
  text-align: right;
}

/* An opening or standout paragraph, a size up from body copy. */
.event-blocks__text.is-lead p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Inline marks the admin writes as **bold**, *italic*, `code` and [a](url). */
.event-blocks a,
.prose a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.event-blocks a:hover,
.prose a:hover {
  color: #93c5fd;
}

.event-blocks strong,
.prose strong {
  color: #fff;
  font-weight: 700;
}

.event-blocks code,
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hairline);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.event-blocks__h2,
.event-blocks__h3,
.event-blocks__h4 {
  margin: 12px 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.event-blocks__h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.event-blocks__h3 { font-size: 1.3rem; }
.event-blocks__h4 { font-size: 1.08rem; color: #e5e7eb; }

.event-blocks__h2.is-center,
.event-blocks__h3.is-center,
.event-blocks__h4.is-center {
  text-align: center;
}

.event-blocks__figure {
  margin: 0;
}

/* Image width, so a landscape shot can break out of the reading column and a
   portrait one need not span it.

   "wide" has to escape a parent that is only --col across, so it is given an
   explicit width and re-centred on the column's midpoint with left/transform —
   a max-width alone could never exceed the parent. */
.event-blocks__figure.is-wide {
  position: relative;
  left: 50%;
  width: min(calc(var(--col) + 10rem), 100vw - 32px);
  transform: translateX(-50%);
}

.event-blocks__figure.is-narrow {
  width: min(28rem, 100%);
  margin-inline: auto;
}

.event-blocks__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-blocks__figure figcaption,
.event-blocks__gallery figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ---- gallery ---------------------------------------------------------- */

.event-blocks__gallery {
  margin: 0;
}

.event-blocks__gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.event-blocks__gallery[data-count="1"] .event-blocks__gallery-grid {
  grid-template-columns: 1fr;
}

.event-blocks__gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 700px) {
  .event-blocks__gallery[data-count="3"] .event-blocks__gallery-grid,
  .event-blocks__gallery[data-count="4"] .event-blocks__gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- quote ------------------------------------------------------------ */

.event-blocks__quote {
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid rgba(96, 165, 250, 0.6);
}

.event-blocks__quote p {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.7;
  font-style: italic;
  color: #e5e7eb;
}

.event-blocks__quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  font-style: normal;
  color: #9ca3af;
}

.event-blocks__quote cite::before {
  content: "— ";
}

/* ---- list ------------------------------------------------------------- */

.event-blocks__list {
  margin: 0;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.7;
}

.event-blocks__list.is-check {
  list-style: none;
  padding-left: 0;
}

.event-blocks__list.is-check li {
  position: relative;
  padding-left: 30px;
}

.event-blocks__list.is-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 11px;
  height: 6px;
  border-left: 2px solid #4ade80;
  border-bottom: 2px solid #4ade80;
  transform: translateY(-50%) rotate(-45deg);
}

/* ---- spacer ----------------------------------------------------------- */

.event-blocks__spacer.is-small { height: 8px; }
.event-blocks__spacer.is-medium { height: 32px; }
.event-blocks__spacer.is-large { height: 72px; }

.event-blocks__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.event-blocks__btn {
  text-transform: none;
  font-weight: 700;
}

.event-blocks__btn:hover svg {
  transform: none;
}

.event-blocks__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

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

.event-blocks__callout {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Tone, so a deadline reads differently from a note. */
.event-blocks__callout.is-warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(251, 191, 36, 0.38);
}

.event-blocks__callout.is-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
}

.event-blocks__callout h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.event-blocks__callout p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.75;
}

.event-blocks__divider {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

/* ---- custom html blocks ------------------------------------------------- */

/*
   An admin-authored html block (App\Support\EventBlocks, type "html"). The
   styling here is deliberately thin — the whole point of the block is that the
   admin's own CSS decides how it looks. All this does is give the block a
   width and stop a wide child (a long timeline, a table) from pushing the page
   sideways.
*/
.event-blocks__html {
  width: 100%;
  min-width: 0;
}

.event-blocks__html > * {
  max-width: 100%;
}

.event-blocks__html img,
.event-blocks__html video,
.event-blocks__html svg,
.event-blocks__html canvas,
.event-blocks__html table {
  max-width: 100%;
}

/*
   "Wider than text" and "full width" break out of the reading column. The
   blocks are a column flex container, so an item that is wider than the
   column and centred on the cross axis overflows evenly to both sides — which
   is exactly the breakout, with no dependence on the column's actual width
   (it varies per event) and no transform to trip up position: fixed inside.
   flex: none is what stops the item being shrunk back to the column instead.
*/
.event-blocks__html.is-wide,
.event-blocks__html.is-full {
  flex: none;
  align-self: center;
}

.event-blocks__html.is-wide {
  width: min(64rem, calc(100vw - 40px));
}

.event-blocks__html.is-full {
  width: min(var(--maxw), calc(100vw - 40px));
}

/* Sandboxed mode: the frame has no height of its own until the content inside
   measures itself and posts it back (see partials/event-blocks.blade.php). */
.event-blocks__html-frame {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  background: transparent;
  color-scheme: dark;
}

/* ---- page-level layout options ---------------------------------------- */

/*
   Set per event in the admin panel (App\Support\EventBlocks::pageOptions).
   "wide" widens the whole reading column; the hero variants trade cover-photo
   drama for a shorter top of page.
*/
.event-body--wide .event-blocks {
  --col: 64rem;
}

.event-body--wide .prose,
.event-body--wide .countdown-block {
  max-width: 64rem;
}

/* "full" hands the whole container to the content — for pages built mostly
   from custom html blocks, where the reading column only gets in the way. */
.event-body--full .event-blocks {
  --col: none;
}

.event-body--full .prose,
.event-body--full .countdown-block {
  max-width: none;
}

/* A shorter banner: same cover photo, far less of the page spent on it.
   The hero's padding lives on __inner, so that is what gets trimmed. */
.event-hero--compact {
  min-height: 0;
}

.event-hero--compact .event-hero__inner {
  padding-block: calc(var(--nav-h) + 36px) 36px;
}

.event-hero--compact .event-hero__bg img {
  object-position: center;
}

.event-hero--compact .event-hero__title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

/* No photo at all — the title carries the top of the page. The gradient moves
   onto the section itself, since __bg (which normally draws it) is gone. */
.event-hero--plain {
  min-height: 0;
  background: linear-gradient(to bottom, var(--gray-900), #000);
}

.event-hero--plain .event-hero__bg {
  display: none;
}

.event-hero--plain .event-hero__inner {
  padding-block: calc(var(--nav-h) + 36px) 28px;
}

.event-hero--plain .event-hero__title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

/* A missing cover should not leave a photo-sized empty area above the event
   title. It falls back to the compact gradient header automatically. */
.event-hero--no-image {
  min-height: 0;
  background: linear-gradient(to bottom, var(--gray-900), #000);
}

.event-hero--no-image .event-hero__bg {
  display: none;
}

.event-hero--no-image .event-hero__inner {
  padding-block: calc(var(--nav-h) + 32px) 36px;
}

/* =========================================================================
   Modern polish layer — glass surfaces, softer borders, calmer motion.
   Placed last so it refines the rules above without rewriting them.
   ====================================================================== */

:root {
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.1);
  --glow: rgba(96, 165, 250, 0.35);
}

/* Slim, dark scrollbars to match the theme. */
html { scrollbar-color: #2a3344 #05070b; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05070b; }
::-webkit-scrollbar-thumb { background: #2a3344; border-radius: 999px; border: 2px solid #05070b; }
::-webkit-scrollbar-thumb:hover { background: #3a465c; }

/* Navbar: frosted glass with a hairline instead of a flat black bar. */
.navbar.is-scrolled {
  background: rgba(5, 7, 11, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar__dropdown-menu {
  background: rgba(10, 13, 20, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

/* Page headings: a small accent bar under the title for rhythm. */
.page-head__title,
.section__title {
  letter-spacing: -0.035em;
}

.page-head__lede { color: #aab2c0; }

/* Event cards */
.event-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface));
  border-color: var(--hairline);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface));
  border-color: var(--glow);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.event-card__media img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.event-card:hover .event-card__media img { transform: scale(1.07); }

.event-card__date {
  background: rgba(5, 7, 11, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.event-card__title { letter-spacing: -0.015em; }

.event-card__more { color: var(--accent-soft); }

/* Team member cards */
.member-card {
  border-radius: var(--radius-xl);
  border-color: var(--hairline);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: var(--glow);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

/* Event detail */
.countdown-block,
.event-blocks__callout {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
}

.meta-pill {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Pagination */
.gallery-pagination span {
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* Empty states */
.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: var(--surface);
  border-radius: var(--radius-xl);
  color: var(--gray-400);
}

/* Buttons: slightly softer lift. */
.cta { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.cta:hover { transform: translateY(-2px); }

/* Respect people who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------- hero redesign */

/* The photo is the subject: keep the people on the right visible, darken only
   the left (where the text sits) and fade the bottom into the page. */
.hero__bg img {
  object-position: 72% 50%;
  animation: heroBreathe 28s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.04);
}

@keyframes heroBreathe {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero__bg::after {
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.88) 0%, rgba(3, 5, 8, 0.6) 38%, rgba(3, 5, 8, 0.08) 72%, rgba(3, 5, 8, 0) 100%),
    linear-gradient(to top, #030508 0%, rgba(3, 5, 8, 0.55) 22%, rgba(3, 5, 8, 0) 48%),
    linear-gradient(to bottom, rgba(3, 5, 8, 0.55) 0%, rgba(3, 5, 8, 0) 22%);
}

@media (max-width: 760px) {
  /* On a phone the text covers the whole picture, so shade it evenly. */
  .hero__bg img { object-position: 78% 50%; }
  .hero__bg::after {
    background:
      linear-gradient(to top, #030508 0%, rgba(3, 5, 8, 0.78) 45%, rgba(3, 5, 8, 0.45) 100%);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  align-self: flex-start;
  padding: 10px 19px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #d9ecff;
  font-size: clamp(0.85rem, 1.15vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__eyebrow-copy {
  display: grid;
  gap: 3px;
}

.hero__eyebrow-copy > span {
  display: block;
  font-size: 1.6em;
  white-space: nowrap;
}

.hero__eyebrow-copy > span:last-child {
  color: rgba(217, 236, 255, 0.76);
  font-size: 1.2em;
  letter-spacing: 0.12em;
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25);
}

@media (max-width: 480px) {
  .hero__eyebrow {
    gap: 11px;
    padding: 9px 15px;
  }
}

.hero__title {
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.hero__slider-track span {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede { color: #c8d3e3; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Outline wordmark: present, but no longer hides the photograph. */
.hero__wordmark {
  top: auto;
  bottom: 9%;
  right: 3%;
  opacity: 1;
}

.hero__wordmark-text {
  /* Rounded SVG stroke joins soften the corners of every letter. */
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes wordmarkIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .hero__wordmark { display: none; }
}

/* ------------------------------------------------------------ brand logos */

.navbar__logo img { height: 48px; width: auto; }

.navbar__logo-full { display: none; height: 40px !important; }

/* The full lockup needs room; below this width only the mark is shown. */
@media (min-width: 1180px) {
  .navbar__logo-full { display: block; }
  .navbar__logo-mark { display: none; }
}

.footer__brand .footer__logo {
  height: auto;
  width: min(100%, 380px);
}

/* ------------------------------------------------- event photo albums */

.event-photos { margin-top: 3rem; }

.event-photos__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.event-photos__head h2 { margin: 0; color: #fff; font-size: 1.6rem; font-weight: 700; }
.event-photos__head span { color: var(--gray-500); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.event-photos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}

.event-photos__item {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #0b0f17;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.event-photos__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-photos__item:hover img,
.event-photos__item:focus-visible img { transform: scale(1.05); }

/* ------------------------------------------------------ team by year */

.team-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: -1rem 0 3rem;
}

.team-years__label { color: var(--gray-500); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.team-years ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.team-years__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--gray-400);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.team-years__link small { color: var(--accent-soft); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.team-years__link:hover { color: #fff; border-color: rgba(96, 165, 250, 0.55); }
.team-years__link.is-active { color: #fff; border-color: var(--accent); background: rgba(59, 130, 246, 0.18); }

/* --------------------------------------------- about: teams by year */

.about-teams__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-teams__card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-teams__card:hover { border-color: rgba(96, 165, 250, 0.55); transform: translateY(-4px); }
.about-teams__year { color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
.about-teams__tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: rgba(59, 130, 246, 0.18); color: var(--accent-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.about-teams__count { color: var(--gray-400); font-size: 0.9rem; }
.about-teams__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; color: var(--accent-soft); font-size: 0.85rem; font-weight: 600; }
.about-teams__more svg { width: 16px; height: 16px; }
.about-teams__card.is-active { border-color: var(--accent); background: rgba(59, 130, 246, 0.14); }
.team-years__link svg { width: 16px; height: 16px; }

/* --------------------------------------------- fully custom pages (About) */

/*
   Nothing but the admin's blocks: no hero, no section padding, no reading
   column unless the page asks for one. The top padding only clears the fixed
   navbar so the first block is not hidden under it.
*/
.custom-page {
  padding-top: var(--nav-h);
}

.custom-page .event-blocks {
  margin-top: 0;
  padding-inline: 20px;
}

.custom-page--wide .event-blocks { --col: 64rem; }

/* "Full width": blocks run edge to edge with no gaps, so a page designed
   elsewhere and pasted in as Custom HTML sits exactly as it was built. */
.custom-page--full .event-blocks {
  --col: none;
  max-width: none;
  padding-inline: 0;
  gap: 0;
}

.custom-page--full .event-blocks__html.is-full {
  width: 100%;
}

/* ------------------------------------------------ responsive safety layer */

/* Keep long admin-entered copy, URLs and flex/grid children from deciding the
   page width. This protects every public layout without changing its design. */
.site-main,
.site-main section,
.site-main article,
.site-main .container,
.event-blocks,
.event-blocks > *,
.custom-page {
  min-width: 0;
}

.site-main :is(h1, h2, h3, h4, p, li, blockquote, figcaption, a) {
  overflow-wrap: anywhere;
}

/* Custom HTML is intentionally flexible, but it must never make the whole
   site scroll sideways. Wide content stays usable inside its own block. */
.event-blocks__html {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.event-blocks__html :where(*) {
  min-width: 0;
  box-sizing: border-box;
}

/* Constrain the custom block's outer layout, not every nested component.
   Internal marquees, sliders and carousels often rely on width:max-content. */
.event-blocks__html > :where(*) {
  max-inline-size: 100% !important;
}

.event-blocks__html :where(img, video, canvas, svg) {
  height: auto;
  max-inline-size: 100% !important;
}

.event-blocks__html :where(iframe, embed, object) {
  max-inline-size: 100% !important;
}

.event-blocks__html :where(pre, table) {
  display: block;
  max-width: 100% !important;
  overflow-x: auto;
  white-space: revert;
  -webkit-overflow-scrolling: touch;
}

.event-blocks__html pre {
  white-space: pre;
}

.event-blocks__html :where(input, select, textarea, button) {
  max-width: 100%;
}

/* Gallery shortcodes may request up to six columns. Two useful columns are a
   better mobile result than six thumbnails squeezed into a few pixels each. */
@media (max-width: 600px) {
  .event-blocks .ml-event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .event-hero:not(.event-hero--no-image) {
    min-height: min(28rem, 62svh);
  }

  .event-hero__inner {
    padding: calc(var(--nav-h) + 28px) 20px 40px;
  }

  .event-hero__title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .meta-pill {
    max-width: 100%;
  }

  .countdown-block {
    padding: 22px 12px;
  }

  .countdown-block .countdown {
    width: 100%;
    gap: 5px;
  }

  .countdown-block .countdown__unit,
  .countdown-block .countdown--lg .countdown__unit {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 4px;
  }

  .countdown-block .countdown--lg .countdown__value {
    font-size: clamp(1.1rem, 7vw, 1.55rem);
  }

  .event-blocks {
    gap: 22px;
  }

  .event-blocks__quote,
  .event-blocks__callout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .event-blocks__buttons .cta {
    width: 100%;
  }

  .featured__card {
    min-height: 0;
    border-radius: 20px;
  }

  .featured__body {
    min-height: 500px;
    padding: 30px 24px;
  }

  .featured__title {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .service-hero__features {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 16px;
  }

  .hero__inner,
  .event-hero__inner {
    padding-inline: 16px;
  }

  .cta {
    padding-inline: 24px;
  }

  .featured__body {
    padding-inline: 20px;
  }

  .featured__label {
    font-size: 0.68rem;
  }

  .hero__eyebrow {
    max-width: 100%;
    gap: 9px;
    padding: 8px 11px;
  }

  .hero__eyebrow-copy {
    min-width: 0;
  }

  .hero__eyebrow-copy > span {
    font-size: 1.25em;
    white-space: normal;
  }

  .hero__eyebrow-copy > span:last-child {
    font-size: 0.95em;
    letter-spacing: 0.06em;
  }

  .member-grid--is-lead .member-card {
    flex-direction: column;
    text-align: center;
  }
}
