.foodtech-summit {
  --foodtech-black: #08070d;
  --foodtech-purple: #4f07af;
  --foodtech-purple-bright: #7427df;
  --foodtech-teal: #04ddcf;
  background: var(--foodtech-black);
  color: #fdfdfd;
  overflow: hidden;
}

.foodtech-summit__hero {
  position: relative;
  height: var(--foodtech-hero-height, 670px);
  overflow: hidden;
}

.foodtech-summit__hero-media,
.foodtech-summit__hero-overlay { position: absolute; inset: 0; }
.foodtech-summit__hero-media { z-index: 0; pointer-events: none; }
.foodtech-summit__hero-media img { display: block; position: absolute; top: -15%; left: 0; width: 100%; height: 130%; object-fit: cover; object-position: center; }
.foodtech-summit__hero-overlay { z-index: 2; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 32%), linear-gradient(281deg, rgba(0,0,0,0) 18.35%, #000 94.8%); pointer-events: none; }

.foodtech-summit__hero-content { position: absolute; bottom: clamp(32px, 5vw, 80px); left: var(--nav-px); z-index: 3; width: 90%; }
.foodtech-summit__logo { width: clamp(164px, 18vw, 264px); height: auto; margin-bottom: 28px; }
.foodtech-summit h1, .foodtech-summit h2, .foodtech-summit h3 { margin-top: 0; text-transform: uppercase; }
.foodtech-summit h1 { max-width: 1200px; margin-bottom: 0; font-family: var(--font-display); font-size: 54px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.foodtech-summit h1 span { color: var(--foodtech-teal); }
.foodtech-summit__section-heading h2 span { color: var(--foodtech-teal); }

.foodtech-summit__intro { background: linear-gradient(rgba(11,8,19,.78), rgba(11,8,19,.88)), url('https://gulfoodmanufacturing.com/wp-content/uploads/2026/07/bg-aw-scaled-1.webp') center / cover no-repeat; border-top: 1px solid rgba(89,81,109,.7); border-bottom: 1px solid rgba(89,81,109,.7); }
.foodtech-summit__intro-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 140px); width: min(calc(100% - (2 * var(--nav-px))), 1440px); margin: 0 auto; padding: clamp(72px, 9vw, 140px) 0; }
.foodtech-summit__intro-heading h2 { margin-bottom: 0; }
.foodtech-summit__intro-body p { margin: 0; color: rgba(253,253,253,.82); font-size: clamp(18px, 1.5vw, 24px); line-height: 1.55; }
.foodtech-summit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.foodtech-summit__button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 150px; padding: 15px 18px 15px 20px; color: #fff; font-size: 16px; line-height: 1; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.foodtech-summit__button:hover { color: #fff; transform: translateY(-2px); }
.foodtech-summit__button span { font-size: 24px; line-height: .7; }
.foodtech-summit__button--purple { background: var(--foodtech-purple); }
.foodtech-summit__button--purple:hover { background: var(--foodtech-purple-bright); }
.foodtech-summit__button--teal { background: #008f87; }
.foodtech-summit__button--teal:hover { background: #04b9ae; }
.foodtech-summit__button--outline { border: 1px solid var(--foodtech-teal); background: transparent; }

.foodtech-summit__speakers { position: relative; background: #000 url('https://gulfoodmanufacturing.com/wp-content/uploads/2026/10/bg-spkr-img-1.webp') center / cover no-repeat; }
.foodtech-summit__speakers::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.12); pointer-events: none; }
.foodtech-summit__speakers-inner { position: relative; width: min(100%, 1544px); margin: 0 auto; padding: 80px var(--nav-px) 140px; }
.foodtech-summit__section-heading { max-width: 649px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.foodtech-summit__section-heading h2 { margin-bottom: 0; font-size: clamp(32px, 3.1vw, 48px); font-weight: 400; line-height: 1.05; letter-spacing: 0; }
.foodtech-summit__speaker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 458px)); justify-content: center; gap: 16px; }
.foodtech-summit__speaker-column { display: flex; width: 100%; max-width: 458px; flex-direction: column; gap: 40px; min-width: 0; padding: 10px; }
.foodtech-summit__speaker-column--1,
.foodtech-summit__speaker-column--3 { padding-top: 130px; padding-bottom: 10px; }
.foodtech-summit__speaker-card { position: relative; width: 100%; height: 400px; min-width: 0; flex: 0 0 auto; box-sizing: border-box; padding: 19px; border: 1px solid #59516d; background: rgba(8,7,13,.9); backdrop-filter: blur(4px); overflow: visible; isolation: isolate; }
.foodtech-summit__speaker-card::before,
.foodtech-summit__speaker-card::after { content: ''; position: absolute; z-index: 2; width: 10px; height: 10px; }
.foodtech-summit__speaker-card::before { top: -5px; left: -5px; background: var(--foodtech-purple-bright); }
.foodtech-summit__speaker-card::after { right: -5px; bottom: -5px; background: var(--foodtech-teal); }
.foodtech-summit__speaker-photo { position: absolute; inset: 19px; z-index: 1; overflow: hidden; border: 1px solid #59516d; border-radius: 2px; }
.foodtech-summit__speaker-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.foodtech-summit__speaker-overlay { position: absolute; inset: 20px; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: clamp(16px, 2vw, 24px); background: linear-gradient(180deg, transparent 30%, rgba(4,3,11,.48) 58%, rgba(4,3,11,.96) 100%); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.foodtech-summit__speaker-card:hover .foodtech-summit__speaker-overlay,
.foodtech-summit__speaker-card:focus-within .foodtech-summit__speaker-overlay { opacity: 1; transform: translateY(0); pointer-events: auto; }
.foodtech-summit__speaker-info { padding: 4px 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.foodtech-summit__speaker-info:hover,
.foodtech-summit__speaker-info:focus-visible { color: var(--foodtech-teal); text-decoration: underline; text-underline-offset: 4px; }
.foodtech-summit__speaker-details { min-width: 0; }
.foodtech-summit__speaker-details h3 { margin: 0 0 8px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.05; }
.foodtech-summit__speaker-details p { margin: 0; color: rgba(253,253,253,.86); font-size: .82rem; line-height: 1.3; }
.foodtech-summit__speaker-details .foodtech-summit__speaker-company { margin-top: 4px; color: rgba(253,253,253,.7); }
.foodtech-summit__speaker-modal-data { display: none; }
.foodtech-summit__speakers-cta { align-self: center; margin: 0; }
.foodtech-summit__speakers-cta--responsive { display: none !important; }
.foodtech-summit__empty { margin: 0; color: rgba(253,253,253,.75); }

.foodtech-summit__speaker-modal { position: fixed; inset: 0; z-index: 1000; display: grid; visibility: hidden; opacity: 0; place-items: center; transition: visibility .3s ease, opacity .3s ease; }
.foodtech-summit__speaker-modal.is-open { visibility: visible; opacity: 1; }
.foodtech-summit__speaker-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.84); }
.foodtech-summit__speaker-modal-panel { position: relative; z-index: 1; width: min(100% - 48px, 1000px); max-height: calc(100vh - var(--foodtech-summit-header-offset, 0px) - 100px); max-height: calc(100dvh - var(--foodtech-summit-header-offset, 0px) - 100px); overscroll-behavior: contain; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; border: 1px solid #59516d; background: #08070d; box-shadow: 0 22px 90px rgba(0,0,0,.65); }
.foodtech-summit__speaker-modal-panel::after { content: ''; position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; background: var(--foodtech-teal); }
.foodtech-summit__speaker-modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid #59516d; background: rgba(8,7,13,.82); color: #fff; font-size: 23px; font-weight: 300; line-height: 1; cursor: pointer; }
.foodtech-summit__speaker-modal-close:hover { border-color: var(--foodtech-teal); color: var(--foodtech-teal); }
.foodtech-summit__speaker-modal-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 2.5vw, 40px); padding: clamp(14px, 1.8vw, 26px); }
.foodtech-summit__speaker-modal-grid > * { min-width: 0; }
.foodtech-summit__speaker-modal-photo { width: min(100%, 280px); aspect-ratio: 1; overflow: hidden; border: 1px solid #59516d; }
.foodtech-summit__speaker-modal-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.foodtech-summit__speaker-modal-person h2 { margin: 18px 0 8px; font-size: clamp(16px, 2vw, 22px); line-height: 1; overflow-wrap: anywhere; }
.foodtech-summit__speaker-modal-person p { margin: 0; color: rgba(253,253,253,.78); font-size: .9rem; }
.foodtech-summit__speaker-modal-copy { align-self: center; }
.foodtech-summit__speaker-modal-eyebrow { margin: 0 0 12px; color: var(--foodtech-teal); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.foodtech-summit__speaker-modal-copy h3 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid #59516d; font-size: clamp(24px, 2.4vw, 40px); font-weight: 400; }
.foodtech-summit__speaker-modal-meta { margin: 0 0 20px; }
.foodtech-summit__speaker-modal-meta strong { display: block; color: var(--foodtech-teal); }
.foodtech-summit__speaker-modal-meta small { display: block; margin-top: 8px; color: rgba(253,253,253,.58); }
.foodtech-summit__speaker-modal-copy .foodtech-summit__speaker-modal-bio { max-width: 620px; margin: 0; color: rgba(253,253,253,.78); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.foodtech-summit-speaker-modal-open { overflow: hidden; }
/* Keep the speaker popup below the fixed site header (offset set by the page script). */
.foodtech-summit__speaker-modal { box-sizing: border-box; padding-top: var(--foodtech-summit-header-offset, 0px); }
.foodtech-summit__speaker-modal-sessions { margin-top: 26px; }
.foodtech-summit__speaker-modal-sessions ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.foodtech-summit__speaker-modal-sessions li { padding: 14px 16px; border: 1px solid #59516d; border-left: 2px solid var(--foodtech-teal); background: rgba(255,255,255,.02); }
.foodtech-summit__speaker-modal-session-meta { display: block; margin-bottom: 6px; color: var(--foodtech-teal); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.foodtech-summit__speaker-modal-session-title { display: block; color: #fff; font-size: clamp(14px, 1vw, 16px); line-height: 1.4; }

@media (max-width: 800px) {
  .foodtech-summit__hero { height: clamp(490px, 70vw, 500px); }
  .foodtech-summit__intro-inner { grid-template-columns: 1fr; gap: 28px; }
  .foodtech-summit__speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .foodtech-summit__speaker-column,
  .foodtech-summit__speaker-column--1,
  .foodtech-summit__speaker-column--3 { display: contents; }
  .foodtech-summit__speaker-column > .foodtech-summit__speakers-cta { display: none; }
  .foodtech-summit__speaker-card { height: 400px; }
  .foodtech-summit__speaker-modal-panel { width: min(100% - 24px, 640px); max-height: calc(100vh - var(--foodtech-summit-header-offset, 0px) - 24px); max-height: calc(100dvh - var(--foodtech-summit-header-offset, 0px) - 24px); }
  .foodtech-summit__speaker-modal-grid { grid-template-columns: 1fr; gap: 18px; padding: 14px 12px 18px; }
  .foodtech-summit__speaker-modal-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 21px; }
  .foodtech-summit__speaker-modal-photo { width: 100%; }
  .foodtech-summit__speaker-column,
  .foodtech-summit__speaker-column--1,
  .foodtech-summit__speaker-column--3 { padding: 10px; }
  .foodtech-summit__speakers-cta { width: auto; }
  .foodtech-summit__speakers-cta--responsive { display: flex !important; width: 100%; max-width: 220px; margin: 40px auto 0; }
}

@media (max-width: 540px) {
  .foodtech-summit__hero-media img { object-position: 65% center; }
  .foodtech-summit__speaker-grid { grid-template-columns: 1fr; }
  .foodtech-summit__actions { flex-direction: column; align-items: stretch; }
  .foodtech-summit__button { width: 100%; }
}

@media (max-width: 767px) {
  .foodtech-summit h1 { font-size: clamp(22px, 7.5vw, 36px); }
}

@media (max-width: 800px), (hover: none) {
  .foodtech-summit__speaker-overlay { opacity: 1; transform: none; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .foodtech-summit__speaker-overlay { transition: none; }
}
@media (max-width: 600px) { .foodtech-summit__speaker-modal-copy .foodtech-summit__speaker-modal-bio { font-size: 13px; } }
/* Desktop: photo, name and title stay put; only the details column scrolls. */
@media (min-width: 901px) {
  .foodtech-summit__speaker-modal-panel { overflow: hidden; }
  .foodtech-summit__speaker-modal-copy {
    align-self: start;
    max-height: calc(100vh - var(--foodtech-summit-header-offset, 0px) - 100px - 2 * clamp(14px, 1.8vw, 26px) - 2px);
    max-height: calc(100dvh - var(--foodtech-summit-header-offset, 0px) - 100px - 2 * clamp(14px, 1.8vw, 26px) - 2px);
    box-sizing: border-box;
    padding-right: 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #59516d transparent;
  }
}
