:root {
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --line: #e7e7ea;
  --paper: #ffffff;
  --paper-2: #f6f6f8;
  --night: #0a0a0b;
  --night-2: #141218;
  --violet: #6c47ff;
  --violet-soft: #efeaff;
  --lav: #b8a4f5;
  --green: #10b981;
  --green-ink: #047857;
  --amber: #b45309;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 10, 20, .04), 0 8px 24px -12px rgba(10, 10, 20, .12);
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  max-width: var(--max); margin: 0 auto;
}
.brand img { height: 28px; width: auto; }
.event-chip {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: #fff;
  padding: calc(88px + env(safe-area-inset-top)) var(--gutter) 40px;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 120%; height: 120%;
  background:
    radial-gradient(40% 45% at 70% 20%, rgba(108, 71, 255, .45), transparent 70%),
    radial-gradient(35% 40% at 15% 85%, rgba(184, 164, 245, .14), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.6);
}
.hero h1 {
  margin-top: 10px; font-weight: 900; font-size: clamp(34px, 8.5vw, 60px); line-height: 1.04; letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--lav); display: block; }
.hero .lede { margin-top: 14px; font-size: 16px; color: rgba(255,255,255,.72); max-width: 560px; }

.hero-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 860px) {
  .hero { padding-top: 120px; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; }
}

/* Badge card */
.badge {
  position: relative; border-radius: 22px; padding: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -30px rgba(108, 71, 255, .6), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.badge-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge-type {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--night); background: var(--lav); border-radius: 999px; padding: 4px 10px;
}
.badge-event { font-size: 12px; color: rgba(255,255,255,.6); text-align: right; }
.badge-name { margin-top: 18px; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.badge-role { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 15px; }
.badge-role strong { color: #fff; font-weight: 700; }
.badge-foot {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,.18);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  padding: 6px 10px; border-radius: 999px;
}
.pill svg { width: 14px; height: 14px; opacity: .8; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.stat {
  border-radius: 16px; padding: 14px 12px; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, transform .2s;
}
.stat:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
.stat b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.62); }
.stat.fit b { color: var(--lav); font-size: 22px; }

/* ---------- Sections ---------- */
.section { padding: 48px var(--gutter); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.section h2 { margin-top: 8px; font-size: clamp(26px, 6vw, 38px); font-weight: 900; line-height: 1.1; }
.section h2 .muted { color: var(--ink-3); }
.section .sub { margin-top: 10px; color: var(--ink-2); max-width: 620px; font-size: 15.5px; }

/* Fit */
.fit-card {
  margin-top: 24px; display: grid; gap: 22px; padding: 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .fit-card { grid-template-columns: 220px 1fr; padding: 32px; gap: 36px; } }
.gauge { display: flex; align-items: center; gap: 16px; }
@media (min-width: 860px) { .gauge { flex-direction: column; align-items: flex-start; } }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--violet-soft); }
.ring .bar { stroke: var(--violet); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.ring .val small { font-size: 13px; font-weight: 700; }
.fit-label b { display: block; font-size: 22px; font-weight: 900; }
.fit-label span { color: var(--ink-3); font-size: 13.5px; }
.fit-text { color: var(--ink-2); font-size: 15.5px; }
.highlights { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li {
  display: flex; gap: 12px; padding: 14px; border-radius: 14px;
  background: var(--paper-2); font-size: 14.5px; color: var(--ink-2);
}
.highlights .n {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--violet); color: #fff; font-size: 13px; font-weight: 700;
}

/* Cards grid */
.grid { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: #d6d0f5; box-shadow: 0 1px 2px rgba(10,10,20,.04), 0 18px 36px -18px rgba(108,71,255,.35); }
.card-head { display: flex; gap: 14px; align-items: center; }
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--violet-soft);
  display: grid; place-items: center; font-weight: 900; color: var(--violet); font-size: 18px;
}
.logo-tile {
  flex: none; width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 6px; overflow: hidden;
}
.logo-tile img { max-height: 100%; object-fit: contain; }
.logo-tile span { font-weight: 900; color: var(--violet); font-size: 18px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.card-meta { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.why {
  font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, var(--violet-soft), #f7f4ff);
}
.why b { color: var(--violet); font-weight: 700; display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.match { font-size: 12.5px; font-weight: 700; color: var(--green-ink); display: inline-flex; align-items: center; gap: 6px; }
.match::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.match.mid { color: var(--amber); }
.match.mid::before { background: #f59e0b; }
.link {
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  transition: background .15s, border-color .15s;
}
.link:hover { background: var(--paper-2); border-color: #d4d4d8; }
.link svg { width: 14px; height: 14px; }
.foot-left { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.booth {
  font-size: 12px; font-weight: 900; letter-spacing: .04em; color: #fff; background: var(--night);
  padding: 5px 9px; border-radius: 8px;
}
.booth small { font-weight: 500; opacity: .65; margin-right: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.desc { font-size: 14px; color: var(--ink-2); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--violet); cursor: pointer; align-self: flex-start; }

/* Carousel */
.rail-wrap { margin-top: 20px; }
.rail-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.see-all {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--violet);
  background: var(--violet-soft); border: 0; border-radius: 999px; padding: 9px 14px;
}
.see-all:hover { background: #e4dcff; }
.see-all svg { width: 14px; height: 14px; transition: transform .2s; }
.arrows { display: none; gap: 8px; }
@media (min-width: 640px) { .arrows { display: inline-flex; } }
.nav-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: background .15s, opacity .15s;
}
.nav-btn:hover:not(:disabled) { background: var(--paper-2); }
.nav-btn:disabled { opacity: .35; cursor: default; }
.nav-btn svg { width: 15px; height: 15px; }
.nav-btn.flip svg { transform: scaleX(-1); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 330px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
@media (min-width: 980px) { .rail { grid-auto-columns: calc((100% - 2 * var(--gutter) - 28px) / 3); } }
/* Carousel cards stay short: no bio/description/tags, rationale clipped */
.rail .desc, .rail .more, .rail .tags { display: none; }
.rail .why-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* "See all" modal: bottom sheet on phones, centred window on larger screens */
html.locked, html.locked body { overflow: hidden; }
dialog.sheet {
  padding: 0; border: 0; color: var(--ink); background: var(--paper-2);
  width: 100%; max-width: 100%; height: 88vh; height: 88dvh; max-height: none;
  margin: auto 0 0 0; border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.5);
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .32s cubic-bezier(.2,.8,.2,1); }
dialog.sheet::backdrop { background: rgba(10,10,11,.62); backdrop-filter: blur(4px); animation: fade .25s ease; }
.sheet-head {
  position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px var(--gutter) 14px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.sheet-head h3 { font-size: 19px; font-weight: 900; }
.grabber { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d4d4d8; }
.sheet-close {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.sheet-close:hover { background: var(--paper-2); }
.sheet-close svg { width: 15px; height: 15px; }
.sheet-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.sheet-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .sheet-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) {
  dialog.sheet { margin: auto; width: min(1040px, calc(100% - 48px)); height: auto; max-height: 86vh; border-radius: 24px; }
  dialog.sheet[open] { animation: sheet-in .25s ease; }
  .grabber { display: none; }
  .sheet-head { padding: 18px 24px; }
  .sheet-body { padding: 20px 24px 28px; }
}
@media (min-width: 980px) { .sheet-grid { grid-template-columns: repeat(3, 1fr); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open], dialog.sheet::backdrop { animation: none; } }
.card.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 3px var(--violet), var(--shadow); } }

/* Route strip */
.route {
  margin-top: 22px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.route::-webkit-scrollbar { display: none; }
.stop {
  flex: none; display: flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
}
.stop b { background: var(--violet); color: #fff; font-size: 12px; border-radius: 999px; padding: 3px 8px; }

/* Sessions */
.session { flex-direction: row; gap: 14px; }
.session .time { flex: none; width: 70px; font-weight: 900; font-size: 15px; color: var(--violet); }
.session .time small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.empty-note {
  margin-top: 22px; padding: 18px; border-radius: var(--radius); border: 1px dashed #d4d4d8; color: var(--ink-3); font-size: 14.5px; background: var(--paper);
}

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 28px 22px; color: #fff; background: var(--night);
}
.cta::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 90%; height: 160%;
  background: radial-gradient(closest-side, rgba(108,71,255,.55), transparent); pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 6vw, 38px); font-weight: 900; line-height: 1.08; }
.cta h2 .accent { color: var(--lav); display: block; }
.cta p { margin-top: 10px; color: rgba(255,255,255,.72); max-width: 520px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (min-width: 860px) { .cta { padding: 48px; } }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 13px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: #0ea371; }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.22); }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.dark { background: var(--night); color: #fff; }

/* Sticky mobile bar */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,11,.86); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 8px; transform: translateY(110%); transition: transform .3s;
}
.dock.show { transform: none; }
.dock .btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 14px; }
@media (min-width: 860px) { .dock { display: none; } }

/* Footer */
.footer {
  background: var(--night); color: rgba(255,255,255,.6); text-align: center;
  padding: 36px var(--gutter) calc(96px + env(safe-area-inset-bottom)); font-size: 13.5px;
}
.footer img { height: 22px; width: auto; margin: 0 auto 12px; opacity: .9; }
.footer .fine { margin-top: 6px; font-size: 12px; opacity: .7; }
@media (min-width: 860px) { .footer { padding-bottom: 40px; } }

/* States */
.state { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.state .hero-inner { max-width: 520px; }
.state h1 { font-size: clamp(30px, 7vw, 44px); }
.state .lede { margin-left: auto; margin-right: auto; }
.state .cta-row { justify-content: center; }
.spinner {
  width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12); border-top-color: var(--lav); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton */
.sk { background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
.sk-line { height: 14px; margin-top: 14px; }
.sk-title { height: 40px; margin-top: 14px; width: 90%; }
.sk-card { height: 170px; margin-top: 28px; border-radius: 22px; }
.w40 { width: 40%; } .w70 { width: 70%; } .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sk, .spinner { animation: none; }
  html { scroll-behavior: auto; }
}

/* Session cards */
.when { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--violet); background: var(--violet-soft); padding: 5px 10px; border-radius: 999px; }
.when svg { width: 14px; height: 14px; }
.people { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.people > span[aria-hidden] { flex: none; margin-top: 1px; color: var(--violet); }
.people > span[aria-hidden] svg { width: 15px; height: 15px; }
.people .faces { flex: none; }
.people-names { min-width: 0; }
.faces { display: inline-flex; }
.faces > * { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--paper); object-fit: cover; background: var(--violet-soft); margin-left: -8px; }
.faces > *:first-child { margin-left: 0; }
