/* =========================================================================
   THAILAND HOSPITALITY TECH CONFERENCE 2026
   style.css — design system + layout
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Backgrounds — deep navy, never pure black */
  --bg-900: #030712;
  --bg-800: #050816;
  --bg-700: #07101F;
  --bg-600: #0A1020;

  /* Accents */
  --pink:     #FF2E63;
  --pink-2:   #F43F70;
  --magenta:  #E5007D;
  --blue:     #0EA5E9;
  --purple:   #8B5CF6;
  --orange:   #FF6B35;

  --grad-primary: linear-gradient(135deg, #ff5864 0%, #ff2e63 45%, #ec145f 100%);
  --grad-line:    linear-gradient(90deg, var(--magenta), var(--pink), transparent);

  /* Text */
  --text:       #EAEEF7;
  --text-soft:  #C3CBDC;
  --muted:      #8E9AB2;
  --muted-dim:  #6B7689;

  /* Surfaces */
  --glass:        rgba(255, 255, 255, .035);
  --glass-strong: rgba(255, 255, 255, .06);
  --line:         rgba(255, 255, 255, .12);
  --line-soft:    rgba(255, 255, 255, .07);

  /* Shape & motion */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --t-fast: 180ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 300ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 600ms cubic-bezier(.16, 1, .3, 1);

  --shadow-card: 0 18px 44px rgba(0, 0, 0, .45);
  --glow-pink:   0 0 0 1px rgba(255, 46, 99, .35), 0 18px 46px -12px rgba(255, 46, 99, .45);

  --header-h: 76px;
  --container: 1280px;

  --font-display: 'Bebas Neue', 'Archivo Black', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(255, 46, 99, .35); color: #fff; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--pink); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 8px; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- 3. Layout primitives ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { position: relative; padding: 104px 0; }
.section--tight { padding: 76px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: #fff;
}

.section-title span { display: block; }

.lead { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 46ch; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
}

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background-color var(--t-base), border-color var(--t-base);
}

.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 46, 99, .7);
}

/* moving light sweep */
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 90%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  transition: left 620ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before { left: 130%; }

/* The -2px lift is applied through --btn-lift (see §24) so the magnetic
   pull can compose with it instead of overwriting it. */
.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 18px 40px -10px rgba(255, 46, 99, .85);
}

.btn--ghost {
  background: rgba(255, 255, 255, .02);
  border-color: var(--line);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 46, 99, .55);
  background: rgba(255, 46, 99, .08);
}

.btn--sm { padding: 11px 20px; font-size: 11.5px; }
.btn--block { width: 100%; }

.btn--pulse { animation: btnPulse 2.8s ease-in-out infinite; }

.link-underline {
  color: var(--pink);
  border-bottom: 1px solid rgba(255, 46, 99, .5);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.link-underline:hover { color: #fff; border-color: #fff; }

/* ---------- 5. Glass card ------------------------------------------------ */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
}

.glass-hover { transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base), background-color var(--t-base); }
.glass-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 46, 99, .4);
  background: var(--glass-strong);
  box-shadow: var(--glow-pink);
}

/* ---------- 6. Scroll progress & chrome --------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--magenta), var(--pink));
  z-index: 1200;
  transition: width 80ms linear;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 16, 32, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), border-color var(--t-base);
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--pink); color: var(--pink); }
.back-to-top svg { width: 18px; height: 18px; }

/* custom cursor (desktop only, enabled from JS) */
.cursor-dot, .cursor-glow {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 260ms ease;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--pink); }
.cursor-glow {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 46, 99, .45);
  box-shadow: 0 0 22px rgba(255, 46, 99, .35);
  transition: opacity 260ms ease, width 220ms ease, height 220ms ease, margin 220ms ease;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-glow { opacity: 1; }
body.cursor-on.cursor-hover .cursor-glow {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-color: rgba(255, 46, 99, .8);
}

/* ---------- 7. Header ---------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base), backdrop-filter var(--t-base),
              border-color var(--t-base), height var(--t-base);
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(3, 7, 18, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--t-fast);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav a:hover { color: #fff; }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: #fff; }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.6px;
  background: #fff;
  margin: 3.4px auto;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile overlay menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 7, 18, .92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateX(100%);
  transition: transform 480ms cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 32px 48px;
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: .04em;
  color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateX(28px);
}
.mobile-nav.is-open a { animation: mobileItemIn 460ms cubic-bezier(.16, 1, .3, 1) forwards; }
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 26px; }

/* ---------- 8. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--bg-900);
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* keeps the lockup and CTAs legible over the light trails on the left */
    radial-gradient(70% 60% at 12% 78%, rgba(3, 7, 18, .78), transparent 70%),
    linear-gradient(90deg, rgba(3, 7, 18, .92) 0%, rgba(3, 7, 18, .66) 36%, rgba(3, 7, 18, .1) 64%, transparent 100%),
    linear-gradient(180deg, rgba(3, 7, 18, .72) 0%, transparent 24%, transparent 58%, rgba(3, 7, 18, .94) 100%);
  pointer-events: none;
}

.hero-inner { max-width: 720px; }

/* ---- Title lockup (nameevent artwork) ---- */
.hero-lockup {
  margin: 0 0 30px;
  /* The artwork carries its own drop shadow; this adds depth over the photo
     without muddying the chrome gradient. */
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .55));
}

.hero-lockup picture { display: block; }

.hero-lockup img {
  width: clamp(300px, 52vw, 660px);
  height: auto;
  /* Kept for the GSAP wipe reveal — see animations.js */
  will-change: clip-path, transform, opacity;
}

.hero-lockup[hidden] { display: none; }
.hero-title-block[hidden],
.hero-title[hidden] { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: .96;
  letter-spacing: .012em;
  margin: 0 0 22px;
  color: #fff;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #b9c2d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(255, 46, 99, .18);
}
.hero-title .line:last-child > span { font-size: .66em; letter-spacing: .014em; }

.hero-rule {
  width: min(420px, 78%);
  height: 2px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, .35) 55%, transparent 100%);
  margin: 0 0 22px;
  border: 0;
}

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-subtitle span { display: block; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 34px;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero-meta svg { width: 17px; height: 17px; color: var(--pink); flex: 0 0 auto; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.hero-already {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* floating particles */
.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--pink);
  filter: blur(.5px);
  will-change: transform, opacity;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--pink), transparent);
}

/* ---------- 9. About ----------------------------------------------------- */
.about { background: linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 100%); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  gap: 56px;
  align-items: center;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card {
  padding: 26px 20px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  min-height: 210px;
  display: flex;
  flex-direction: column;
}
.highlight-card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--pink);
  margin-bottom: auto;
  transition: transform var(--t-base), color var(--t-base);
}
.highlight-card .icon svg { width: 34px; height: 34px; stroke-width: 1.4; }
.highlight-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin: 22px 0 8px;
  line-height: 1.3;
}
.highlight-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.highlight-card:hover .icon { transform: translateY(-3px) scale(1.06); }

/* ---------- 10. Speakers ------------------------------------------------- */
.speakers { background: var(--bg-800); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.speaker-card {
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
/* The lift is applied through --lift (see §24) so the pointer tilt can
   compose with it instead of overwriting it. */
.speaker-card:hover {
  border-color: rgba(255, 46, 99, .42);
  box-shadow: var(--glow-pink);
}

.speaker-photo {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  background: linear-gradient(150deg, #14203c, #0a1020 60%, #170f22);
}
.speaker-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms cubic-bezier(.16, 1, .3, 1);
}
.speaker-card:hover .speaker-photo img { transform: scale(1.04); }
.speaker-photo::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 22, .85));
  pointer-events: none;
}

.speaker-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 46px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 46, 99, .18), transparent 60%),
    linear-gradient(150deg, #16223f, #0a1020 55%, #1a1026);
}

.speaker-body { padding: 16px 16px 20px; }
.speaker-body h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 2.7em;
}
.speaker-accent {
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--pink));
  margin-bottom: 10px;
  transition: width var(--t-base);
}
.speaker-card:hover .speaker-accent { width: 56px; }
.speaker-role { font-size: 12.5px; color: var(--pink-2); margin: 0 0 2px; }
.speaker-company { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- 11. Agenda --------------------------------------------------- */
.agenda { background: var(--bg-900); overflow: hidden; }

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: stretch;
}

.agenda-left { padding: 96px 56px 96px 0; }

.agenda-media {
  position: relative;
  /* Bounding the height keeps the 4:3 photo from being cropped into a narrow
     portrait slice when the agenda list is long — the stage and LED screen
     stay in frame. Centred against the timeline column. */
  min-height: 720px;
  max-height: 780px;
  align-self: center;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  overflow: hidden;
}
.agenda-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Frames the stage and LED screen rather than the centre of the crowd. */
  object-position: 58% 38%;
  will-change: transform;
}
.agenda-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, .9), transparent 30%);
  pointer-events: none;
}

/* timeline */
.timeline { position: relative; padding-left: 26px; margin-top: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.timeline-progress {
  position: absolute;
  left: 5px; top: 10px;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--magenta), var(--pink));
  box-shadow: 0 0 10px rgba(255, 46, 99, .7);
}

.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color var(--t-base);
}
.agenda-item:last-child { border-bottom: 0; }
.agenda-item:hover { background: rgba(255, 255, 255, .028); }

.agenda-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: var(--bg-900);
  transform: translateX(0);
  transition: background-color var(--t-base), box-shadow var(--t-base);
}
.agenda-item.is-lit::before {
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, .16), 0 0 14px rgba(255, 46, 99, .8);
}

.agenda-time {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pink-2);
  white-space: nowrap;
}
.agenda-title { font-size: 14.5px; font-weight: 500; color: var(--text); }
.agenda-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: pre-line; }
.agenda-speaker { display: block; font-size: 12px; color: var(--muted-dim); margin-top: 4px; white-space: pre-line; }

.agenda-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* plain rows (used inside the full-agenda modal — no timeline rail) */
.agenda-item--plain { padding-left: 0; }
.agenda-item--plain::before { display: none; }

/* ---------- 12. Audience + Venue ---------------------------------------- */
.audience-venue { background: linear-gradient(180deg, var(--bg-800), var(--bg-700)); }

.av-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 30px;
}
.audience-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-soft);
}
.audience-list svg {
  width: 22px; height: 22px;
  color: var(--pink);
  stroke-width: 1.4;
  flex: 0 0 auto;
}

.venue-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 26px;
  align-items: start;
  padding-left: 64px;
  border-left: 1px solid var(--line-soft);
}
.venue-name {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.venue-address { font-size: 13.5px; color: var(--muted); line-height: 1.85; margin-bottom: 24px; }
.venue-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 5 / 4; /* matches the source photo, so nothing is cropped */
}
.venue-image img { width: 100%; height: 100%; object-fit: cover; }
.venue-map {
  grid-column: 1 / -1;
  margin-top: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  height: 300px;
}
.venue-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 13. CTA band ------------------------------------------------- */
.cta-band {
  position: relative;
  padding: 92px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.cta-band::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3, 7, 18, .72), rgba(3, 7, 18, .55));
}
.cta-title {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.cta-title span { display: block; }
.cta-desc {
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 auto 30px;
  font-size: 15px;
}

/* ---------- 14. Already registered -------------------------------------- */
.registered { background: var(--bg-800); }
.registered .section-title { text-align: center; margin-bottom: 36px; }

.registered-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin-inline: auto;
}
.registered-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
}
.registered-card .icon {
  width: 78px; height: 78px;
  display: grid; place-items: center;
  color: var(--pink);
}
.registered-card .icon svg { width: 58px; height: 58px; stroke-width: 1.2; }
.registered-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.registered-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ---------- 15. FAQ ------------------------------------------------------ */
.faq { background: linear-gradient(180deg, var(--bg-800), var(--bg-900)); }
.faq-list { max-width: 820px; margin: 34px auto 0; }

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .022);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item.is-open { border-color: rgba(255, 46, 99, .35); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-q svg {
  width: 18px; height: 18px;
  color: var(--pink);
  flex: 0 0 auto;
  transition: transform var(--t-base);
}
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 380ms cubic-bezier(.4, 0, .2, 1);
}
.faq-a p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 16. Footer --------------------------------------------------- */
.site-footer {
  background: var(--bg-900);
  border-top: 1px solid var(--line-soft);
  padding: 62px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
}
/* width: auto is required — the <img> carries width="720" as an attribute,
   which otherwise wins over the aspect ratio and stretches the logo. */
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 34ch; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col span {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--pink); flex: 0 0 auto; margin-top: 3px; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base);
}
.footer-social a:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* ---------- 17. Modals --------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal[hidden] { display: none; }

.modal-panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(16, 22, 42, .96), rgba(7, 16, 31, .98));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  transform: scale(.95);
  opacity: 0;
  transition: transform 300ms cubic-bezier(.16, 1, .3, 1), opacity 260ms ease;
  padding: 34px;
}
.modal.is-open .modal-panel { transform: scale(1); opacity: 1; }
.modal-panel--wide { width: min(100%, 860px); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: border-color var(--t-base), color var(--t-base), transform var(--t-base);
}
.modal-close:hover { border-color: var(--pink); color: var(--pink); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  padding-right: 48px;
}
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

/* speaker modal */
.speaker-modal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}
.speaker-modal-photo {
  aspect-ratio: 1 / 1.15;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg, #16223f, #0a1020);
}
.speaker-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-modal h3 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.speaker-modal .role { color: var(--pink-2); font-size: 14px; margin-bottom: 2px; }
.speaker-modal .company { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.speaker-modal .bio { font-size: 14px; color: var(--text-soft); line-height: 1.8; }
.speaker-sessions { margin-top: 20px; }
.speaker-sessions h4 {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 10px;
}
.speaker-sessions li {
  font-size: 13px; color: var(--text-soft);
  padding-left: 16px; position: relative; margin-bottom: 6px;
}
.speaker-sessions li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
}

/* ---------- 18. Forms --------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--pink); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-dim); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: rgba(255, 46, 99, .06);
}
.select { appearance: none; cursor: pointer; background-image: none; }
.select option { background: #0a1020; color: var(--text); }
.textarea { resize: vertical; min-height: 96px; }

.input.is-invalid, .select.is-invalid { border-color: #ff5c5c; background: rgba(255, 92, 92, .07); }
.field-error { font-size: 11.5px; color: #ff8080; min-height: 0; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--pink);
  flex: 0 0 auto;
  cursor: pointer;
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(14, 165, 233, .09);
  border: 1px solid rgba(14, 165, 233, .28);
  font-size: 12.5px;
  color: #a9d9f5;
  line-height: 1.6;
}
.notice svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.notice[hidden] { display: none; }
.notice--warn {
  background: rgba(255, 107, 53, .09);
  border-color: rgba(255, 107, 53, .3);
  color: #ffc0a3;
}

/* ---------- 19. QR pass -------------------------------------------------- */
.pass {
  text-align: center;
  padding: 4px 0;
}
.pass-code {
  width: 216px;
  height: 216px;
  margin: 0 auto 20px;
  padding: 12px;
  background: #fff;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
}
.pass-code canvas, .pass-code img { width: 100% !important; height: 100% !important; }
.pass-id {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .14em;
  color: var(--pink);
  margin-bottom: 4px;
}
.pass-name { font-size: 18px; color: #fff; margin-bottom: 2px; }
.pass-detail { font-size: 13px; color: var(--muted); }
.pass-event {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- 20. Mobile sticky CTA --------------------------------------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 950;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(3, 7, 18, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 360ms cubic-bezier(.16, 1, .3, 1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; padding: 12px 10px; }

/* ---------- 21. Inline edit mode ---------------------------------------- */
.admin-fab {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 940;
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.admin-fab.is-visible { display: flex; }

.admin-fab .btn { box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }

body.edit-mode [data-editable] {
  outline: 1px dashed rgba(255, 46, 99, .75);
  outline-offset: 4px;
  border-radius: 3px;
  cursor: text;
  transition: background-color var(--t-fast);
}
body.edit-mode [data-editable]:hover { background: rgba(255, 46, 99, .08); }
body.edit-mode [data-editable]:focus {
  outline: 2px solid var(--pink);
  background: rgba(255, 46, 99, .1);
}

.edit-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 960;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(236, 20, 95, .95);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
}
body.edit-mode .edit-banner { display: flex; }
body.edit-mode .sticky-cta { display: none !important; }

.edit-banner .btn { padding: 9px 18px; font-size: 11px; }
.edit-banner .btn--ghost { border-color: rgba(255, 255, 255, .5); }

/* ---------- 22. Toast ---------------------------------------------------- */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 20px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 240px;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(10, 16, 32, .96);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-card);
  animation: toastIn 320ms cubic-bezier(.16, 1, .3, 1);
}
.toast--ok    { border-left-color: #22c55e; }
.toast--error { border-left-color: #ef4444; }
.toast--warn  { border-left-color: var(--orange); }
.toast.is-leaving { animation: toastOut 260ms ease forwards; }

/* ---------- 23. Misc ----------------------------------------------------- */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted-dim);
  font-size: 13.5px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}

.demo-notice-bar {
  background: rgba(255, 107, 53, .1);
  border-bottom: 1px solid rgba(255, 107, 53, .22);
  color: #ffc0a3;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- 24. Motion components ---------------------------------------
   Structure lives here; the motion itself (keyframes, reduced-motion guard)
   lives in animations.css. Everything below is progressive: with JS off or
   GSAP missing the page reads exactly as it did before.
   ------------------------------------------------------------------------ */

/* Preloader — shown only while JS is running and not yet finished booting. */
.preloader { display: none; }

html.js-ready .preloader {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 3000;
  place-content: center;
  justify-items: center;
  gap: 26px;
  background: var(--bg-900);
  transition: opacity 520ms ease, visibility 520ms ease;
}
html.preloader-done .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-mark {
  width: min(260px, 56vw);
  height: auto;
  opacity: .92;
}
.preloader-bar {
  width: min(220px, 48vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.preloader-bar > span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--grad-primary);
  transition: width 240ms ease;
}

/* Countdown */
.countdown { margin: 0 0 30px; }
.countdown[hidden] { display: none; }

.countdown-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.countdown-grid[hidden] { display: none; }
.countdown-unit {
  min-width: 82px;
  padding: 12px 14px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #b9c2d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-live {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
}
.countdown-live[hidden] { display: none; }

/* Sliding nav indicator. The per-link ::after stays for hover only. */
.nav { position: relative; }
.nav-indicator {
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(.16, 1, .3, 1),
              width 380ms cubic-bezier(.16, 1, .3, 1),
              opacity var(--t-base);
}
/* With the indicator present the active link no longer draws its own bar. */
.nav a.is-active::after { transform: scaleX(0); }
.nav a.is-active:hover::after { transform: scaleX(1); }

/* Split headings — one span per word, revealed with a stagger.
   Qualified with [data-split] so these outrank the `.section-title span`
   and `.cta-title span` block rules, which would otherwise put every single
   word on its own line. */
[data-split] .split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Room for descenders, which the mask would otherwise clip. */
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
[data-split] .split-word > span {
  display: inline-block;
  will-change: transform, opacity;
}
html.js-ready [data-split] .split-word > span { opacity: 0; }
html.no-gsap [data-split] .split-word > span { opacity: 1; }

/* Card tilt / magnetic buttons.
   The offsets are custom properties so JS never overwrites the hover
   transforms these components already had. */
/* The first selector only exists to outrank `html.js-ready [data-reveal]`
   in animations.css, so a card that has scrolled in keeps composing its own
   transform instead of losing it to the reveal rule. */
html.js-ready [data-reveal].speaker-card,
.speaker-card {
  --lift: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(760px)
             translateY(calc(var(--reveal-y, 0px) + var(--lift)))
             rotateX(var(--tilt-x))
             rotateY(var(--tilt-y));
}
.speaker-card:hover { --lift: -6px; }
body.tilt-on .speaker-card.is-tilting { transition: transform 120ms linear; }

.btn { --pull-x: 0px; --pull-y: 0px; --btn-lift: 0px; }
.btn--primary {
  transform: translate3d(var(--pull-x), calc(var(--pull-y) + var(--btn-lift)), 0);
}
.btn--primary:hover,
.btn--primary:focus-visible { --btn-lift: -2px; }
body.tilt-on .btn--primary.is-magnetic { transition: transform 140ms linear,
                                                     box-shadow var(--t-base); }

/* Registration closed (settings.registrationOpen = false) */
.hero-already[hidden],
.registered[hidden],
.sticky-cta .btn[hidden] { display: none; }
.btn.is-closed,
.btn.is-closed:hover {
  opacity: .55;
  cursor: not-allowed;
  animation: none;
  transform: none;
  box-shadow: none;
}
