:root {
  --bg: #0a0e18;
  --bg-elevated: #121a2c;
  --surface: #182236;
  --text: #eef2f9;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #f4a742;
  --accent-hover: #ffc46b;
  --accent-soft: rgba(244, 167, 66, 0.14);
  --focus-ring: rgba(244, 167, 66, 0.55);
  --court: #1e3a5f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.25);
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Source Sans 3", system-ui, sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(120% 90% at 0% 0%, rgba(244, 167, 66, 0.07), transparent 50%),
    radial-gradient(80% 60% at 100% 10%, rgba(30, 58, 95, 0.35), transparent 45%),
    linear-gradient(180deg, #080c14 0%, var(--bg) 35%, #0c1424 100%);
  background-attachment: fixed;
}

::selection {
  background: rgba(244, 167, 66, 0.28);
  color: var(--text);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  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: -999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #1a1206;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
}

.skip-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.narrow-wide {
  max-width: 800px;
}

.container.narrow-wide {
  width: min(100% - 2.5rem, 800px);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(24, 34, 54, 0.4), rgba(12, 18, 32, 0.9));
  border-block: 1px solid var(--line);
}

.section-mission {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.section-intro {
  color: var(--muted);
  max-width: 52ch;
}

.section-map {
  background: radial-gradient(120% 80% at 70% 0%, rgba(244, 167, 66, 0.08), transparent 55%),
    var(--bg);
}

.section-gallery {
  padding-top: 0;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.photo-strip {
  display: grid;
  gap: 1rem 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.photo-card:hover {
  border-color: rgba(244, 167, 66, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

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

.photo-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  border-top: 1px solid var(--line);
}

.grid-2--media {
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

@media (min-width: 860px) {
  .grid-2--media {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.section-skills {
  padding-top: 0;
}

.skills-banner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.skills-banner img {
  width: 100%;
  height: clamp(160px, 28vw, 320px);
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.section-cta {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.cta-inner {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(145deg, var(--surface), var(--bg-elevated));
  box-shadow: var(--shadow);
}

.cta-inner p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.subhead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

.mission-text {
  font-size: 1.2rem;
  color: var(--text);
}

.accent {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(10, 14, 24, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Breathing room from viewport top (incl. notches) and above the bottom border */
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: 1rem;
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), #2a1810 40%, #f0d2a6 55%, var(--accent));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.brand-logo-img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  background: rgba(18, 34, 54, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
}

.site-nav li {
  display: flex;
  align-items: center;
}

.site-nav a {
  color: rgba(238, 242, 249, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

/* Desktop: logo left, links as a single right-aligned block (clean when wrapping) */
@media (min-width: 781px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(1rem, 3vw, 2rem);
    row-gap: 0.5rem;
  }

  .site-nav {
    justify-self: end;
    min-width: 0;
    max-width: 100%;
  }

  .site-nav ul {
    justify-content: flex-end;
    gap: 0.35rem 1rem;
  }
}

.site-nav a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-cta {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 167, 66, 0.28);
  background: var(--accent-soft);
  white-space: nowrap;
}

.nav-cta:hover {
  border-color: rgba(244, 167, 66, 0.45);
  background: rgba(244, 167, 66, 0.2);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    linear-gradient(115deg, rgba(12, 18, 32, 0.92) 0%, rgba(12, 18, 32, 0.72) 42%, rgba(30, 58, 95, 0.55) 100%),
    radial-gradient(60% 80% at 15% 20%, rgba(244, 167, 66, 0.14), transparent 55%),
    url("https://images.unsplash.com/photo-1546519638-68e109498ffc?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center 35%;
  opacity: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 72px
  );
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-inner h1 {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 0, 0, 0.2);
  max-width: min(100%, 22rem);
}

.hero-inner .lead {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 52ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(165deg, #ffc46b 0%, var(--accent) 55%, #e88920 100%);
  color: #1a1206;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 18px rgba(244, 167, 66, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(165deg, #ffd28a 0%, #f9b04a 50%, #f4a742 100%);
  color: #140d04;
  box-shadow: 0 6px 24px rgba(244, 167, 66, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(244, 167, 66, 0.4);
  color: var(--accent);
  background: rgba(244, 167, 66, 0.06);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.grid-2 {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.iq-grid .card:hover {
  border-color: rgba(244, 167, 66, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card-highlight {
  box-shadow: var(--shadow);
}

.card-highlight h3 {
  color: var(--accent);
}

.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.facts li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.facts li:last-child {
  border-bottom: 0;
}

.facts span {
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list strong {
  min-width: 4.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.contact-list--compact {
  margin-top: 0.5rem;
}

.contact-list--compact li {
  padding: 0.4rem 0;
}

.mem-success-contact {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.mem-success-contact > p {
  margin: 0 0 0.35rem;
  color: var(--text);
}

.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(244, 167, 66, 0.35);
  color: var(--text);
  font-weight: 600;
}

.schedule-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #5ee4a3;
  box-shadow: 0 0 0 4px rgba(94, 228, 163, 0.2);
}

.address {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.fine-print {
  font-size: 0.9rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: var(--surface);
}

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

.tag-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-grid li {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid:not(.card-grid--2) {
    grid-template-columns: repeat(4, 1fr);
  }

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

.mini-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  border-color: rgba(244, 167, 66, 0.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.mini-card p {
  margin: 0;
  font-size: 0.98rem;
}

.mini-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  color: var(--text);
}

.iq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 780px) {
  .iq-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.program-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .program-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.program-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(24, 34, 54, 0.9), var(--bg-elevated));
}

.program-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.program-card p {
  margin: 0;
}

.scope-tags {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.scope-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.callout {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 167, 66, 0.28);
  background: rgba(244, 167, 66, 0.08);
}

.callout p {
  margin: 0;
  color: var(--text);
}

.two-col {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--muted);
}

.checklist li {
  margin-bottom: 0.65rem;
}

.checklist li::marker {
  color: var(--accent);
}

.checklist--plain {
  list-style: disc;
}

.faq {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #080c16;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.5rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  line-height: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-icon-link:hover {
  color: var(--accent);
}

.social-icon-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.photo-credit {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(154, 166, 191, 0.85);
  max-width: 52ch;
}

.photo-credit a {
  color: var(--muted);
}

.photo-credit a:hover {
  color: var(--accent);
}

.footer-brand {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.footer-note {
  margin: 0;
}

.site-header--simple .nav-toggle {
  display: none;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    width: min(calc(100% - 2rem), 320px);
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(18, 26, 44, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .header-inner {
    position: relative;
  }

  .facts li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .site-header--simple .site-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    width: 100%;
    margin-top: 0.75rem;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .site-header--simple .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem 1.35rem;
  }
}

/* —— Membership onboarding —— */
.mem-hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 21 / 9;
  max-height: 320px;
}

.mem-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.mem-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 5rem);
}

.mem-wrap {
  max-width: 640px;
}

.mem-header h1 {
  margin-bottom: 0.75rem;
}

.mem-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
}

.mem-progress {
  margin-bottom: 0.25rem;
}

.mem-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.mem-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--court), var(--accent));
  transition: width 0.35s ease;
}

.mem-step-label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.mem-form {
  margin-top: 1.5rem;
}

.mem-panel {
  padding-bottom: 1rem;
}

.mem-panel h2 {
  margin-bottom: 0.65rem;
}

.mem-panel p {
  margin-bottom: 1rem;
}

.mem-hint {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.mem-bullets {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--muted);
}

.mem-bullets li {
  margin-bottom: 0.5rem;
}

.mem-bullets li::marker {
  color: var(--accent);
}

.mem-type-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .mem-type-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mem-type-card {
  display: block;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mem-type-card:hover {
  border-color: rgba(244, 167, 66, 0.35);
}

.mem-type-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mem-type-card:has(input:checked) {
  border-color: rgba(244, 167, 66, 0.65);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(244, 167, 66, 0.2);
}

.mem-type-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.mem-type-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.mem-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mem-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mem-field--mt {
  margin-top: 0.75rem;
}

.mem-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mem-field input,
.mem-field select,
.mem-field textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.mem-field input:focus,
.mem-field select:focus,
.mem-field textarea:focus {
  outline: 2px solid rgba(244, 167, 66, 0.45);
  outline-offset: 1px;
}

.mem-check-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mem-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.mem-check input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.mem-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}

.mem-legend {
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mem-inline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
  cursor: pointer;
}

.mem-inline:last-child {
  margin-bottom: 0;
}

.mem-inline input {
  accent-color: var(--accent);
}

.mem-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}

.mem-agree input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.mem-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.mem-actions .btn-primary {
  margin-left: auto;
}

.mem-next {
  color: var(--text);
}

.mem-panel[data-panel="complete"] .btn {
  margin-top: 0.5rem;
  margin-right: 0.5rem;
}

/* Simple member form (single page) */
.mem-simple-form {
  margin-top: 0.5rem;
}

.mem-simple-form .mem-fields {
  margin-bottom: 1rem;
}

.mem-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}

.mem-form-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}

.mem-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mem-success-banner {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 167, 66, 0.35);
  background: var(--accent-soft);
  margin-bottom: 1.5rem;
}

.mem-success-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.mem-success-banner p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.mem-success-banner p:last-child {
  margin-bottom: 0;
}

.schedule-slot-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 640px;
}

.schedule-slot-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(18, 28, 48, 0.35);
}

.schedule-slot-item strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.schedule-slot-item span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  margin: 0;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 28, 48, 0.45);
  box-shadow: var(--shadow-sm);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
}

.testimonial-card figcaption {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links a {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: rgba(8, 12, 20, 0.92);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tips-two-col {
  margin-top: 2rem;
}

.tips-extra-card {
  margin-top: 1.25rem;
}

.tips-back {
  margin-top: 2rem;
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.error-page-inner {
  max-width: 28rem;
  text-align: center;
}

.error-page-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--accent);
  line-height: 1;
}

.error-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.error-page-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

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

  .btn,
  .mini-card,
  .iq-grid .card,
  .site-nav a {
    transition: none;
  }

  .btn:active {
    transform: none;
  }

  .mini-card:hover,
  .iq-grid .card:hover {
    transform: none;
  }

  .photo-card:hover {
    transform: none;
  }
}
