@font-face {
  font-family: "Panchang";
  src: url("/fonts/Panchang-Variable.ttf") format("truetype");
  font-weight: 680;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-latin-400-normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-latin-500-normal.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-latin-600-normal.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cooper Hewitt";
  src: url("/fonts/cooper-hewitt-latin-600-normal.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Ink — indigo-black ground */
  --bg: #0b0e1c;
  --bg-lift: #101428;
  --surface: #151a32;
  --plate: #121830;
  /* Warm paper against cool indigo */
  --paper: #f6edea;
  --paper-82: rgba(246, 237, 234, 0.82);
  --paper-68: rgba(246, 237, 234, 0.68);
  --paper-48: rgba(246, 237, 234, 0.48);
  --paper-28: rgba(246, 237, 234, 0.28);
  --paper-14: rgba(246, 237, 234, 0.14);
  --paper-08: rgba(246, 237, 234, 0.08);
  --rim: rgba(246, 237, 234, 0.14);
  /* Signal — blue indigo (not sky, not violet) */
  --soft: #7a8ad4;
  --soft-rgb: 122, 138, 212;
  /* Plate field — deeper indigo */
  --indigo-hi: #4659b8;
  --indigo-mid: #2b3c7e;
  --indigo-lo: #121a3a;
  --indigo-wash-rgb: 43, 60, 126;
  --ok: #8fbf9f;
  --danger: #e07a7a;
  --field-well: rgba(255, 255, 255, 0.06);
  --field-well-focus: rgba(255, 255, 255, 0.10);
  --field-focus-ring: rgba(246, 237, 234, 0.25);
  --ghost-border: rgba(246, 237, 234, 0.22);
  --hover-wash: rgba(246, 237, 234, 0.06);
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --control-h: 54px;
  --sans: "Google Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Cooper Hewitt", var(--sans);
  --display: "Panchang", var(--sans);
  --chrome: min(100% - 40px, 1120px);
  --rail: min(100%, 720px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: var(--paper-48);
}
a:hover { text-decoration-color: var(--paper); }

.app {
  width: var(--chrome);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 0 56px;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rim);
}

.wordmark {
  color: var(--paper);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: 0.6px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark:hover { text-decoration: none; }

.auth-slot {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--rim);
  border-radius: 999px;
  display: block;
}

.auth-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.auth-menu-btn {
  appearance: none;
  border: 1px solid var(--ghost-border);
  background: transparent;
  padding: 4px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.auth-menu-btn:hover {
  border-color: var(--paper-48);
  background: var(--hover-wash);
}
.auth-menu-btn .auth-avatar {
  width: 28px;
  height: 28px;
}

.overflow-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--rim);
  margin-bottom: 4px;
}
.overflow-eyebrow {
  margin: 0 0 4px;
  color: var(--soft);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.overflow-title {
  margin: 0;
  color: var(--paper);
  font: 400 13px/1.35 var(--sans);
  word-break: break-all;
}

.home,
.create-flow,
.key-craft {
  max-width: var(--rail);
  width: 100%;
  margin-inline: 0;
}

.event-page {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.event-page > .eyebrow,
.event-page > h1,
.event-page > .meta,
.event-page > .lede,
.event-page > .event-ctas,
.event-page > .live-banner {
  max-width: 40rem;
}

.event-page > .cover-hero {
  max-width: 52rem;
}

.auth-flow {
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
}

body.is-auth .main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: calc(100dvh - 132px);
  padding-top: 24px;
  padding-bottom: 24px;
}

.auth-back-btn {
  appearance: none;
  background: none;
  border: 0;
  color: rgba(246, 237, 234, 0.85);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  margin: 0 0 20px -10px;
  border-radius: 22px;
}
.auth-back-btn:hover {
  background: rgba(246, 237, 234, 0.06);
}

.auth-title {
  font-size: clamp(1.75rem, 4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.auth-sub {
  margin: 0 0 16px;
  color: rgba(246, 237, 234, 0.72);
  font-size: 1rem;
  line-height: 1.45;
}

.auth-disclose {
  margin: -4px 0 8px;
}

.auth-google {
  width: 100%;
  height: 54px;
  margin-top: 28px;
  border-radius: 14px;
  border: 1px solid rgba(246, 237, 234, 0.22);
  background: transparent;
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
}
.auth-google:hover {
  background: rgba(246, 237, 234, 0.06);
}
.auth-google:disabled {
  opacity: 0.5;
  cursor: default;
}

.auth-gicon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 237, 234, 0.35);
  font-size: 12px;
  letter-spacing: 1px;
  margin: 20px 0 4px;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(246, 237, 234, 0.14);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.auth-form-gap {
  margin-top: 24px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  height: 54px;
  margin: 0;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font: 400 16px/1.4 var(--sans);
  padding: 0 16px;
  outline: none;
}
.auth-input::placeholder {
  color: rgba(246, 237, 234, 0.32);
}
.auth-input:focus {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(246, 237, 234, 0.25) inset;
}

.auth-error {
  color: #ff8a80;
  font-size: 14px;
  line-height: 1.4;
}

.auth-forgot {
  appearance: none;
  color: rgba(246, 237, 234, 0.5);
  font-size: 14px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
  width: max-content;
  font-family: var(--sans);
}
.auth-forgot:hover {
  color: var(--paper-82);
}

.auth-primary {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border-radius: 14px;
  border: 0;
  background: var(--paper);
  color: var(--bg);
  font-family: var(--label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 54px;
  text-transform: uppercase;
  cursor: pointer;
}
.auth-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  color: rgba(246, 237, 234, 0.45);
}
.auth-switch button {
  appearance: none;
  background: none;
  border: 0;
  color: rgba(246, 237, 234, 0.9);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 0 0 0 6px;
  font-family: var(--sans);
}
.auth-switch button:hover {
  color: var(--paper);
}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.auth-back {
  margin: 0 0 18px;
}

.paste-panel,
.share-panel,
.key-form {
  margin-top: 8px;
}

.key-body {
  min-width: 0;
}

.event-tabs {
  margin-top: 14px;
  margin-bottom: 18px;
  gap: 8px;
}

.panel {
  background: var(--surface);
}

.main {
  flex: 1;
  padding-top: clamp(36px, 7vw, 56px);
}

.hero,
.create-flow,
.key-craft {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--soft);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--paper);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.lede,
.meta,
.empty,
.hint {
  margin: 0 0 20px;
  color: var(--paper-68);
  line-height: 1.55;
}

.lede {
  max-width: 34em;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.hint {
  font-size: 0.88rem;
  margin-top: 12px;
  margin-bottom: 0;
}

.meta { font-size: 0.92rem; }

.hero .lede { margin-top: clamp(18px, 3vw, 28px); }
.hero .btn-row { margin-top: clamp(24px, 4vw, 34px); }

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 14px;
}

label {
  display: block;
  margin: 0 0 8px;
  color: var(--soft);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.3;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  margin: 0 0 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--field-well);
  color: var(--paper);
  min-height: var(--control-h);
  padding: 0 16px;
  font: 400 16px/1.4 var(--sans);
  outline: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder,
textarea::placeholder { color: rgba(246, 237, 234, 0.32); }

input:focus,
textarea:focus {
  background: var(--field-well-focus);
  box-shadow: 0 0 0 1px var(--field-focus-ring) inset;
}

textarea {
  min-height: 96px;
  padding: 16px;
  resize: vertical;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

.btn,
button.btn,
a.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-lg);
  min-height: var(--control-h);
  padding: 0 18px;
  font-family: var(--label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--paper);
  color: var(--bg);
  transition: opacity 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn:hover:not(:disabled) { opacity: 0.92; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-block {
  width: 100%;
}

.btn-compact {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  letter-spacing: 1.2px;
}

button.btn.btn-compact,
a.btn.btn-compact {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  letter-spacing: 1.2px;
}

button.btn.btn-ghost,
.btn.btn-ghost,
a.btn.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--ghost-border);
}

button.btn.btn-ghost:hover:not(:disabled),
.btn.btn-ghost:hover:not(:disabled) {
  border-color: var(--paper-48);
  background: var(--hover-wash);
  opacity: 1;
}

button.btn.btn-accent,
.btn.btn-accent,
a.btn.btn-accent {
  background: var(--paper);
  color: var(--bg);
}

button.btn.btn-danger,
.btn.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224, 122, 122, 0.4);
  border-radius: var(--radius-lg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.cover,
.cover-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--rim);
  background: var(--plate);
  border-radius: var(--radius-lg);
}

/* Guest QR / share landing before sign-in */
.join-preview {
  max-width: 36rem;
  margin: 0 auto;
}

.join-preview .cover-hero {
  margin-bottom: 20px;
}

.join-preview .eyebrow {
  margin: 0 0 8px;
}

.join-preview h1 {
  margin: 0 0 10px;
}

.join-preview .meta {
  margin: 0 0 6px;
}

.join-preview .lede {
  margin-top: 14px;
}

.join-preview .hint {
  margin: 12px 0 0;
  color: var(--paper-68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.join-preview .btn-row {
  margin-top: 22px;
}

.sk-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(246, 237, 234, 0.08);
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
}

.qr-wrap {
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  padding: 14px;
  max-width: 220px;
  margin-top: 12px;
  border-radius: var(--radius-md);
}

.advanced {
  margin: 4px 0 16px;
  border-top: 1px solid var(--rim);
  padding-top: 12px;
}

.advanced summary {
  cursor: pointer;
  color: var(--soft);
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.share-url {
  word-break: break-all;
  color: var(--paper-68);
  font-size: 0.92rem;
  margin: 0 0 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 14px;
}

.tab {
  appearance: none;
  border: 1px solid var(--rim);
  background: transparent;
  color: var(--paper-68);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.tab:hover {
  color: var(--paper);
  border-color: var(--paper-48);
}

.tab.active {
  color: var(--bg);
  background: var(--paper);
  border-color: var(--paper);
}


.live-banner {
  border: 1px solid rgba(var(--soft-rgb), 0.35);
  background: rgba(var(--soft-rgb), 0.08);
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
}

.live-banner strong {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.event-ctas { margin-bottom: 18px; }

.toast {
  position: sticky;
  bottom: 16px;
  margin-top: auto;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--paper-82);
  font-size: 0.92rem;
}

.toast[hidden] { display: none; }

.email-box { margin-top: 18px; }

hr.quiet {
  border: 0;
  border-top: 1px solid var(--rim);
  margin: 22px 0;
}

/* Room key — portrait playing card (5∶7 Method Card proportion) */
.key-preview {
  margin: 8px 0 22px;
  display: flex;
  justify-content: center;
}

.key-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 5 / 8;
  height: auto;
  margin: 0 auto 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 237, 234, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(165deg, #1a2240 0%, #121830 52%, #0c1224 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.key-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(246, 237, 234, 0.05) 0%,
    transparent 36%,
    transparent 100%
  );
}

.key-card-lg {
  max-width: 300px;
}

.key-card-sm {
  max-width: 220px;
  border-radius: 16px;
}

.key-card.mutual {
  border-color: rgba(var(--soft-rgb), 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.key-visual {
  flex: 0 0 36%;
  min-height: 0;
  padding: 14px 14px 0;
  position: relative;
  z-index: 2;
}

.key-card-sm .key-visual {
  padding: 12px 12px 0;
}

.key-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 14px;
  background: var(--indigo-lo);
  display: block;
  box-shadow: inset 0 0 0 1px rgba(246, 237, 234, 0.06);
}

.key-photo-empty,
.key-photo-qr {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 680;
  color: var(--paper);
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, var(--indigo-hi) 0%, var(--indigo-mid) 48%, var(--indigo-lo) 100%);
}

.key-photo-qr {
  color: rgba(246, 237, 234, 0.92);
}

.key-peer-qr-icon {
  display: block;
  width: min(46%, 72px);
  height: auto;
  opacity: 0.92;
}

.key-body {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 18px;
  min-width: 0;
  box-sizing: border-box;
}

.key-copy {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.key-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.key-name {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.key-card-lg .key-name {
  font-size: 1.35rem;
}

.key-card-sm .key-name {
  font-size: 1.05rem;
}

.key-role {
  color: var(--soft);
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.key-liner {
  margin: 0;
  color: var(--paper-82);
  font-size: 0.92rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.key-talk {
  margin: 4px 0 0;
  color: var(--paper-68);
  font-size: 0.88rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.key-talk-label {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.key-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-start;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 140ms ease;
  line-height: 0;
}

a.key-linkedin:hover {
  background: transparent;
  border-color: transparent;
  color: var(--paper);
  text-decoration: none;
  opacity: 0.88;
}

span.key-linkedin {
  cursor: default;
  pointer-events: none;
}

.key-linkedin-icon {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 0;
}

.key-card-sm .key-linkedin {
  width: auto;
  height: auto;
  min-height: 0;
  border-radius: 0;
}

.key-card-sm .key-linkedin-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 22px;
  align-items: start;
  justify-items: center;
}

.people.people-grid {
  gap: 28px 22px;
}

.people-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.people-tile .key-card {
  max-width: 300px;
  width: 100%;
  margin: 0;
}

.people-tile-actions {
  width: 100%;
  margin: 0;
  justify-content: center;
  gap: 8px;
}

.people-tile-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding: 12px 14px;
  font-size: 11px;
}

.linkedin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.linkedin-row input {
  flex: 1 1 200px;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .people-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .people-tile-actions .btn {
    flex: 1 1 calc(50% - 8px);
  }
}

.badge {
  display: inline-block;
  margin-top: 2px;
  color: var(--ok);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.wall,
.people {
  display: grid;
  gap: 12px;
}

.linkedin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.linkedin-row input {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .linkedin-row {
    grid-template-columns: 1fr;
  }

  .masthead {
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }
}
.paste-panel,
.share-panel,
.key-form { margin-top: 8px; }

.people {
  display: grid;
  gap: 12px;
}

.key-email {
  margin: 0 0 8px;
  color: var(--paper-68);
  font-size: 0.88rem;
  word-break: break-all;
}

.masthead .wordmark {
  text-transform: uppercase;
}

.hero h1 {
  letter-spacing: -0.04em;
}

.share-panel .hint {
  margin-top: 10px;
  margin-bottom: 16px;
}


.home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.home-head h1 {
  margin: 0;
}

.home-actions .btn:not(.btn-compact) {
  min-height: 40px;
  padding: 0 14px;
  font-size: 12px;
  letter-spacing: 1.2px;
  border-radius: var(--radius-xs);
}

.event-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.event-list-item {
  margin: 0;
}

.event-list-link {
  appearance: none;
  width: 100%;
  height: auto;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
}

.event-list-link:hover {
  border-color: var(--paper-48);
  background: var(--hover-wash);
}

.event-list-link:disabled {
  cursor: default;
  opacity: 1;
}
.event-list-link:disabled:hover {
  border-color: var(--rim);
  background: var(--surface);
}
.event-list-item.mergeable .event-list-link:disabled:hover {
  border-color: transparent;
  background: transparent;
}

.event-list-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  min-height: 1.25em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.event-list-meta {
  color: var(--paper-68);
  font-size: 0.9rem;
  min-height: 1.2em;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home .empty {
  margin-top: 18px;
}


/* Skeletons — shimmer only; layout comes from real components */
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sk {
  background: rgba(246, 237, 234, 0.08);
  border-radius: var(--radius-xs);
  position: relative;
  overflow: hidden;
}

.sk-inline {
  display: block;
  height: 0.85em;
  margin: 0.2em 0;
  max-width: 100%;
}
.sk-inline.w40 { width: 40%; }
.sk-inline.w55 { width: 55%; }
.sk-inline.w70 { width: 70%; }
.sk-inline.w85 { width: 85%; }

.event-list-title .sk-inline {
  height: 1.05em;
  margin: 0.1em 0;
}
.event-list-meta .sk-inline {
  height: 0.85em;
  margin: 0.15em 0;
}

.sk-field {
  height: var(--control-h);
  margin: 0 0 16px;
  border-radius: var(--radius-md);
}

.sk-avatar-fill {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

.key-card.is-skeleton .key-photo-empty {
  background: transparent;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .sk::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(246, 237, 234, 0.08) 45%,
      rgba(246, 237, 234, 0.14) 50%,
      rgba(246, 237, 234, 0.08) 55%,
      transparent 100%
    );
    animation: sk-shimmer 1.4s ease-in-out infinite;
  }
  @keyframes sk-shimmer {
    100% { transform: translateX(100%); }
  }
}

.home-actions {
  align-items: center;
}

.overflow {
  position: relative;
}
.overflow-btn {
  appearance: none;
  border: 1px solid var(--ghost-border);
  background: transparent;
  color: var(--paper);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.overflow-btn:hover:not(:disabled) {
  border-color: var(--paper-48);
  background: var(--hover-wash);
}
.overflow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.overflow-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: var(--radius-md);
  padding: 6px;
  z-index: 20;
  display: grid;
  gap: 2px;
}
.overflow-menu[hidden] { display: none !important; }
.overflow-item {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--paper);
  padding: 10px 12px;
  font: 400 14px/1.3 var(--sans);
  cursor: pointer;
}
.overflow-item:hover {
  background: var(--hover-wash);
}
.overflow-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.merge-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.merge-bar .meta {
  margin: 0;
  flex: 1;
}
.merge-bar .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 12px;
}

.merge-sheet {
  margin-top: 18px;
}
.merge-sheet .lede {
  margin-bottom: 16px;
}
.merge-keep-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.merge-keep-item {
  margin: 0;
}
.merge-keep-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rim);
  border-radius: var(--radius-md);
  background: var(--field-well);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--paper);
}
.merge-keep-label:has(input:checked) {
  border-color: var(--paper-48);
  background: var(--field-well-focus);
  box-shadow: 0 0 0 1px var(--field-focus-ring) inset;
}
.merge-keep-label input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  width: 18px;
  height: 18px;
  min-height: 0;
  max-width: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--soft);
}
.merge-keep-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.event-list-item.mergeable {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--rim);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: visible;
  cursor: pointer;
}
.event-list-item.mergeable .event-list-link {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.event-check {
  appearance: none;
  width: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--rim);
  background: transparent;
  cursor: pointer;
  color: var(--paper);
  margin: 0;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  font: inherit;
}
.event-check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-height: 0;
  max-width: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--soft);
  cursor: pointer;
}
.event-check-locked {
  cursor: not-allowed;
}
.event-check-locked input {
  cursor: not-allowed;
  opacity: 0.45;
}
.event-list-item.is-guest-locked {
  opacity: 0.55;
  cursor: default;
}
.event-list-item.mergeable:not(.is-guest-locked):hover {
  border-color: var(--paper-48);
}
/* Signed-out marketing landing */
body.is-landing {
  background: var(--bg);
}

body.is-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 58% at 82% 0%, rgba(var(--soft-rgb), 0.18), transparent 56%),
    radial-gradient(ellipse 50% 42% at 12% 100%, rgba(var(--indigo-wash-rgb), 0.34), transparent 52%),
    radial-gradient(ellipse 36% 28% at 42% 48%, rgba(246, 237, 234, 0.035), transparent 70%),
    var(--bg);
  transform: translateZ(0);
  will-change: transform;
}

body.is-landing .app {
  position: relative;
  z-index: 1;
}

body.is-landing .main {
  padding-top: clamp(20px, 4vw, 36px);
}

body.is-landing .masthead {
  border-bottom-color: transparent;
}

.landing {
  display: flex;
  flex-direction: column;
}

.landing-hero {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin-bottom: clamp(40px, 7vw, 64px);
}

@media (min-width: 900px) {
  .landing-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 48px);
    /* Keep copy vertically centered against the card stack height. */
    align-items: center;
    min-height: 0;
  }

  .landing-viz {
    min-height: 0;
    height: auto;
    place-items: center center;
    padding-top: 0;
    /* Stay inside the column so the fan can scale instead of clipping the viewport. */
    max-width: 100%;
    justify-self: stretch;
  }
}

.landing-copy {
  max-width: 36rem;
  position: relative;
  z-index: 1;
}

.landing-hero h1 {
  max-width: 16ch;
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.landing-hero .lede {
  margin: 0 0 28px;
  max-width: 32em;
  color: var(--paper-82);
  font-size: clamp(1.04rem, 1.7vw, 1.16rem);
  line-height: 1.5;
}

.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.landing-ctas .btn {
  min-height: 52px;
  padding: 0 26px;
  font-size: 12px;
  letter-spacing: 1.4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.landing-viz {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: visible;
  /* Reserve space below the frame so rotated cards don't cover the next section. */
  padding-bottom: clamp(12px, 3vw, 28px);
}

.landing-stack-frame {
  --stack-w: 500px;
  --stack-h: 450px;
  /* inline-size only — aspect-ratio must be unitless (px vars collapse height to 0). */
  container-type: inline-size;
  position: relative;
  /* Always fit the column; stack transform scales the fan with cqw. */
  width: min(100%, var(--stack-w));
  max-width: 100%;
  aspect-ratio: 500 / 450;
  overflow: visible;
  /* Keep rotated card corners inside the flow box on small screens. */
  margin-inline: auto;
}

.landing-stack {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--stack-w);
  height: var(--stack-h);
  margin: 0;
  transform: scale(calc(100cqw / var(--stack-w)));
  transform-origin: top left;
}

.landing-card-wrap {
  position: absolute;
  /* Fixed design width so type + chrome stay in proportion; the stack scales on small screens. */
  width: 236px;
}

.landing-card-wrap .key-card {
  max-width: none;
  width: 100%;
  margin: 0;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    0 32px 60px rgba(0, 0, 0, 0.18);
}

/* Compact chrome so the design-size card holds its copy before the fan scales. */
.landing-card-wrap .key-visual {
  flex-basis: 36%;
  padding: 12px 12px 0;
}

.landing-card-wrap .key-photo,
.landing-card-wrap .key-photo-empty,
.landing-card-wrap .key-photo-qr {
  border-radius: 12px;
}

.landing-card-wrap .key-body {
  gap: 12px;
  padding: 16px 16px 18px;
}

.landing-card-wrap .key-copy {
  gap: 8px;
}

.landing-card-wrap .key-name,
.landing-card-wrap .key-liner,
.landing-card-wrap .key-talk {
  flex-shrink: 0;
}

.landing-card-wrap .key-name {
  font-size: 1.18rem;
}

.landing-card-wrap .key-liner {
  font-size: 0.86rem;
  line-height: 1.35;
}

.landing-card-wrap .key-talk {
  margin-top: 12px;
  padding-top: 12px;
  font-size: 0.84rem;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}

.landing-card-wrap .key-talk-label {
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.landing-card-wrap .key-linkedin {
  width: auto;
  height: auto;
  min-height: 0;
}

.landing-card-wrap .key-linkedin-icon {
  width: 18px;
  height: 18px;
}

.landing-card-a {
  top: 40px;
  left: 28px;
  transform: rotate(-5deg);
  z-index: 2;
}

.landing-card-b {
  top: 68px;
  left: 136px;
  transform: rotate(2.5deg);
  z-index: 3;
}

.landing-card-c {
  top: 28px;
  left: 244px;
  transform: rotate(5.5deg);
  z-index: 1;
  opacity: 0.92;
}

.landing-feed {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  margin-top: clamp(24px, 5vw, 40px);
  padding: clamp(48px, 8vw, 80px) 0;
  border-top: 1px solid var(--rim);
}

@media (min-width: 900px) {
  .landing-feed {
    grid-template-columns: minmax(22rem, 0.95fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
  }

  .landing-feed-copy {
    padding-top: 0;
  }
}

.landing-feed-copy h2 {
  margin: 0 0 18px;
  max-width: none;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.landing-feed-copy p {
  margin: 0;
  max-width: 34em;
  color: var(--paper-82);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}

.landing-feed-stage {
  position: relative;
  width: 100%;
  display: grid;
  place-items: stretch;
}

.glance {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(22, 28, 50, 0.98) 0%, rgba(11, 14, 28, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(246, 237, 234, 0.06),
    0 28px 64px rgba(0, 0, 0, 0.38);
}

.glance-status {
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(246, 237, 234, 0.08);
}

.glance-status-main {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.glance-status-label {
  color: var(--soft);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.glance-status-value {
  color: var(--paper);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.glance-status-clock {
  font-variant-numeric: tabular-nums;
}

.glance-status-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.glance-event {
  color: rgba(246, 237, 234, 0.5);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.glance-timeline {
  position: relative;
  padding: 0 4px 0 0;
}

.glance-timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 14, 28, 0) 0%,
    rgba(11, 14, 28, 0.35) 28%,
    rgba(11, 14, 28, 0.78) 58%,
    rgba(11, 14, 28, 0.96) 82%,
    rgba(11, 14, 28, 1) 100%
  );
}

.glance-spine {
  position: absolute;
  left: 29px;
  top: 22px;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(246, 237, 234, 0.38) 0%,
    rgba(var(--soft-rgb), 0.34) 42%,
    rgba(var(--soft-rgb), 0.14) 72%,
    rgba(var(--soft-rgb), 0) 100%
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Pinned current-event dot: caps the spine so the line never peeks above. */
.glance-now-mark {
  position: absolute;
  left: 29px;
  top: 16px;
  z-index: 3;
  width: 12px;
  height: 12px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(var(--soft-rgb), 0.32);
  pointer-events: none;
}

.glance-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
  height: 498px;
  overflow: hidden;
  /* Soft exit: last row’s title/company dissolve into the plate. */
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.88) 68%,
    rgba(0, 0, 0, 0.35) 78%,
    rgba(0, 0, 0, 0.08) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.88) 68%,
    rgba(0, 0, 0, 0.35) 78%,
    rgba(0, 0, 0, 0.08) 88%,
    transparent 100%
  );
}

.glance-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 2px;
  align-items: start;
  flex: 0 0 auto;
  height: 88px;
  padding: 12px 20px 12px 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.glance-item-body {
  min-width: 0;
  opacity: 1;
  transition: opacity 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.glance-item.is-fading-copy .glance-item-body {
  opacity: 0;
  pointer-events: none;
}

.glance-item.is-live {
  height: 228px;
  padding-top: 16px;
  padding-bottom: 18px;
}

.glance-item.is-live::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--soft-rgb), 0.1) 0%,
    rgba(var(--soft-rgb), 0.03) 48%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.glance-item > * {
  position: relative;
  z-index: 1;
}

.glance-item.is-live .glance-item-mark {
  opacity: 0;
}


.glance-item-mark {
  width: 10px;
  height: 10px;
  margin: 1px auto 0;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: none;
}

.glance-item.is-live .glance-item-mark {
  width: 12px;
  height: 12px;
  margin-top: 0;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(var(--soft-rgb), 0.32);
  opacity: 0;
}

.glance-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 12px;
}

.glance-item-label {
  margin: 0;
  color: rgba(246, 237, 234, 0.45);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  line-height: 12px;
  text-transform: uppercase;
}

.glance-item.is-live .glance-item-label {
  color: var(--soft);
}

.glance-item-time {
  color: rgba(246, 237, 234, 0.48);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 12px;
  white-space: nowrap;
}

.glance-item.is-live .glance-item-time {
  color: rgba(246, 237, 234, 0.62);
}

.glance-item-name {
  margin: 0 0 4px;
  color: rgba(246, 237, 234, 0.78);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.glance-item.is-live .glance-item-name {
  color: var(--paper);
  font-size: clamp(1.45rem, 2.4vw, 1.7rem);
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}

.glance-item-role {
  margin: 0;
  color: rgba(246, 237, 234, 0.55);
  font-size: 0.92rem;
  line-height: 1.35;
}

.glance-item.is-live .glance-item-role {
  margin-bottom: 0;
  color: rgba(246, 237, 234, 0.68);
  font-size: 0.98rem;
}

.glance-item-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
}

.glance-item.is-live .glance-item-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}

.glance-item-detail-inner {
  overflow: hidden;
  min-height: 0;
}

.glance-item-talk {
  margin: 14px 0 18px;
  color: rgba(246, 237, 234, 0.8);
  font-size: 0.98rem;
  line-height: 1.4;
}

.glance-item-talk-label {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.glance-item-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(246, 237, 234, 0.18);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .glance-status {
    padding: 16px 18px 14px;
  }

  .glance-spine,
  .glance-now-mark {
    left: 24px;
  }

  .glance-feed {
    height: 478px;
  }

  .glance-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding-right: 16px;
    height: 84px;
  }

  .glance-item.is-live {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glance-item-body {
    transition: none;
  }
}

.landing-moments {
  display: grid;
  gap: clamp(56px, 9vw, 96px);
  margin-bottom: 0;
  padding: clamp(56px, 9vw, 88px) 0 0;
  border-top: 1px solid var(--rim);
}

.landing-moment {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .landing-moment {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(36px, 5vw, 64px);
  }

  .landing-moment:nth-child(even) .landing-moment-copy {
    order: 2;
  }

  .landing-moment:nth-child(even) .landing-moment-ui {
    order: 1;
  }
}

.landing-moment-copy h2,
.landing-works-copy h2 {
  margin: 0 0 16px;
  max-width: 20ch;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-transform: none;
}

.landing-works-copy h2 {
  max-width: 20ch;
}

.landing-moment-copy p,
.landing-works-copy p {
  margin: 0;
  color: var(--paper-82);
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  line-height: 1.55;
  max-width: 30em;
}

.landing-moment-ui {
  position: relative;
  min-height: 300px;
  /* Extra inset so soft card shadows aren’t clipped into hard black slabs. */
  padding: clamp(44px, 7vw, 72px);
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(var(--soft-rgb), 0.14), transparent 70%),
    linear-gradient(165deg, rgba(20, 26, 46, 0.95) 0%, rgba(11, 14, 26, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(246, 237, 234, 0.06),
    0 28px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.scene {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.scene-card {
  display: grid;
  place-items: center;
  max-width: 240px;
  margin: 0 auto;
}

.scene-card .key-card {
  width: 100%;
  max-width: 240px;
  margin: 0;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.landing-moment-ui:has(.scene-meet) {
  min-height: 420px;
  padding: clamp(28px, 4.5vw, 48px);
}

/* Fixed design size; frame scales the whole meet pair into the moment plate. */
.scene.scene-meet {
  width: 100%;
  max-width: 100%;
  display: grid;
  place-items: center;
}

.scene-meet-stage {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  width: var(--meet-w);
  height: var(--meet-h);
  margin: 0;
  padding: 20px 12px;
  box-sizing: border-box;
  transform: scale(calc(100cqw / var(--meet-w)));
  transform-origin: top left;
}

.scene-meet-frame {
  --meet-w: 640px;
  --meet-h: 480px;
  container-type: inline-size;
  position: relative;
  width: min(100%, var(--meet-w));
  aspect-ratio: 640 / 480;
  overflow: visible;
}

.scene-meet-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 248px;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  border: 1px solid rgba(246, 237, 234, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(165deg, #1a2240 0%, #121830 52%, #0c1224 100%);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22),
    0 28px 52px rgba(0, 0, 0, 0.18);
}

.scene-meet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(246, 237, 234, 0.05) 0%,
    transparent 36%,
    transparent 100%
  );
}

.scene-meet-card:first-child {
  transform: rotate(-2.5deg);
}

.scene-meet-card:last-child {
  transform: rotate(2.5deg);
  z-index: 2;
}

.scene-meet-visual {
  position: relative;
  z-index: 2;
  flex: 0 0 42%;
  min-height: 0;
  padding: 12px 12px 0;
}

.scene-meet-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--indigo-hi) 0%, var(--indigo-mid) 48%, var(--indigo-lo) 100%);
  box-shadow: inset 0 0 0 1px rgba(246, 237, 234, 0.06);
  color: var(--paper);
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  line-height: 1;
}

.scene-meet-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 16px 18px;
  min-width: 0;
}

.scene-meet-name {
  margin: 0;
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.scene-meet-role {
  margin: 0;
  color: var(--paper-68);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.scene-meet-looking {
  margin: 8px 0 0;
  color: var(--paper-68);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.scene-meet-looking-label {
  display: block;
  margin-bottom: 5px;
  color: var(--soft);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* Overlay the handshake — do not insert it into the card column flow. */
.scene-meet-mark {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 3;
  width: 92px;
  height: 92px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background:
    radial-gradient(circle at 35% 30%, rgba(246, 237, 234, 0.16), transparent 58%),
    linear-gradient(145deg, rgba(var(--soft-rgb), 0.38) 0%, rgba(var(--soft-rgb), 0.2) 100%);
  border: 1px solid rgba(246, 237, 234, 0.18);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.2),
    0 16px 36px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.scene-meet-mark-icon {
  display: block;
  width: 44px;
  height: 44px;
}


.scene-roster {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
}

.landing-moment-ui:has(.scene-roster) {
  padding-inline: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.scene.scene-roster {
  width: 100%;
  max-width: 100%;
}

/* Fixed design size; frame scales the whole roster diagram into the moment plate. */
.scene-roster-frame {
  --roster-w: 480px;
  --roster-h: 300px;
  container-type: inline-size;
  position: relative;
  width: min(100%, var(--roster-w));
  aspect-ratio: 480 / 300;
  overflow: visible;
}

.scene-roster-flow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 84px auto;
  align-items: center;
  gap: 4px;
  width: var(--roster-w);
  height: var(--roster-h);
  margin: 0;
  box-sizing: border-box;
  padding: 24px 8px;
  transform: scale(calc(100cqw / var(--roster-w)));
  transform-origin: top left;
}

/* Stack box includes the tight back-card offsets so nothing spills the plate. */
.scene-sheet-stack {
  --sheet-w: 292px;
  --sheet-h: 240px;
  --stack-nudge: 8px;
  position: relative;
  width: calc(var(--sheet-w) + var(--stack-nudge));
  min-width: calc(var(--sheet-w) + var(--stack-nudge));
  height: calc(var(--sheet-h) + var(--stack-nudge));
  flex: none;
}

.scene-sheet {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sheet-w);
  display: flex;
  flex-direction: column;
  min-height: var(--sheet-h);
  height: var(--sheet-h);
  padding: 20px 22px 18px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #f4ece8;
  color: var(--bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 12px 28px rgba(0, 0, 0, 0.12),
    0 28px 48px rgba(0, 0, 0, 0.14);
  text-align: left;
}

.scene-sheet.is-front {
  z-index: 3;
  transform: none;
}

.scene-sheet.is-b1 {
  z-index: 2;
  transform: translate(4px, 4px);
  opacity: 0.92;
  filter: brightness(0.985);
}

.scene-sheet.is-b2 {
  z-index: 1;
  transform: translate(8px, 8px);
  opacity: 0.78;
  filter: brightness(0.96);
}

.scene-sheet-kicker {
  margin: 0 0 16px;
  color: rgba(14, 16, 28, 0.42);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.scene-sheet-name {
  margin: 0 0 4px;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.scene-sheet-role {
  margin: 0 0 10px;
  color: rgba(14, 16, 28, 0.55);
  font-size: 0.92rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.scene-sheet-mail {
  margin: 0 0 4px;
  color: rgba(14, 16, 28, 0.42);
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.scene-sheet-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 16, 28, 0.12);
}

.scene-sheet-foot-label {
  margin: 0 0 5px;
  color: rgba(14, 16, 28, 0.4);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.scene-sheet-foot-name {
  margin: 0;
  color: var(--bg);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.scene-roster-pipe {
  --pipe-node-x: 72%;
  position: relative;
  width: 84px;
  height: 176px;
  min-width: 84px;
  flex: none;
  align-self: center;
}

.scene-roster-pipe::before {
  content: "";
  position: absolute;
  left: calc(var(--pipe-node-x) + 4px);
  top: 14.8%;
  bottom: 14.8%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 122, 89, 0.7) 0%,
    rgba(246, 237, 234, 0.45) 50%,
    rgba(0, 161, 224, 0.7) 100%
  );
  z-index: 0;
}

.scene-roster-pipe-rail {
  position: absolute;
  /* Reach under the sheet edge, then dissolve into the stack. */
  left: -28px;
  right: calc(100% - var(--pipe-node-x) - 6px);
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(246, 237, 234, 0) 0%,
    rgba(246, 237, 234, 0.18) 18%,
    rgba(var(--soft-rgb), 0.72) 58%,
    rgba(246, 237, 234, 0.92) 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 22%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 22%,
    #000 100%
  );
  transform: translateY(-50%);
  z-index: 0;
}

.scene-roster-pipe-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  aspect-ratio: 1;
  box-sizing: border-box;
  z-index: 1;
}

.scene-roster-pipe-node.n1 {
  left: var(--pipe-node-x);
  top: 14.8%;
  margin-top: -5px;
  background: #ff7a59;
  box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.22);
}

.scene-roster-pipe-node.n2 {
  left: var(--pipe-node-x);
  top: 50%;
  margin-top: -5px;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(246, 237, 234, 0.22);
}

.scene-roster-pipe-node.n3 {
  left: var(--pipe-node-x);
  top: 85.2%;
  bottom: auto;
  margin-top: -5px;
  background: #00a1e0;
  box-shadow: 0 0 0 4px rgba(0, 161, 224, 0.22);
}

.scene-roster-pipe-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 16px rgba(var(--soft-rgb), 0.8);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  /* Center the 8px packet on the 10px node at --pipe-node-x */
  --packet-x: calc(var(--pipe-node-x) + 1px);
}

.scene-roster-pipe-packet.is-main {
  top: 50%;
  left: 8%;
  margin-top: -4px;
}

.scene-roster-pipe-packet.is-up,
.scene-roster-pipe-packet.is-down {
  left: var(--packet-x);
  top: 50%;
  margin-top: -4px;
}

.scene-roster-crms {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.scene-crm-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.scene-crm-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
}

.scene-crm-mark img {
  display: block;
  width: 22px;
  height: auto;
}

.scene-crm-tile.is-notion .scene-crm-mark img {
  width: 22px;
}

.scene-crm-tile.is-hubspot .scene-crm-mark img {
  width: 18px;
}

.scene-crm-tile.is-salesforce .scene-crm-mark img {
  width: 24px;
}

.scene-crm-tile.is-notion {
  background: linear-gradient(145deg, #2a2a2a 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.scene-crm-tile.is-hubspot {
  background: linear-gradient(145deg, #ff8f6b 0%, #ff7a59 55%, #e85d3a 100%);
}

.scene-crm-tile.is-salesforce {
  background: linear-gradient(145deg, #1eb4ef 0%, #00a1e0 55%, #0480b3 100%);
}

.scene-sheet-glow {
  position: absolute;
  left: 148px;
  top: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--soft-rgb), 0.32), transparent 68%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scene-roster-pipe-packet.is-main {
    animation: scene-roster-packet-main 3.2s ease-in-out infinite;
  }

  .scene-roster-pipe-packet.is-up {
    animation: scene-roster-packet-up 3.2s ease-in-out infinite;
  }

  .scene-roster-pipe-packet.is-down {
    animation: scene-roster-packet-down-branch 3.2s ease-in-out infinite;
  }
}

/* Travel sheet → middle node, then vanish as the split begins. */
@keyframes scene-roster-packet-main {
  0% {
    opacity: 0;
    left: 8%;
  }
  10% {
    opacity: 1;
  }
  42% {
    opacity: 1;
    left: var(--packet-x);
  }
  48% {
    opacity: 0;
    left: var(--packet-x);
  }
  100% {
    opacity: 0;
    left: var(--packet-x);
  }
}

/* Split: middle → HubSpot (top). */
@keyframes scene-roster-packet-up {
  0%,
  42% {
    opacity: 0;
    top: 50%;
  }
  48% {
    opacity: 1;
    top: 50%;
  }
  82% {
    opacity: 1;
    top: 14.8%;
  }
  92%,
  100% {
    opacity: 0;
    top: 14.8%;
  }
}

/* Split: middle → Salesforce (bottom). */
@keyframes scene-roster-packet-down-branch {
  0%,
  42% {
    opacity: 0;
    top: 50%;
  }
  48% {
    opacity: 1;
    top: 50%;
  }
  82% {
    opacity: 1;
    top: 85.2%;
  }
  92%,
  100% {
    opacity: 0;
    top: 85.2%;
  }
}

@media (max-width: 720px) {
  .landing-moment-ui:has(.scene-roster) {
    padding-inline: 14px;
  }
}

.scene-workshop {
  text-align: center;
  padding: 12px 0;
}

.scene-time {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 4.4rem);
  font-weight: 680;
  letter-spacing: 0.06em;
  line-height: 1;
}

.scene-time-dek {
  margin: 14px 0 0;
  color: rgba(246, 237, 234, 0.62);
  font-size: 1.12rem;
}

.landing-works {
  margin-top: clamp(56px, 9vw, 96px);
  padding: clamp(48px, 8vw, 72px) 0 0;
  border-top: 1px solid var(--rim);
  display: grid;
  gap: clamp(28px, 5vw, 40px);
}

.landing-works-copy {
  max-width: 40rem;
}

.landing-works-scene {
  position: relative;
  min-height: 280px;
  padding: clamp(32px, 5vw, 48px);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 55% 70% at 78% 48%, rgba(var(--soft-rgb), 0.18), transparent 62%),
    radial-gradient(ellipse 40% 50% at 18% 55%, rgba(240, 85, 55, 0.12), transparent 70%),
    linear-gradient(165deg, rgba(20, 26, 46, 0.95) 0%, rgba(11, 14, 26, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(246, 237, 234, 0.06),
    0 28px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.scene-works {
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  width: 100%;
  max-width: 640px;
}

.scene-works-sources {
  display: grid;
  gap: 10px;
}

.scene-works-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.scene-works-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
}

.scene-works-mark img {
  display: block;
  width: 20px;
  height: 20px;
}

.scene-works-tile.is-eventbrite {
  background: linear-gradient(145deg, #ff6b4a 0%, #f05537 55%, #d94428 100%);
}

.scene-works-tile.is-eventbrite .scene-works-mark img {
  filter: none;
  width: 15px;
  height: 18px;
}

.scene-works-tile.is-luma {
  background: linear-gradient(145deg, #2a2438 0%, #17141f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.scene-works-tile.is-luma .scene-works-mark {
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scene-works-tile.is-luma .scene-works-mark img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.scene-works-tile.is-linkedin {
  background: linear-gradient(145deg, #1a7fd4 0%, #0a66c2 55%, #084d94 100%);
}

.scene-works-tile.is-linkedin .scene-works-mark img {
  filter: brightness(0) invert(1);
}

.scene-works-pipe {
  --pipe-node-x: 8%;
  position: relative;
  height: 120px;
  min-width: 72px;
}

/* One vertical spine so the three sources read as one event feed. */
.scene-works-pipe::before {
  content: "";
  position: absolute;
  left: calc(var(--pipe-node-x) + 4px);
  top: 16%;
  bottom: 16%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(240, 85, 55, 0.6) 0%,
    rgba(var(--soft-rgb), 0.5) 50%,
    rgba(10, 102, 194, 0.6) 100%
  );
  z-index: 0;
}

.scene-works-pipe-rail {
  position: absolute;
  left: calc(var(--pipe-node-x) + 4px);
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--soft-rgb), 0.7) 0%,
    rgba(246, 237, 234, 0.9) 62%,
    rgba(246, 237, 234, 0) 100%
  );
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
  z-index: 0;
}

.scene-works-pipe-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 237, 234, 0.92);
  box-shadow: 0 0 0 4px rgba(var(--soft-rgb), 0.22);
  z-index: 1;
}

.scene-works-pipe-node.n1 {
  left: var(--pipe-node-x);
  top: 12%;
  background: #f05537;
  box-shadow: 0 0 0 4px rgba(240, 85, 55, 0.22);
}

.scene-works-pipe-node.n2 {
  left: var(--pipe-node-x);
  top: 50%;
  margin-top: -5px;
  background: #c4b5fd;
}

.scene-works-pipe-node.n3 {
  left: var(--pipe-node-x);
  bottom: 12%;
  background: #0a66c2;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.22);
}

.scene-works-pipe-packet {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 16px rgba(var(--soft-rgb), 0.8);
  z-index: 2;
  opacity: 0;
}

/* Keep non-hero marketing chrome calm; hero cards float on purpose. */
.scene-meet-card,
.scene-sheet,
.scene-crm-tile,
.scene-works-tile {
  animation: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .landing-card-a {
    animation: landing-float-a 7.2s ease-in-out infinite;
  }
  .landing-card-b {
    animation: landing-float-b 8.6s 0.35s ease-in-out infinite;
  }
  .landing-card-c {
    animation: landing-float-c 6.8s 0.7s ease-in-out infinite;
  }
}

@keyframes landing-float-a {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-8px);
  }
}

@keyframes landing-float-b {
  0%,
  100% {
    transform: rotate(2.5deg) translateY(0);
  }
  50% {
    transform: rotate(2.5deg) translateY(-10px);
  }
}

@keyframes landing-float-c {
  0%,
  100% {
    transform: rotate(5.5deg) translateY(0);
  }
  50% {
    transform: rotate(5.5deg) translateY(-7px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scene-works-pipe-packet {
    animation: scene-works-packet 2.6s ease-in-out infinite;
  }
}

@keyframes scene-works-packet {
  0% {
    left: 18%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  68% {
    left: 78%;
    opacity: 1;
  }
  82% {
    left: 82%;
    opacity: 0;
  }
  /* Hold invisible while resetting — prevents the end flash. */
  100% {
    left: 18%;
    opacity: 0;
  }
}

.scene-works-to {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(246, 237, 234, 0.97);
  color: var(--bg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.scene-works-eyebrow {
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  opacity: 0.45;
}

.scene-works-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.scene-works-sub {
  font-size: 0.9rem;
  opacity: 0.48;
}

@media (max-width: 720px) {
  /* Desktop composition rotated: sources → pipe → room, flowing down. */
  .scene-works {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    max-width: 280px;
  }

  .scene-works-sources {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  .scene-works-tile {
    min-width: 0;
    width: auto;
    padding: 10px;
    gap: 0;
    border-radius: 14px;
    justify-self: center;
  }

  .scene-works-tile.is-eventbrite {
    justify-self: start;
  }

  .scene-works-tile.is-linkedin {
    justify-self: end;
  }

  /* Icon marks only — labels stay in the DOM for source parity. */
  .scene-works-tile > span:not(.scene-works-mark) {
    display: none;
  }

  .scene-works-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  /* Same pipe diagram, 90°: spine across the three sources, rail down to the room. */
  .scene-works-pipe {
    --pipe-node-x: 50%;
    width: 100%;
    height: 72px;
    min-width: 0;
  }

  .scene-works-pipe::before {
    display: block;
    left: 8%;
    right: 8%;
    top: 14%;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(240, 85, 55, 0.6) 0%,
      rgba(var(--soft-rgb), 0.5) 50%,
      rgba(10, 102, 194, 0.6) 100%
    );
  }

  .scene-works-pipe-rail {
    left: 50%;
    right: auto;
    top: 14%;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      rgba(var(--soft-rgb), 0.7) 0%,
      rgba(246, 237, 234, 0.9) 62%,
      rgba(246, 237, 234, 0) 100%
    );
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  }

  .scene-works-pipe-node.n1,
  .scene-works-pipe-node.n2,
  .scene-works-pipe-node.n3 {
    top: 14%;
    bottom: auto;
    margin-top: -5px;
  }

  .scene-works-pipe-node.n1 {
    left: 8%;
  }

  .scene-works-pipe-node.n2 {
    left: 50%;
    margin-left: -5px;
  }

  .scene-works-pipe-node.n3 {
    left: auto;
    right: 8%;
  }

  .scene-works-pipe-packet {
    left: 50%;
    top: 18%;
    margin-left: -4px;
    margin-top: 0;
  }

  .scene-works-to {
    width: 100%;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .scene-works-pipe-packet {
    animation-name: scene-works-packet-down;
  }
}

@keyframes scene-works-packet-down {
  0% {
    top: 18%;
    left: 50%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  68% {
    top: 78%;
    left: 50%;
    opacity: 1;
  }
  82% {
    top: 82%;
    left: 50%;
    opacity: 0;
  }
  100% {
    top: 18%;
    left: 50%;
    opacity: 0;
  }
}

.step-label {
  margin: 0 0 12px !important;
  color: var(--soft);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

body.is-landing .site-footer {
  margin-top: clamp(48px, 8vw, 72px);
}

@media (prefers-reduced-motion: no-preference) {
  .landing-hero h1,
  .landing-hero .lede,
  .landing-ctas {
    animation: landing-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .landing-hero h1 { animation-delay: 0.06s; }
  .landing-hero .lede { animation-delay: 0.12s; }
  .landing-ctas { animation-delay: 0.18s; }
  .landing-viz {
    animation: landing-rise 0.85s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Desktop: full-size fan at wide widths; frame stays min(100%) so it scales down with the column. */
@media (min-width: 900px) {
  .landing-stack-frame {
    --stack-w: 560px;
    --stack-h: 500px;
    width: min(100%, var(--stack-w));
    aspect-ratio: 560 / 500;
  }

  .landing-card-wrap {
    width: 248px;
  }

  .landing-card-a {
    top: 44px;
    left: 32px;
  }

  .landing-card-b {
    top: 72px;
    left: 156px;
  }

  .landing-card-c {
    top: 28px;
    left: 278px;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 42px;
  padding-bottom: 0;
}

.footer-wordmark {
  color: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.5px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.footer-wordmark:hover { text-decoration: none; }

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 2px;
  align-items: center;
}

.footer-nav a {
  color: var(--paper-68);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  padding: 4px 7px;
}
.footer-nav a:hover {
  color: var(--paper);
}

.burger-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.burger-btn:hover {
  border-color: var(--paper-48);
  background: var(--hover-wash);
}

.burger-lines {
  display: grid;
  gap: 5px;
  width: 16px;
}
.burger-lines span {
  display: block;
  height: 1.5px;
  background: var(--paper);
  border-radius: 1px;
}

.auth-back {
  margin: 0 0 18px;
}

.text-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--paper-68);
  font: 400 14px/1.4 var(--sans);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--paper);
}

.app {
  padding-bottom: 48px;
}

/* Legal + contact (joinroom.ai) */
body.is-legal .main {
  padding-top: clamp(36px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.legal-shell,
.page-contact {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: calc(100dvh - 76px - clamp(36px, 6vw, 56px) - 48px);
}

.legal-page {
  max-width: 40rem;
  width: 100%;
  margin-inline: auto;
  padding-bottom: 0;
  text-align: left;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page .meta {
  margin-bottom: 22px;
}

.legal-page .lede {
  margin-bottom: 28px;
}

.legal-page section {
  margin-bottom: 28px;
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.legal-page h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  color: var(--paper-68);
  line-height: 1.55;
}

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--paper);
}

.contact-center {
  flex: 1;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px 0;
}

.contact-center h1 {
  margin-bottom: 12px;
}

.contact-email {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.contact-email a {
  color: var(--paper);
  text-decoration: none;
}
.contact-email a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-shell .site-footer,
.page-contact .site-footer {
  width: 100%;
  max-width: none;
  margin-top: auto;
  margin-inline: 0;
}

/* Footer chrome stays identical on every surface (landing, legal, contact). */
.site-footer .footer-wordmark {
  color: var(--paper);
}

.site-footer .footer-nav a {
  color: var(--paper-68);
}

.site-footer .footer-nav a:hover {
  color: var(--paper);
}
