:root {
  --bg: #0A0A0A;
  --fg: #F5F0EB;
  --accent: #E8C97A;
  --muted: #7A7A7A;
  --card-bg: #141414;
  --border: #222;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Mobile touch optimization */
@media (hover: none) and (pointer: coarse) {
  .faq-q, .hero-cta, .whitelist-btn {
    min-height: 52px;
  }
  .nav-cta {
    padding: 0.6rem 1.3rem;
  }
  .faq-q, button, a {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-touch-callout: none;
  }
  button, .hero-cta, .whitelist-btn, .nav-cta {
    touch-action: manipulation;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--accent); color: var(--bg); }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10,10,10,0.8);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 500 !important;
}
.nav-cta:hover { opacity: 0.9; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.65) 50%, rgba(10,10,10,0.8) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.3rem;
  color: var(--fg);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
  text-shadow: 0 2px 15px rgba(0,0,0,0.7);
}
.hero-dates {
  font-size: 0.95rem;
  color: var(--fg);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,201,122,0.2); }

/* ---- SECTIONS ---- */
section { padding: 6rem 3rem; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ---- ABOUT ---- */
.about {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.about p {
  font-size: 1.3rem;
  color: #bbb;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.about strong { color: var(--fg); font-weight: 500; }

/* ---- STORIES (scroll reveal cards) ---- */
.stories-section {
  padding: 4rem 2rem 6rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.stories-container {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.stories-container h2 {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
.story-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  align-items: start;
  width: 100%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.story-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.story-reveal:nth-child(2) { transition-delay: 0s; }
.story-reveal:nth-child(3) { transition-delay: 0s; }
.story-reveal:nth-child(4) { transition-delay: 0s; }
.story-image {
  background-size: cover;
  background-position: center;
  height: 300px;
  border-radius: 12px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.story-content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
  font-weight: 400;
}
.story-subtitle {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.story-text {
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.9;
  font-size: 1rem;
}
.story-text p {
  margin-bottom: 1rem;
}
.story-text p:last-child {
  margin-bottom: 0;
}

/* ---- PROGRAM ---- */
.program {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.program p {
  font-size: 1.3rem;
  color: #bbb;
  line-height: 1.9;
  margin-bottom: 2rem;
}
.wyg-list {
  list-style: none;
  padding: 0;
}
.wyg-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: #bbb;
  font-size: 1.15rem;
  line-height: 1.7;
}
.wyg-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.wyg-list li:last-child { margin-bottom: 0; }

/* ---- WHO ---- */
.who {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.who-list {
  margin-top: 1.5rem;
}
.who-list li {
  font-size: 1.15rem;
}
.who-closer {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--fg);
}

/* ---- TEAM ---- */
.team-section {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.team-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 1.2rem;
  background-color: var(--border);
}
.team-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: var(--fg);
}
.team-role {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.team-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
  text-align: left;
}
.team-bio li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
}
.team-bio li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.3s;
}
.team-linkedin:hover {
  color: var(--accent);
}

/* ---- FAQ ---- */
.faq {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-q {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 1rem;
}
.faq-a p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---- WHITELIST ---- */
.whitelist {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}
.whitelist p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.whitelist-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
  text-decoration: none;
}
.whitelist-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--accent); }
footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- Modal ---- */
.info-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  animation: fadeIn 0.2s;
}
.info-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 500px;
  margin: 2rem;
  position: relative;
  animation: slideUp 0.3s;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--accent); }
.modal-text {
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 1.5rem 2.5rem; }
  .hero { padding: 7rem 3rem 4rem; }
  .hero h1 { font-size: 2.8rem; }
  section { padding: 4rem 3rem; }
  .story-card {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  .story-image { height: 240px; }
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
  }
  .nav-links { display: none; }
  section { padding: 3rem 1.5rem; }

  /* Hero */
  .hero {
    padding: 5rem 1.5rem 3rem;
    min-height: 85vh;
    justify-content: flex-start;
    padding-top: 7rem;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }
  .hero-sub {
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }
  .hero-dates {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .hero-cta {
    width: auto;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    border-radius: 50px;
    justify-content: center;
  }

  /* Section text */
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }
  .section-label {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }

  /* About */
  .about p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }

  /* Stories */
  .stories-section {
    padding: 3rem 1.5rem 4rem;
  }
  .stories-container {
    gap: 2rem;
  }
  .stories-container h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .story-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
    border-radius: 12px;
  }
  .story-image {
    height: 180px;
    border-radius: 10px;
  }
  .story-content h3 {
    font-size: 1.3rem;
  }
  .story-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .story-text {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .story-text strong {
    display: block;
    margin-bottom: 0.2rem;
  }

  /* Program */
  .program p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  .wyg-list li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.9rem;
    padding-left: 1.5rem;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .team-card {
    border-radius: 12px;
  }

  /* Who */
  .who-list li {
    font-size: 1rem;
  }
  .who-closer {
    font-size: 1.1rem;
  }

  /* FAQ */
  .faq {
    padding: 3rem 1.5rem;
  }
  .faq-item {
    padding: 1.3rem 0;
  }
  .faq-q {
    font-size: 1.05rem;
    line-height: 1.4;
    padding-right: 0.5rem;
  }
  .faq-q::after {
    font-size: 1.5rem;
    min-width: 24px;
  }
  .faq-a p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .faq-item.open .faq-a {
    max-height: 500px;
  }

  /* Whitelist */
  .whitelist p {
    font-size: 1.05rem;
  }
  .whitelist-btn {
    width: auto;
    padding: 1rem 2.5rem;
    border-radius: 50px;
  }

  /* Modal */
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
    max-width: calc(100vw - 2rem);
    border-radius: 12px;
  }
}

/* Extra small phones */
@media (max-width: 375px) {
  section { padding: 3rem 1.2rem; }
  .hero {
    padding: 6rem 1.2rem 2.5rem;
    min-height: 80vh;
  }
  .hero h1 { font-size: 1.65rem; }
  .hero-sub { font-size: 1rem; }
  .stories-section { padding: 3rem 1.2rem 3rem; }
  .story-card {
    padding: 1.2rem;
    border-radius: 10px;
  }
  .story-image { height: 140px; }
  .story-content h3 { font-size: 1.1rem; }
  .story-text { font-size: 0.85rem; line-height: 1.6; }
  .story-text p { margin-bottom: 0.7rem; }
}
