/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-line: #232326;
  --gold: #edb72d;
  --gold-deep: #9c7a1e;
  --text: #f2f0ea;
  --text-dim: #9a9a94;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { height: 40px; width: 40px; object-fit: contain; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  border-bottom: 1px solid var(--panel-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  opacity: 0;
  animation: rise 0.7s ease-out forwards;
}

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

.hero-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  aspect-ratio: 4 / 5;
  max-height: 560px;
  justify-self: end;
  width: 100%;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-number {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold);
  background: rgba(10, 10, 11, 0.72);
  padding: 2px 14px;
  border-radius: 4px;
  backdrop-filter: blur(3px);
}

.hero-eyebrow {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.01em;
}

.hero-class {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 10px 0 40px;
}

.hero-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  background: var(--panel);
  flex: 1 1 140px;
  min-width: 0;
}

.hero-tag-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hero-tag-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.hero-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.title-pill {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--gold);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; border-bottom: 1px solid var(--panel-line); }

.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}

.section-sub {
  color: var(--text-dim);
  margin: 0 0 40px;
  max-width: 60ch;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-body p {
  max-width: 62ch;
  color: var(--text);
  margin: 0 0 18px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-photo {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stat timeline */
.stat-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-season {
  border: 1px solid var(--panel-line);
  background: var(--panel);
  border-radius: 6px;
  padding: 28px 30px;
}

.stat-season.featured {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, rgba(237, 183, 45, 0.06), rgba(237, 183, 45, 0.015));
}

.stat-season-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.stat-tag {
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 3px 12px;
}

.stat-tag.gold { color: var(--bg); background: var(--gold); border-color: var(--gold); font-weight: 600; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.stat-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  border-top: 1px solid var(--panel-line);
  padding-top: 16px;
}

/* Titles */
.titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.title-card {
  border: 1px solid var(--panel-line);
  background: var(--panel);
  border-radius: 6px;
  padding: 28px 30px;
}

.title-year {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.title-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 8px 0 10px;
}

.title-card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* Team photos */
.team-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-photos figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  background: var(--panel);
}

.team-photos img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.team-photos figcaption {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.photo-placeholder {
  grid-column: 1 / -1;
  border: 1px dashed var(--panel-line);
  border-radius: 8px;
  background: var(--panel);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
}

.photo-placeholder p { margin: 4px 0; }

/* Gallery */
.gallery-grid {
  columns: 3 220px;
  column-gap: 16px;
}

.basketball-gallery { margin-top: 32px; }

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 6, 7, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Highlights */
.video-frame {
  aspect-ratio: 16 / 9;
  max-width: 860px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  background: var(--panel);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  padding: 24px;
}

.video-placeholder p { margin: 4px 0; }
.video-placeholder-sub { font-size: 0.85rem; }
.video-placeholder code {
  background: var(--bg);
  border: 1px solid var(--panel-line);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid var(--panel-line);
  padding-bottom: 4px;
  display: inline-block;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-list li a:hover { color: var(--gold); border-color: var(--gold); }

.contact-card {
  border: 1px solid var(--panel-line);
  background: var(--panel);
  border-radius: 6px;
  padding: 28px 30px;
  height: fit-content;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.quick-facts { margin: 0; }
.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--panel-line);
}
.quick-facts div:first-child { border-top: none; }
.quick-facts dt { color: var(--text-dim); font-size: 0.9rem; }
.quick-facts dd { margin: 0; font-weight: 500; text-align: right; }

/* Footer */
.site-footer { padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-mark { height: 28px; width: 28px; object-fit: contain; opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { justify-self: stretch; max-height: 420px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-height: 340px; }
  .gallery-grid { columns: 2 180px; }
}

@media (max-width: 480px) {
  .hero-tags { flex-direction: column; }
  .hero-tag { flex: 1 1 auto; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--panel-line);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 6px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--panel-line); }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
