/* ============================================================
   EXPERIENCE LAYER — shared across all Conveyance pages
   Depends on: css/style.css loaded first
   ============================================================ */

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 9997; background: transparent;
}
.scroll-bar-fill {
  height: 100%; width: 0%;
  background: var(--cream-dark);
  transition: width 0.08s linear;
}

/* ============================================================
   NOISE GRAIN OVERLAY
   ============================================================ */
.grain {
  position: fixed; top: -100px; left: -100px;
  width: calc(100% + 200px); height: calc(100% + 200px);
  pointer-events: none; z-index: 9996; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-shift 0.4s steps(1) infinite;
}
@keyframes grain-shift {
  0%  { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(2px, -3px); }
  60% { transform: translate(-1px, 3px); }
  80% { transform: translate(3px, 1px); }
  100%{ transform: translate(-2px, -1px); }
}

/* ============================================================
   HERO ENTRANCE (concept.html / index)
   ============================================================ */
.hero { overflow: hidden; }
.hero-eyebrow-wrap,
.hero-h1-wrap,
.hero-sub-wrap,
.hero-actions-wrap { overflow: hidden; }

.hero-eyebrow-inner,
.hero-h1-inner,
.hero-sub-inner,
.hero-actions-inner {
  transform: translateY(100%);
  opacity: 0;
  display: block;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s ease;
}
.hero-h1-inner { line-height: 1.08; }
.hero-eyebrow-inner.up { transform: translateY(0); opacity: 1; }
.hero-h1-inner.up      { transform: translateY(0); opacity: 1; transition-delay: 0.12s; }
.hero-sub-inner.up     { transform: translateY(0); opacity: 1; transition-delay: 0.24s; }
.hero-actions-inner.up { transform: translateY(0); opacity: 1; transition-delay: 0.36s; }

/* Hero scroll hint */
.hero-scroll { animation: float 2.5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   PAGE HERO ENTRANCE (inner pages)
   ============================================================ */
.page-hero-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.page-hero-item.page-hero-up { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* Stat counter */
.stat-number { opacity: 0; transition: opacity 0.4s ease; }
.stat-number.counted { opacity: 1; }

/* ============================================================
   MARQUEE BAND
   ============================================================ */
.marquee-band {
  background: var(--onyx);
  border-top: 1px solid #2A2A2A;
  border-bottom: 1px solid #2A2A2A;
  padding: 12px 0;
  overflow: hidden;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-item {
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3A3A3A;
  padding: 0 28px;
}
.marquee-item span { color: #2A2A2A; margin: 0 8px; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION GHOST NUMBERS
   ============================================================ */
.ghost-num {
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  font-size: 22vw;
  line-height: 1;
  color: rgba(26,26,26,0.028);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
}
.section-dark .ghost-num { color: rgba(242,237,227,0.03); }

.section, .section-surface, .section-dark {
  position: relative;
  overflow: hidden;
}
.section > .container,
.section-surface > .container,
.section-dark > .container {
  position: relative;
  z-index: 1;
}

/* page-hero ghost number */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero-ghost {
  position: absolute;
  right: -20px; bottom: -20px;
  font-size: 28vw;
  line-height: 1;
  color: rgba(242,237,227,0.03);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}

/* ============================================================
   SYSTEM CARD HOVER
   ============================================================ */
.system-card {
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.25s;
}
.system-card:hover {
  border-color: var(--onyx);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

/* ============================================================
   NAV LINK UNDERLINE DRAW
   ============================================================ */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0%; height: 1px;
  background: var(--cream);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ============================================================
   STEP CARDS — ghost number accent + hover fill
   ============================================================ */
.step {
  transition: background 0.2s;
  overflow: hidden;
}
.step:hover { background: var(--cream); }
.step::before {
  content: attr(data-step);
  position: absolute;
  right: 20px; bottom: -8px;
  font-size: 80px;
  line-height: 1;
  color: rgba(26,26,26,0.04);
  pointer-events: none;
  letter-spacing: -0.04em;
}

/* ============================================================
   STAT BAR — subtle hover
   ============================================================ */
.stat-item { transition: background 0.2s; }
.stat-item:hover { background: rgba(242,237,227,0.03); }

/* ============================================================
   CTA BUTTON — fill from left
   ============================================================ */
.btn-cream {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn-cream::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cream-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  z-index: -1;
}
.btn-cream:hover::before { transform: scaleX(1); }
.btn-cream:hover { opacity: 1; }

/* ============================================================
   PHILOSOPHY / DARK SECTION — large italic quote
   ============================================================ */
.section-dark .lead {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}

/* ============================================================
   GENERIC CARD HOVER (pricing, about cards, etc.)
   ============================================================ */
.card {
  transition: box-shadow 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* Linked cards — remove default anchor styling */
a.step, a.system-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.rate-chip {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
a.rate-chip:hover {
  border-color: var(--accent-dark);
  background: var(--cream);
}

/* ============================================================
   FAQ ITEM — smooth open/close
   ============================================================ */
.faq-item { transition: background 0.15s; }
.faq-item:hover { background: rgba(26,26,26,0.02); }

/* ============================================================
   SELF-DISCOVERY CHECKLIST — reused on our-approach.html and,
   conceptually, inside Vance's chat (js/vance-audit.js)
   ============================================================ */
.self-discovery-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.self-discovery-list li {
  font-size: 16px; color: var(--onyx); line-height: 1.6;
  padding-left: 36px; position: relative;
}
.self-discovery-list li::before {
  content: '?'; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--cream-dark);
  font-family: var(--font-display); font-size: 13px; color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.fork-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 20px; }
.fork-grid > div:last-child { border-left: none; }
@media (max-width: 700px) {
  .fork-grid { grid-template-columns: 1fr; }
  .fork-grid > div:last-child { border-left: 1px solid var(--cream-dark); }
}

/* ============================================================
   EMPATHY: HONESTY PINNED SCROLL — homepage "before any of this makes
   sense". True pinned/frozen-frame behavior: the section sticks in the
   viewport while its extra-tall wrapper scrolls past underneath, and
   JS swaps which item is "active" based on scroll progress through
   that range — no scroll-jacking/preventDefault, position:sticky does
   the pinning natively so normal scroll physics stay intact.
   ============================================================ */
.honesty-pin-section { position: relative; height: 480vh; }
.honesty-pin-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; background: var(--white);
}
.honesty-pin-stage { position: relative; margin-top: 40px; min-height: 220px; }
.honesty-pin-item {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.honesty-pin-item.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.honesty-pin-item h4 {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35; margin-bottom: 14px; color: var(--onyx);
}
.honesty-pin-item p { font-size: 15px; color: var(--mid); line-height: 1.75; margin: 0; }
.honesty-pin-progress { display: flex; gap: 8px; margin-top: 32px; }
.honesty-pin-dot { width: 24px; height: 3px; border-radius: 2px; background: var(--cream-dark); transition: background 0.2s; }
.honesty-pin-dot.active { background: var(--accent); }
@media (max-width: 640px) {
  .honesty-pin-section { height: 380vh; }
}

/* ============================================================
   INDUSTRY STATS STRIP — homepage, between the honesty section and
   Try It Yourself. Every number here is real and sourced (see the
   fine-print attribution under each card) — no invented/vanity stats.
   ============================================================ */
.stats-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 40px; }
.stats-strip-number { font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 48px); color: var(--onyx); line-height: 1; margin-bottom: 14px; }
.stats-strip-label { font-size: 14px; color: var(--mid); line-height: 1.5; margin-bottom: 10px; }
.stats-strip-source { font-size: 10.5px; color: var(--light); font-style: italic; line-height: 1.4; }
@media (max-width: 900px) {
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .stats-strip-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VERTICAL PICKER — small, deliberate "we work with every vertical"
   rail on the left; clicking one reveals stats + a real example on
   the right. Replaces the old ambient/guessed personalization with
   one clear, visible choice, right where it matters.
   ============================================================ */
.vertical-picker-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.vertical-picker-label { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); display: block; margin-bottom: 14px; }
.vertical-picker-list { display: flex; flex-direction: column; gap: 3px; }
.vertical-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; background: none;
  cursor: pointer; font-family: var(--font-body); transition: background 0.15s, border-color 0.15s;
}
.vertical-chip:hover { background: var(--surface); }
.vertical-chip-icon { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; flex-shrink: 0; opacity: 0.8; }
.vertical-chip-name { font-size: 13px; color: var(--mid); font-weight: 500; line-height: 1.3; }
.vertical-chip.active { background: var(--onyx); border-color: var(--onyx); }
.vertical-chip.active .vertical-chip-icon { opacity: 1; }
.vertical-chip.active .vertical-chip-name { color: var(--cream); }
.vertical-reveal-panel { min-height: 200px; }
.vertical-reveal-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 200px; border: 1px dashed var(--cream-dark); border-radius: 10px;
  color: var(--light); font-size: 14px; font-style: italic; padding: 32px;
}
.vertical-reveal-content { animation: verticalRevealIn 0.35s ease; }
@keyframes verticalRevealIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.vertical-reveal-case { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--cream-dark); max-width: 480px; }
@media (max-width: 800px) {
  .vertical-picker-layout { grid-template-columns: 1fr; gap: 24px; }
  .vertical-picker-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .vertical-chip { width: auto; }
}

/* ============================================================
   EXPLORE + VANCE CALLOUT — pulled out of the step timeline entirely
   so "you are exploring, right now" reads as its own moment rather
   than one equal box among five.
   ============================================================ */
.explore-vance-callout {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--cream-dark); border-radius: 12px;
  padding: 28px 32px; margin: 32px 0 40px;
}
.explore-vance-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--onyx); color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.explore-vance-text { flex: 1; min-width: 220px; }
.explore-vance-text h3 { font-size: 19px; margin-bottom: 6px; }
.explore-vance-text p { font-size: 14px; color: var(--mid); margin: 0; max-width: 60ch; }
.explore-vance-actions { flex-shrink: 0; }
@media (max-width: 640px) { .explore-vance-callout { padding: 24px; } }

/* ============================================================
   GO LIVE FORK — broken out of the step timeline for the same reason
   as Explore: it's a real decision point, not just "step 5 of 5."
   ============================================================ */
.golive-break { margin-top: 8px; }
.golive-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 20px; }
.golive-fork > div:first-child { border-radius: 8px 0 0 8px; }
.golive-fork > div:last-child { border-radius: 0 8px 8px 0; }
.golive-fork-card { padding: 26px 28px; }
.golive-fork-card h5 { font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; color: var(--onyx); }
.golive-fork-card p { font-size: 13px; color: var(--mid); line-height: 1.65; margin: 0; }
.golive-fork-card-plain { background: var(--surface); border: 1px solid var(--cream-dark); }
.golive-fork-card-accent { background: var(--onyx); }
.golive-fork-card-accent h5 { color: var(--cream); }
.golive-fork-card-accent p { color: #999; }
.golive-fork-note { margin-top: 10px !important; font-size: 12px !important; font-style: italic; color: var(--light) !important; }
@media (max-width: 640px) {
  .golive-fork { grid-template-columns: 1fr; }
  .golive-fork > div:first-child { border-radius: 8px 8px 0 0; }
  .golive-fork > div:last-child { border-radius: 0 0 8px 8px; }
}

/* PAR (Problem / Action / Result) case-study cards — Consulting section */
.par-block { margin-top: 14px; }
.par-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: block; margin-bottom: 4px; }
.par-block p { font-size: 13px; color: var(--mid); line-height: 1.6; margin: 0; }

/* ============================================================
   VANCE SHOWCASE — two-column "Try It Yourself" section: copy + CTAs
   on the left, the live Vance panel (glass treatment) on the right.
   Same graph-paper background as the hero, so the glass panel has
   something underneath it to actually blend with.
   ============================================================ */
.vance-showcase {
  position: relative; background: var(--white);
  background-image:
    linear-gradient(rgba(212,203,187,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,203,187,0.35) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  border-bottom: 1px solid var(--cream-dark);
  /* Tall scroll-track — position:sticky pins the inner content while
     scroll progress through this height drives the JS-computed grow/
     bleed effect (see the script at the bottom of index.html). */
  height: 220vh;
}
.vance-centerpiece-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 24px;
}
.vance-centerpiece-intro {
  text-align: center; max-width: 640px; margin: 0 auto 20px;
  transition: opacity 0.15s ease, max-height 0.15s ease, margin 0.15s ease;
  overflow: hidden;
}
.vance-centerpiece-panel-wrap {
  width: 900px; max-width: 100%; height: min(70vh, 640px);
  margin: 0 auto; transition: width 0.05s linear;
}
.vance-centerpiece-panel-wrap .vance-showcase-mount,
.vance-centerpiece-panel-wrap .vance-panel-glass { height: 100%; width: 100%; display: flex; }
.vance-showcase-mount { min-width: 0; display: flex; }
@media (max-width: 900px) {
  /* Full-bleed growth reads badly on small screens where there's no
     "edge to edge" wow moment to have — keep this a normal, fixed-size
     panel on mobile instead of animating its width via JS. */
  .vance-showcase { height: auto; padding: 56px 0; }
  .vance-centerpiece-sticky { position: static; height: auto; padding: 0; }
  .vance-centerpiece-panel-wrap { width: 100% !important; height: 520px; }
}

/* ============================================================
   ROLE FILTER STRIP — the one deliberate vertical-picking moment,
   inline on index.html after the Vance discovery section (replaces
   the old always-on left-edge drawer). A horizontal wrap of the same
   .role-card rows the drawer used to show in a vertical list, plus a
   reset chip to go back to "everything."
   ============================================================ */
.role-filter-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.role-filter-strip .role-card { width: auto; flex: 1 1 220px; }
.role-bar-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light); display: block;
}
.role-chip-reset {
  border: 1px dashed var(--cream-dark); border-radius: var(--radius-sm);
  background: none; color: var(--light); font-family: var(--font-body); font-size: 12px;
  padding: 9px 12px; cursor: pointer; text-align: left;
}
.role-chip-reset:hover { border-color: var(--accent); color: var(--onyx); }

/* Compact selectable row — icon thumbnail + name/hint. */
.role-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border: 1px solid var(--cream-dark); border-radius: var(--radius-sm);
  background: var(--white); font-family: var(--font-body); text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.role-card:hover { border-color: var(--accent); transform: translateX(2px); }
.role-card-icon-wrap {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--surface);
}
.role-card-icon { width: 100%; height: 100%; object-fit: cover; }
.role-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.role-card-name { font-size: 13px; font-weight: 600; color: var(--onyx); line-height: 1.3; }
.role-card-hint { font-size: 10.5px; color: var(--light); line-height: 1.35; }
.role-card-active { background: var(--onyx); border-color: var(--onyx); }
.role-card-active .role-card-name { color: var(--cream); }
.role-card-active .role-card-hint { color: #b9b3a5; }

/* system-card highlight when a role is active */
.system-card { transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.system-card.role-highlight-active {
  border-color: var(--onyx); background: var(--cream-mid); box-shadow: var(--shadow-card);
}

/* par-card highlight when a role is active — same treatment, its own selector
   since par-card lives in a full-portfolio grid where every card stays visible */
.par-card { transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.par-card.role-highlight-active {
  border-color: var(--accent); background: var(--cream-mid); box-shadow: var(--shadow-card);
}

/* blog-card highlight when a role is active — same pattern, blog posts stay
   in a full listing so only styling nudges the visitor's own vertical */
.blog-card.role-highlight-active {
  border-color: var(--accent); background: var(--cream-mid);
}

/* ============================================================
   LIVE SYSTEM PREVIEW — ambient, illustrative activity widget
   ============================================================ */
.live-preview {
  position: fixed; right: 20px; bottom: 20px; z-index: 500;
  width: 340px; max-width: calc(100vw - 40px);
  font-family: var(--font-body);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.live-preview.live-preview-collapsed {
  width: auto;
}
.live-preview:empty { display: none; }
.live-preview-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.live-preview-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--cream-dark);
}
.live-preview-title { font-size: 11px; letter-spacing: 0.03em; color: var(--mid); flex: 1; }
.live-preview-info { font-size: 12px; color: var(--light); cursor: help; }
.live-preview-toggle {
  border: none; background: none; cursor: pointer; font-size: 16px; line-height: 1;
  color: var(--light); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.live-preview-toggle:hover { color: var(--onyx); }
/* Same shape as the minimise control it sits beside -- they are peers, and
   one of them looking like the primary action would be a lie about which
   question matters more. */
.live-preview-expand {
  border: none; background: none; cursor: pointer; font-size: 13px; line-height: 1;
  color: var(--light); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.live-preview-expand:hover { color: var(--onyx); }
.live-preview-collapsed .live-preview-body { display: none; }
.live-preview-collapsed .live-preview-panel { display: none; }
.live-preview-collapsed .live-preview-fab { display: flex; }
.live-preview:not(.live-preview-collapsed) .live-preview-fab { display: none; }

/* FAB circle button */
.live-preview-fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--onyx); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.live-preview-fab:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.live-preview-fab .vance-avatar { width: 32px !important; height: 32px !important; font-size: 15px !important; background: var(--accent) !important; }
.live-preview-fab-label {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  background: var(--onyx); color: var(--cream);
  font-size: 12px; font-family: var(--font-body);
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
.live-preview-fab:hover .live-preview-fab-label { opacity: 1; }
.live-preview-fab-label::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--onyx);
}

/* Panel (expanded state) */
.live-preview-panel {
  background: var(--white); border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
  overflow: hidden;
}

/* First-visit nudge -- says why to click, where the fab's hover label only
   names the button. Fades out on hover so the two are never on screen at once. */
.live-preview-nudge {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: var(--onyx);
  color: var(--cream);
  font-size: 11px;
  font-family: var(--font-body);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity .15s ease;
  animation: nudgePop 0.3s ease;
}
.live-preview-nudge::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 16px;
  border: 5px solid transparent;
  border-top-color: var(--onyx);
}
@keyframes nudgePop {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Portal-matching Vance icon in widget head */
.live-preview-vance-icon {
  width: 28px !important;
  height: 28px !important;
  font-size: 13px !important;
  background: var(--accent) !important;
  color: var(--onyx) !important;
  font-weight: 600;
}
.live-preview-status-mount { padding: 14px 12px 12px; animation: livePreviewIn 0.3s ease; }
.live-preview-status { font-size: 12.5px; color: var(--onyx); line-height: 1.5; margin: 0 0 12px; }
.live-preview-status strong { font-weight: 600; }
@keyframes livePreviewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.live-preview-cta, .live-preview-launch {
  display: block; width: 100%;
  padding: 9px; border-radius: var(--radius-pill); border: 1px solid var(--cream-dark);
  background: var(--onyx); color: var(--cream); font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center;
  text-decoration: none; transition: background 0.15s; box-sizing: border-box;
}
.live-preview-cta:hover, .live-preview-launch:hover { background: var(--charcoal); color: var(--cream); }
.live-preview-chatting { width: 380px; }
.live-preview-chatting .vance-panel { border: none; box-shadow: none; border-radius: 0; }

/* ── EXPANDED ────────────────────────────────────────────────────────────
   The widget's half of the surface. .vance-enlarged (in vance-chat.css) does
   the positioning and the dim; these give the chain between the host and the
   Vance panel a height to fill, because otherwise the panel is 100% of a body
   that has no height of its own.

   Two classes on each selector, so this beats .live-preview-chatting's corner
   width. */
.live-preview.vance-enlarged .live-preview-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* THE PANEL IS CAPPED and never reaches the viewport edges. Roughly a
   thousand points wide and four fifths of the height, inside a backdrop whose
   padding clears the fixed nav at the top and leaves visible margin on the
   other three sides. max-height keeps it inside that box on a short viewport
   rather than growing back under the nav. */
.live-preview.vance-enlarged .live-preview-panel {
  width: 960px;
  max-width: 100%;
  height: 80vh;
  max-height: 100%;
  border: 1px solid var(--cream-dark);
}
.live-preview.vance-enlarged .live-preview-body,
.live-preview.vance-enlarged .live-preview-chat-mount {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* The first-visit nudge is positioned against the corner widget. On the
   backdrop it has nothing to point at. */
.live-preview.vance-enlarged .live-preview-nudge { display: none; }

/* The expand control is a toggle: one of the two glyphs at a time, chosen by
   the state rather than by a second flag. */
.live-preview.vance-enlarged .live-preview-expand-in { display: none; }
.live-preview:not(.vance-enlarged) .live-preview-expand-out { display: none; }
/* Nothing to expand until there is a conversation in the panel. */
.live-preview:not(.live-preview-chatting) .live-preview-expand { display: none; }

@media (max-width: 640px) {
  .live-preview { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .live-preview-chatting { width: auto; }
  /* COLLAPSED IS THE EXCEPTION. The rule above stretches the container edge
     to edge, which is right for the panel. Collapsed, the only child is a
     52px circle -- and a 52px child in a 351px block sits at its LEFT edge,
     which is why the launcher rendered bottom-LEFT on a phone while being
     "bottom right" everywhere else. Measured at 320/360/375/390/414: fab box
     was 12..64 at every width. Anchor the collapsed container to the right
     instead of stretching it. This also brings the fab's hover label back on
     screen: it is positioned right:60px FROM THE FAB, so with the fab on the
     left the label was at -108..4, entirely off the left edge. */
  .live-preview.live-preview-collapsed { left: auto; right: 12px; width: auto; }
  /* Home indicator. Inert until viewport-fit=cover, same as the nav inset. */
  .live-preview { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  /* Neither bubble may exceed the screen, whatever the copy says later. */
  .live-preview-nudge {
    white-space: normal;
    /* width:max-content is doing real work. The collapsed container is only
       52px wide now, and an absolutely positioned box with right:0 and no
       left shrink-to-fits against ITS CONTAINING BLOCK -- so max-width alone
       left the bubble 58px wide and 116px tall, a vertical ribbon of single
       words. max-content sizes it to the sentence, then max-width caps it
       against the screen. */
    width: max-content;
    max-width: min(230px, calc(100vw - 40px));
    text-align: right;
    line-height: 1.35;
  }
  .live-preview-fab-label {
    white-space: normal;
    width: max-content;
    max-width: calc(100vw - 96px);
    text-align: right;
  }
  /* EXPAND STAYS ON MOBILE. The corner widget is already near full WIDTH
     here, but it is nowhere near full height -- the transcript is a 360px
     box above a composer, on a screen with six or seven hundred points of
     it. Height is the scarce dimension on a phone and expanding is where
     the visitor gets it back, so this is not hidden below a breakpoint.

     NEAR full width, still not a takeover: 12px of backdrop stays visible on
     every side, which is the same margin the corner widget already sits in
     and is enough to read as a panel over a page rather than a new screen. */
  /* The nav is fixed at the same 14 + 68px on every width, so the top offset
     stays; only the other three shrink to the margin the corner widget
     already sits in. */
  .live-preview.vance-enlarged { padding: 92px 12px 12px; }
  .live-preview.vance-enlarged .live-preview-panel {
    width: 100%;
    height: 100%;
  }
}

/* ============================================================
   CONSULTING ENGAGEMENTS — horizontal timeline + connected vertical grid
   ============================================================ */
.consulting-connected {
  background: var(--surface); border: 1px solid var(--cream-dark); border-radius: var(--radius-lg);
  padding: 40px 36px; margin-top: 32px;
}
.timeline-horizontal { display: flex; gap: 24px; position: relative; padding-top: 8px; }
.timeline-horizontal::before {
  content: ''; position: absolute; top: 23px; left: 5%; right: 5%; height: 1px;
  background: var(--cream-dark); z-index: 0;
}
.timeline-step { flex: 1; position: relative; z-index: 1; min-width: 0; }
.timeline-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 1px solid var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--accent-dark);
  margin-bottom: 14px;
}
.timeline-step:first-child .timeline-num { background: var(--onyx); border-color: var(--onyx); color: var(--cream); }
.timeline-step h4 { font-size: 15px; margin-bottom: 6px; }
.timeline-step p { font-size: 12.5px; color: var(--mid); line-height: 1.55; margin-bottom: 10px; min-height: 60px; }
@media (max-width: 900px) {
  .timeline-horizontal { flex-direction: column; gap: 22px; }
  .timeline-horizontal::before { display: none; }
  .timeline-step p { min-height: 0; }
  .consulting-connected { padding: 28px 22px; }
}

/* ============================================================
   WORKFLOW DEMO — click-through "try it" walkthrough
   ============================================================ */
.workflow-demo-mount {
  background: var(--surface); border: 1px solid var(--cream-dark);
  padding: 36px 32px; margin-top: 48px; border-radius: var(--radius-sm);
}
.workflow-demo-mount:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.workflow-demo-dots { display: flex; gap: 6px; margin: 4px 0 16px; }
.workflow-demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cream-dark); transition: background 0.2s, transform 0.2s; }
.workflow-demo-dot-on { background: var(--accent); transform: scale(1.3); }
.workflow-demo-stage { font-size: 16px; color: var(--onyx); line-height: 1.55; min-height: 74px; margin-bottom: 20px; }
.workflow-demo-controls { display: flex; gap: 12px; }

/* ============================================================
   HERO — extra bubbles, connecting web, vertical badge
   ============================================================ */
.hero-bubble-3 { bottom: 14%; right: 6%; animation-delay: 1s; }
.hero-bubble-4 { bottom: 3%; right: 18%; animation-delay: 3s; }
@media (max-width: 1080px) { .hero-bubble-3, .hero-bubble-4 { display: none; } }

.hero-bubble-web {
  position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  pointer-events: none; z-index: 1; opacity: 0.4; overflow: visible;
}
.hero-bubble-web path { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 5; }
@media (max-width: 1080px) { .hero-bubble-web { display: none; } }

.hero-vertical-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--accent); color: var(--onyx);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.hero-vertical-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--onyx); }
.badge-pulse { animation: badgePulseAnim 0.6s ease; }
@keyframes badgePulseAnim {
  0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(201,169,97,0.6); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(201,169,97,0); }
}

/* ============================================================
   OUR APPROACH — two-column hero (mirrors homepage .hero-inner)
   ============================================================ */
.split-hero { padding: 0; }
.split-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 48px;
  padding: 88px 40px 76px;
  align-items: center;
}
.split-hero-left { position: relative; z-index: 1; }
.split-hero-right { min-height: 260px; }
@media (max-width: 960px) {
  .split-hero-inner { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .split-hero-left { padding: 60px 40px 48px; }
  .split-hero-right { min-height: 260px; }
}
@media (max-width: 640px) {
  .split-hero-left { padding: 52px 24px 40px; }
}

.pull-quote-box {
  background: var(--onyx); border: none; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px;
}
.pull-quote-mark {
  font-family: var(--font-display); font-size: 64px; line-height: 1;
  color: var(--accent); margin-bottom: 8px;
}
.pull-quote-text {
  font-family: var(--font-display); font-style: italic; font-size: 20px;
  line-height: 1.5; color: #eee;
}

.why-exist-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: start;
  border-bottom: 1px solid var(--cream-dark); padding-bottom: 64px;
}
.automation-boundary-grid {
  display: grid; grid-template-columns: 1fr 48px 1fr; gap: 0;
  max-width: 820px; margin: 0 auto; align-items: start;
}
.beliefs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: #2C2C2C; margin-top: 8px;
}
@media (max-width: 900px) {
  .why-exist-grid { grid-template-columns: 1fr; gap: 32px; }
  .automation-boundary-grid { grid-template-columns: 1fr; }
  .beliefs-grid { grid-template-columns: 1fr; }
}

/* Stretches a lone trailing card to fill the row instead of leaving an empty
   cell — only kicks in when the last card is actually alone (odd position
   in a 2-col grid); a future even count self-cancels this rule. */
.grid-fill-last > :nth-child(odd):last-child { grid-column: 1 / -1; }

/* ============================================================
   ROLE TOAST — brief confirmation on every personalization change
   ============================================================ */
.role-toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 600;
  transform: translate(-50%, 12px);
  background: var(--onyx); color: var(--cream);
  padding: 10px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-family: var(--font-body);
  box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.role-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* ── THE WELCOME MODAL'S STYLES WENT WITH IT ─────────────────────────────
   .onboard-overlay / -modal / -eyebrow / -title / -question /
   -dismiss-primary, and body.modal-open, which nothing else set. The modal
   itself is gone from js/role.js -- it opened over the homepage on a first
   visit and restated the tagline behind it. Kade: "delete that, we don't need
   that." Rules nothing renders are how a deleted feature comes back looking
   finished. */

.live-preview .vance-chat-mount { height: 380px; overflow-y: auto; }
