/* ==========================================================================
   The Intellectual Summit — Responsive layers
   Breakpoints: 1340 / 1180 / 1024 / 900 / 700 / 480
   ========================================================================== */

@media (max-width: 1180px) {
  .nav-link { padding-inline: 0.6rem; font-size: 0.88rem; }
  .footer-grid { gap: 2rem; }
}

@media (max-width: 1024px) {
  :root { --section-y: clamp(3.5rem, 8vw, 5.5rem); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .hero-flyer-card { margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* -------- switch to mobile navigation -------- */
@media (max-width: 1340px) {
  .nav-toggle { display: flex; }
  .nav-cta-mobile { display: block; }
  .header-cta .btn-outline { display: none; }

  .nav {
    position: fixed;
    inset: 76px 0 auto;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }

  .nav-link { display: flex; justify-content: space-between; padding: 0.9rem 0.5rem; font-size: 1rem; border-radius: var(--radius-sm); border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--accent); }

  .has-dropdown { display: block; }
  .dropdown {
    position: static;
    translate: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.2rem 0 0.7rem 0.75rem;
    min-width: 0;
    background: transparent;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown.is-open .chev { transform: rotate(180deg); }
  .dropdown a { padding: 0.6rem 0.5rem; }
  .nav .btn { margin-top: 1rem; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .container { padding-inline: 1.15rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .header-cta .btn { display: none; }
  .nav .btn { width: 100%; }
  .fact { flex-direction: column; gap: 0.15rem; }
  .fact dd { text-align: left; }
  .hero-flyer-card { width: min(100%, 22rem); }
  .hero-flyer-card::before { inset: 0.85rem -0.55rem -0.65rem 0.65rem; }
  .hero-flyer-cta { margin-top: 0.85rem; }
  .hero-meta { gap: 0.35rem 1rem; font-size: 0.72rem; }
  .step { padding: 1.35rem 1.25rem 1.35rem 1.25rem; }
  .step::before { position: static; display: block; margin-bottom: 0.4rem; }
  .cta-banner { padding: 1.75rem 1.35rem; }
  .highlight { font-size: 1.1rem; padding-left: 1rem; }
}

@media (max-width: 480px) {
  .brand-tag { display: none; }
  h1 { font-size: 2.15rem; }
  .marquee-track { font-size: 0.8rem; }
}

/* -------- speakers page -------- */
@media (max-width: 1024px) {
  .speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .speaker-hero-inner { grid-template-columns: 1fr; }
  .speaker-hero-copy { max-width: 48rem; }
  .speaker-hero-art { min-height: 25rem; }
  .speaker-theme-mark { width: min(100%, 28rem); }
  .keynote-feature { grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.2fr); }
  .editorial-profile,
  .editorial-profile.is-featured { grid-template-columns: minmax(16rem, .78fr) minmax(0, 1.22fr); gap: 2rem; }
  .editorial-profile.is-reversed { grid-template-columns: minmax(0, 1.22fr) minmax(16rem, .78fr); }
  .speakers-cta { grid-template-columns: 1fr; }
  .speakers-cta-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .speaker-grid, .speaker-grid.cols-2 { grid-template-columns: 1fr; }
  .speaker-card { max-width: 420px; margin-inline: auto; width: 100%; }
  .speaker-hero { padding-block: 3.75rem; }
  .speaker-hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .speaker-hero-stats { gap: 1.25rem; }
  .speaker-hero-stats div { flex: 1 1 7rem; }
  .speaker-hero-art { min-height: 20rem; }
  .speaker-theme-mark { width: min(90%, 23rem); padding: 2.2rem; }
  .speaker-theme-mark strong { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .speaker-orbit.orbit-one { width: 22rem; height: 22rem; }
  .speaker-orbit.orbit-two { width: 17rem; height: 17rem; }
  .keynote-feature { grid-template-columns: 1fr; border-radius: 1.35rem; }
  .keynote-portrait { min-height: 27rem; }
  .keynote-copy { padding: 2rem 1.4rem 2.3rem; }
  .lineup-heading { grid-template-columns: 1fr; gap: 1rem; }
  .editorial-profile,
  .editorial-profile.is-featured,
  .editorial-profile.is-reversed { grid-template-columns: 1fr; gap: .5rem; border-radius: 1.35rem; }
  .editorial-profile.is-reversed .editorial-photo,
  .editorial-profile.is-reversed .editorial-copy { grid-column: auto; grid-row: auto; }
  .editorial-profile.is-reversed .editorial-copy { padding-left: 1rem; }
  .editorial-photo,
  .king-ken-photo { aspect-ratio: 4 / 5; }
  .editorial-copy { padding: 1.5rem 1rem 1.75rem; }
  .panelist-grid { grid-template-columns: 1fr; }
  .panelist-profile { max-width: 34rem; margin-inline: auto; }
  .speakers-cta-actions { grid-template-columns: 1fr; width: 100%; }
}
