/* ============================================
   MOTI 2027 — shared stylesheet
   ============================================ */

:root {
  --navy: #122340;
  --navy-dark: #0E0D0B;
  --gold: #C9A227;
  --ivory: #F6F3EC;
  --ivory-alt: #EFE9DA;
  --card-border: #E4DFD3;
  --text-body: #3A362E;
  --text-muted: #8A8377;
  --placeholder-bg: #E4DFD3;
  --placeholder-border: #B9B2A0;

  --font-display: 'Playfair Display', serif;
  --font-label: 'Cinzel', serif;
  --font-nav: 'Marcellus', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: #1C1A16;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-label);
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--gold);
  font-size: 13px;
}

/* ---------- NAV ---------- */
.top-nav {
  width: 100%;
  box-sizing: border-box;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: var(--font-nav);
}
.nav-logo {
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
}
.nav-logo .logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  height: 42px;
}
.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}
.nav-logo .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav-logo .wordmark .top,
.nav-logo .wordmark .bottom {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ivory);
}
.nav-logo .wordmark .bottom {
  font-size: 11px;
  letter-spacing: 2.5px;
}
.nav-center-group {
  display: flex;
  align-items: center;
  gap: 32px;
  grid-column: 2;
  justify-self: center;
}
.nav-link {
  color: var(--ivory);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: opacity .15s ease;
  white-space: nowrap;
}
.nav-link:hover { opacity: .7; }
.nav-toggle { display: none; }

/* Homepage only: nav's Get Tickets stays hidden over the hero, since the
   hero already has its own ticket CTA; it fades in once you scroll past it. */
body.home .nav-right > a.ticket-btn {
  display: none;
}
body.home.scrolled .nav-right > a.ticket-btn {
  display: inline-flex;
}

.conf-pill a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 11px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
  transition: all .18s ease;
  white-space: nowrap;
}
.conf-pill a:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.55);
}
.conf-pill .pill-arrow {
  flex-shrink: 0;
  transition: transform .18s ease;
}
.conf-pill a:hover .pill-arrow { transform: translateX(2px); }

.dropdown { position: relative; }
.dropdown-trigger { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ivory);
  border-bottom: 1.5px solid var(--ivory);
  transform: rotate(45deg);
  margin-top: -4px;
}
.dropdown-menu {
  position: absolute;
  top: 100%; right: 0;
  margin-top: 16px;
  background: var(--ivory);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all .15s ease;
  overflow: hidden;
  z-index: 50;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 13px 20px;
  font-size: 14px; color: var(--navy);
  letter-spacing: .5px;
  border-bottom: 1px solid var(--ivory-alt);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #F1ECDF; }

.nav-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Sponsor button: same pill shape and Marcellus lettering as the
   2027 Conference pill, but outlined and smaller so it reads as secondary. */
.sponsor-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 7px 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s ease;
}
.sponsor-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,162,39,0.35);
}
.sponsor-btn:focus-visible,
.sponsor-modal-close:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
}
.ticket-btn {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: 4px;
  white-space: nowrap;
  transition: filter .15s ease;
  border: none;
  cursor: pointer;
}
.ticket-btn:hover { filter: brightness(1.06); }

/* ---------- PAGE HEADER (About-family pages) ---------- */
.page-header {
  width: 100%;
  box-sizing: border-box;
  background: var(--navy);
  padding: 34px 48px;
  text-align: center;
}
.page-header h1 { font-size: 36px; color: var(--ivory); }
.page-header .eyebrow { display: none; }
.page-header .sub {
  font-family: var(--font-nav);
  font-size: 14px;
  color: #CFC9BD;
  margin-top: 14px;
}

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 640px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  background: linear-gradient(160deg, #181510 0%, var(--navy) 55%, var(--navy-dark) 100%);
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Respect reduced-motion preference — the gradient background on .hero
   still shows underneath, so nothing looks broken. Phones keep the video:
   it's the primary way people will see this site. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,13,11,0.35) 0%, rgba(18,35,64,0.3) 45%, rgba(14,13,11,0.65) 100%);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute; top: 24px; left: 24px; right: 24px; bottom: 24px;
  border: 1px solid rgba(201,162,39,0.25);
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  font-size: 64px; line-height: 1.05; color: var(--ivory); max-width: 900px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.65);
}
.hero .eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,0.65); }
.hero .when {
  font-family: var(--font-nav);
  font-weight: 400;
  margin-top: 26px;
  font-size: 17px;
  color: #F1ECDF;
  letter-spacing: .75px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.hero .ticket-btn.lg {
  margin-top: 38px;
  font-size: 16px;
  padding: 16px 40px;
}
.hero .broll-note {
  font-family: var(--font-label);
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ---------- INFO CARDS ---------- */
.info-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--ivory);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-section h2 { font-size: 34px; color: var(--navy); margin-bottom: 8px; }
.rule { width: 52px; height: 3px; background: var(--gold); margin-bottom: 36px; }
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1040px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}
.info-card .label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.info-card .value { font-size: 19px; font-weight: 600; color: var(--navy); }

.ticket-btn.dark { background: var(--navy); color: var(--ivory); margin-top: 40px; font-size: 15px; padding: 14px 34px; }

/* ---------- SOCIAL ---------- */
.social-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--ivory-alt);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.social-section .label {
  font-family: var(--font-label);
  font-size: 13px; letter-spacing: 3px; color: var(--navy);
  font-weight: 600; margin-bottom: 20px;
}
.social-row { display: flex; gap: 20px; }
.social-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s ease;
}
.social-btn:hover { opacity: .75; }

/* ---------- VIDEO ---------- */
.video-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--ivory);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.video-section h2 { font-size: 30px; color: var(--navy); margin-bottom: 32px; }
.video-embed {
  width: 100%; max-width: 860px; aspect-ratio: 16/9;
  border-radius: 10px; overflow: hidden;
  border: none;
}
.video-tile {
  width: 100%; aspect-ratio: 16/9;
  background: #181510; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.video-tile .play {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(246,243,236,0.12);
  display: flex; align-items: center; justify-content: center;
}
.video-tile .tri {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--gold);
  margin-left: 4px;
}
.video-caption { font-family: var(--font-nav); font-size: 14px; color: var(--navy); margin-top: 12px; }

/* ---------- SPONSORS ---------- */
.sponsor-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--navy);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sponsor-section .label {
  font-family: var(--font-label);
  font-size: 13px; letter-spacing: 3px; color: var(--ivory);
  font-weight: 600; margin-bottom: 26px;
}
.sponsor-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; max-width: 1040px; }
.sponsor-tile {
  font-family: var(--font-nav);
  font-weight: 400;
  width: 220px; height: 130px;
  background: #FFFFFF;
  border: none;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 1px; color: #CFC9BD;
  overflow: hidden;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sponsor-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.3); }
.sponsor-tile img { width: 100%; height: 100%; object-fit: contain; }
.copyright { font-family: var(--font-label); margin-top: 34px; font-size: 11px; color: var(--text-muted); }

/* ---------- MISSION PAGE ---------- */
.mission-body { width: 100%; box-sizing: border-box; padding: 72px 48px; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.mission-row { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mission-row.reverse .text { order: 2; }
.mission-row.reverse .photo { order: 1; }
.mission-row .text { font-size: 17px; line-height: 1.7; color: var(--text-body); }
.mission-row.three-col { grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; align-items: center; }
.mission-row.three-col .photo { height: auto; aspect-ratio: 2/3; }
.photo-placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 2px; color: var(--text-muted);
  border-radius: 8px;
}
.photo { border-radius: 8px; overflow: hidden; height: auto; aspect-ratio: 2/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mission-gallery { width: 100%; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mission-gallery .photo-placeholder, .mission-gallery img { border-radius: 8px; }
.mission-gallery img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }

/* ---------- EXECUTIVE BOARD ---------- */
.board-body { width: 100%; box-sizing: border-box; padding: 72px 48px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.board-card {
  width: 100%; max-width: 1000px;
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  background: #fff; border: 1px solid var(--card-border);
  border-radius: 10px; padding: 28px;
}
.headshot {
  width: 100%; height: 100%; aspect-ratio: 1/1;
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-label);
  font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted);
  text-align: center; overflow: hidden;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.board-card .name { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.role-tag {
  display: inline-block; width: fit-content;
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 1.5px; color: var(--navy);
  background: var(--ivory-alt); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 5px 14px;
  margin: 10px 0;
}
.board-card .bio { font-size: 15px; line-height: 1.6; color: var(--text-body); margin-top: 6px; }

/* ---------- PRIVACY POLICY ---------- */
.policy-body { width: 100%; box-sizing: border-box; padding: 64px 48px; display: flex; justify-content: center; }
.policy-content { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 34px; }
.policy-section h2 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.policy-section p { font-size: 15px; line-height: 1.75; color: var(--text-body); margin: 0 0 8px; }
.policy-section ul { margin: 0 0 12px; padding-left: 22px; }
.policy-section li { font-size: 15px; line-height: 1.75; color: var(--text-body); }

/* ---------- PAST EVENTS ---------- */
.events-body { width: 100%; box-sizing: border-box; padding: 64px 48px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.events-group { width: 100%; max-width: 1100px; }
.events-group h2 { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.events-group .sub { font-family: var(--font-nav); font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.event-video-embed { width: 100%; aspect-ratio: 16/9; border-radius: 8px; border: none; display: block; }

/* ---------- CONFERENCE PAGE ---------- */
.conf-hero { width: 100%; box-sizing: border-box; background: var(--navy); padding: 64px 48px; text-align: center; }
.conf-hero h1 { font-size: 44px; color: var(--ivory); margin-bottom: 36px; }
.lineup-graphic {
  width: 100%; max-width: 1100px; margin: 0 auto;
  aspect-ratio: 21/9;
  background: rgba(246,243,236,0.06);
  border: 1px dashed rgba(246,243,236,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-label);
  font-size: 12px; letter-spacing: 2px; color: #CFC9BD;
  overflow: hidden;
}
.lineup-graphic img { width: 100%; height: 100%; object-fit: cover; }

.schedule-section { width: 100%; box-sizing: border-box; padding: 64px 48px; display: flex; flex-direction: column; align-items: center; }
.schedule-section h2 { font-size: 30px; color: var(--navy); margin-bottom: 6px; }
.schedule-section .sub { font-family: var(--font-nav); font-size: 14px; color: var(--text-muted); margin-bottom: 36px; }
.timeline { width: 100%; max-width: 760px; }
.timeline-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--card-border); }
.timeline-row:last-child { border-bottom: none; }
.timeline-row .time { font-family: var(--font-label); font-size: 13px; letter-spacing: 1.5px; color: var(--gold); font-weight: 600; }
.timeline-row .session { font-family: var(--font-nav); font-size: 17px; color: var(--navy); }

.speakers-section { width: 100%; box-sizing: border-box; background: var(--ivory-alt); padding: 64px 48px; display: flex; flex-direction: column; align-items: center; }
.speakers-section h2 { font-size: 30px; color: var(--navy); margin-bottom: 36px; }
.speaker-list { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 28px; }
.speaker-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 28px;
  background: #fff; border: 1px solid var(--card-border);
  border-radius: 10px; padding: 24px;
}
.speaker-card .name { font-family: var(--font-display); font-size: 21px; color: var(--navy); }
.speaker-card .talk { font-family: var(--font-label); font-size: 11px; letter-spacing: 1.5px; color: var(--gold); margin: 6px 0 10px; }
.speaker-card .bio { font-size: 15px; line-height: 1.6; color: var(--text-body); }

/* ---------- EXHIBITORS PAGE ---------- */
.exhibitors-body {
  width: 100%; box-sizing: border-box;
  padding: 72px 48px;
  display: flex; flex-direction: column; align-items: center;
  gap: 48px;
}
.exhibit-gallery {
  width: 100%; max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.exhibit-gallery > * { width: 100%; aspect-ratio: 3/2; border-radius: 8px; min-width: 0; }
.exhibit-gallery img { height: auto; object-fit: cover; display: block; }
.exhibit-invite {
  max-width: 720px; margin: 0;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 20px; line-height: 1.6;
  color: var(--navy);
}
.exhibit-invite a {
  border-bottom: 2px solid var(--gold);
  transition: color .15s ease;
  overflow-wrap: anywhere;
}
.exhibit-invite a:hover { color: var(--gold); }
.exhibit-divider {
  width: 100%; max-width: 1040px;
  display: flex; align-items: center; gap: 20px;
}
.exhibit-divider .line { flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.exhibit-divider .label {
  font-family: var(--font-label);
  font-size: 13px; letter-spacing: 3px; font-weight: 600;
  color: var(--navy); white-space: nowrap;
}
.exhibitor-grid .sponsor-tile {
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  color: var(--text-muted);
}
.exhibitor-grid .sponsor-tile:hover { box-shadow: 0 10px 22px rgba(0,0,0,0.14); }

/* ---------- SPONSOR FORM MODAL ---------- */
.sponsor-modal {
  border: none; padding: 0;
  background: transparent;
  width: calc(100% - 32px); max-width: 720px;
  max-height: calc(100vh - 48px);
  margin: auto;
  overflow: visible;
}
.sponsor-modal::backdrop {
  background: rgba(14,13,11,0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.sponsor-modal[open] { animation: sponsor-modal-in .22s ease; }
@keyframes sponsor-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sponsor-modal-panel {
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px);
  background: var(--ivory);
  border: 1px solid rgba(201,162,39,0.45);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.sponsor-modal-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 20px 22px 18px 28px;
}
.sponsor-modal-eyebrow {
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 3px; font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}
.sponsor-modal-head h2 { font-size: 26px; color: var(--ivory); }
.sponsor-modal-close {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(201,162,39,0.6);
  color: var(--gold);
  font-size: 24px; line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
}
.sponsor-modal-close:hover { background: var(--gold); color: var(--navy); }
.sponsor-modal-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sponsor-modal-body iframe {
  display: block;
  width: 100%; max-width: 640px;
  height: 1942px;
  margin: 0 auto;
  border: 0;
}
body.modal-open { overflow: hidden; }

/* ---------- FOOTER (shared) ---------- */
.site-footer {
  width: 100%; box-sizing: border-box;
  background: var(--navy);
  padding: 32px 48px;
  text-align: center;
  font-family: var(--font-label);
  font-size: 11px; color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  /* Compact mobile nav: row 1 is just the logo + hamburger. The 2027
     Conference button and Get Tickets stay immediately visible below it
     since they're the two things people actually need; About's sub-links
     and Past Events tuck into the hamburger panel. */
  .top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }
  .nav-logo { order: 1; }
  .nav-right { display: contents; }
  .sponsor-btn {
    order: 2;
    margin-left: auto;
    margin-right: 10px;
    font-size: 12px;
    padding: 6px 14px;
  }
  .nav-logo .logo-plate, .nav-logo img { height: 34px; }
  .nav-logo .wordmark .top, .nav-logo .wordmark .bottom { font-size: 11px; }
  .nav-logo .wordmark .bottom { font-size: 9px; }
  .nav-toggle {
    order: 3;
    display: block;
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 22px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
  }
  .nav-right > a.ticket-btn {
    order: 4;
    flex-basis: 100%;
    text-align: center;
    margin-top: 10px;
  }
  .nav-center-group {
    display: contents;
  }
  .conf-pill {
    order: 5;
    flex-basis: 100%;
    margin-top: 10px;
    text-align: center;
  }
  .conf-pill a {
    justify-content: center;
    font-size: 15px;
    padding: 9px 20px;
  }
  /* Everywhere except the homepage, 2027 Conference comes before Get Tickets. */
  body:not(.home) .conf-pill { order: 4; }
  body:not(.home) .nav-right > a.ticket-btn { order: 5; }
  .dropdown, .nav-past-link {
    order: 6;
    flex-basis: 100%;
    display: none;
  }
  .top-nav.menu-open .dropdown,
  .top-nav.menu-open .nav-past-link {
    display: block;
  }
  .nav-past-link { margin-top: 18px; text-align: center; }
  .dropdown { margin-top: 18px; }
  .dropdown-trigger { justify-content: center; pointer-events: none; }
  .dropdown-trigger .caret { display: none; }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    margin-top: 10px;
    min-width: 0;
  }
  .dropdown-menu a { color: var(--ivory); text-align: center; padding: 8px 0; }
  .dropdown-menu a:hover { background: transparent; opacity: .7; }
  .hero h1 { font-size: 40px; }
  .info-cards, .mission-row, .board-card, .speaker-card, .events-grid { grid-template-columns: 1fr; }
  .mission-row .photo { max-width: 220px; margin: 0 auto; }
  .mission-gallery { gap: 8px; }
  .mission-gallery img { border-radius: 5px; }
  .hero { padding: 56px 20px; }
  .page-header, .info-section, .social-section, .video-section, .sponsor-section, .mission-body, .board-body, .policy-body, .events-body, .exhibitors-body, .schedule-section, .speakers-section, .conf-hero { padding-left: 20px; padding-right: 20px; }
}

/* Mid-size screens: tighten the desktop nav so logo, center links,
   Sponsor and Get Tickets all fit on one row. */
@media (min-width: 901px) and (max-width: 1240px) {
  .top-nav { padding: 14px 24px; gap: 14px; }
  .nav-center-group { gap: 20px; }
  .nav-link { font-size: 14px; }
  .conf-pill a { font-size: 15px; padding: 9px 18px; }
  .nav-right { gap: 10px; }
  .sponsor-btn { font-size: 12px; padding: 6px 13px; }
  .top-nav .ticket-btn { font-size: 13px; padding: 9px 14px; }
}

@media (max-width: 900px) {
  .exhibit-gallery { grid-template-columns: 1fr; gap: 14px; max-width: 520px; }
  .exhibit-gallery .photo-placeholder { font-size: 8px; letter-spacing: 1px; text-align: center; padding: 4px; }
  .exhibit-invite { font-size: 17px; }
  .exhibit-divider { gap: 12px; }
  .exhibit-divider .label { font-size: 11px; letter-spacing: 2px; }
  .exhibitor-grid { gap: 14px; }
  .exhibitor-grid .sponsor-tile { width: calc(50% - 7px); height: 100px; padding: 14px; }
}

/* Phones: the sponsor form opens as a full-screen sheet. */
@media (max-width: 600px) {
  .sponsor-modal {
    width: 100%; max-width: none;
    height: 100%; max-height: none;
    margin: 0;
  }
  .sponsor-modal-panel {
    height: 100%; max-height: none;
    border: none; border-radius: 0;
  }
  .sponsor-modal-head { padding: 14px 16px 12px 20px; }
  .sponsor-modal-head h2 { font-size: 21px; }
}

/* Very small phones (iPhone SE etc.): keep logo, Sponsor and the menu icon on one row. */
@media (max-width: 380px) {
  .top-nav { column-gap: 8px; }
  .nav-logo { gap: 8px; }
  .sponsor-btn { font-size: 11px; letter-spacing: 1px; padding: 5px 11px; margin-right: 2px; }
}
