:root {
  --ink: #0d0b08;
  --black: #14110d;
  --gold: #d8ad4c;
  --gold-2: #f1d98b;
  --bronze: #a95f2a;
  --cream: #fff5df;
  --cream-2: #f8ead0;
  --muted: #6d6254;
  --line: rgba(20, 17, 13, 0.14);
  --shadow: 0 24px 70px rgba(20, 17, 13, 0.18);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url("../assets/cursor_basketball_32.png?v=5") 16 16, auto;
  }
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #171009;
  background: var(--gold-2);
  box-shadow: var(--shadow);
  font-weight: 900;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: white;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(13, 11, 8, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(241, 217, 139, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: white;
  background: rgba(216, 173, 76, 0.22);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero,
.page-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  padding: 120px clamp(20px, 6vw, 76px) 72px;
}

.page-hero { min-height: 68vh; }

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 900ms ease, opacity 900ms ease;
}

.hero.is-visible .hero-bg,
.page-hero.is-visible .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 11, 8, 0.9), rgba(13, 11, 8, 0.46) 48%, rgba(13, 11, 8, 0.72)),
    linear-gradient(0deg, rgba(13, 11, 8, 0.72), rgba(13, 11, 8, 0.08) 45%);
}

.hero-content {
  position: relative;
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 900;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 10vw, 8.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.small-btn:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.footer-links a:focus-visible,
.contact-links a:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.skip-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.photo-tile:focus-visible {
  outline: 3px solid rgba(241, 217, 139, 0.9);
  outline-offset: 3px;
}

.btn-gold {
  color: #171009;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 32px rgba(216, 173, 76, 0.28);
}

.btn-bronze {
  color: white;
  background: linear-gradient(135deg, #c87437, var(--bronze));
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 6vw, 76px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.showcase-panel p,
.camp-body p,
.feature-card p,
.registration-intro p {
  color: var(--muted);
  font-size: 1.03rem;
}

.visual-stack {
  position: relative;
}

.visual-stack img,
.sticky-media img,
.camp-card > img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.visual-stack img { aspect-ratio: 4 / 3; }

.stat-card {
  position: absolute;
  right: -18px;
  bottom: -20px;
  max-width: 260px;
  padding: 18px;
  border-radius: var(--radius);
  color: white;
  background: var(--black);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.35rem;
}

.dark-band {
  color: white;
  background:
    radial-gradient(circle at 15% 10%, rgba(216, 173, 76, 0.18), transparent 30%),
    linear-gradient(135deg, #14110d, #26180f 52%, #100d09);
}

.dark-band .section-heading p:not(.eyebrow),
.dark-band .feature-card p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.card-grid,
.camp-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.camp-card,
.registration-form,
.info-panel,
.showcase-panel,
.cta-band {
  border: 1px solid rgba(216, 173, 76, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 54px rgba(20, 17, 13, 0.1);
}

.feature-card {
  padding: 26px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.card-kicker {
  color: var(--gold-2);
  font-weight: 900;
}

.sticky-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.sticky-media {
  position: sticky;
  top: 96px;
}

.sticky-media img {
  min-height: 520px;
}

.showcase-copy {
  display: grid;
  gap: 22px;
}

.showcase-panel {
  padding: clamp(24px, 4vw, 42px);
}

.cta-band {
  margin: 0 clamp(20px, 6vw, 76px) clamp(70px, 8vw, 110px);
  text-align: center;
  background: linear-gradient(135deg, #fff9e9, #f5dfb3);
}

.cta-band h2 {
  max-width: 780px;
  margin-inline: auto;
}

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

.camp-card {
  overflow: hidden;
  background: #fff9ec;
}

.camp-card.featured {
  grid-column: span 1;
}

.camp-card > img {
  width: 100%;
  height: 230px;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

.camp-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #14110d, #2b1a0f 54%, #0d0b08);
}

.logo-visual::before,
.court-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(216, 173, 76, 0.24) 50%, transparent 51%),
    radial-gradient(circle at center, transparent 0 29%, rgba(216, 173, 76, 0.28) 30%, transparent 31%),
    linear-gradient(135deg, rgba(216, 173, 76, 0.16), transparent 42%);
  opacity: 0.72;
}

.logo-visual img {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 3px solid rgba(241, 217, 139, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.logo-visual::after {
  content: "Closed";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(13, 11, 8, 0.74);
  border: 1px solid rgba(241, 217, 139, 0.28);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.court-visual span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: #19110a;
  background: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(216, 173, 76, 0.26);
}

.camp-body {
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upcoming,
.open { color: #1d1308; background: var(--gold-2); }
.closed { color: white; background: #5e5549; }
.future { color: white; background: var(--bronze); }

dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 900;
}

dd {
  margin: 0;
  font-weight: 900;
}

.info-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.info-panel div {
  padding: 24px;
  background: #fff9ec;
}

.info-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
}

.registration-section {
  background: #120f0b;
  color: white;
}

.registration-intro {
  max-width: 820px;
  margin-bottom: 26px;
}

.public-registration-note {
  color: rgba(255, 255, 255, 0.72);
}

.test-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(241, 217, 139, 0.42);
  border-radius: var(--radius);
  color: #171009;
  background: var(--gold-2);
}

.closed-notice {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(216, 173, 76, 0.36);
  border-radius: var(--radius);
  color: #fff7dc;
  background: rgba(169, 95, 42, 0.28);
}

.registration-form {
  color: var(--ink);
  background: #fff9ec;
  padding: clamp(22px, 4vw, 36px);
}

.form-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-child { padding-top: 0; border-top: 0; }

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

label {
  display: grid;
  gap: 7px;
  color: #33291f;
  font-size: 0.92rem;
  font-weight: 900;
}

.full { grid-column: 1 / -1; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 17, 13, 0.18);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 650;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 173, 76, 0.72);
  box-shadow: 0 0 0 4px rgba(216, 173, 76, 0.16);
}

textarea { resize: vertical; }

.waiver-box {
  max-height: 300px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(20, 17, 13, 0.16);
  border-radius: var(--radius);
  color: #40352a;
  background: white;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.field-help,
.field-warning {
  margin: -4px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.field-help {
  color: var(--muted);
}

.field-warning {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #5f330f;
  background: #fff1cf;
  border: 1px solid rgba(216, 173, 76, 0.38);
}

.signature-pad {
  width: 100%;
  height: 190px;
  border: 1px dashed rgba(20, 17, 13, 0.35);
  border-radius: var(--radius);
  background: white;
  touch-action: none;
}

.small-btn {
  width: fit-content;
  min-height: 38px;
  color: var(--black);
  background: #ead8b2;
}

.status {
  display: none;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.status.show { display: block; }
.status.success { color: #123b24; background: #dff4e7; }
.status.error { color: #671414; background: #f8dddd; }

.submit-btn { width: 100%; }

.complete-card {
  display: none;
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: #11100e;
  color: white;
}

.complete-card.show { display: block; }

.complete-card p { color: rgba(255, 255, 255, 0.76); }

.site-footer {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 46px 20px;
  color: rgba(255, 255, 255, 0.74);
  background: #0d0b08;
  text-align: center;
}

.site-footer img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.site-footer p { margin: 0; }
.footer-small { font-size: 0.9rem; }

.footer-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.footer-links a,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: white;
  background: rgba(216, 173, 76, 0.16);
  border: 1px solid rgba(216, 173, 76, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links a:hover,
.contact-links a:hover {
  transform: translateY(-2px);
  background: rgba(216, 173, 76, 0.28);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.contact-card,
.contact-form {
  border: 1px solid rgba(216, 173, 76, 0.22);
  border-radius: var(--radius);
  background: #fff9ec;
  box-shadow: 0 18px 54px rgba(20, 17, 13, 0.1);
}

.contact-card {
  padding: clamp(24px, 4vw, 38px);
}

.contact-card .contact-links {
  justify-content: flex-start;
}

.contact-card .contact-links a {
  color: var(--ink);
  background: #ead8b2;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}

.contact-form h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.contact-form .btn {
  width: fit-content;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status:empty {
  display: none;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gallery-section {
  background:
    linear-gradient(180deg, var(--cream), #fff9ec 42%, var(--cream-2));
}

.gallery-status {
  padding: 18px;
  border: 1px solid rgba(216, 173, 76, 0.24);
  border-radius: var(--radius);
  background: #fff9ec;
  color: var(--muted);
}

.album-list {
  display: grid;
  gap: clamp(46px, 7vw, 82px);
}

.photo-album {
  display: grid;
  gap: 20px;
}

.album-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(20, 17, 13, 0.13);
  padding-bottom: 18px;
}

.album-heading .eyebrow,
.album-heading h2 {
  margin-bottom: 0;
}

.album-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 900;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  min-height: 230px;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--black);
  cursor: pointer;
  box-shadow: 0 14px 42px rgba(20, 17, 13, 0.12);
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, opacity 260ms ease;
}

.photo-tile:hover img {
  transform: scale(1.045);
  opacity: 0.9;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  place-items: center;
  gap: 18px;
  padding: 76px clamp(14px, 3vw, 34px) 30px;
  background: rgba(13, 11, 8, 0.94);
  backdrop-filter: blur(14px);
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 126px);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(241, 217, 139, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(216, 173, 76, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
}

.lightbox-nav {
  min-width: 72px;
  min-height: 48px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: translateY(-2px);
  background: rgba(216, 173, 76, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-bg {
    transform: none;
  }
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    display: none;
    min-width: 220px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(13, 11, 8, 0.94);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: grid; }

  .split,
  .sticky-showcase,
  .three,
  .camp-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .sticky-media {
    position: relative;
    top: 0;
  }

  .sticky-media img { min-height: 320px; }
}

@media (max-width: 640px) {
  .brand span { max-width: 190px; font-size: 0.9rem; }
  h1 { font-size: 3.4rem; }
  .hero, .page-hero { padding-inline: 18px; }
  .field-grid, .info-panel { grid-template-columns: 1fr; }
  .stat-card { position: relative; right: auto; bottom: auto; margin-top: 12px; max-width: none; }
  .footer-links, .contact-links { width: 100%; }
  .footer-links a, .contact-links a { flex: 1 1 150px; }
  .contact-form .btn { width: 100%; }
  .album-heading { display: grid; align-items: start; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-tile { min-height: 0; }
  .lightbox { grid-template-columns: 1fr; padding-top: 72px; }
  .lightbox-nav {
    position: fixed;
    bottom: 18px;
    min-width: 104px;
  }
  .lightbox-nav.prev { left: 18px; }
  .lightbox-nav.next { right: 18px; }
  .lightbox img { max-height: calc(100vh - 150px); }
}
