:root {
  --bg: #f1efea;
  --card: #ffffff;
  --ink: #15161c;
  --soft: #7d7f8a;
  --faint: #b9bac2;
  --line: rgba(21, 22, 28, 0.08);
  --accent: #4b3ff0;
  --warm: #f08a3c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(120% 80% at 50% 0%, #f7f6f2 0%, rgba(247, 246, 242, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px;
}

/* the card: everything inside is measured in em, and the em follows both the width and the height of the window */
.card {
  position: relative;
  font-size: clamp(9.5px, min(3.3vw, 2.7vh), 16.5px);
  width: min(27em, 100%);
  padding: 1.25em 0.75em 0.75em;
  border-radius: 1.6em;
  background: linear-gradient(180deg, #ffffff 0%, #fdfcfa 100%);
  box-shadow:
    0 0 0 1px rgba(21, 22, 28, 0.06),
    0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(21, 22, 28, 0.05),
    0 6px 14px -6px rgba(21, 22, 28, 0.1),
    0 28px 60px -24px rgba(40, 32, 110, 0.22);
}
.card__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(60% 40% at 80% 0%, rgba(75, 63, 240, 0.07), rgba(75, 63, 240, 0) 70%);
}

.head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  padding: 0 0.5em 1em;
}
.head__who { display: flex; align-items: center; gap: 0.7em; min-width: 0; }
.head__mark {
  flex: none;
  width: 2.3em;
  height: 2.3em;
  fill: var(--ink);
  stroke: #ffffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.head__mark rect { stroke: none; }
.head__brand { font-size: 0.78em; color: var(--soft); font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.head__sep { color: var(--faint); }
.head__title { font-size: 1.22em; font-weight: 640; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }

.agenda {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 2.2em;
  padding: 0 0.45em 0 0.7em;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 560;
  color: var(--ink);
  background: #f5f4f1;
  box-shadow: 0 0 0 1px rgba(21, 22, 28, 0.06) inset;
}
.agenda svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.agenda__n {
  display: inline-grid;
  place-items: center;
  min-width: 1.55em;
  height: 1.55em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.92em;
  font-weight: 620;
}
.agenda__roll { display: block; line-height: 1.55em; }

.list { list-style: none; position: relative; display: grid; gap: 0.15em; }

/* one row: the GSAP element is .row, the hover light and the colours live on its children */
.row {
  position: relative;
  border-radius: 1.05em;
  cursor: pointer;
  outline: none;
}
.row__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(14em 9em at var(--mx, 50%) var(--my, 0%), rgba(75, 63, 240, 0.075), rgba(75, 63, 240, 0) 70%),
    #ffffff;
  box-shadow:
    0 0 0 1px rgba(21, 22, 28, 0.07),
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 4px rgba(21, 22, 28, 0.04),
    0 14px 30px -14px rgba(40, 32, 110, 0.26);
  opacity: 0;
  pointer-events: none;
}
.row:focus-visible .row__bg { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.row__top {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75em;
  padding: 0.6em 0.6em;
}

.face { position: relative; width: 2.7em; height: 2.7em; flex: none; }
.face__mono {
  position: absolute;
  inset: 0.32em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.82em;
  font-weight: 640;
  font-stretch: 112%;
  color: #ffffff;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -2px 4px rgba(0, 0, 0, 0.12) inset, 0 2px 5px -1px rgba(21, 22, 28, 0.25);
}
.face__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.face__ring circle { fill: none; stroke-width: 1.6; }
.face__track { stroke: rgba(21, 22, 28, 0.08); }
.face__seat { stroke: var(--accent); stroke-linecap: round; }
.face__seat.is-warm { stroke: var(--warm); }

.who { min-width: 0; }
.who__name {
  font-size: 0.98em;
  font-weight: 560;
  font-stretch: 100%;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-stretch 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15), font-weight 0.45s ease;
}
.who__role { font-size: 0.78em; color: var(--soft); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.is-open .who__name { font-stretch: 110%; font-weight: 650; }

.when { display: flex; align-items: center; gap: 0.35em; font-size: 0.8em; font-weight: 560; color: var(--soft); }
.when__chev { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.row.is-open .when { color: var(--ink); }
.when__ok { width: 1.05em; height: 1.05em; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 0; margin-right: -0.35em; overflow: visible; transition: width 0.45s cubic-bezier(0.3, 1.4, 0.4, 1), margin 0.45s cubic-bezier(0.3, 1.4, 0.4, 1); }
.row.is-added .when__ok { width: 1.05em; margin-right: 0; }
.row.is-added .when { color: var(--accent); }

/* the session that opens: height animated by GSAP on .more, its pieces on .more__in children */
.more { position: relative; height: 0; overflow: hidden; }
.more__in { padding: 0 0.85em 0.85em 4.05em; }
.talk { font-size: 1.04em; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em 0.75em; margin-top: 0.45em; font-size: 0.76em; color: var(--soft); }
.meta span { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; }
.meta svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.meta__seats { color: var(--accent); font-weight: 580; }
.meta__seats.is-warm { color: #c8621a; }

.day { position: relative; margin-top: 0.85em; height: 1.9em; }
.day__track { position: absolute; left: 0; right: 0; top: 0.45em; height: 0.36em; border-radius: 999px; background: #f0eff3; box-shadow: 0 1px 1px rgba(21, 22, 28, 0.06) inset; }
.day__tick { position: absolute; top: 0.25em; width: 1px; height: 0.76em; background: rgba(21, 22, 28, 0.1); }
.day__slot { position: absolute; top: 0.27em; height: 0.72em; }
.day__fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a5ff7, var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 3px 8px -2px rgba(75, 63, 240, 0.55);
  transform-origin: 0 50%;
}
.day__lab { position: absolute; top: 1.15em; font-size: 0.66em; color: var(--faint); font-weight: 520; transform: translateX(-50%); white-space: nowrap; }
.day__lab:first-of-type { transform: none; }
.day__lab.is-end { transform: translateX(-100%); }

.acts { display: flex; align-items: center; gap: 0.6em; margin-top: 0.7em; }
.add {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 2.35em;
  padding: 0 1em 0 0.8em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8em;
  font-weight: 600;
  color: #ffffff;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 4px 10px -4px rgba(21, 22, 28, 0.5);
}
.add__face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #6a5ff7, var(--accent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 6px 14px -5px rgba(75, 63, 240, 0.7);
  opacity: 0;
}
.add__ico { position: relative; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.add__label { position: relative; display: inline-grid; }
.add__label > span { grid-area: 1 / 1; white-space: nowrap; }
.add__done { opacity: 0; }
.add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acts__note { font-size: 0.74em; color: var(--faint); white-space: nowrap; }

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

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #15161c;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(21, 22, 28, 0.35));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}
