/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #0a0a0a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* === Tokens === */
:root {
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --line: #e6e6e3;
  --orange: #f15a24;
  --orange-deep: #d94714;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }

/* === Typography === */
h1, h2, h3 { font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400; letter-spacing: 0.01em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(48px, 9vw, 108px); }
h2 { font-size: clamp(36px, 6vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; font-weight: 700; color: var(--orange); margin: 0 0 16px; }
.section-title { margin-bottom: 24px; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: #333; max-width: 720px; }
.accent { color: var(--orange); }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 12px 0; }
.logo-link { display: inline-flex; align-items: center; }
.logo { height: 64px; width: auto; display: block; }
@media (max-width: 720px) {
  .logo { height: 52px; }
  .header-row { min-height: 76px; }
}

.primary-nav { display: flex; gap: 32px; align-items: center; }
.primary-nav a {
  font-weight: 600; font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  transition: color .15s ease;
}
.primary-nav a:hover { color: var(--orange); }
.primary-nav a.nav-cta {
  background: var(--black); color: #fff;
  padding: 10px 20px; border-radius: var(--radius);
  transition: background .15s ease;
}
.primary-nav a.nav-cta:hover { background: var(--orange); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: all .25s ease; }

/* === Hero === */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 800px);
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-image {
  position: absolute; inset: 0;
  background-image: url('assets/photos/dallas/dallas-1.jpg');
  background-size: cover; background-position: center 30%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 70%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; font-weight: 700;
  color: var(--orange);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(241, 90, 36, 0.5);
  padding: 6px 14px; border-radius: 999px;
  margin: 0 0 24px;
}
.hero-title { color: #fff; max-width: 16ch; }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); max-width: 56ch; color: #f0f0f0; margin: 16px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: all .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn-block { width: 100%; padding: 18px; font-size: 16px; }

/* === Sections === */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-mission { background: var(--paper); }
.section-events { background: var(--paper-2); }
.section-board { background: var(--paper); }
.section-gallery { background: var(--black); color: #fff; }
.section-gallery .eyebrow { color: var(--orange); }
.section-gallery .section-title { color: #fff; }
.section-contact { background: var(--paper-2); }

/* === Mission Pillars === */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.pillar {
  padding: 32px 28px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border-top: 4px solid var(--orange);
}
.pillar-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { margin: 0; color: #444; }

/* === Events === */
.event-list { display: grid; gap: 20px; margin-top: 48px; }
.event-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--orange);
}
.event-date {
  text-align: center;
  padding: 16px;
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
  align-self: start;
}
.event-month { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.06em; color: var(--orange); }
.event-day { font-family: 'Bebas Neue', sans-serif; font-size: 56px; line-height: 1; margin: 4px 0; }
.event-year { font-size: 13px; letter-spacing: 0.1em; color: #aaa; }
.event-body h3 { margin-bottom: 8px; }
.event-partner { color: var(--orange); font-size: 0.72em; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.04em; }
.event-body p { margin: 0 0 16px; color: #444; }
.event-link {
  font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--orange);
}
.event-link:hover { color: var(--orange-deep); }

/* === Board === */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}
.board-card { display: flex; flex-direction: column; }
.board-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 70% 25%, rgba(241, 90, 36, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.board-portrait::before {
  content: ''; position: absolute;
  top: -20%; right: -10%;
  width: 70%; aspect-ratio: 1;
  border: 2px solid rgba(241, 90, 36, 0.25);
  border-radius: 50%;
}
.board-portrait::after {
  content: ''; position: absolute;
  bottom: -25%; left: -15%;
  width: 80%; aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.board-initial {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 8vw, 112px);
  color: #fff;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.board-portrait.has-photo {
  background: var(--photo) center 25% / cover no-repeat, #1a1a1a;
}
.board-portrait.has-photo .board-initial { display: none; }
.board-portrait.has-photo::before, .board-portrait.has-photo::after { display: none; }
.board-info h3 { margin-bottom: 4px; }
.board-role {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700;
  color: var(--orange);
  margin: 0 0 16px;
}
.board-bio { color: #444; margin: 0; font-size: 16px; line-height: 1.65; }

/* === Gallery === */
.gallery-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 40px 0 32px;
}
.gallery-tab {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 20px;
  font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 999px;
  transition: all .15s ease;
}
.gallery-tab:hover { border-color: var(--orange); color: var(--orange); }
.gallery-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  transition: transform .3s ease, opacity .2s ease;
  cursor: pointer;
  background: #1a1a1a;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: 0; color: #fff;
  font-size: 36px; line-height: 1;
}

/* === Contact === */
.contact-form { margin-top: 40px; display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; }
.contact-form span {
  display: block;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit; font-size: 16px;
  background: #fff;
  transition: border-color .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--orange);
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 14px; color: #666; margin: 4px 0 0; text-align: center; }

/* === Footer === */
.site-footer {
  background: var(--black);
  color: #ccc;
  padding: 56px 0 32px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { height: 56px; width: auto; filter: invert(1) brightness(2); }
.footer-name { font-weight: 700; color: #fff; margin: 0 0 2px; font-size: 16px; }
.footer-meta { font-size: 13px; color: #888; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { font-size: 14px; color: #ccc; transition: color .15s ease; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid #222;
  padding-top: 24px;
  margin: 16px 0 0;
  font-size: 13px;
  color: #777;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 900px) {
  .pillar-grid, .board-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .event-card { grid-template-columns: 100px 1fr; gap: 20px; padding: 20px; }
  .event-day { font-size: 42px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--line);
    transform: translateY(-200%);
    transition: transform .25s ease;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a.nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 600px; }
}

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