/* ══════════════════════════════════════════════════════════
   East Bay Hackers — v2 (Wadada-style) shared stylesheet
   Used by ebh-v2.html (landing) + all v2-*.html sub-pages
   ══════════════════════════════════════════════════════════ */

:root {
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 900; letter-spacing: 0.05em; line-height: 0.95; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* subtle grid background */
.bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-grid--dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── reveal on scroll ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(2.2rem, 6vw, 60px); text-transform: uppercase; }

/* ══ NAV ══════════════════════════════════════════ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; gap: 20px;
}
.nav--over { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; }
.nav--solid { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid rgba(255,255,255,0.12); }
.nav__logo { color: #fff; font-weight: 900; font-size: 20px; letter-spacing: 0.18em; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; flex: 1; }
.nav__links a {
  color: rgba(255,255,255,0.82); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.2s; white-space: nowrap;
}
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__cta {
  border: 1.5px solid rgba(255,255,255,0.85); color: #fff;
  padding: 8px 18px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav__cta:hover { background: #fff; color: #000; }
.nav__burger { display: none; background: none; border: none; color: #fff; cursor: pointer; }

/* ══ SUB-PAGE HERO BAND ═══════════════════════════ */
.subhero { position: relative; background: #000; color: #fff; overflow: hidden; padding: 90px 0 70px; }
.subhero__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.48; filter: grayscale(0.3);
}
.subhero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, #000 100%);
}
.subhero__grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.subhero__inner { position: relative; z-index: 2; }
.subhero__num { font-size: clamp(60px, 14vw, 150px); font-weight: 900; color: rgba(255,255,255,0.08); line-height: 0.8; letter-spacing: 0.02em; }
.subhero__eyebrow { color: rgba(255,255,255,0.6); margin: 10px 0 14px; }
.subhero__title { font-size: clamp(2.4rem, 7vw, 76px); text-transform: uppercase; }
.subhero__sub { margin-top: 20px; max-width: 46rem; font-size: 15px; font-weight: 500; line-height: 1.7; color: rgba(255,255,255,0.72); }

/* ══ CONTENT SECTION ══════════════════════════════ */
.section { padding: 90px 0; background: #fff; }
.section--alt { background: #fafafa; }

/* ── Schedule timeline ────────────────────────────── */
.sched { max-width: 820px; margin: 0 auto; position: relative; }
.sched__line { position: absolute; left: 128px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.sched__row { position: relative; display: grid; grid-template-columns: 108px 1fr; gap: 40px; padding: 20px 0; align-items: baseline; }
.sched__time { text-align: right; font-weight: 900; font-size: 15px; letter-spacing: 0.04em; }
.sched__dot { position: absolute; left: 128px; top: 27px; width: 12px; height: 12px; border-radius: 50%; background: #000; transform: translateX(-50%); box-shadow: 0 0 0 5px #fff; }
.sched__title { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sched__badge { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #000; background: #eee; padding: 3px 8px; text-transform: uppercase; }
.sched__desc { margin-top: 7px; font-size: 14px; font-weight: 500; color: #555; line-height: 1.6; }

/* ── People grid (judges / organizers) ────────────── */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 960px; margin: 0 auto; }
.person { border: 1px solid var(--line); padding: 34px; background: #fff; }
.person__badge { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #000; color: #fff; font-weight: 900; font-size: 22px; letter-spacing: 0.05em; }
.person__name { margin-top: 20px; font-size: 22px; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.person__role { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.person__bio { margin-top: 16px; font-size: 14px; font-weight: 500; line-height: 1.7; color: #444; }
.group-label { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin: 64px 0 34px; }

/* ── Rule blocks + criteria ───────────────────────── */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 34px; max-width: 980px; margin: 0 auto; }
.rule-card { border: 1px solid var(--line); padding: 36px; }
.rule-card h3 { font-size: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.rule-card ul { list-style: none; margin-top: 20px; }
.rule-card li { font-size: 14px; font-weight: 500; color: #444; line-height: 1.6; padding: 8px 0 8px 22px; position: relative; }
.rule-card li::before { content: "—"; position: absolute; left: 0; color: #000; }
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1040px; margin: 50px auto 0; }
.crit { border-top: 2px solid #000; padding: 22px 4px 0; }
.crit__n { font-size: 12px; font-weight: 900; letter-spacing: 0.2em; color: var(--muted); }
.crit__t { margin: 10px 0 12px; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.crit__d { font-size: 14px; font-weight: 500; line-height: 1.65; color: #444; }

/* ── Prizes ───────────────────────────────────────── */
.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; max-width: 1040px; margin: 0 auto; }
.prize { border: 1px solid var(--line); padding: 40px 34px; display: flex; flex-direction: column; }
.prize--1 { background: #000; color: #fff; }
.prize__place { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.prize--1 .prize__place { color: rgba(255,255,255,0.6); }
.prize__title { margin: 16px 0 14px; font-size: clamp(1.4rem, 3vw, 28px); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.prize__desc { font-size: 14px; font-weight: 500; line-height: 1.7; color: #555; }
.prize--1 .prize__desc { color: rgba(255,255,255,0.75); }

/* ── Forms (waivers) ──────────────────────────────── */
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; max-width: 960px; margin: 0 auto; }
.form-card { border: 1px solid var(--line); padding: 38px; }
.form-card__n { font-size: 13px; font-weight: 900; letter-spacing: 0.2em; color: var(--muted); }
.form-card__t { margin: 14px 0 16px; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; }
.form-card__d { font-size: 14px; font-weight: 500; line-height: 1.7; color: #444; }
.note { text-align: center; max-width: 42rem; margin: 54px auto 0; font-size: 15px; font-weight: 500; color: #555; line-height: 1.7; }
.note a { font-weight: 800; border-bottom: 1px solid #000; }

/* ── Code of conduct ──────────────────────────────── */
.coc { max-width: 820px; margin: 0 auto; }
.coc__item { border-left: 2px solid #000; padding: 6px 0 6px 28px; margin-bottom: 40px; }
.coc__t { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.coc__d { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.75; color: #444; }

/* ── Donate ───────────────────────────────────────── */
.give { max-width: 780px; margin: 0 auto; text-align: center; }
.give p { font-size: 16px; font-weight: 500; line-height: 1.75; color: #333; margin-bottom: 20px; }
.give__stats { display: flex; justify-content: center; gap: 60px; margin: 54px 0; flex-wrap: wrap; }
.give__n { font-size: clamp(2.2rem, 5vw, 48px); font-weight: 900; letter-spacing: 0.02em; }
.give__l { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.btn-solid { display: inline-block; background: #000; color: #fff; padding: 16px 44px; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; transition: transform 0.2s; }
.btn-solid:hover { transform: translateY(-2px); }

/* ══ FOOTER ═══════════════════════════════════════ */
.foot-v2 { background: #000; color: rgba(255,255,255,0.55); padding: 40px 32px; text-align: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.foot-v2 a { color: #fff; }

/* ══ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .sched__row { grid-template-columns: 84px 1fr; gap: 24px; }
  .sched__line { left: 96px; } .sched__dot { left: 96px; }
  .give__stats { gap: 36px; }
}
