:root{
    --midnight:#040105;
    --violet-black:#1f1622;
    --indigo:#463b6a;
    --earth:#5c3829;
    --fire:#e67328;
    --text:#e9e6ee;
    --muted:#bfb7ca;
  }
  *{box-sizing:border-box}
  body{
    margin:0; font-family:"Montserrat",sans-serif;
    color:var(--text); background:var(--midnight);
  }
  img{max-width:100%;display:block}
  a{text-decoration:none;color:inherit}
  .wrap{width:min(1100px,90vw);margin:auto}

  /* Header */
  .site-header{
    position:fixed;top:0;left:0;right:0;z-index:100;
    background:#000;border-bottom:1px solid rgba(255,255,255,.1);
    transition:transform 0.3s ease;
  }
  .site-header.hidden{
    transform:translateY(-100%);
  }
  .header-wrap{
    display:flex;align-items:center;justify-content:space-between;
    padding:1rem;
  }
  .brand{
    display:flex;align-items:center;gap:.5rem;
    font-weight:800;font-size:1.1rem;
  }
  .brand-mark{width:32px;height:32px}
  .nav{display:flex;gap:2rem}
  .nav a{
    color:var(--muted);font-weight:500;
    transition:color .25s ease;
  }
  .nav a:hover{color:var(--text)}

  /* Hamburger menu */
  .hamburger{
    display:none;flex-direction:column;gap:4px;
    cursor:pointer;padding:.5rem;
  }
  .hamburger span{
    width:20px;height:2px;background:var(--text);
    transition:.3s ease;
  }
  .hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
  .hamburger.open span:nth-child(2){opacity:0}
  .hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(7px,-6px)}

  /* Mobile nav */
  .nav.mobile{display:none;position:absolute;top:100%;left:0;right:0;background:#000;border-bottom:1px solid rgba(255,255,255,.1);padding:1rem;text-align:center}
  .nav.mobile.open{display:flex;flex-direction:column;gap:1rem}

  /* Mobile CTA button in nav */
  .mobile-cta{margin-top:.5rem}

  @media (max-width:768px){
    .hamburger{display:flex}
    .nav{display:none}
    .btn.cta:not(.mobile-cta){display:none}
  }
  
  .bg, .bg-video{
    position:fixed;inset:0;z-index:-2;
    width:100%;height:100%;object-fit:cover;
  }
  .section{padding:64px 24px;margin:2rem auto;max-width:1100px}
  .card-wrap{
    background:rgba(20, 14, 22, 0.532);
    backdrop-filter:blur(9px);
    border:4px solid rgba(255,255,255,.1);
    border-radius:5px;
    box-shadow:0 6px 24px rgba(0,0,0,.4);
  }
  /* Compact variant for smaller sections */
  .card-wrap-compact{
    background:rgba(20, 14, 22, 0.32);
    backdrop-filter:blur(9px);
    border:4px solid rgba(255,255,255,.1);
    border-radius:5px;
    box-shadow:0 6px 24px rgba(0,0,0,.35);
    padding:32px 22px;
  }
  .card-wrap-top{
    margin-top: 100px;
    padding: 32px 22px !important;
    background:rgba(14, 9, 15, 0.668);
    border:4px solid rgba(255,255,255,.1);
    border-radius:5px;
    box-shadow:0 6px 24px rgba(0, 0, 0, 0.191);
  }
  .card-wrap-sponsors{
    background:rgba(37, 22, 3, 0.418);
    backdrop-filter:blur(18px);
    border:4px solid rgba(255,255,255,.1);
    border-radius:5px;
    box-shadow:0 6px 24px rgba(0,0,0,.4);
  }
  .hero{text-align:center;padding:100px 20px 80px}
  .hero-title{font-size:clamp(2rem,1.2rem+3vw,3.8rem);font-weight:800;margin:.4rem 0}
  .hero-sub{font-size:1.2rem;max-width:600px;margin:auto}
  .eyebrow{color:var(--muted);letter-spacing:.3px}
  .btn{
    display:inline-flex;align-items:center;justify-content:center;
    border-radius:999px;padding:.7rem 1.3rem;margin:.3rem;
    border:1px solid rgba(255,255,255,.15);transition:.25s ease;
  }
  .btn.cta{
    background:linear-gradient(180deg,#ff8a3a,var(--fire));
    color:#130b04;font-weight:800;box-shadow:0 8px 22px rgba(230,115,40,.35);
  }
  .btn.cta:hover{filter:brightness(.95)}
  .btn.ghost{background:transparent;color:var(--text)}
  .btn-lg{font-size:1.05rem}
  .btn-wide{padding:1rem 1.6rem;font-weight:800}
  .small{font-size:.9rem;color:var(--muted)}
  .bullets{list-style:none;padding:0}
  .bullets li{padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.07)}
  .quote{border-left:3px solid var(--fire);padding-left:1rem;margin:1rem 0;color:#fff}
  
  /* Speaker rows container */
  .speaker-rows{
    max-width:650px;margin:30px auto 0;
  }

  /* Speaker rows */
  .speaker-row{
    display:grid;gap:10px;margin-bottom:10px;
  }

  /* Top row: 7 icons, full width */
  .top-row{
    grid-template-columns:repeat(7,1fr);
  }

  /* Bottom row: 6 icons, centered */
  .bottom-row{
    grid-template-columns:repeat(6,90px);
    justify-content:center;
  }

  /* Speaker images */
  .speaker-row img{
    width:90px;height:90px;object-fit:cover;border-radius:50%;
    box-shadow:0 0 0 2px rgba(255,255,255,.15);
    transition:.3s ease;
  }
  .speaker-row img:hover{box-shadow:0 0 0 2px var(--fire)}

  /* Mobile responsive speaker rows */

  

  @media (max-width: 480px) {
    /* Mobile: Reduce to 3 columns each for better fit */
    .top-row {
      grid-template-columns: repeat(4, 1fr);
    }
    .bottom-row {
      grid-template-columns: repeat(4, 1fr);
      justify-content: center;
    }
    .speaker-row img {
      width: 55px;
      height: 55px;
    }
  }

  @media (max-width: 360px) {
    /* Small mobile: Auto-fit for maximum flexibility */
    .top-row {
      grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
    }
    .bottom-row {
      grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
      justify-content: center;
    }

    /* Slightly smaller icons on very small screens */
    .speaker-row img {
      width: 55px;
      height: 55px;
    }
  }

  /* speakers list (detailed bios) */
  .speakers-list{
    display:flex;flex-direction:column;gap:2rem;
    max-width:800px;margin:30px auto 0;
  }
  .speakers-title{
    text-align:center;
    font-size:2rem;
    font-weight:800;
    margin:.4rem 0
  }
  .speaker-card{
    display:flex;gap:1.5rem;align-items:flex-start;
    padding:1.5rem;background:rgba(31,22,34,.55);
    border:1px solid rgba(255,255,255,.1);
    border-radius:8px;backdrop-filter:blur(10px);
  }
  .speaker-photo{
    width:120px;height:120px;object-fit:cover;border-radius:50%;
    box-shadow:0 0 0 3px rgba(255,255,255,.15);
    transition:.3s ease;flex-shrink:0;
  }
  .speaker-photo:hover{box-shadow:0 0 0 4px var(--fire)}
  .speaker-bio h3{margin:.2rem 0 .5rem;font-weight:700;font-size:1.2rem}
  .speaker-tagline{
    font-style:italic;color:var(--fire);margin:.3rem 0;
    font-weight:500;
  }
  .speaker-bio p{margin:.4rem 0;color:var(--text)}
  .speaker-social{
    color:var(--muted);font-size:.9rem;margin:.6rem 0 0;
  }
  .speaker-social strong{color:var(--text)}

  /* Mobile responsive */
  @media (max-width:640px){
    .speaker-card{flex-direction:column;text-align:center;gap:1rem}
    .speaker-photo{width:100px;height:100px;margin:0 auto}
  }
  
  /* Jesse intro card */
  .jesse-card{
    display:flex;align-items:center;gap:1rem;margin-bottom:1.4rem;
    background:rgba(31,22,34,.55);border:1px solid rgba(255,255,255,.1);
    border-radius:5px;padding:1rem;backdrop-filter:blur(10px);
  }
  .jesse-avatar{width:70px;height:70px;border-radius:50%;flex-shrink:0}
  .jesse-text h3{margin:.2rem 0;font-weight:700}

  /* Mobile responsive Jesse card */
  @media (max-width: 640px) {
    .jesse-card {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }

    .jesse-avatar {
      margin: 0 auto;
    }
  }
  
  /* topics */
  .topic-cols{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
  .topic{display:flex;flex-direction:column;gap:.5rem;background:rgba(31,22,34,.35);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:1rem}
  .topic-controls{display:flex;justify-content:center;order:0}
  .topic-toggle{background:transparent;border:none;cursor:pointer;transition:transform .2s ease;display:inline-flex;align-items:center;justify-content:center}
  .topic-toggle img{width:32px;height:auto;opacity:.65;display:block;filter:drop-shadow(0 4px 10px rgba(0, 0, 0, 0.629));transition:transform .2s ease,opacity .2s ease}
  .topic-toggle:active img{transform:scale(.6)}
  .topic.open .topic-toggle img{transform:scale(.85);opacity:.8}
  .topic-list{list-style:none;padding:0;margin:0;border-top:1px solid rgba(255,255,255,.08);overflow:hidden;max-height:0;transition:max-height .35s ease;order:1;font-size:.8rem;line-height:1.2}
  .topic-list li{padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.07)}
  .topic-list li:last-child{border-bottom:none}

  /* Organizers compact sizing */
  #organizers{max-width:880px;margin:2rem auto}
  .topic.open .topic-controls{order:2;margin-top:.25rem}
  
  /* FAQ */
  .faq-item{margin:1rem 0;background:rgba(20,14,22,.6);border-radius:5px;border:1px solid rgba(255,255,255,.1)}
  .faq-q{padding:1rem;cursor:pointer;font-weight:600;position:relative}
  .faq-a{padding:0 1rem 1rem;border-top:1px solid rgba(255,255,255,.1)}
  .faq-q::after{content:"+";position:absolute;right:1rem}
  .faq-item[open] .faq-q::after{content:"–";color:var(--fire)}

  /* VIP seats remaining */
  .seats{color:var(--fire);font-size:1.0rem;font-weight:400}

  /* STRIPE BUY BUTTON */
  .stripe-buy-button
  {
    margin-top:1rem;
  }

  
  /* Sponsors */
  .sponsors-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }

  .sponsors-list img {
    height: auto;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }

  /* Individual logo sizing for readability */
  .sponsors-list img[alt="Kortex"] {
    width: 180px !important;
    max-width: 180px !important;
    max-height: 170px !important;
    padding: 10px 15px;
    border-radius: 10px;
    background:rgba(255, 255, 255, 0.134);
  }

  .sponsors-list img[alt="Medicine"] {
    width: 235px !important;
    max-width: 235px !important;
    max-height: 170px !important;
    padding: 10px 15px;
    border-radius: 10px;
    background:rgba(255, 255, 255, 0.134);
  }

  .sponsors-list img[alt="Oakmoss"] {
    width: 220px !important;
    max-width: 220px !important;
    max-height: 170px !important;
    padding: 10px 15px;
    border-radius: 10px;
    background:rgba(255, 255, 255, 0.134);
  }

  .sponsors-list img:hover {
    opacity: 1;
  }

  /* Mobile responsive sponsors */
  @media (max-width: 768px) {
    .sponsors-list {
      gap: 2rem;
      flex-direction: column;
    }

    /* Tablet sizing */
    .sponsors-list img[alt="Kortex"] {
      width: 190px !important;
      max-width: 190px !important;
      max-height: none !important;
    }

    .sponsors-list img[alt="Medicine"] {
      width: 240px !important;
      max-width: 240px !important;
      max-height: none !important;
    }

    .sponsors-list img[alt="Oakmoss"] {
      width: 200px !important;
      max-width: 200px !important;
      max-height: none !important;
    }
  }

  @media (max-width: 480px) {
    .sponsors-list {
      gap: 1.5rem;
    }

    /* Mobile sizing */
    .sponsors-list img[alt="Kortex"] {
      width: 170px !important;
      max-width: 170px !important;
      max-height: 170px !important;
      padding: 10px 15px;
      border-radius: 10px;
      background:rgba(255, 255, 255, 0.134);
    }

    .sponsors-list img[alt="Medicine"] {
      width: 240px !important;
      max-width: 240px !important;
      max-height: none !important;
    }

    .sponsors-list img[alt="Oakmoss"] {
      width: 220px !important;
      max-width: 220px !important;
      max-height: none !important;
    }
  }

  /* Footer + sticky CTA */
  .site-footer{text-align:center;padding:1.5rem 0;color:var(--muted)}
  .sticky-cta{
    position:fixed;bottom:16px;left:0;right:0;text-align:center;
    transition:opacity .4s ease;opacity:0;pointer-events:none;
  }
  .sticky-cta.show{opacity:1;pointer-events:auto}
  
  /* Fade-in animation */
  .fadein{opacity:0;transform:translateY(25px);transition:opacity .8s ease,transform .8s ease}
  .fadein.visible{opacity:1;transform:none}
  
/* Ensure speakers section is visible */
#speakers {
  position: relative;
  z-index: 1;
  min-height: 100px; /* Ensure it has height even if content is hidden */
}

/* Fallback: if fadein fails, ensure content is visible after a delay */
.fadein {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .8s ease, transform .8s ease;
}

.fadein.visible {
  opacity: 1;
  transform: none;
}

/* Mobile-specific: lower threshold for visibility detection */
@media (max-width: 768px) {
  #speakers.fadein:not(.visible) {
    /* On mobile, if still not visible after page load, force visibility check */
    animation: fadeInFallback 0.1s ease 0.5s forwards;
  }
}

@keyframes fadeInFallback {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Organizers mini gallery */
#organizers { padding: 24px 18px; }
#organizers h2 { margin-top: 0; font-size: 1.75rem; }

.organizers-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
}

@media (max-width: 960px){
  .organizers-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px){
  .organizers-grid{ grid-template-columns:1fr; }
}

.organizer-card{
  background:rgba(31,22,34,.55);
  border:1px solid rgba(255,255,255,.12);
  border-radius:6px;
  padding:.5rem;
  text-align:center;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.organizer-photo{
  width:55px;height:55px;object-fit:cover;border-radius:6px;
  margin:0 auto .35rem;
  box-shadow:0 0 0 2px rgba(255,255,255,.12);
}

.organizer-name{
  margin:.15rem 0 .08rem;
  font-size:.9rem;
  font-weight:700;
}

.organizer-role{
  margin:0;
  font-size:.75rem;
  color:var(--muted);
}

/* Subtle unique standouts per card */
.standout-1{ box-shadow:0 8px 20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.standout-2{ box-shadow:0 10px 22px rgba(0,0,0,.5), 0 8px 24px rgba(70,59,106,.25); }
.standout-3{ box-shadow:0 10px 22px rgba(0,0,0,.5), 0 8px 24px rgba(230,115,40,.18); }
.standout-4{ box-shadow:0 10px 22px rgba(0,0,0,.5), 0 8px 24px rgba(95, 77, 58, .22); }

.organizer-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.55);
}