/* ── VARIABLES ── */
:root {
  --gold: #FFCC00;
  --gold-light: #FFDE5C;
  --gold-pale: #FFEB99;
  --purple: #54318C;
  --purple-mid: #7952B3;
  --purple-light: #A486D5;
  --dark: #343A40;
  --off-white: #E1E8EB;
  --bg: #1e1e24;
  --card-bg: rgba(255,255,255,0.03);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--off-white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 62px;
  background: rgba(30, 30, 36, 0.97);
  border-bottom: 1px solid rgba(255,204,0,0.12);
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px 6px;
  margin-right: -6px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── OVERLAY MENU ── */
.overlay {
  display: none;
}
.overlay.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: #0e0824;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding-top: 120px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 60px;
}
.overlay-close {
  display: none;
}
.overlay.open .overlay-close {
  display: block;
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 999999;
}
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}
.overlay-nav a {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
.overlay-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.overlay-nav a:hover { color: var(--gold); }
.overlay-nav a:hover::after { width: 100%; }

.overlay-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.overlay-social a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(225,232,235,0.5);
  transition: color 0.2s;
}
.overlay-social a:hover { color: var(--gold); }

.overlay-contact {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,204,0,0.4);
  letter-spacing: 0.1em;
}

/* ── HERO (home) ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 48px 60px;
  gap: 60px;
  background: linear-gradient(135deg, #0e0824 0%, #1e1e24 55%, #1a1a20 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(84,49,140,0.25) 0%, transparent 70%);
  top: 10%; right: -100px;
  pointer-events: none;
}

.hero-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
}
.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed rgba(255,204,0,0.25);
  border-radius: 4px;
  color: rgba(255,204,0,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,204,0,0.03);
}
.photo-placeholder svg { opacity: 0.5; }
.ph-hint { font-size: 0.6rem; opacity: 0.5; text-align: center; max-width: 200px; }

.hero-content { display: flex; flex-direction: column; gap: 0; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--off-white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(225,232,235,0.6);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Page nav tiles on home */
.page-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-tile {
  display: block;
  padding: 16px 20px;
  border: 1px solid rgba(255,204,0,0.18);
  border-radius: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.page-tile:hover {
  background: rgba(255,204,0,0.08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── SOCIALS BAR ── */
.socials-bar {
  background: var(--purple);
  padding: 36px 48px;
  text-align: center;
}
.socials-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 16px;
}
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.social-link {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid rgba(255,235,153,0.25);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold-pale);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-link:hover {
  background: rgba(255,204,0,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── FOOTER ── */
footer {
  background: #111116;
  padding: 32px 48px;
  text-align: center;
  border-top: 1px solid rgba(255,204,0,0.08);
}
footer p { font-size: 0.85rem; color: rgba(225,232,235,0.4); line-height: 2; }
footer strong { color: var(--gold); font-weight: 600; }
footer a { color: var(--gold-pale); }
footer a:hover { color: var(--gold); }
.footer-copy { font-size: 0.7rem; margin-top: 4px; }

/* ── INNER PAGE LAYOUT ── */
.page-hero {
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 100px 48px 48px;
  background: linear-gradient(160deg, #0e0824 0%, #1e1e24 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.05;
}
.page-hero h1 span { color: var(--gold); }

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

.gold-rule {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 20px 0 32px;
}

/* ── CARDS / GRIDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(255,204,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,204,0,0.35); }

.card-photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .photo-placeholder { height: 100%; border-radius: 0; border: none; border-bottom: 1px dashed rgba(255,204,0,0.2); }

.card-body { padding: 20px 22px 24px; }
.card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  display: block;
  margin-bottom: 8px;
}
.card-body h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  color: var(--off-white);
  line-height: 1.3;
  margin-bottom: 6px;
}
.card-body p { font-size: 0.875rem; color: rgba(225,232,235,0.55); line-height: 1.55; }
.card-date {
  display: block;
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid rgba(164,134,213,0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--purple-mid); }

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .photo-placeholder { height: 100%; border-radius: 0; border: none; }

.team-body { padding: 18px 20px 22px; }
.team-handle {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.team-body h3 { font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--off-white); margin-bottom: 4px; }
.team-role { font-size: 0.72rem; color: var(--purple-light); margin-bottom: 10px; letter-spacing: 0.06em; }
.team-body p { font-size: 0.82rem; color: rgba(225,232,235,0.55); line-height: 1.6; }

/* Prose */
.prose {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(225,232,235,0.75);
}
.prose + .prose { margin-top: 20px; }
.prose strong { color: var(--gold-pale); font-weight: 600; }

/* House rules */
.rules-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rules-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--card-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
.rule-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  min-width: 28px;
  padding-top: 2px;
}
.rule-text { font-size: 0.95rem; color: rgba(225,232,235,0.8); line-height: 1.6; }

/* Shoutout name list */
.shoutout-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.shoutout-names span {
  padding: 7px 14px;
  background: rgba(121,82,179,0.15);
  border: 1px solid rgba(164,134,213,0.2);
  border-radius: 2px;
  font-size: 0.82rem;
  color: var(--purple-light);
  transition: background 0.2s, color 0.2s;
}
.shoutout-names span:hover {
  background: rgba(121,82,179,0.3);
  color: var(--gold-pale);
}

/* Section sub-heading */
.sub-heading {
  font-family: 'Space Mono', monospace;
  font-size: 1.15rem;
  color: var(--off-white);
  margin: 48px 0 16px;
}
.sub-heading span { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .hamburger { display: flex; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 90px 24px 52px;
    gap: 36px;
    min-height: auto;
  }
  .hero-photo-wrap { aspect-ratio: 4/3; max-height: 280px; }
  .hero h1 { font-size: 2.8rem; }
  .page-nav-grid { grid-template-columns: 1fr 1fr; }

  .overlay-nav a { font-size: 1.4rem; }
  .overlay-nav { gap: 4px; margin-bottom: 28px; }
  .overlay-inner {
    padding-top: calc(62px + 140px + env(safe-area-inset-top));
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }

  .page-hero { padding: 90px 24px 36px; }
  .page-content { padding: 40px 24px 64px; }

  .socials-bar { padding: 28px 20px; }
  footer { padding: 28px 20px; }

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

@media (max-width: 480px) {
  .page-nav-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ── HAMBURGER STAYS ABOVE OVERLAY ── */
#hamburger {
  position: relative;
  z-index: 999999;
}
