:root {
  --paper: #f4efe3;
  --paper-soft: #fbf6ea;
  --paper-deep: #ece4d2;
  --ink: #15140f;
  --ink-soft: #2b2823;
  --muted: #6d675f;
  --line: #d8d0c1;
  --line-strong: #b9ad9c;
  --clay: #b65b3a;
  --clay-dark: #7e3b28;
  --clay-bright: #d36a3f;
  --sage: #4e6d5f;
  --blue: #315d73;
  --gold: #ad7a2d;
  --success: #3f7356;
  --warning: #ad7a2d;
  --danger: #a54735;
  --shadow-sm: 0 4px 14px rgba(25, 24, 23, 0.06);
  --shadow-md: 0 18px 50px rgba(25, 24, 23, 0.12);
  --shadow-lg: 0 32px 80px rgba(25, 24, 23, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-med: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }

.app-shell { min-height: 100vh; }

/* ============ Topbar ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(244, 239, 227, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper-soft);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text strong,
.brand-text small { display: block; }

.brand-text strong {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.005em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.ghost-link:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.ghost-button,
.text-button,
.icon-button,
.asset-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.ghost-button:hover,
.icon-button:hover,
.asset-button:hover {
  background: var(--ink);
  color: var(--paper-soft);
  border-color: var(--ink);
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-button:disabled:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper-soft);
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.primary-button:hover {
  background: var(--clay-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.primary-button.compact {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.primary-button.on-dark {
  background: var(--clay-bright);
  color: #15140f;
}

.primary-button.on-dark:hover {
  background: #f0a376;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.secondary-button:hover {
  background: var(--ink);
  color: var(--paper-soft);
  transform: translateY(-1px);
}

.play-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.play-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-soft);
}

.play-toggle[data-playing="true"] {
  background: var(--clay-dark);
  border-color: var(--clay-dark);
  color: var(--paper-soft);
}

.play-toggle[data-playing="true"]:hover {
  background: var(--clay-bright);
  border-color: var(--clay-bright);
}

.play-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 9px;
  line-height: 1;
}

.play-toggle[data-playing="true"] .play-toggle-icon,
.play-toggle:hover .play-toggle-icon {
  background: rgba(255, 255, 255, 0.18);
}

/* ============ Topbar in-stage controls (compact pills) ============ */

.topbar-toggle,
.topbar-toggle.voice-toggle,
.topbar-toggle.play-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.topbar-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-soft);
}

/* Normalise the inner icons so both pills look visually equivalent
   in the topbar (no circle background on the play icon). */
.topbar-toggle .voice-toggle-icon,
.topbar-toggle .play-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  line-height: 1;
}

/* Keep the label widths consistent so the pills don't jitter when their
   text changes (Voice on ↔ Voice off, Auto-play ↔ Pause). */
.topbar-toggle .voice-toggle-label,
.topbar-toggle .play-toggle-label {
  display: inline-block;
  min-width: 64px;
  text-align: left;
}

/* Active states for the topbar pills mirror the hero pills. */
.topbar-toggle.voice-toggle[data-on="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--paper-soft);
}
.topbar-toggle.voice-toggle[data-on="true"]:hover {
  background: #5e8270;
  border-color: #5e8270;
}
.topbar-toggle.play-toggle[data-playing="true"] {
  background: var(--clay-dark);
  border-color: var(--clay-dark);
  color: var(--paper-soft);
}
.topbar-toggle.play-toggle[data-playing="true"]:hover {
  background: var(--clay-bright);
  border-color: var(--clay-bright);
}

/* ============ Hero CTA spacing ============ */

.hero-cta { gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-cta-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

/* The voice toggle in the hero matches the height of the primary button. */
.voice-toggle.hero-voice {
  min-height: 48px;
  padding: 0 18px;
}

/* ============ Voice toggle (hero) ============ */

.voice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.voice-toggle:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.voice-toggle[data-on="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--paper-soft);
}

.voice-toggle[data-on="true"]:hover {
  background: #5e8270;
  border-color: #5e8270;
}

.voice-toggle-icon { display: inline-grid; place-items: center; font-size: 14px; line-height: 1; }
.voice-toggle-icon .voice-on  { display: none; }
.voice-toggle-icon .voice-off { display: inline; }
.voice-toggle[data-on="true"] .voice-toggle-icon .voice-on  { display: inline; }
.voice-toggle[data-on="true"] .voice-toggle-icon .voice-off { display: none; }

/* ============ Caption bar (under progress, above stage body) ============ */

.caption-bar {
  margin: -8px 0 22px;
  padding: 14px 18px;
  background: rgba(21, 20, 15, 0.92);
  color: #f5e9d4;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 500;
  letter-spacing: 0.005em;
  animation: caption-in 240ms ease-out both;
  backdrop-filter: blur(6px);
}

@keyframes caption-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.primary-button span[aria-hidden] {
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

/* ============ View state: splash vs proof ============ */

/* On splash, only the hero is visible. Proof-view controls in the topbar are hidden. */
.app-shell[data-view="splash"] .demo-layout,
.app-shell[data-view="splash"] .closing-band,
.app-shell[data-view="splash"] .in-stage-only {
  display: none !important;
}

/* On proof view, the hero is hidden. The topbar shows the in-stage controls. */
.app-shell[data-view="proof"] .hero {
  display: none !important;
}

/* Hero takes the full first viewport so it reads as a single splash screen. */
.app-shell[data-view="splash"] .hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}
.app-shell[data-view="splash"] .hero-grid {
  width: 100%;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(18px, 4vw, 54px) clamp(56px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(211, 106, 63, 0.12), transparent 60%),
    radial-gradient(800px 600px at 5% 100%, rgba(78, 109, 95, 0.10), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow,
.nav-label,
.section-label,
.step-kicker {
  margin: 0;
  color: var(--clay-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

#heroTitle {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.02;
}

.hero-accent {
  display: block;
  color: var(--clay-dark);
  font-style: italic;
}

.lede {
  margin: 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.hero-stat {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.hero-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.hero-cta .ghost-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
}

.client-strip {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}

.client-strip li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-strip span {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.client-strip small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero media (Loom) */
.hero-media {
  position: relative;
}

.hero-widget-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.hero-widget-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 40px 90px rgba(25, 24, 23, 0.22);
}

.hero-widget-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1d1a16;
  color: #d8cab2;
  font-size: 12px;
  border-bottom: 1px solid #2c2618;
  flex-shrink: 0;
}

.hero-widget-bar .live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef6a3b;
  animation: live-pulse 2s infinite;
  flex-shrink: 0;
}

.hero-widget-url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  color: #b9ad8f;
}

.hero-widget-bar a {
  color: #ef6a3b;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.hero-widget-bar a:hover { text-decoration: underline; }

.hero-widget-wrap iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--paper-soft);
  display: block;
}

.hero-widget-caption {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}

.hero-widget-caption strong {
  color: var(--clay-dark);
  font-weight: 700;
}

.hero-widget-caption em {
  font-style: italic;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef6a3b;
  box-shadow: 0 0 0 0 rgba(239, 106, 59, 0.7);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 106, 59, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(239, 106, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 106, 59, 0); }
}

/* ============ DEMO LAYOUT ============ */

.demo-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.tour-nav,
.stage {
  background: var(--paper);
}

.tour-nav {
  position: sticky;
  top: 68px;
  align-self: start;
  min-height: calc(100vh - 68px);
  padding: 28px 18px;
}

.nav-label {
  margin-bottom: 4px;
}

.nav-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.step-list {
  display: grid;
  gap: 4px;
}

.step-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.step-button:hover {
  background: rgba(0, 0, 0, 0.03);
}

.step-button[aria-current="true"] {
  background: var(--paper-soft);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.step-button[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--clay-dark);
  border-radius: 2px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
}

.step-button[aria-current="true"] .step-number {
  background: var(--ink);
  color: var(--paper-soft);
  border-color: var(--ink);
}

.step-text { min-width: 0; }

.step-name {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
}

.step-desc {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

/* ============ STAGE ============ */

.stage {
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px);
}

.stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.stage-meta { display: flex; flex-direction: column; gap: 6px; }

.step-counter {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.step-kicker {
  color: var(--clay-dark);
}

.stage-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.stage-progress {
  position: relative;
  height: 4px;
  width: 100%;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: height 200ms ease;
}

.app-shell[data-tour="playing"] .stage-progress {
  height: 8px;
  box-shadow: 0 0 0 1px rgba(211, 106, 63, 0.18), 0 0 18px rgba(211, 106, 63, 0.18);
}

.stage-progress-fill {
  display: block;
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, var(--clay-dark), var(--clay-bright));
  width: 14%;
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-shell[data-tour="playing"] .stage-progress-fill {
  background: linear-gradient(90deg, var(--clay-bright) 0%, var(--gold) 50%, var(--clay-bright) 100%);
  background-size: 200% 100%;
  animation: tour-shimmer 1.6s linear infinite;
  box-shadow: 0 0 12px rgba(211, 106, 63, 0.5);
}

.app-shell[data-tour="playing"] .stage-progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clay-bright);
  box-shadow: 0 0 0 0 rgba(211, 106, 63, 0.6);
  animation: tour-pulse 1.4s ease-out infinite;
}

@keyframes tour-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: 0 0; }
}

@keyframes tour-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(211, 106, 63, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(211, 106, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 106, 63, 0); }
}

.stage-title {
  max-width: 920px;
  margin: 0 0 28px;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
}

.stage-body {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  transition: opacity 220ms ease, transform 220ms ease;
}

.stage-body.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.stage-body.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.narrative > p,
.stage-narrative {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16.5px, 1.2vw, 18.5px);
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.metric-card {
  position: relative;
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  animation: card-rise 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clay-dark), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.metric-card:hover::after { opacity: 1; }

.metric-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Presenter notes panel — only visible in edit mode */
.presenter-panel {
  margin-top: 28px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.6);
}

.presenter-panel .section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.presenter-time {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.presenter-panel blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.presenter-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.presenter-note strong {
  color: var(--clay-dark);
  font-weight: 700;
}

/* ============ VISUAL PANEL ============ */

.visual-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.visual-toolbar .section-label {
  color: var(--ink-soft);
  font-size: 11px;
}

.asset-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 130px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.asset-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.visual-frame {
  padding: clamp(16px, 3vw, 24px);
  min-height: 540px;
  display: grid;
  align-items: start;
}

.real-asset {
  display: grid;
  gap: 14px;
  margin: 0;
}

.asset-media,
.evidence-board {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}

.asset-media {
  aspect-ratio: 1211 / 681;
  position: relative;
}

.asset-media img,
.asset-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-media video {
  background: #11100f;
  object-fit: contain;
}

.video-asset {
  aspect-ratio: 16 / 10;
}

.asset-caption-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-style: italic;
}

.asset-caption-line a {
  color: var(--clay-dark);
  text-decoration: none;
  font-weight: 600;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.asset-caption-line a:hover { text-decoration: underline; }

/* ============ PORTFOLIO BOARD (opening step) ============ */

.portfolio-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-card {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

/* Accent stripe at the top of each card (region/sector colour cue) */
.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--clay-dark);
}
.portfolio-card[data-accent="clay"]::before { background: var(--clay-dark); }
.portfolio-card[data-accent="blue"]::before { background: var(--blue); }
.portfolio-card[data-accent="sage"]::before { background: var(--sage); }
.portfolio-card[data-accent="gold"]::before { background: var(--gold); }

/* Soft tinted glow in the corner using the same accent */
.portfolio-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 106, 63, 0.10), transparent 70%);
  pointer-events: none;
}
.portfolio-card[data-accent="blue"]::after { background: radial-gradient(circle, rgba(49, 93, 115, 0.10), transparent 70%); }
.portfolio-card[data-accent="sage"]::after { background: radial-gradient(circle, rgba(78, 109, 95, 0.10), transparent 70%); }
.portfolio-card[data-accent="gold"]::after { background: radial-gradient(circle, rgba(173, 122, 45, 0.10), transparent 70%); }

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.portfolio-head { display: flex; flex-direction: column; gap: 4px; position: relative; }

.portfolio-status {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 115, 86, 0.16);
  color: var(--success);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Status pill colour reflects status type */
.portfolio-card[data-accent="sage"] .portfolio-status {
  background: rgba(78, 109, 95, 0.18);
  color: var(--sage);
}
.portfolio-card[data-accent="gold"] .portfolio-status {
  background: rgba(173, 122, 45, 0.18);
  color: var(--gold);
}

.portfolio-card h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.15;
}

.portfolio-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Big headline metric — the visual anchor of each card */
.portfolio-headline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--clay-dark);
}
.portfolio-card[data-accent="blue"] .portfolio-headline { border-left-color: var(--blue); }
.portfolio-card[data-accent="sage"] .portfolio-headline { border-left-color: var(--sage); }
.portfolio-card[data-accent="gold"] .portfolio-headline { border-left-color: var(--gold); }

.portfolio-headline strong {
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.portfolio-headline span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.portfolio-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
}

/* ============ OUTCOMES TABLE (Pacífico ecommerce, BCP scale) ============ */

.outcomes-table {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  overflow: hidden;
}

.outcomes-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 8px;
  padding: 12px 18px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.outcomes-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-fast);
}

.outcomes-row:last-child { border-bottom: none; }
.outcomes-row:hover { background: #fcf6e6; }

.outcomes-metric strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.outcomes-metric small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.outcomes-before {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.outcomes-after {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  color: var(--clay-dark);
  letter-spacing: -0.01em;
  line-height: 1;
}

.outcomes-footer {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--clay-dark);
  background: rgba(211, 106, 63, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============ FLOW BOARD (WhatsApp transactional architecture) ============ */

.flow-board {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}

.flow-step {
  flex: 1 1 140px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcf6ea;
}

.flow-index {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--clay-dark);
  font-weight: 700;
}

.flow-step strong {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

.flow-step small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.flow-arrow {
  align-self: center;
  color: var(--line-strong);
  font-size: 16px;
  user-select: none;
}

.flow-footer {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--sage);
  background: rgba(78, 109, 95, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============ CONVERSATION MOCK (WhatsApp / chat-style) ============ */

.conv-asset { margin: 0; }

.conv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.conv-phone {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #ece6da;
  overflow: hidden;
  min-height: 360px;
}

.conv-phone-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: #075e54;
  color: #f5e9d4;
  border-bottom: 1px solid #034740;
}

.conv-phone-head strong {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.conv-phone-head small {
  font-size: 11px;
  color: #b8d2c8;
  letter-spacing: 0.02em;
}

.conv-phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(78, 109, 95, 0.06), rgba(78, 109, 95, 0)) ,
    #ece6da;
  overflow: hidden;
}

.conv-msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.42;
  position: relative;
  word-wrap: break-word;
  animation: msg-rise 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes msg-rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.conv-msg-user {
  align-self: flex-end;
  background: #d8f5c8;
  color: #102a14;
  border-top-right-radius: 4px;
}

.conv-msg-ai {
  align-self: flex-start;
  background: var(--paper-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
}

/* ============ BCP WIDGET MOCK (faithful to the live viabcp.com style) ============ */

.bcp-widget {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  min-height: 460px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.bcpw-head {
  padding: 18px 22px 12px;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

.bcpw-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.bcpw-chev {
  color: #ec6826;          /* BCP orange chevron */
  font-weight: 800;
  font-size: 24px;
}

.bcpw-logo-text {
  color: #1f4f8f;          /* BCP blue */
}

.bcpw-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 26px;
  background: #ffffff;
}

.bcpw-msg-user {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2b2823;
  padding-left: 30px;       /* align with AI bullet */
}

.bcpw-msg-ai {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #2b2823;
}

.bcpw-bullet {
  display: inline-block;
  color: #ec6826;          /* same orange as chevron */
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  user-select: none;
}

.bcpw-msg-body p {
  margin: 0 0 10px;
}
.bcpw-msg-body p:last-child {
  margin-bottom: 0;
}
.bcpw-msg-body strong {
  color: #15140f;
  font-weight: 700;
}

.bcpw-feedback {
  grid-column: 2 / 3;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.bcpw-fb-icon {
  font-size: 14px;
  filter: grayscale(1);
  opacity: 0.55;
}

.bcpw-fb-disclaimer {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: #9c958a;
  font-size: 11.5px;
  font-style: italic;
}

.bcpw-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 22px 8px;
  padding: 10px 16px;
  border: 1px solid #e3e0d8;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 14, 12, 0.05);
}

.bcpw-input-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2b2823;
  color: #ffffff;
  font-size: 14px;
}

.bcpw-input-placeholder {
  flex: 1;
  color: #2b2823;
  font-size: 13.5px;
}

.bcpw-input-mic {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d8d0c1;
  font-size: 13px;
}

.bcpw-poweredby {
  margin: 0 0 14px;
  text-align: center;
  color: #b3aca0;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.bcpw-aifindr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #2b2823;
}

.bcpw-aifindr-mark {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ec6826;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.conv-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}

.conv-side-label {
  margin: 0 0 4px;
  color: var(--clay-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.conv-tool {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcf6ea;
  align-items: center;
  animation: tool-slide 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes tool-slide {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.conv-tool-tick {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(63, 115, 86, 0.15);
  color: var(--success);
  font-weight: 800;
  font-size: 12px;
}

.conv-tool strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.conv-tool small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.conv-note {
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcf6ea;
}

.conv-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--clay-dark);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.conv-note small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.conv-footer {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--clay-dark);
  background: rgba(211, 106, 63, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============ SHOWCASE CARD (Cenomi) ============ */

.showcase-asset { margin: 0; }

.showcase-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 109, 95, 0.10), transparent 70%);
  pointer-events: none;
}

.showcase-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-status {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(173, 122, 45, 0.18);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.showcase-head h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.showcase-sector {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showcase-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.showcase-stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcf6ea;
}

.showcase-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.showcase-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.showcase-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.showcase-quote {
  position: relative;
  margin: 0;
  padding: 14px 16px 12px;
  border-left: 3px solid var(--sage);
  background: rgba(78, 109, 95, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.showcase-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}

.showcase-quote footer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  font-style: normal;
}

/* ============ LIVE WIDGET (BCP Retención iframe) ============ */

.live-widget {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #11100f;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.live-widget-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1d1a16;
  color: #d8cab2;
  font-size: 12px;
  border-bottom: 1px solid #2c2618;
}

.live-widget-bar .live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef6a3b;
  animation: live-pulse 2s infinite;
  flex-shrink: 0;
}

.live-widget-url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  color: #b9ad8f;
}

.live-widget-bar a {
  color: #ef6a3b;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.live-widget-bar a:hover { text-decoration: underline; }

.live-widget iframe {
  width: 100%;
  height: 540px;
  border: 0;
  background: var(--paper-soft);
  display: block;
}

.uploaded-asset {
  position: relative;
  display: grid;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}

.uploaded-asset img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
  background: var(--paper-soft);
}

.remove-asset {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
}

/* Evidence board (BCP step) */
.evidence-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  aspect-ratio: 1211 / 681;
}

.evidence-item {
  padding: 22px 22px 24px;
  background: var(--paper-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background var(--transition-fast);
}

.evidence-item:hover {
  background: #fcf6e6;
}

.evidence-item span {
  display: block;
  color: var(--clay-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evidence-item strong {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

/* ============ CLOSING BAND ============ */

.closing-band {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 54px);
  background: linear-gradient(135deg, #15140f 0%, #221d16 60%, #2c2118 100%);
  color: var(--paper-soft);
  position: relative;
  overflow: hidden;
}

.closing-band::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 106, 63, 0.18), transparent 70%);
  pointer-events: none;
}

.closing-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.closing-band .eyebrow {
  color: #e8a37a;
}

.closing-band h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 56px);
  color: var(--paper-soft);
}

.closing-band p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d8cab2;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.closing-meta {
  margin: 0 !important;
  color: #b9ad8f !important;
  font-size: 12px !important;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============ EDIT MODE STATES ============ */

.app-shell[data-edit="true"] .ghost-button#toggleEdit {
  background: var(--ink);
  color: var(--paper-soft);
  border-color: var(--ink);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-media {
    order: -1;
  }
  .hero-video-wrap { transform: none; }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .tour-nav {
    position: static;
    min-height: auto;
    border-bottom: 1px solid var(--line);
  }
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stage-body {
    grid-template-columns: 1fr;
  }
  .closing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .primary-button,
  .hero-cta .ghost-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .stage-header {
    flex-direction: column;
    align-items: stretch;
  }
  .stage-controls {
    justify-content: space-between;
  }
  .metric-grid,
  .step-list,
  .evidence-board,
  .portfolio-board {
    grid-template-columns: 1fr;
  }
  .evidence-board {
    aspect-ratio: auto;
  }
  .outcomes-head,
  .outcomes-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .outcomes-head { display: none; }
  .outcomes-after { font-size: 22px; }
  .live-widget iframe { height: 420px; }
  .conv-grid { grid-template-columns: 1fr; }
  .showcase-stats { grid-template-columns: 1fr; }
  .visual-frame { min-height: auto; }
  .client-strip { gap: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .live-dot { animation: none; }
}
