/* The conference page with the theme that builds on scroll. Colours in :root (the Playground palette). The three
   gradient palettes of the sky (theme, speakers, ticket) are mixed by the script while you scroll and written on the
   stage as --c1, --c2, --c3 and --base. GSAP moves the outer elements (.w__in, .sp, .tk, .btn), the CSS styles the
   inner ones (.sp__face, .tk__body, .btn__face): an element for GSAP, its child for the CSS. */
:root {
  --ink: #16151b;           /* the words */
  --muted: #6f6a76;         /* the small words */
  --accent: #6b4dff;        /* the accent: the caret, the key word, the button light */
  --warm: #ff7a52;          /* the second colour of the key word and the ticket */
  --card: #ffffff;          /* the cards */
  --button: #16151b;        /* the button */
  --button-ink: #ffffff;    /* the words on the button */
  /* the sky of the theme */
  --a1: #ffb99c;
  --a2: #ffdcae;
  --a3: #f3c3e6;
  --a0: #fbf6f0;
  /* the sky of the speakers */
  --b1: #b9b0ff;
  --b2: #a6e6d8;
  --b3: #dccfff;
  --b0: #f5f4fb;
  /* the sky of the ticket */
  --t1: #ff9a76;
  --t2: #9c88ff;
  --t3: #ffd08f;
  --t0: #f8f1f1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--a0); }
html, body { overflow-x: clip; }
body {
  color: var(--ink);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { position: relative; height: 620vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--base, var(--a0));
}
@supports (height: 100lvh) {
  .stage { height: 100lvh; }
}

/* ---------------------------------------------------------------- the sky: three soft lights that change colour */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  filter: blur(min(7vw, 7vh, 60px));
  opacity: 0.95;
  will-change: transform;
}
.blob--a {
  width: min(92vw, 96vh, 900px);
  height: min(92vw, 96vh, 900px);
  margin: calc(min(92vw, 96vh, 900px) / -2) 0 0 calc(min(92vw, 96vh, 900px) / -2);
  background: radial-gradient(closest-side, var(--c1, var(--a1)), color-mix(in srgb, var(--c1, var(--a1)) 40%, transparent) 55%, transparent);
}
.blob--b {
  width: min(80vw, 84vh, 780px);
  height: min(80vw, 84vh, 780px);
  margin: calc(min(80vw, 84vh, 780px) / -2) 0 0 calc(min(80vw, 84vh, 780px) / -2);
  background: radial-gradient(closest-side, var(--c2, var(--a2)), color-mix(in srgb, var(--c2, var(--a2)) 40%, transparent) 55%, transparent);
}
.blob--c {
  width: min(70vw, 74vh, 680px);
  height: min(70vw, 74vh, 680px);
  margin: calc(min(70vw, 74vh, 680px) / -2) 0 0 calc(min(70vw, 74vh, 680px) / -2);
  background: radial-gradient(closest-side, var(--c3, var(--a3)), color-mix(in srgb, var(--c3, var(--a3)) 40%, transparent) 55%, transparent);
}
/* a pale veil in the middle so the words always read, and a hairline of light at the top */
.sky__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 46% at 50% 52%, color-mix(in srgb, var(--base, var(--a0)) 55%, transparent), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 22%, transparent 80%, rgba(255, 255, 255, 0.25));
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- the top of the page */
.top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(10px, 3vh, 26px) clamp(12px, 4vw, 40px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: clamp(24px, 6.4vh, 30px);
  height: clamp(24px, 6.4vh, 30px);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px -4px rgba(22, 21, 27, 0.5);
}
.brand__mark svg, .tk__dot svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; }
.brand__name { font-size: clamp(12.5px, 3.3vh, 15px); font-weight: 640; font-variation-settings: 'wdth' 108; letter-spacing: -0.01em; }
.tab {
  position: relative;
  height: clamp(24px, 6.4vh, 30px);
  padding: 0 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(22, 21, 27, 0.06), 0 6px 16px -10px rgba(22, 21, 27, 0.3);
  font-size: clamp(11px, 2.9vh, 12.5px);
  font-weight: 560;
}
.tab__roll { display: flex; flex-direction: column; will-change: transform; }
.tab__roll b {
  display: flex;
  align-items: center;
  height: clamp(24px, 6.4vh, 30px);
  font-weight: inherit;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- the scenes */
.scene {
  position: absolute;
  inset: clamp(44px, 12vh, 90px) clamp(12px, 4vw, 40px) clamp(12px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* the theme */
.eyebrow {
  font-size: clamp(11px, 2.9vh, 13px);
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: clamp(8px, 2.4vh, 22px);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(22, 21, 27, 0.06);
}
.words {
  position: relative;
  max-width: min(100%, 13ch);
  text-align: center;
  font-size: min(13vw, 13.5vh, 132px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.w { position: relative; display: inline-block; vertical-align: top; padding: 0 0.04em 0.08em; }
/* the ghost holds the place of the word at its final width, so the line never moves while a word widens */
.w__ghost { visibility: hidden; font-variation-settings: 'wdth' 112; }
.w__in {
  position: absolute;
  left: 0.04em;
  top: 0;
  display: inline-block;
  white-space: nowrap;
  --wd: 112;
  font-variation-settings: 'wdth' var(--wd);
  will-change: transform, opacity;
}
.w--key .w__in {
  background: linear-gradient(100deg, var(--accent) 0%, var(--warm) 46%, var(--accent) 92%);
  background-size: 220% 100%;
  background-position: var(--shift, 0%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.caret {
  position: absolute;
  left: 0;
  top: 0;
  width: max(2px, 0.045em);
  height: 0.78em;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 0.5px color-mix(in srgb, var(--accent) 40%, transparent);
  opacity: 0;
}
.sub {
  margin-top: clamp(8px, 2.6vh, 26px);
  font-size: clamp(12px, 3.1vh, 16px);
  color: var(--muted);
  font-variation-settings: 'wdth' 100;
  text-align: center;
}

/* the speakers */
.panel {
  position: relative;
  width: min(100%, 500px);
  border-radius: clamp(18px, 4.6vh, 26px);
  padding: clamp(10px, 2.6vh, 18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(22, 21, 27, 0.05),
    0 1px 2px rgba(22, 21, 27, 0.05),
    0 10px 22px -10px rgba(22, 21, 27, 0.14),
    0 40px 80px -36px rgba(60, 40, 140, 0.3);
}
.panel__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
@media (hover: hover) {
  .panel:hover .panel__glow { opacity: 1; }
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px clamp(6px, 1.8vh, 12px); }
.panel__title { font-size: clamp(12px, 3.1vh, 14px); font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  flex: none;
  height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(22, 21, 27, 0.045);
  font-variant-numeric: tabular-nums;
}
.chip b { color: var(--ink); font-weight: 620; }
.list { list-style: none; display: grid; gap: clamp(4px, 1.1vh, 8px); }
.sp { will-change: transform, opacity; }
.sp__face {
  display: flex;
  align-items: center;
  gap: 11px;
  height: clamp(42px, 11vh, 62px);
  padding: 0 clamp(8px, 2vh, 12px);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(22, 21, 27, 0.05), 0 1px 2px rgba(22, 21, 27, 0.04), 0 6px 14px -10px rgba(22, 21, 27, 0.2);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}
@media (hover: hover) {
  .sp__face:hover { transform: translateY(-1.5px); box-shadow: 0 0 0 1px rgba(22, 21, 27, 0.06), 0 2px 4px rgba(22, 21, 27, 0.05), 0 14px 26px -14px rgba(60, 40, 140, 0.35); }
}
.sp__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sp__text b { font-size: clamp(12px, 3.2vh, 14.5px); font-weight: 620; font-variation-settings: 'wdth' 104; white-space: nowrap; }
.sp__text small { font-size: clamp(11px, 2.8vh, 12.5px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp__time {
  flex: none;
  font-size: 11.5px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(22, 21, 27, 0.04);
}

/* abstract avatars: a disc of two colours and one shape inside, no photos */
.av {
  position: relative;
  flex: none;
  width: clamp(28px, 7.6vh, 40px);
  height: clamp(28px, 7.6vh, 40px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 -6px 12px -6px rgba(0, 0, 0, 0.18);
}
.av i { position: absolute; display: block; will-change: transform; }
.av--a { background: linear-gradient(150deg, #ffcfb8, #ff7a52); }
.av--a i { left: 18%; top: 44%; width: 64%; height: 64%; border-radius: 50%; background: linear-gradient(180deg, #fff6ef, #ffd9c8); }
.av--b { background: linear-gradient(150deg, #c9c1ff, #6b4dff); }
.av--b i { left: 22%; top: 22%; width: 56%; height: 56%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85); }
.av--c { background: linear-gradient(150deg, #b6eee0, #2fb69a); }
.av--c i { left: 20%; top: 30%; width: 60%; height: 70%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)); }
.av--d { background: linear-gradient(150deg, #ffe3a8, #ffae3d); }
.av--d i { left: 50%; top: 50%; width: 70%; height: 70%; margin: -35% 0 0 -35%; background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.95) 0 25%, transparent 0 50%, rgba(255, 255, 255, 0.95) 0 75%, transparent 0); border-radius: 50%; }

/* the ticket */
.scene--ticket { gap: clamp(10px, 3vh, 22px); perspective: 900px; }
.tk { position: relative; width: min(100%, 560px); will-change: transform, opacity; }
.tk__body {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: clamp(16px, 4vh, 22px);
  background: linear-gradient(160deg, #ffffff 0%, #fbf8ff 60%, #fff5f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(22, 21, 27, 0.06),
    0 1px 2px rgba(22, 21, 27, 0.06),
    0 12px 26px -12px rgba(22, 21, 27, 0.2);
  /* the two notches of the perforation */
  -webkit-mask: radial-gradient(circle 9px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 9px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 9px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  --stub: clamp(96px, 28vw, 150px);
}
.tk__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 40, 140, 0.32), transparent);
  filter: blur(10px);
}
.tk__sheen {
  position: absolute;
  inset: -20% -40%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 47%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, color-mix(in srgb, var(--warm) 14%, transparent) 53%, transparent 62%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  visibility: hidden;
}
.tk__main { flex: 1; min-width: 0; padding: clamp(12px, 3.4vh, 22px) clamp(12px, 3.6vw, 22px); }
.tk__brand { display: flex; align-items: center; gap: 7px; font-size: clamp(11px, 2.9vh, 12.5px); font-weight: 620; color: var(--muted); }
.tk__dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.tk__theme {
  margin: clamp(6px, 1.8vh, 12px) 0 clamp(8px, 2.4vh, 16px);
  font-size: clamp(16px, 5.2vh, 30px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variation-settings: 'wdth' 106;
}
.tk__facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(5px, 1.6vh, 10px) 12px; }
.tk__wide { grid-column: 1 / -1; }
.tk__facts dt { font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.tk__facts dd { font-size: clamp(12px, 3.2vh, 14px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk__stub {
  position: relative;
  flex: none;
  width: var(--stub);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(3px, 1vh, 6px);
  padding: clamp(10px, 3vh, 20px) clamp(10px, 3vw, 18px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--warm) 7%, transparent));
}
.tk__stub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  border-left: 1.5px dashed rgba(22, 21, 27, 0.16);
}
.tk__admit { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.tk__price { display: flex; align-items: flex-start; font-size: clamp(24px, 7.6vh, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tk__cur { font-size: 0.5em; margin: 0.12em 0.06em 0 0; color: var(--muted); }
.dg { display: inline-block; height: 1em; overflow: hidden; }
.dg__strip { display: flex; flex-direction: column; will-change: transform; }
.dg__strip b { height: 1em; font-weight: inherit; }
.tk__code { width: 100%; height: clamp(12px, 3.6vh, 20px); }
.tk__code rect { fill: var(--ink); }
.tk__left { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk__left b { color: var(--ink); font-weight: 620; }

/* the button */
.btn {
  position: relative;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--button-ink);
  background: var(--button);
  border-radius: 999px;
  height: clamp(40px, 10.4vh, 52px);
  min-width: min(100%, 220px);
  padding: 0 clamp(18px, 5vh, 26px);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(22, 21, 27, 0.2), 0 12px 24px -12px color-mix(in srgb, var(--accent) 70%, rgba(22, 21, 27, 0.6));
  -webkit-tap-highlight-color: transparent;
}
.btn__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 55%, transparent) 46%, color-mix(in srgb, var(--warm) 45%, transparent) 54%, transparent 70%);
  visibility: hidden;
  opacity: 0.9;
}
.btn__face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: clamp(13px, 3.5vh, 15px);
  font-weight: 600;
  font-variation-settings: 'wdth' 104;
  transition: font-variation-settings 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .btn:hover .btn__face { font-variation-settings: 'wdth' 118; }
  .btn:hover .btn__arrow { transform: translateX(2px); }
}
.btn__words { display: inline-block; white-space: nowrap; }
.btn__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.btn__arrow { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn__check { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* before the script starts, only the first scene is visible */
.scene--speakers, .scene--ticket { opacity: 0; visibility: hidden; }
