/* ============================================================
   NEXUS — Next-Gen AI Summit 2052
   Design tokens ported from the Paper file
   ============================================================ */

:root {
  /* ── colour ───────────────────────────────── */
  --bg:            #000000;
  --surface:       #1A1A1A;
  --surface-2:     #1C1A1A;
  --light:         #DEDEE0;
  --light-2:       #FFFFFF;
  --blue:          #0147FF;
  --ink:           #1C1A1A;
  --muted:         #7E7E7E;
  --muted-light:   #5A5A5A;
  --hairline:      rgba(255, 255, 255, .16);
  --hairline-ink:  rgba(28, 26, 26, .28);

  --grad-blue: linear-gradient(63.59deg, #0147FF 1.5%, rgba(1, 71, 255, 0) 120.5%);
  --grad-pill: linear-gradient(22.54deg, #0147FF 21.57%, rgba(1, 71, 255, 0) 286.5%);
  --grad-num:  linear-gradient(184.97deg, #0147FF 35.5%, rgba(1, 71, 255, 0) 80.5%);

  /* ── type scale (fluid 390 → 1920) ────────── */
  --t-display:  clamp(2.75rem, 1.6rem + 4.7vw,  8rem);    /*  44 → 128 */
  --t-heading:  clamp(1.875rem, 1.2rem + 2.8vw, 4rem);    /*  30 →  64 */
  --t-sub:      clamp(1.75rem, 1.25rem + 2vw,   3rem);    /*  28 →  48 */
  --t-card:     clamp(1.125rem, .85rem + 1.15vw, 2.25rem);/*  18 →  36 */
  --t-label:    clamp(1.0625rem, .95rem + .55vw, 1.875rem);/* 17 →  30 */
  --t-body:     clamp(.9375rem, .87rem + .3vw,  1.375rem);/*  15 →  22 */
  --t-small:    clamp(.8125rem, .78rem + .18vw, 1.125rem);/*  13 →  18 */
  --t-btn:      clamp(.9375rem, .9rem + .22vw,  1.375rem);
  --t-num:      clamp(9.5rem, 6rem + 14vw, 23rem);        /* 152 → 368 */
  --t-clock:    clamp(3.5rem, 1.5rem + 8.5vw, 15rem);     /*  56 → 240 */

  /* ── shape & rhythm ───────────────────────── */
  --r-card:   clamp(28px, 1.2vw + 22px, 60px);
  --r-inner:  clamp(20px, 1vw + 16px, 40px);
  --r-pill:   100px;
  --pad:      clamp(20px, 8.34vw - 12px, 160px);
  --container-max: 1600px;
  --gap:      clamp(12px, .9vw + 8px, 26px);
  --sec-gap:  clamp(48px, 5vw, 190px);
  --card-pad: clamp(24px, 2.6vw, 60px);
  --panel-pad: clamp(24px, 4vw, 116px);

  /* ── motion ───────────────────────────────── */
  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ============================================================
   BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

/* ── scrollbar ─────────────────────────────────────────────
   The transparent border + background-clip trick keeps the
   track invisible and leaves a slim 4px pill floating in it. */
::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4D82FF 0%, var(--blue) 100%);
  background-clip: padding-box;
  border: 2.5px solid transparent;
  border-radius: var(--r-pill);
  transition: background .3s var(--ease);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8FB4FF 0%, #1E5BFF 100%);
  background-clip: padding-box;
  border-width: 2px;
}
::-webkit-scrollbar-thumb:active {
  background: var(--blue);
  background-clip: padding-box;
  border-width: 2px;
}

/* on the light surfaces the same pill reads better slightly dimmed */
.form::-webkit-scrollbar-thumb,
.field textarea::-webkit-scrollbar-thumb {
  background: rgba(1, 71, 255, .55);
  background-clip: padding-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: "Syne", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: #000; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.section {
  width: 100%;
  padding-inline: var(--pad);
  padding-bottom: var(--sec-gap);
}
.section--hero  { padding-bottom: clamp(48px, 6vw, 130px); }
.section--logos { padding-bottom: clamp(64px, 7vw, 150px); }
.section--footer{ padding-bottom: clamp(40px, 4vw, 80px); }

.section__head {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 60px);
  margin-bottom: clamp(24px, 2.6vw, 60px);
}
.section__head--tight { flex-direction: row; align-items: center; }
.section__note {
  width: 100%;
  max-width: 46ch;
  font-size: var(--t-body);
  line-height: 1.55;
}

.display {
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.heading {
  font-size: var(--t-heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
}
.kicker {
  font-size: var(--t-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}
.kicker--blue { color: var(--blue); }
.eyebrow {
  font-size: var(--t-small);
  font-weight: 700;
  line-height: 1.5;
}

.panel {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  background: var(--surface-2);
  border-radius: var(--r-card);
  padding: var(--panel-pad);
  position: relative;
  overflow: hidden;
}

.rule { height: 1px; border: 0; background: var(--hairline); margin: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  --btn-h: clamp(52px, 3.2vw + 30px, 88px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, .8vw, 20px);
  height: var(--btn-h);
  padding-inline: clamp(28px, 2.4vw, 56px);
  border-radius: var(--r-pill);
  font-size: var(--t-btn);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm    { --btn-h: clamp(44px, 1.6vw + 32px, 74px); padding-inline: clamp(22px, 1.6vw, 46px); }
.btn--block { display: flex; width: 100%; }
.btn--start { align-self: flex-start; }

/* primary — gradient + sweeping shine */
.btn--primary { background-image: var(--grad-blue); color: #fff; }
.btn--primary::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 10px 34px rgba(1, 71, 255, .38); }

/* ghost */
.btn--ghost { border: 1px solid #fff; color: #fff; }
.btn--ghost::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: #fff;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease-out);
}
.btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover::before { transform: scaleY(1); }

/* light */
.btn--light { background: var(--light); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: 0 10px 30px rgba(255,255,255,.16); }

.btn__arrow {
  width: clamp(15px, .9vw, 19px);
  height: clamp(15px, .9vw, 19px);
  flex: none;
  transition: transform .35s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translate(3px, -3px); }
.btn--primary .btn__arrow { color: #fff; }
.btn--ghost   .btn__arrow { color: var(--blue); }
.btn--ghost:hover .btn__arrow { color: var(--blue); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding-inline: var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  /* the bubble overlay lives inside <header>, so the bar has to sit
     above it or the close button ends up under the menu */
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(14px, 1.6vw, 52px);
  transition: padding-block .4s var(--ease);
}
.nav.is-stuck .nav__inner { padding-block: clamp(12px, 1vw, 22px); }

.nav__logo {
  font-size: clamp(1.625rem, 1rem + 1.7vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
}

.nav__links { display: none; align-items: center; gap: 14px; }
.nav__link {
  padding: 14px clamp(14px, 1vw, 22px);
  font-size: clamp(.9375rem, .85rem + .3vw, 1.375rem);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.nav__link:hover { border-color: var(--hairline); }
.nav__link.is-active { border-color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  width: 48px; height: 48px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  border: 1px solid #fff;
  border-radius: var(--r-pill);
  flex: none;
}
.nav__toggle span {
  width: 18px; height: 1.5px; background: #fff;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================
   BUBBLE MENU (mobile overlay)
   Vanilla port — the scale-in stagger runs on CSS transitions
   with a per-item --i index instead of GSAP.
   ============================================================ */

.bubble-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(120px, 20vh, 180px) clamp(16px, 3vw, 32px) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, .78);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.bubble-overlay[hidden] { display: none; }
.bubble-overlay.is-open { opacity: 1; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  width: 100%;
  max-width: 1000px;
}

.pill-list > li {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 0 0 calc(100% / 3);
  min-width: 0;
}

.pill-link {
  --pill-bg: var(--light);
  --pill-color: var(--ink);
  --hover-bg: var(--blue);
  --item-rot: 0deg;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(82px, 15vw, 160px);
  padding: clamp(18px, 3vw, 48px) 0;
  border-radius: var(--r-pill);
  background: var(--pill-bg);
  color: var(--pill-color);
  font-size: clamp(1.05rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);

  transform: rotate(var(--item-rot)) scale(0);
  transform-origin: 50% 50%;
  /* back.out(1.5) ≈ this overshooting curve */
  transition:
    transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * .07s),
    background .3s var(--ease),
    color .3s var(--ease);
}
.bubble-overlay.is-open .pill-link { transform: rotate(var(--item-rot)) scale(1); }

.pill-link:hover,
.pill-link:active,
.pill-link:focus-visible {
  background: var(--hover-bg);
  color: #fff;
}
.pill-link:hover { transform: rotate(var(--item-rot)) scale(1.06); }
.pill-link:active { transform: rotate(var(--item-rot)) scale(.94); transition-delay: 0s; }

.pill-label {
  display: inline-block;
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform .5s var(--ease-out) calc(var(--i, 0) * .07s + .06s),
    opacity   .5s var(--ease-out) calc(var(--i, 0) * .07s + .06s);
}
.bubble-overlay.is-open .pill-label { transform: none; opacity: 1; }

/* closing: collapse fast and together, no stagger */
.bubble-overlay.is-closing .pill-link,
.bubble-overlay.is-closing .pill-label {
  transition-duration: .2s;
  transition-delay: 0s;
  transition-timing-function: cubic-bezier(.4, 0, 1, 1);
}

body.menu-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}

/* WebGL canvas layer */
.hero__blinds {
  position: absolute;
  inset: 0;
  z-index: 0;
  mix-blend-mode: lighten;
  pointer-events: auto;
}
.hero__blinds canvas { width: 100%; height: 100%; display: block; }

/* light readability veil — only behind the copy, so the blinds stay visible */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.30) 34%, rgba(0,0,0,0) 62%),
    linear-gradient(to top, rgba(0,0,0,.42) 0%, transparent 38%);
}

.hero__mark {
  position: absolute;
  z-index: 2;
  right: clamp(-90px, -4vw, -20px);
  top: 18%;
  width: clamp(210px, 28vw, 520px);
  height: auto;
  opacity: .85;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-10px) rotate(-4deg); }
  to   { transform: translateY(14px)  rotate(6deg); }
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 110px) var(--card-pad) clamp(36px, 4.5vw, 100px);
  min-height: clamp(460px, 52vw, 1040px);
}

.hero__eyebrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: clamp(42px, 8vw, 160px);
}
.eyebrow--right { color: #fff; }

.hero__title {
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-top: 0;
}
/* One semantic title, split into the two visual lines from the design. */

.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: line-up .95s var(--ease-out) .15s forwards;
}

@keyframes line-up { to { transform: none; } }

.hero__body {
  max-width: clamp(290px, 62vw, 880px);
  margin-top: clamp(18px, 1.8vw, 40px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, .9vw, 20px);
  margin-top: clamp(26px, 2.6vw, 56px);
}

/* ============================================================
   LOGOS
   ============================================================ */

/* infinite marquee — two identical groups, translated by exactly -50% */
.marquee {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  overflow: hidden;
  /* fade the edges so logos enter and leave softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
  --logo-gap: clamp(40px, 5vw, 96px);
}
.marquee__group li { display: flex; align-items: center; }

/* every logo gets the same box and is contained inside it, so the
   wordmarks read at one optical size despite very different viewBoxes */
.marquee__group img {
  width: clamp(84px, 7vw, 112px);
  height: clamp(22px, 1.9vw, 30px);
  object-fit: contain;
  object-position: center;
  flex: none;
  opacity: .62;
  transition: opacity .35s var(--ease);
}
.marquee__group img:hover { opacity: 1; }

/* ============================================================
   BENTO
   ============================================================ */

.bento {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  gap: var(--gap);
}
.bento__stack { display: grid; gap: var(--gap); align-content: start; }

.card {
  border-radius: var(--r-card);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.8vw, 28px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card--blue  { background: var(--blue); color: #fff; }
.card--blue:hover  { box-shadow: 0 18px 50px rgba(1, 71, 255, .3); }
.card--light { background: var(--light); color: var(--ink); }
.card--light:hover { box-shadow: 0 18px 50px rgba(222, 222, 224, .18); }

.card__title { font-size: var(--t-sub); font-weight: 700; line-height: 1.2; }
.card__body  { font-size: var(--t-body); max-width: 62ch; }

.bento__tall { justify-content: space-between; }
.bento__mid  { display: flex; align-items: flex-start; gap: clamp(14px, 1.4vw, 28px); }
.bento__badge {
  width: clamp(52px, 4.5vw, 92px);
  height: clamp(52px, 4.5vw, 92px);
  flex: none;
  transition: transform .5s var(--ease-out);
}
.card:hover .bento__badge { transform: rotate(45deg); }

.bento__foot {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 36px);
  flex-wrap: wrap;
}

.avatars { display: flex; align-items: center; }
.avatars img {
  width: clamp(54px, 4.5vw, 88px);
  height: clamp(54px, 4.5vw, 88px);
  border-radius: var(--r-pill);
  object-fit: cover;
  flex: none;
  transition: transform .4s var(--ease-out);
}
.avatars img + img { margin-left: calc(clamp(54px, 4.5vw, 88px) / -2); }
.avatars:hover img { transform: translateY(-4px); }
.avatars img:nth-child(2) { transition-delay: .04s; }
.avatars img:nth-child(3) { transition-delay: .08s; }
.avatars img:nth-child(4) { transition-delay: .12s; }

/* ============================================================
   AGENDA
   ============================================================ */

.panel--agenda { background: var(--surface-2); }

.panel__mark {
  position: absolute;
  left: clamp(-140px, -6vw, -40px);
  bottom: clamp(-150px, -7vw, -50px);
  width: clamp(180px, 26vw, 500px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.day {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(12px, 1.4vw, 24px);
  padding-block: clamp(26px, 2.8vw, 60px);
}
.day:first-of-type { padding-top: 0; }

.day__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.day__label { font-size: var(--t-sub); font-weight: 700; line-height: 1.15; }
.day__time  { font-size: clamp(1.0625rem, .8rem + 1.1vw, 3rem); font-weight: 700; color: var(--blue); line-height: 1.15; }
.day__title { font-size: clamp(1.375rem, .95rem + 1.6vw, 3rem); font-weight: 700; line-height: 1.2; }
.day__body  { font-size: var(--t-body); }

.day--cta { padding-bottom: 0; }

/* ============================================================
   SPEAKERS — checkerboard grid
   ============================================================ */

.speakers {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(20px, 2vw, 40px);
}

.speaker {
  position: relative;
  aspect-ratio: 295 / 452;
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .45s var(--ease);
}
.speaker:hover { transform: translateY(-5px); }

.speaker--text {
  background: var(--light);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 1.9vw, 50px) clamp(16px, 1.6vw, 40px);
}
.speaker__name { font-size: var(--t-card); font-weight: 600; line-height: 1.18; }
.speaker__role { font-size: var(--t-small); padding-bottom: clamp(0px, 1.2vw, 26px); }

.speaker--photo { background: #fff; }
.speaker--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transform: scale(1.02);
  transition: transform .8s var(--ease-out), filter .6s var(--ease);
}
.speaker--photo:hover img { transform: scale(1.09); filter: grayscale(.35) contrast(1.05); }

/* ============================================================
   WHY ATTEND
   ============================================================ */

.why {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  gap: var(--gap);
}

.why__card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-card);
  padding: clamp(24px, 2.4vw, 52px) clamp(24px, 2.6vw, 60px);
  min-height: clamp(300px, 22vw, 373px);
  display: grid;
  align-content: start;
  gap: clamp(10px, .8vw, 16px);
  transition: transform .45s var(--ease), background .45s var(--ease);
}
.why__card:hover { transform: translateY(-5px); background: #232020; }

.why__num {
  position: absolute;
  left: clamp(4px, .8vw, 20px);
  bottom: clamp(-56px, -3vw, -20px);
  font-size: var(--t-num);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.02em;
  background-image: var(--grad-num);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.why__card:hover .why__num { transform: translateY(-8px); }

.why__title {
  position: relative; z-index: 1;
  font-size: clamp(1.0625rem, .9rem + .5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 22ch;
}
.why__body {
  position: relative; z-index: 1;
  font-size: var(--t-small);
  max-width: 40ch;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.badge-pair { display: flex; align-items: center; flex: none; }
.badge-pair span {
  width: clamp(44px, 4.6vw, 92px);
  height: clamp(44px, 4.6vw, 92px);
  border-radius: var(--r-pill);
  flex: none;
}
.badge-pair span:first-child { border: 1px solid #fff; }
.badge-pair span:last-child  {
  background: var(--light);
  rotate: -15deg;
  margin-left: clamp(-14px, -.7vw, -8px);
  animation: bob 5s ease-in-out infinite alternate;
}
@keyframes bob { from { rotate: -15deg; } to { rotate: 8deg; } }

.quotes {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  gap: var(--gap);
}

.quote {
  border-radius: var(--r-card);
  padding: clamp(24px, 2.8vw, 70px) clamp(24px, 2.6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.1vw, 24px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.quote:hover { transform: translateY(-5px); }
.quote--dark  { background: var(--surface); position: relative; overflow: hidden; }
.quote--dark::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(1,71,255,.18) 60%, rgba(1,71,255,.34) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.quote--dark:hover::before { opacity: 1; }
.quote--blue  { background: var(--blue); }
.quote--blue:hover { box-shadow: 0 18px 50px rgba(1,71,255,.3); }
.quote--light { background: var(--light); color: var(--ink); }

.quote > * { position: relative; z-index: 1; }
.quote__label {
  font-size: clamp(1.25rem, .95rem + 1vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
}
.quote__text { font-size: var(--t-body); }
.quote__by {
  margin-top: auto;
  padding-top: clamp(8px, 1vw, 24px);
  display: flex; align-items: center; gap: clamp(12px, 1vw, 20px);
}
.quote__by img {
  width: clamp(44px, 3vw, 58px);
  height: clamp(44px, 3vw, 58px);
  border-radius: var(--r-pill);
  object-fit: cover;
  flex: none;
}
.quote__by div { display: flex; flex-direction: column; line-height: 1.35; }
.quote__by strong { font-size: var(--t-small); font-weight: 600; }
.quote__by span   { font-size: calc(var(--t-small) * .9); color: var(--muted); }
.quote--blue  .quote__by span { color: rgba(255,255,255,.72); }
.quote--light .quote__by span { color: var(--muted-light); }

/* ============================================================
   COUNTDOWN
   ============================================================ */

.panel--countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, .9vw, 24px);
  min-height: clamp(230px, 22vw, 570px);
  padding-right: clamp(24px, 13vw, 400px);
}
/* the optional Seconds unit needs the clock to give a little room back */
.panel--countdown:has(.countdown.show-seconds) { padding-right: clamp(20px, 7vw, 220px); }
.countdown.show-seconds { gap: clamp(4px, .5vw, 14px); }
.countdown.show-seconds .countdown__unit  { min-width: clamp(56px, 6.6vw, 156px); }
.countdown.show-seconds .countdown__value,
.countdown.show-seconds .countdown__sep   { font-size: clamp(2.5rem, 1.1rem + 6.2vw, 10.5rem); }

.panel__starburst {
  position: absolute;
  right: clamp(-70px, -2vw, -16px);
  top: 50%;
  translate: 0 -50%;
  width: clamp(150px, 24vw, 460px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  animation: spin-slow 26s linear infinite;
}

.countdown__label {
  position: relative; z-index: 1;
  font-size: var(--t-small);
  color: var(--muted);
}

.countdown {
  position: relative; z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, .8vw, 24px);
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(70px, 9vw, 210px);
}
.countdown__value {
  font-size: var(--t-clock);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;
}
.countdown__value.is-ticking { animation: tick .45s var(--ease-out); }
@keyframes tick {
  0%   { opacity: 0; transform: translateY(-14%) scale(.96); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: none; }
}
.countdown__caption {
  font-size: clamp(.6875rem, .62rem + .18vw, 1.125rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__sep {
  font-size: var(--t-clock);
  line-height: 1.06;
  color: var(--blue);
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }

.countdown__ended {
  position: relative; z-index: 1;
  color: var(--blue);
  font-weight: 600;
}

/* seconds hidden by default — flip SHOW_SECONDS in app.js */
.countdown__unit--sec, .countdown__sep--sec { display: none; }
.countdown.show-seconds .countdown__unit--sec { display: flex; }
.countdown.show-seconds .countdown__sep--sec  { display: block; }

/* ============================================================
   TICKETS
   ============================================================ */

.tickets {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  gap: var(--gap);
}

.ticket {
  border: 1px solid #fff;
  border-radius: var(--r-card);
  padding: clamp(24px, 2.8vw, 70px) clamp(24px, 2.6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: clamp(0px, 22vw, 637px);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.ticket:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 20px 60px rgba(1,71,255,.22); }
.ticket--featured { background: var(--blue); border-color: var(--blue); }
.ticket--featured:hover { box-shadow: 0 20px 60px rgba(1,71,255,.42); }

.ticket__name  { font-size: var(--t-label); font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.ticket__note  { font-size: var(--t-small); color: var(--muted); padding-top: 8px; }
.ticket--featured .ticket__note { color: rgba(255,255,255,.82); }
.ticket__price {
  margin-top: auto;
  padding-top: clamp(14px, 1.4vw, 30px);
  font-size: clamp(2.375rem, 1.4rem + 2.6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.ticket .btn { margin-top: clamp(16px, 1.4vw, 28px); }

/* ============================================================
   CONTACT
   ============================================================ */

.panel--contact {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 80px);
}

.contact__top { display: grid; gap: clamp(28px, 3vw, 60px); }

.contact__info { display: flex; flex-direction: column; gap: clamp(14px, 1.4vw, 28px); }
.contact__lead { color: var(--muted); max-width: 46ch; }

.contact__details {
  display: grid;
  gap: clamp(20px, 2vw, 36px);
  padding-top: clamp(8px, 1vw, 24px);
}
.contact__details dt {
  font-size: var(--t-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.contact__details dd { margin: 0; color: var(--muted); font-size: var(--t-body); }
.contact__details a { transition: color .3s var(--ease); }
.contact__details a:hover { color: #fff; }

.social {
  height: clamp(20px, 1.3vw, 26px);
  width: auto;
  /* lock the strip's real ratio so `max-width: 100%` scales it down
     instead of squashing the four glyphs */
  aspect-ratio: 146.15 / 21.85;
  object-fit: contain;
  flex: none;
  /* the footer card is a column flex container, whose default
     align-items: stretch was pulling the strip to the full card width */
  align-self: flex-start;
  transition: opacity .3s var(--ease);
}
.social:hover { opacity: .7; }

.form {
  background: var(--light);
  color: var(--ink);
  border-radius: var(--r-inner);
  padding: clamp(24px, 2.6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 40px);
}
.form .kicker { color: var(--ink); }
.form__grid { display: grid; gap: clamp(20px, 2vw, 44px); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: var(--t-small); color: var(--muted); }
.field input, .field textarea {
  font: inherit;
  font-size: var(--t-body);
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline-ink);
  padding: 4px 0 10px;
  resize: none;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.field textarea { min-height: 2.4em; }
.form .btn { align-self: flex-start; }
.form__status { font-size: var(--t-small); color: var(--blue); min-height: 1.4em; }

.contact__map {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: var(--r-inner);
  object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  gap: var(--gap);
  padding-top: clamp(40px, 5vw, 100px);
}

.footer__links, .footer__cta {
  border-radius: var(--r-card);
  padding: clamp(28px, 3vw, 70px) clamp(24px, 2.6vw, 70px);
  display: flex;
  flex-direction: column;
}
.footer__links { background: var(--light); color: var(--ink); }
.footer__cta   { background: var(--blue); gap: clamp(20px, 2vw, 40px); }

.footer__brand { font-size: var(--t-card); font-weight: 700; line-height: 1.25; }
.footer__nav { display: flex; gap: clamp(32px, 4vw, 80px); padding-top: clamp(22px, 2.4vw, 50px); flex-wrap: wrap; }
.footer__nav li + li { margin-top: 6px; }
.footer__nav a { font-size: var(--t-small); transition: color .3s var(--ease); }
.footer__nav a:hover { color: var(--blue); }
.footer__copy { margin-top: auto; padding-top: clamp(28px, 3vw, 60px); font-size: var(--t-small); color: var(--muted); }

.footer__headline { font-size: var(--t-sub); font-weight: 700; line-height: 1.2; max-width: 16ch; }
.footer__cta .btn { align-self: flex-start; margin-top: auto; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  .8s var(--ease-out) var(--d, 0s),
    transform .8s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* ── tablet ─────────────────────────────────── */
@media (min-width: 768px) {
  .section__head { flex-direction: row; }
  .section__note {
    flex: 0 0 auto;
    width: clamp(280px, 24vw, 380px);
    max-width: none;
    padding-top: clamp(0px, .6vw, 20px);
  }
  .why      { grid-template-columns: repeat(2, 1fr); }
  .contact__details { grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(28px, 4vw, 70px); }
  .day      { grid-template-columns: minmax(180px, 26%) 1fr; align-items: start; gap: clamp(24px, 3vw, 100px); }
  .day__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .day--cta { grid-template-columns: minmax(180px, 26%) 1fr; }
}

/* ── laptop ─────────────────────────────────── */
@media (min-width: 1024px) {
  .nav__links     { display: flex; }
  .nav__toggle    { display: none; }
  .bubble-overlay { display: none !important; }

  .bento    { grid-template-columns: minmax(0, 43%) minmax(0, 1fr); align-items: stretch; }
  .speakers { grid-template-columns: repeat(4, 1fr); }
  .quotes   { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .tickets  { grid-template-columns: repeat(3, 1fr); }
  .footer   { grid-template-columns: repeat(2, 1fr); }
  .contact__top { grid-template-columns: minmax(0, 1fr) minmax(0, 43%); align-items: start; }
  .panel--countdown { align-items: center; }
  .countdown__label { align-self: center; }
}

/* ── checkerboard reorder below 4 columns ───── */
@media (max-width: 1023.98px) {
  .speaker:nth-child(1) { order: 1; }
  .speaker:nth-child(2) { order: 2; }
  .speaker:nth-child(3) { order: 5; }
  .speaker:nth-child(4) { order: 6; }
  .speaker:nth-child(5) { order: 3; }
  .speaker:nth-child(6) { order: 4; }
  .speaker:nth-child(7) { order: 7; }
  .speaker:nth-child(8) { order: 8; }
}

/* ── phones ─────────────────────────────────────
   640px, not 420px: a 420px cap misses most modern
   handsets (390–430 CSS px), which then fell back to
   side-by-side buttons on a real device. */
@media (max-width: 640px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .bento__foot { flex-direction: column; align-items: flex-start; }
  .bento__foot .btn { width: 100%; }
}

/* ── small phones ───────────────────────────── */
@media (max-width: 420px) {
  .countdown__unit { min-width: 62px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .marquee__track { animation: none !important; transform: none !important; }
}
