/*
 * B2B Lunch Club — 2026
 * Design system + components. No framework, no build step.
 */

/* ------------------------------------------------------------------ *
 * 1. Fonts
 * ------------------------------------------------------------------ */

@font-face {
  font-family: 'Bricolage';
  src: url('../fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ *
 * 2. Tokens
 * ------------------------------------------------------------------ */

:root {
  /* Brand — sampled from the logo artwork itself, not the old Elementor
     globals. Those had #020266 / #32CCCC, which are hand-typed approximations:
     #020266 is a near-pure blue that vibrates against white and reads cheap at
     large sizes. The mark is actually #242961 — same navy family, more red in
     it, far calmer as a big flat fill. */
  --navy: #242961;
  --navy-deep: #1a1d4d;    /* large dark sections */
  --navy-darkest: #12142f; /* footer */
  --navy-soft: #363c82;    /* hover */
  --teal: #2bbfcb;
  --teal-bright: #48d8e3;
  --teal-ink: #0e6e77;     /* the teal darkened until it passes contrast on cream */

  /* Neutrals — warm, because this is a lunch club, not a bank */
  --cream: #fbf7f0;
  --cream-deep: #f3ece1;
  --white: #ffffff;
  --ink: #1b1d40;
  --muted: #5a5c7d;
  --line: rgba(36, 41, 97, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.44vw, 1.5rem);
  --step-2: clamp(1.44rem, 1.28rem + 0.78vw, 2rem);
  --step-3: clamp(1.73rem, 1.46rem + 1.32vw, 2.66rem);
  --step-4: clamp(2.07rem, 1.63rem + 2.14vw, 3.55rem);
  --step-5: clamp(2.49rem, 1.9rem + 2.6vw, 4.15rem);

  /* Space */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --wrap: 1180px;
  --wrap-narrow: 780px;

  /* Shape */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(36, 41, 97, 0.06), 0 2px 8px rgba(36, 41, 97, 0.05);
  --shadow-md: 0 2px 4px rgba(36, 41, 97, 0.05), 0 12px 32px -8px rgba(36, 41, 97, 0.14);
  --shadow-lg: 0 4px 8px rgba(36, 41, 97, 0.06), 0 28px 60px -16px rgba(36, 41, 97, 0.22);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------ *
 * 3. Reset / base
 * ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

img, video { max-width: 100%; height: auto; display: block; }

/* Icons are inline SVG with no intrinsic size — give them a sane default so a
   missing width rule can never blow one up to fill the viewport. */
svg { max-width: 100%; }
svg:not([width]):not([height]) { width: 1.15em; height: 1.15em; flex: none; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ------------------------------------------------------------------ *
 * 4. Layout helpers
 * ------------------------------------------------------------------ */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--section-y); }
.section--navy {
  /* A slight gradient rather than one flat fill — a large block of a single
     saturated blue is what made the old palette feel harsh. */
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.86);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.section--navy .eyebrow { color: var(--teal); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}
.section--navy .lede { color: rgba(255, 255, 255, 0.78); }
.section--navy .lede svg { color: var(--teal); margin-top: 0.25em; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* ------------------------------------------------------------------ *
 * 5. Buttons
 * ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px -6px rgba(43, 191, 203, 0.7);
}
.btn--primary:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  color: var(--navy-deep);
  box-shadow: 0 10px 26px -8px rgba(43, 191, 203, 0.85);
}

.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(36, 41, 97, 0.04); color: var(--navy); }

/* Ghost buttons default to navy-on-light; anywhere they sit on a dark panel
   they have to flip, or they vanish into the background. */
.section--navy .btn--ghost,
.next-event .btn--ghost,
.signup .btn--ghost { border-color: var(--line-dark); color: var(--white); }
.section--navy .btn--ghost:hover,
.next-event .btn--ghost:hover,
.signup .btn--ghost:hover { border-color: var(--teal); background: rgba(43, 191, 203, 0.12); color: var(--white); }

.btn--sm { padding: 0.65rem 1.15rem; font-size: var(--step--1); }

/* ------------------------------------------------------------------ *
 * 6. Header
 * ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(36, 41, 97, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 4.75rem;
}

.site-brand { display: flex; align-items: center; margin-right: auto; }
.site-brand img { width: auto; height: clamp(2.65rem, 2.2rem + 1.7vw, 3.5rem); }

.nav-toggle {
  display: none;
  width: 2.9rem; height: 2.9rem;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.15s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: absolute; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.4rem + 1.6vw, 2.1rem);
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  position: relative;
  font-size: var(--step--1);
  font-weight: 550;
  letter-spacing: 0.005em;
  color: var(--navy);
  text-decoration: none;
  padding-block: 0.4rem;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; position: relative; order: 3; }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease-out);
  }
  .site-nav[data-open='true'] { grid-template-rows: 1fr; }
  .site-nav > ul {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
  }
  .site-nav a { display: block; padding: 0.85rem 0; border-top: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-header__cta { display: none; }
}

/* ------------------------------------------------------------------ *
 * 7. Hero
 * ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(3.5rem, 2rem + 6vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -20%;
  height: 90%;
  background: radial-gradient(ellipse 55% 60% at 30% 40%, rgba(43, 191, 203, 0.22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto -25% -40% 40%;
  height: 80%;
  background: radial-gradient(ellipse 50% 55% at 60% 50%, rgba(36, 41, 97, 0.1), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero h1 { color: var(--navy); margin-bottom: 0.4em; }
.hero h1 em {
  font-style: normal;
  color: var(--teal-ink);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.14em;
  background: var(--teal);
  opacity: 0.4;
  border-radius: 999px;
  z-index: -1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 1.05rem; height: 1.05rem; color: var(--teal-ink); flex: none; }

/* ------------------------------------------------------------------ *
 * 8. Next-event card (hero right)
 * ------------------------------------------------------------------ */

.next-event {
  position: relative;
  background: linear-gradient(155deg, #2c327a 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.84);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.35rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.next-event::before {
  content: '';
  position: absolute;
  top: -45%; right: -25%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(43, 191, 203, 0.35), transparent 65%);
  pointer-events: none;
}

/* Photo header. The gradient at its foot stops the image fighting the copy
   directly beneath it. */
.next-event__media {
  position: relative;
  margin: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.35rem));
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.next-event__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.next-event__media::after {
  content: '';
  position: absolute;
  inset: 40% 0 0 0;
  /* Fades into the card's own top colour so the photo meets the body cleanly. */
  background: linear-gradient(to bottom, transparent, rgba(42, 47, 116, 0.92));
  pointer-events: none;
}
.next-event__media .next-event__tag {
  position: absolute;
  left: clamp(1.5rem, 1rem + 2vw, 2.35rem);
  bottom: 1rem;
  margin-bottom: 0;
  z-index: 1;
}

.next-event__body { position: relative; }

.next-event__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--teal);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.35rem;
}
.next-event__tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-deep);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.next-event__date {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.next-event__date .yr { font-size: 0.55em; color: var(--teal); font-weight: 600; }

.next-event__name {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1.35rem;
  line-height: 1.25;
}

.next-event__meta {
  position: relative;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  padding-block: 1.35rem;
  border-block: 1px solid var(--line-dark);
  font-size: var(--step--1);
}
.next-event__meta > div { display: flex; gap: 0.7rem; align-items: flex-start; }
.next-event__meta svg { width: 1.1rem; height: 1.1rem; color: var(--teal); flex: none; margin-top: 0.15rem; }
.next-event__meta strong { color: var(--white); font-weight: 600; display: block; }

.next-event__actions { position: relative; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.next-event__actions .btn { flex: 1 1 auto; }

.next-event--empty { text-align: center; }
.next-event--empty .next-event__name { margin-bottom: 0.5rem; }

/* ------------------------------------------------------------------ *
 * 9. Event list
 * ------------------------------------------------------------------ */

.events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: var(--gap);
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 191, 203, 0.5);
}

/* Present only when the Ticket Tailor event carries a header image. */
.event-card--media { padding-top: 0; overflow: hidden; }
.event-card__media {
  margin: 0 -1.5rem 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-deep);
}
.event-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.event-card:hover .event-card__media img { transform: scale(1.04); }

.event-card__top { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.1rem; }

.event-card__date {
  flex: none;
  width: 4.1rem;
  text-align: center;
  background: var(--cream-deep);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.3rem 0.6rem;
  line-height: 1;
}
.event-card__date .d {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.event-card__date .m {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.event-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 650;
  color: var(--navy);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.event-card__when { font-size: var(--step--1); color: var(--muted); margin: 0; }

.event-card__meta {
  display: grid;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.event-card__meta > div { display: flex; gap: 0.6rem; align-items: flex-start; }
.event-card__meta svg { width: 1rem; height: 1rem; color: var(--teal-ink); flex: none; margin-top: 0.2rem; }

.event-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
}
.badge--ok { background: rgba(43, 191, 203, 0.16); color: var(--teal-ink); }
.badge--low { background: #fff1e0; color: #9a5b00; }
.badge--out { background: rgba(36, 41, 97, 0.08); color: var(--muted); }

.events__empty {
  text-align: center;
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 1.5rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}
.events__empty h3 { color: var(--navy); }

.events__note {
  margin-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.events__note svg {
  width: 1.05rem; height: 1.05rem;
  color: var(--teal-ink);
  vertical-align: -0.2em;
  margin-right: 0.2rem;
}

/* Loading skeleton while the live feed refreshes */
.event-card--skeleton { pointer-events: none; }
.event-card--skeleton .sk {
  display: block;
  background: linear-gradient(90deg, var(--cream-deep) 25%, #ffffff 50%, var(--cream-deep) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ *
 * 10. Format timeline
 * ------------------------------------------------------------------ */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.tl-step { position: relative; padding-top: 2.35rem; }
.tl-step::before {
  content: '';
  position: absolute;
  top: 0.55rem; left: 0; right: 0;
  height: 2px;
  background: var(--line-dark);
}
.tl-step:first-child::before { left: 0; border-radius: 2px 0 0 2px; }
.tl-step:last-child::before { right: 0; border-radius: 0 2px 2px 0; }
.tl-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--navy);
  border: 2.5px solid var(--teal);
}

.tl-step__time {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.tl-step__label { font-size: var(--step--1); color: rgba(255, 255, 255, 0.8); }
.tl-step__label strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 0.15rem; }

.format-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.78);
}
.format-note svg { color: var(--teal); margin-top: 0.25em; }

@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-step { padding: 0 0 1.5rem 2.25rem; }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-step::before {
    top: 0.4rem; bottom: -0.4rem;
    left: 0.5rem; right: auto;
    width: 2px; height: auto;
  }
  .tl-step:last-child::before { display: none; }
  .tl-step::after { top: 0.15rem; }
}

/* ------------------------------------------------------------------ *
 * 11. Value props
 * ------------------------------------------------------------------ */

/* Sits directly under the events grid, so it does not need a full section's
   worth of breathing room above it as well. */
.why { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); }

.why__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.why__inner--nomedia { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }

@media (max-width: 900px) {
  .why__inner { grid-template-columns: 1fr; gap: clamp(2.5rem, 2rem + 3vw, 3.5rem); }
}

/* Main photo with a smaller one lapping its bottom-right corner. */
.why__media { position: relative; padding-bottom: 3.5rem; padding-right: 2rem; }
.why__img { margin: 0; }
.why__img img { border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.why__img--a img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.why__img--b {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  border: 6px solid var(--cream);
  border-radius: calc(var(--r-md) + 6px);
}
.why__img--b img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; box-shadow: none; }

@media (max-width: 520px) {
  .why__media { padding-bottom: 2.5rem; padding-right: 0; }
  .why__img--b { width: 52%; right: -0.5rem; }
}

.prop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.prop-list li { margin: 0; display: flex; gap: 1.1rem; align-items: flex-start; }

.prop__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: var(--r-sm);
  background: rgba(43, 191, 203, 0.14);
  color: var(--teal-ink);
}
.prop__icon svg { width: 1.5rem; height: 1.5rem; }
.prop h3 { font-size: var(--step-1); color: var(--navy); margin-bottom: 0.3rem; }
.prop p { font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------------ *
 * 11b. Photo gallery
 * ------------------------------------------------------------------ */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.6rem, 0.4rem + 0.6vw, 1rem);
}
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--r-md); grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.05); }

/* First photo runs large; the rest tile beside and beneath it. */
.gallery__item:first-child { grid-column: span 4; grid-row: span 2; }
.gallery__item:first-child img { aspect-ratio: 3 / 2; }

@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item { grid-column: span 1; }
  .gallery__item:first-child { grid-column: span 2; grid-row: auto; }
}

/* ------------------------------------------------------------------ *
 * 11c. Speaker spotlight
 * ------------------------------------------------------------------ */

.speaker { padding-top: 0; }
.speaker__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.speaker__inner--nophoto { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .speaker__inner { grid-template-columns: 1fr; } }

.speaker__photo { margin: 0; }
.speaker__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
}
.speaker__copy h2 { font-size: var(--step-3); color: var(--navy); margin-bottom: 0.2rem; }
.speaker__role {
  font-weight: 600;
  color: var(--teal-ink);
  margin-bottom: 1.1rem;
}
.speaker__bio { color: var(--muted); font-size: var(--step--1); }

/* ------------------------------------------------------------------ *
 * 12. Sponsors marquee
 * ------------------------------------------------------------------ */

.sponsors { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
/* Specificity has to beat the base `p:last-child { margin-bottom: 0 }` — this
   label is the only child of its wrapper. */
.sponsors p.sponsors__label {
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

.marquee img {
  height: clamp(2rem, 1.6rem + 1.4vw, 2.9rem);
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.marquee img:hover { filter: grayscale(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ------------------------------------------------------------------ *
 * 13. Details / policy
 * ------------------------------------------------------------------ */

.faq { display: grid; gap: 0.75rem; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--teal-ink);
  border-bottom: 2px solid var(--teal-ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 1.4rem 1.35rem; color: var(--muted); font-size: var(--step--1); }

/* ------------------------------------------------------------------ *
 * 14. Signup
 * ------------------------------------------------------------------ */

.signup {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 1.2rem + 3.5vw, 3.75rem);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
}
.signup::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  background: radial-gradient(ellipse 40% 60% at 50% 100%, rgba(43, 191, 203, 0.28), transparent 70%);
  pointer-events: none;
}
.signup__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .signup__inner { grid-template-columns: 1fr; } }
.signup h2 { font-size: var(--step-3); }

.signup .lede { color: rgba(255, 255, 255, 0.78); }
.signup__note { font-size: var(--step--1); color: rgba(255, 255, 255, 0.6); margin-top: 0.9rem; }

/* ---- ActiveDEMAND form ------------------------------------------- *
 * The embed renders its own markup and ships a scoped <style> block.
 * Two things to know before editing these rules:
 *  - its text inputs carry no `type` attribute at all, so `input[type=text]`
 *    never matches them. Match by exclusion instead.
 *  - it renders its own H3 + intro paragraph, which duplicate the heading in
 *    the left-hand column, so those are hidden here.
 * ------------------------------------------------------------------ */

.signup__form,
.signup__form * { font-family: var(--font-body) !important; }

.signup__form .cta_text h3,
.signup__form .cta_text h3 + p { display: none; }

/* ActiveDEMAND scopes its rules by element id, which outranks any class
   selector we can write here. Inside this one container, !important is the
   only thing that reaches. */
.signup__form input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']):not([type='hidden']),
.signup__form select,
.signup__form textarea {
  width: 100% !important;
  height: auto !important;
  font-size: var(--step-0) !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
  background: var(--white) !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--r-sm) !important;
  padding: 0.8rem 1rem !important;
  box-shadow: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.signup__form input:focus,
.signup__form select:focus,
.signup__form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(43, 191, 203, 0.25);
}

.signup__form label,
.signup__form .form-group > label,
.signup__form p,
.signup__form span {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.82);
}
.signup__form .form-group { margin-bottom: 0.9rem; }

.signup__form input[type='checkbox'],
.signup__form input[type='radio'] {
  accent-color: var(--teal);
  width: 1.05rem; height: 1.05rem;
  margin-right: 0.4rem;
  vertical-align: -2px;
}

.signup__form button,
.signup__form input[type='submit'] {
  min-width: 12rem;
  margin-top: 0.5rem;
  font-size: var(--step-0) !important;
  font-weight: 600 !important;
  color: var(--navy-deep) !important;
  background: var(--teal) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  padding: 0.9rem 1.8rem !important;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.18s var(--ease-out);
}
.signup__form button:hover,
.signup__form input[type='submit']:hover { background: var(--teal-bright) !important; transform: translateY(-2px); }

/* ------------------------------------------------------------------ *
 * 15. Footer
 * ------------------------------------------------------------------ */

.site-footer {
  background: var(--navy-darkest);
  color: rgba(255, 255, 255, 0.66);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand img { height: 5rem; width: auto; margin-bottom: 1.25rem; }
.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.socials a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy-deep); }
.socials svg { width: 1.15rem; height: 1.15rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------------ *
 * 16. Reveal on scroll
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ *
 * 17. Editorial content (privacy policy etc.)
 * ------------------------------------------------------------------ */

.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose ul { padding-left: 1.15em; }
.prose a { color: var(--teal-ink); }
