:root {
  --sky:        #9ec9e8;
  --sky-deep:   #6ba3d0;
  --cloud:      #f0f6fb;
  --ink:        #3a2418;   /* warm espresso brown */
  --ink-soft:   #6b4a30;   /* lighter brown for secondary text */
  --cream:      #ead7b8;   /* coffee + milk — soft warm surface */
  --accent-1:   #a85f2e;   /* cinnamon — replaces former hot orange */
  --moss:       #7a8a5c;   /* earthy moss — alternate accent in reserve */
  --accent-2:   #ffd93d;
  --accent-3:   #2ecc71;
  --accent-4:   #ff3d7f;

  --pad-edge:   48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--sky);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  /* Subtle vertical sky gradient — feels like real sky, not corporate blue */
  background:
    radial-gradient(ellipse at 70% 10%, var(--cloud) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 80%, var(--sky-deep) 0%, transparent 55%),
    var(--sky);
}

/* ---------- Top-left metadata ---------- */
.meta {
  position: absolute;
  top: var(--pad-edge);
  left: var(--pad-edge);
  z-index: 10;
  max-width: 420px;
}

.meta-line {
  display: none;
}

/* In Layout 1 the rich title is hidden — only the metadata line shows */
.meta-title, .meta-subtitle { display: none; }

/* Layout 2: show the full title block, hide center hero entirely */
body[data-layout="2"] .meta-title {
  display: block;
  margin-top: 10px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

body[data-layout="2"] .meta-subtitle {
  display: block;
  margin-top: 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  opacity: 0.75;
  max-width: 340px;
}

/* Old PROTOCOL & CHILL hero is retired entirely — URL is now the center hero */
.hero, .eyebrow {
  display: none;
}

/* ---------- Stage / hero ---------- */
.stage {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  padding: 0 5vw;
}

.eyebrow {
  position: absolute;
  top: calc(50% - clamp(140px, 14vw, 220px));
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 5;
}

.hero {
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 900;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-size: clamp(80px, 11vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--ink);
  position: relative;
  z-index: 4;
  user-select: none;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  display: inline-block;
  will-change: transform;
}

.amp {
  font-style: italic;
  color: var(--accent-1);
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  font-size: 1.15em;
  vertical-align: -0.06em;
  margin-right: 0.06em;
}

.chill {
  font-style: italic;
}

/* ---------- Stickers ---------- */
.stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;  /* above .intro (z:10) so chips ride OVER the title */
}

.sticker {
  position: absolute;
  filter: drop-shadow(0 8px 16px rgba(15, 20, 25, 0.18));
  will-change: transform;
}

.sticker img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tag pill stickers */
.pill {
  position: absolute;
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(0 6px 14px rgba(15, 20, 25, 0.2));
  will-change: transform;
}

.pill.yellow { background: var(--accent-2); color: var(--ink); }
.pill.orange { background: var(--accent-1); color: #fff; }
.pill.pink   { background: var(--accent-4); color: #fff; }
.pill.lime   { background: var(--accent-3); color: var(--ink); }
.pill.black  { background: var(--ink);      color: #fff; }
.pill.white  { background: #fff;            color: var(--ink); }

.pill.lower {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 18px;
}

/* ---------- Invite block (URL is the CTA) ---------- */
.intro {
  position: absolute;
  bottom: var(--pad-edge);
  left: var(--pad-edge);
  z-index: 10;
  max-width: 420px;
}

.intro-copy { line-height: 1.25; }

.intro-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Base = corner/populated state. Values snap to 4/8 grid. */
.intro-sub {
  margin-top: 8px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  opacity: 0.7;
}

.intro-url {
  margin-top: 16px;
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.intro-hint {
  margin-top: 4px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.55;
}

.intro-chip {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  background: var(--accent-4);
  color: #fff;
  border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-5deg);
  filter: drop-shadow(0 4px 12px rgba(15, 20, 25, 0.2));
}

/* Empty-state version: bigger chip alongside the URL hero */
body:not([has-attendees="true"]) .intro-chip {
  margin-top: 18px;
  padding: 9px 18px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* ---------- Timer (framed badge — visible against any background) ---------- */
.timer {
  position: absolute;
  bottom: var(--pad-edge);
  right: var(--pad-edge);
  z-index: 10;
}

.timer-inner {
  display: inline-block;
  padding: 14px 22px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  transform: rotate(-2deg);
  text-align: left;
  filter: drop-shadow(0 10px 22px rgba(15, 20, 25, 0.25));
  border-top: 8px solid var(--accent-1);
}

.timer-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.timer-numerals {
  margin-top: 4px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  transition: color 0.4s ease;
}

.timer-numerals.soon   { color: var(--accent-2); }
.timer-numerals.urgent { animation: timerPulse 1s ease-in-out infinite; }
.timer-numerals.go {
  font-style: italic;
  color: var(--accent-2);
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* ====================================================
   ATTENDEE WALL — two horizontal marquees, opposite directions
   ==================================================== */
.attendees {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body[has-attendees="true"] .attendees {
  opacity: 1;
}

/* Track is positioned along an invisible horizontal rail; cards Y-offset themselves */
.attendees-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 56px;
  height: 100%;
  align-items: flex-start;
  padding: 0 32px;
  will-change: transform;
}

/* Cloud cards: cloud silhouette via SVG clip-path, frosty interior.
   Generous padding keeps content well inside the wavy edges. */
.attendee-card {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  min-height: 270px;
  /* Radial light-from-above: bright sun-lit top, cooler shadowed bottom */
  background:
    radial-gradient(ellipse 110% 90% at 50% 18%,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.55) 45%,
      rgba(220, 232, 244, 0.42) 100%);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  clip-path: url(#cloud-1);
  padding: 52px 40px 64px;
  /* Two-stage drop shadow — close + far creates volumetric depth */
  filter:
    drop-shadow(0 4px 8px rgba(15, 20, 25, 0.06))
    drop-shadow(0 22px 44px rgba(15, 20, 25, 0.18));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateY(var(--card-y, 50%)) rotate(var(--rot, -1deg));
  will-change: transform;
}

/* Inner top highlight — extra "sun catch" along the upper bumps */
.attendee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Soft inner shadow at the cloud's belly — implies volume */
.attendee-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 30%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(140, 160, 180, 0.18) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Card content sits ABOVE the highlight/shadow layers */
.card-photo, .card-quote, .card-name {
  position: relative;
  z-index: 1;
}


.card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: var(--cloud);
}

.card-quote {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  max-width: 200px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin: 0;
}

/* Role hidden — content is concise: photo + quote + name only */
.card-role { display: none; }

/* Per-card cloud silhouette variants (assigned via data-cloud="2..5") */
.attendee-card[data-cloud="2"] { clip-path: url(#cloud-2); }
.attendee-card[data-cloud="3"] { clip-path: url(#cloud-3); }
.attendee-card[data-cloud="4"] { clip-path: url(#cloud-4); }
.attendee-card[data-cloud="5"] { clip-path: url(#cloud-5); }

/* ====================================================
   LAYOUT 2 — Editorial / Vogue-Archrival inspired
   ==================================================== */
body[data-layout="2"] {
  background:
    radial-gradient(ellipse at 70% 10%, var(--cloud) 0%, transparent 50%),
    var(--sky);
}

/* Layout 2 shows only selected stickers (those marked `keep-l2` in JS) */
body[data-layout="2"] .pill:not(.keep-l2),
body[data-layout="2"] .sticker:not(.keep-l2) {
  display: none;
}


/* ---------- Empty-state: URL is the hero ---------- */

/* Smooth transition on position/sizing when first attendee arrives */
.intro {
  transition: top 0.9s cubic-bezier(0.2, 0.85, 0.3, 1),
              left 0.9s cubic-bezier(0.2, 0.85, 0.3, 1),
              bottom 0.9s cubic-bezier(0.2, 0.85, 0.3, 1),
              transform 0.9s cubic-bezier(0.2, 0.85, 0.3, 1),
              max-width 0.6s ease;
}
.intro-title, .intro-sub, .intro-url, .intro-hint {
  transition: font-size 0.6s ease, margin-top 0.6s ease;
}

/* POPULATED state: URL block moves UPPER-LEFT (snap to 48px / pad-edge grid).
   !important needed because GSAP's entry animation leaves inline transform on .intro. */
body[has-attendees="true"] .intro {
  top: var(--pad-edge) !important;
  bottom: auto !important;
  left: var(--pad-edge) !important;
  transform: translate(0, 0) !important;
  text-align: left;
  max-width: 720px;
}

body[has-attendees="true"] .intro-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
}

body[has-attendees="true"] .intro-sub {
  margin-top: 8px;
  font-size: 14px;
  font-style: italic;
  font-family: 'Familjen Grotesk', sans-serif;
  opacity: 0.7;
}

body[has-attendees="true"] .intro-url {
  font-size: 36px;
  margin-top: 16px;
}

body[has-attendees="true"] .intro-chip {
  margin-top: 16px;
}

/* EMPTY state (no attendees yet): WELCOME + URL centered as the hero */
body:not([has-attendees="true"]) .intro {
  top: 48%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: none;
}

/* Empty-state hero (all spacing on 4/8 grid: margin-top = 8, 16, 24, 32) */
body:not([has-attendees="true"]) .intro-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(72px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--ink);
}

body:not([has-attendees="true"]) .intro-sub {
  margin-top: 8px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
  opacity: 0.65;
}

body:not([has-attendees="true"]) .intro-url {
  margin-top: 24px;
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.005em;
  color: var(--ink);
}

body:not([has-attendees="true"]) .intro-hint {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}


/* When attendees exist, hero shrinks gracefully */
body[has-attendees="true"] .hero {
  transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.3, 1);
}

/* Chrome clears out as the wall populates — pills/emoji fade away. `.persistent` keeps theirs (e.g. wifi). */
.sticker, .pill {
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
body[has-attendees="true"] .sticker:not(.persistent),
body[has-attendees="true"] .pill:not(.persistent) {
  opacity: 0 !important;
  pointer-events: none;
}

/* ====================================================
   HOST HUD (presenter controls — hidden in ?share=1)
   ==================================================== */
.hud {
  position: fixed;
  top: var(--pad-edge);
  right: var(--pad-edge);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 100;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.hud-toggle {
  appearance: none;
  border: none;
  background: rgba(15, 20, 25, 0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hud-toggle:hover { background: var(--accent-1); }

.hud-hint {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
  margin-left: 4px;
}

/* Hide HUD when ?share=1 — clean for screen-share / presentation */
body.share-mode .hud { display: none; }

/* ====================================================
   SINGLE-PAGE OVERRIDES (May 2026 architecture pivot)
   Workshop became ONE scrolling page with 5 sections.
   Lobby preserves Slide 1 design; other sections added below.
   ==================================================== */

/* Allow vertical scroll — Slide 1 had overflow:hidden for the TV poster mode */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

/* ---------- Page-level scroll structure ---------- */
.section {
  position: relative;
  width: 100%;
}

.section-lobby {
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Non-lobby sections: scrollable inline, with generous padding */
.section-story,
.section-build,
.section-artifacts,
.section-attendees {
  padding: 96px var(--pad-edge);
  min-height: 100vh;
}

/* Alternating section backgrounds for visual rhythm */
.section-story {
  background:
    radial-gradient(ellipse at 90% 10%, var(--cloud) 0%, transparent 45%),
    #f5ede0;  /* cream-cream */
}
.section-build {
  background: var(--cream);
}
.section-artifacts {
  background:
    radial-gradient(ellipse at 0% 0%, var(--cloud) 0%, transparent 50%),
    #fffaf2;
}
.section-attendees {
  background:
    radial-gradient(ellipse at 50% 0%, var(--cloud) 0%, transparent 60%),
    var(--sky);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Sticky top page nav ---------- */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.page-nav a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.page-nav a:hover { background: rgba(58, 36, 24, 0.06); color: var(--ink); }
.page-nav a.active {
  background: var(--ink);
  color: var(--cream);
}
body.share-mode .page-nav { display: none; }

/* ---------- Section heading typography ---------- */
.section-eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 14ch;
}
.section-title em { color: var(--accent-1); font-style: italic; }
.section-lede {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.75;
  max-width: 60ch;
  margin-bottom: 48px;
}
.section-lede em { color: var(--accent-1); font-style: italic; }

/* ---------- ② Story section ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 920px) { .story-grid { grid-template-columns: 1fr; } }
.story-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
}
.story-card-num {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-1);
  margin-bottom: 10px;
}
.story-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--ink);
}
.story-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.story-card em { font-style: italic; color: var(--ink); }
.story-card code {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(58, 36, 24, 0.07);
  padding: 1px 6px;
  border-radius: 4px;
}

.story-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(168, 95, 46, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(168, 95, 46, 0.2);
}
.story-cta {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
}
.story-link {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-1);
}
.story-link:hover { color: var(--accent-1); }
.story-link-note {
  font-size: 13px;
  color: var(--ink-soft);
  flex-basis: 100%;
}
.story-link-note a { color: var(--accent-1); }

/* ---------- ③ Setup + Build section ---------- */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 920px) { .setup-grid { grid-template-columns: 1fr; } }
.setup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}
.setup-step {
  display: inline-block;
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--accent-1);
  margin-bottom: 8px;
}
.setup-card h3 {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}
.setup-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.setup-card code {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(58, 36, 24, 0.07);
  padding: 1px 6px;
  border-radius: 4px;
}
.setup-card a { color: var(--accent-1); }
.setup-note {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.8;
  margin-top: 10px;
}

/* ---------- Builder (lifted from build/index.html) ---------- */
.builder {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}
.builder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.builder-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  color: var(--ink);
}
.runtime-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.runtime-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.runtime-chip.ready .dot { background: var(--accent-3); }
.runtime-chip.ready { color: var(--ink); }
.runtime-chip a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 3px; }

.presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.presets-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.65;
  margin-right: 4px;
}
.preset-chip {
  appearance: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.preset-chip:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }
.preset-chip.blank { border-style: dashed; opacity: 0.7; }

.builder-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 920px) { .builder-columns { grid-template-columns: 1fr; } }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}
.panel-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.step-label {
  display: inline-block;
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-1);
  margin-right: 8px;
  letter-spacing: 0;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field-aux { opacity: 0.6; font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input[type="text"]:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(168, 95, 46, 0.15);
}
.field-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-style: italic;
  opacity: 0.8;
}
.field textarea { resize: vertical; min-height: 60px; }

.input-row {
  display: grid;
  grid-template-columns: 1fr 130px auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.input-row .field { margin: 0; }
.remove-input {
  appearance: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-soft);
}
.remove-input:hover { color: var(--accent-4); border-color: var(--accent-4); }
.add-input {
  appearance: none;
  background: transparent;
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
}
.add-input:hover { color: var(--accent-1); border-color: var(--accent-1); border-style: solid; }

.receipt-section { margin-bottom: 22px; }
.receipt-section:last-child { margin-bottom: 0; }
.receipt-section h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  filter: drop-shadow(0 6px 18px rgba(15, 20, 25, 0.08));
}
.summary-name {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  word-break: break-word;
}
.summary-desc {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.summary-row .key {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  flex-shrink: 0;
  min-width: 64px;
}
.summary-row .val {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--ink);
}
.summary-row.author { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-row.author .val { font-family: 'Familjen Grotesk', sans-serif; font-style: italic; font-size: 14px; }
.summary-badge {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary-badge .badge-mark {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-1);
}

.code-block {
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.code-block .k { color: #f7c8a6; }
.code-block .s { color: #d4e8a4; }
.code-block .c { color: #8a7a6e; font-style: italic; }
.code-block .p { color: var(--cream); opacity: 0.6; }

.status-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}
.status-block .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(58, 36, 24, 0.08);
  color: var(--ink-soft);
}
.status-block.registered .chip {
  background: var(--accent-3);
  color: #0f3a1a;
}
.status-block .note {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}

.actions {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.actions .step-mini {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 4px;
}
.btn {
  appearance: none;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  filter: drop-shadow(0 4px 10px rgba(15, 20, 25, 0.1));
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent-1); color: #fff; }
.btn.primary:hover { background: var(--ink); }
.btn.secondary { background: var(--ink); color: var(--cream); }
.btn.secondary:hover { background: var(--accent-1); }
.btn.tertiary {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.btn .small { font-size: 10px; opacity: 0.7; margin-left: 6px; }

/* ---------- ④ Artifacts section ---------- */
.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.artifact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  filter: drop-shadow(0 4px 14px rgba(15, 20, 25, 0.06));
}
.artifact-card.sample { opacity: 0.7; }
.artifact-card.placeholder {
  background: transparent;
  border: 2px dashed rgba(58, 36, 24, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  filter: none;
  min-height: 180px;
}
.artifact-card.placeholder p {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.artifact-card.placeholder .placeholder-hint {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
}
.artifact-name {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.artifact-desc {
  font-family: 'Familjen Grotesk', sans-serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 14px;
}
.artifact-rows { font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }
.artifact-rows div { display: flex; gap: 6px; margin-bottom: 4px; }
.artifact-rows .k { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; min-width: 64px; }
.artifact-rows .v { font-family: 'SF Mono', 'JetBrains Mono', monospace; color: var(--ink); }
.artifact-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.artifact-foot .brand {
  color: var(--accent-1);
  font-weight: 700;
}

/* ---------- ⑤ Attendees section (bounded wall) ---------- */
/* Override Slide 1's full-viewport .attendees here */
.attendees-bounded {
  position: relative;
  height: 480px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--cloud) 0%, transparent 70%),
    var(--sky);
  overflow: hidden;
  border: 1px solid var(--line);
}
.attendees-bounded .attendees {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}
.attendees-bounded .attendees-track {
  /* Inherits Slide 1 styles — horizontal lineup with sine-wave Y motion */
}

/* Smaller cards in the bounded section so they fit the 480px section height */
.attendees-bounded .attendee-card {
  flex: 0 0 220px;
  width: 220px;
  min-height: 220px;
  padding: 36px 28px 44px;
}
.attendees-bounded .card-photo {
  width: 64px;
  height: 64px;
}
.attendees-bounded .card-quote {
  font-size: 12px;
  max-width: 160px;
}
.attendees-bounded .card-name { font-size: 12px; }
.attendees-bounded .attendees-track { gap: 40px; padding: 0 24px; }

/* Section auto-starts the marquee with sample attendees (vs Slide 1 which waits for keypress) */
.attendees-bounded { isolation: isolate; }

/* ---------- Footer ---------- */
.page-foot {
  padding: 32px var(--pad-edge);
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.page-foot a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
}
.page-foot a:hover { color: var(--accent-2); opacity: 1; }

/* ---------- Toast (shared by builder) ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Lobby scoping overrides ----------
   The original Slide 1 styles assume a fixed viewport.
   In the scrolling page, the .stage and .attendees full-viewport
   absolutes need to be scoped to just the lobby section. */

.section-lobby .stage {
  height: 100vh;
  min-height: 720px;
  display: grid;
  place-items: center;
}

/* The lobby itself is the absolute root for its chrome */
.section-lobby .meta,
.section-lobby .intro,
.section-lobby .timer,
.section-lobby .hud {
  position: absolute;
  z-index: 10;
}

/* ---------- Reduced-motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Smooth scroll for anchor nav */
html { scroll-behavior: smooth; }

