/* =========================================================
   ALCHEMY microsite — v2 styles
   Mobile-first. Inherits tokens from assets/colors_and_type.css
   ========================================================= */

@font-face {
  font-family: 'Modern Age';
  src: url('assets/fonts/Modern_Age.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Modern Age';
  src: url('assets/fonts/Modern_Age_Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Honor the `hidden` attribute even when other rules set `display:` */
[hidden] { display: none !important; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Global wash + grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 95%, rgba(184, 58, 142, 0.28) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 10%, rgba(90, 45, 158, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
}

main { position: relative; z-index: 1; }

/* ---------- Shared utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1100px) { .container { padding: 0 56px; } }

.grad-text {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--magenta) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10.5px;
  color: var(--cyan);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--cyan); }
@media (min-width: 768px) {
  .kicker { font-size: 12px; gap: 16px; }
  .kicker::before { width: 30px; }
}

.script {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-weight: 600;
}

/* ============================================================
   CHROME — top brand strip + footer
   ============================================================ */

.site-header {
  position: relative; z-index: 2;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) { .site-header { padding: 22px 40px; } }
@media (min-width: 1100px) { .site-header { padding: 26px 56px; } }

.brandmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brandmark .bar { display: inline-block; width: 22px; height: 2px; background: var(--cyan); }
.brandmark .wm {
  font-family: 'Modern Age', Georgia, serif;
  font-size: 22px; letter-spacing: 0.01em;
  color: var(--paper); line-height: 1;
}
@media (min-width: 768px) {
  .brandmark .wm { font-size: 26px; }
  .brandmark .bar { width: 26px; }
}

.site-header .chrome-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-whisper);
  font-weight: 500;
  display: none;
}
@media (min-width: 768px) { .site-header .chrome-meta { display: inline; } }

/* ============================================================
   SECTION 1 — HERO (wall-to-wall)
   ============================================================ */

.hero { padding: 36px 0 0; }
@media (min-width: 768px) { .hero { padding: 56px 0 0; } }
@media (min-width: 1100px) { .hero { padding: 72px 0 0; } }

.hero-mark { margin-bottom: 36px; padding: 0; }
.hero-mark .wm {
  font-family: 'Modern Age', Georgia, serif;
  font-size: clamp(56px, 14vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--paper);
  display: block;
}
.hero-mark .tag {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(15px, 2.4vw, 22px);
  color: var(--paper-soft);
  letter-spacing: -0.01em;
  margin-top: 8px;
  display: block;
}
.hero-mark .script-tag {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--cyan);
  font-size: clamp(22px, 3.2vw, 32px);
}
@media (min-width: 768px) { .hero-mark { margin-bottom: 48px; } }

/* Wall-to-wall video band. Cinematic crop (21:9) on tablet+. */
.hero-video-band {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  /* tighten the crop ratio to a more cinematic band on larger screens */
}
@media (min-width: 700px) {
  .hero-video-band { aspect-ratio: 21 / 9; }
}
@media (min-width: 1200px) {
  .hero-video-band { aspect-ratio: 2.35 / 1; }
}

.hero-video-frame {
  position: absolute; inset: 0;
  display: block;
}
.hero-video-frame video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.hero-video-frame .hero-playpause {
  position: absolute;
  bottom: 16px; left: 16px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(248,246,240,0.3);
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: background 150ms;
}
.hero-video-frame .hero-playpause:hover { background: rgba(10,14,26,0.9); }
.hero-video-frame .hero-playpause svg { width: 16px; height: 16px; }

.hero-video-frame .hero-unmute {
  position: absolute;
  bottom: 16px; right: 16px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(248,246,240,0.3);
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; z-index: 3;
  transition: background 150ms;
}
.hero-video-frame .hero-unmute:hover { background: rgba(10,14,26,0.9); }
.hero-video-frame .hero-unmute svg { width: 12px; height: 12px; }
.hero-video-frame.is-unmuted .hero-unmute { opacity: 0.6; }

.hero-video-frame .hero-bigplay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  z-index: 3;
  cursor: pointer; border: none; padding: 0;
  background: rgba(10, 14, 26, 0.35);
  color: var(--paper);
  transition: opacity 200ms, background 200ms;
}
.hero-video-frame .hero-bigplay:hover { background: rgba(10, 14, 26, 0.5); }
.hero-video-frame.is-playing .hero-bigplay { opacity: 0; pointer-events: none; }
.hero-video-frame .hero-bigplay .circle {
  width: 80px; height: 80px;
  border-radius: 999px;
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79,195,217,0.5);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(79,195,217,0.3);
  transition: transform 200ms;
}
.hero-video-frame .hero-bigplay:hover .circle { transform: scale(1.05); }
.hero-video-frame .hero-bigplay svg { width: 32px; height: 32px; color: var(--paper); }
.hero-video-frame .hero-blabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 500;
}

/* Persona hero placeholder (replaces video on /slug routes) */
.hero-persona-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90,45,158,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(184,58,142,0.45) 0%, transparent 55%),
    linear-gradient(135deg, #0a0e1a 0%, #1a1130 100%);
  border: 1px solid rgba(184,58,142,0.35);
  border-left: none; border-right: none;
  z-index: 4;
}
.hero-persona-placeholder .ph-inner {
  text-align: center;
  padding: 0 28px;
  position: relative; z-index: 1;
}
.hero-persona-placeholder .ph-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  display: inline-block;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(79,195,217,0.3);
}
.hero-persona-placeholder .ph-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: 18px 0 12px;
  line-height: 1;
}
.hero-persona-placeholder .ph-role {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(14px, 1.8vw, 19px);
  color: var(--paper-soft);
  letter-spacing: -0.01em;
}
.hero-persona-placeholder .ph-tag {
  position: absolute;
  bottom: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(184,58,142,0.05);
}

/* Persona meta bar (below hero on persona routes) */
.persona-meta {
  margin-top: 18px;
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.persona-meta .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.02em;
  color: var(--paper);
}
.persona-meta .role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-mute);
}

/* ============================================================
   SECTION HEADINGS — shared
   ============================================================ */

.section {
  padding: 64px 20px 64px;
  position: relative;
}
@media (min-width: 768px) { .section { padding: 96px 40px; } }
@media (min-width: 1100px) { .section { padding: 112px 56px; } }
.section-tight { padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 768px) { .section-tight { padding-top: 64px; padding-bottom: 48px; } }

.section + .section { border-top: 1px solid var(--rule); }

.section-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: var(--track-display);
  color: var(--paper);
  margin: 14px 0 0;
  text-wrap: balance;
  max-width: 18ch;
}
.section-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--paper-soft);
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin-top: 20px;
  max-width: 56ch;
}
.section-sub em { font-style: italic; color: var(--cyan); font-weight: 400; }
.section-sub strong { color: var(--paper); font-weight: 600; }

/* ============================================================
   SECTION 2 — Persona use case
   ============================================================ */

.workflow-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-soft);
  border: 1px solid var(--rule);
  background: var(--ink-2);
  overflow: hidden;
  aspect-ratio: 1600 / 700; /* matches our cropped workflow images */
}
.workflow-frame > img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.workflow-frame.standalone { margin-top: 32px; }

.see-more {
  display: inline-flex;
  align-items: center; gap: 12px;
  margin-top: 28px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.see-more:hover { border-bottom-color: var(--cyan); }
.see-more .arrow { transition: transform 200ms; }
.see-more:hover .arrow { transform: translateY(2px); }

/* ============================================================
   SECTION 3 — What ALCHEMY is
   ============================================================ */

.persona-row {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 4px 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.persona-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .persona-row {
    overflow-x: visible;
    justify-content: space-between;
    gap: 16px;
  }
}
.persona-row .item {
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: start;
  width: 96px;
}
@media (min-width: 600px) { .persona-row .item { width: 120px; } }
@media (min-width: 900px)  { .persona-row .item { flex: 1; } }
@media (min-width: 1100px) { .persona-row .item { max-width: 156px; } }

.persona-row .portrait {
  width: 88px; height: 88px;
  border-radius: 999px;
  margin: 0 auto;
  background-color: var(--ink-3);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
@media (min-width: 600px) { .persona-row .portrait { width: 108px; height: 108px; } }
@media (min-width: 1100px) { .persona-row .portrait { width: 132px; height: 132px; } }

.persona-row .label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-top: 14px;
  line-height: 1.3;
}
@media (min-width: 600px) { .persona-row .label { font-size: 15px; } }

/* Overview CTA below personas */
.overview-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center; gap: 12px;
  background: transparent;
  border: 1px solid rgba(79,195,217,0.4);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 13px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms;
}
.overview-cta .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.overview-cta:hover {
  background: rgba(79,195,217,0.08);
  border-color: var(--cyan);
  color: var(--paper);
}

/* ============================================================
   SECTION 4 — Validation
   ============================================================ */

.chart-wrap {
  margin-top: 40px;
  position: relative;
  width: 100%;
  border-radius: var(--radius-soft);
  overflow: hidden;
}
.chart-img {
  width: 100%; height: auto;
  display: block;
}
.chart-wipe {
  /* Black overlay that retracts left-to-right when section enters view.
     Order of reveal naturally matches: 50% scale → ChatGPT 53% → Claude 69%
     → Human Replication Band 88-95% → ALCHEMY 96%. */
  position: absolute;
  top: 0; left: 0; height: 100%; width: 100%;
  background: linear-gradient(90deg,
    var(--ink) 0%,
    var(--ink) 70%,
    rgba(10,14,26,0.95) 90%,
    rgba(10,14,26,0) 100%);
  transform: translateX(0);
  transition: transform 2400ms var(--ease-out);
  pointer-events: none;
}
.is-revealed .chart-wipe { transform: translateX(110%); }

/* Stat tiles */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 32px;
}
@media (min-width: 600px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .stat-tiles { grid-template-columns: repeat(7, 1fr); } }
.stat-tile {
  padding: 18px 16px;
  background: rgba(248,246,240,0.04);
  border: 1px solid var(--rule);
  border-radius: var(--radius-soft);
  opacity: 0; transform: translateY(10px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.stat-tile.is-mag { background: var(--magenta); border-color: var(--magenta); }
.stat-tile .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-tile .num.cy { color: var(--cyan); }
.stat-tile .lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 10px;
  line-height: 1.4;
}
.stat-tile.is-mag .lbl { color: var(--paper); opacity: 0.95; }
.is-revealed .stat-tile { opacity: 1; transform: translateY(0); }
.is-revealed .stat-tile:nth-child(1) { transition-delay: 1700ms; }
.is-revealed .stat-tile:nth-child(2) { transition-delay: 1850ms; }
.is-revealed .stat-tile:nth-child(3) { transition-delay: 2000ms; }
.is-revealed .stat-tile:nth-child(4) { transition-delay: 2150ms; }
.is-revealed .stat-tile:nth-child(5) { transition-delay: 2300ms; }
.is-revealed .stat-tile:nth-child(6) { transition-delay: 2450ms; }
.is-revealed .stat-tile:nth-child(7) { transition-delay: 2600ms; }

.patent-line {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.patent-line .uspto {
  width: 76px; height: auto; display: block;
  opacity: 0.95;
  border-radius: 4px;
}
.patent-line .text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--paper-mute);
  max-width: 60ch;
}
@media (min-width: 768px) { .patent-line .text { font-size: 14px; } }

/* Why pills — prominent */
.why-block { margin-top: 44px; }
.why-prompt {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.why-pills {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.why-pill {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  background: rgba(184,58,142,0.06);
  border: 1.5px solid rgba(184,58,142,0.5);
  border-radius: 999px;
  padding: 13px 22px;
  min-height: 46px;
  cursor: pointer;
  transition: all 180ms;
  white-space: nowrap;
}
.why-pill:hover {
  border-color: var(--magenta);
  background: rgba(184,58,142,0.14);
  box-shadow: 0 0 22px rgba(184,58,142,0.25);
}
.why-pill.active {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--paper);
  box-shadow: 0 0 28px rgba(184,58,142,0.4);
}
@media (min-width: 768px) { .why-pill { font-size: 15px; padding: 14px 24px; } }

.why-card {
  margin-top: 22px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(184,58,142,0.3);
  background: rgba(184,58,142,0.06);
  border-radius: var(--radius-soft);
  display: none;
  max-width: 76ch;
  position: relative;
}
.why-card.show { display: block; animation: fadeIn 300ms var(--ease-out); }
.why-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.why-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 600;
}
.why-card .why-close {
  background: transparent;
  border: 1px solid rgba(248,246,240,0.2);
  color: var(--paper-mute);
  width: 30px; height: 30px;
  border-radius: 999px;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 150ms;
  padding: 0;
}
.why-card .why-close:hover {
  color: var(--paper);
  border-color: rgba(248,246,240,0.4);
}
.why-card p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-soft);
  max-width: 64ch;
}
@media (min-width: 768px) { .why-card p { font-size: 17px; } }

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

/* ============================================================
   SECTION 5 — Tabbed use cases (2x3 grid on desktop)
   ============================================================ */

.tabs {
  margin-top: 36px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 0 12px;
  margin-right: -20px;
  padding-right: 20px;
}
.tabs::-webkit-scrollbar { display: none; }

/* 2x3 grid on tablet+ */
@media (min-width: 768px) {
  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow: visible;
    margin-right: 0; padding-right: 0;
  }
}

.tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: rgba(248,246,240,0.025);
  color: var(--paper-mute);
  border-radius: var(--radius-soft);
  padding: 16px 18px;
  min-width: 168px;
  max-width: 240px;
  transition: all 200ms;
  font-family: inherit;
}
@media (min-width: 768px) { .tab { min-width: 0; max-width: none; padding: 18px 20px; } }

.tab .title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tab .desc {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--paper-mute);
  margin-top: 6px;
  line-height: 1.3;
}
.tab:hover {
  border-color: rgba(248,246,240,0.25);
  background: rgba(248,246,240,0.05);
}
.tab.active {
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 0 24px rgba(184,58,142,0.25);
}
.tab.active .title, .tab.active .desc { color: var(--paper); }

.tab-panels { margin-top: 24px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 250ms var(--ease-out); }

/* The persona-video block below each workflow */
.persona-video-block {
  margin-top: 28px;
}
.pv-head {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pv-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  font-weight: 500;
}
.pv-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 24px);
  letter-spacing: -0.02em;
  color: var(--paper);
}
.pv-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-mute);
}

.persona-video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(184,58,142,0.35);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90,45,158,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(184,58,142,0.45) 0%, transparent 55%),
    linear-gradient(135deg, #0a0e1a 0%, #1a1130 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.persona-video-placeholder .ph-inner {
  text-align: center;
  padding: 0 28px;
}
.persona-video-placeholder .ph-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(79,195,217,0.3);
}
.persona-video-placeholder .ph-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: 14px 0 8px;
  line-height: 1;
}
.persona-video-placeholder .ph-role {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--paper-soft);
  letter-spacing: -0.01em;
}
.persona-video-placeholder .ph-tag {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(184,58,142,0.08);
}

/* Real persona video — replaces the placeholder when video exists */
.persona-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--rule);
}
.persona-video-frame video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.persona-video-frame .pv-unmute {
  position: absolute;
  bottom: 14px; right: 14px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(248,246,240,0.3);
  background: rgba(10,14,26,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  z-index: 3;
  transition: background 150ms;
}
.persona-video-frame .pv-unmute:hover { background: rgba(10,14,26,0.95); }
.persona-video-frame .pv-unmute svg { width: 12px; height: 12px; }

/* Click-to-play affordance on persona videos */
.persona-video-frame .pv-bigplay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  z-index: 3;
  cursor: pointer; border: none; padding: 0;
  background: rgba(10, 14, 26, 0.4);
  color: var(--paper);
  transition: opacity 200ms, background 200ms;
}
.persona-video-frame .pv-bigplay:hover { background: rgba(10, 14, 26, 0.55); }
.persona-video-frame.is-playing .pv-bigplay { opacity: 0; pointer-events: none; }

.persona-video-frame .pv-circle {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(248,246,240,0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
  transition: transform 200ms;
}
.persona-video-frame .pv-bigplay:hover .pv-circle { transform: scale(1.08); }
.persona-video-frame .pv-circle svg { width: 26px; height: 26px; color: var(--magenta); }
.persona-video-frame .pv-blabel {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 500;
}

.persona-video-frame .pv-playpause {
  position: absolute;
  bottom: 14px; left: 14px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(248,246,240,0.3);
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 150ms;
}
.persona-video-frame .pv-playpause:hover { background: rgba(10,14,26,0.9); }
.persona-video-frame .pv-playpause svg { width: 14px; height: 14px; }

/* ============================================================
   SECTION 6 — CTA (mailto)
   ============================================================ */

.cta { padding-bottom: 80px; }
.mailto-btn {
  margin-top: 36px;
  display: inline-flex;
  align-items: center; justify-content: center; gap: 14px;
  width: 100%;
  background: var(--magenta);
  color: var(--paper);
  border: none;
  border-radius: var(--radius-soft);
  padding: 20px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 150ms, transform 100ms, box-shadow 200ms;
  box-shadow: 0 0 32px rgba(184,58,142,0.3);
}
.mailto-btn:hover { filter: brightness(1.1); box-shadow: 0 0 42px rgba(184,58,142,0.45); }
.mailto-btn:active { transform: scale(0.99); }
.mailto-btn svg { width: 18px; height: 18px; }
@media (min-width: 600px) {
  .mailto-btn { width: auto; min-width: 280px; }
}

.mailto-secondary {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--paper-mute);
}
.mailto-secondary a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(79,195,217,0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-whisper);
  position: relative; z-index: 1;
}
@media (min-width: 768px) {
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 28px 40px;
  }
}
@media (min-width: 1100px) { .site-footer { padding: 32px 56px; } }
.site-footer .wm-small {
  font-family: 'Modern Age', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.005em;
  color: var(--paper-mute);
  text-transform: none;
}

/* ============================================================
   MODAL (overview lightbox)
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 50;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.show { display: flex; animation: fadeIn 200ms ease-out; }
.modal-inner {
  width: 100%; max-width: 960px;
  position: relative;
}
.modal .close {
  position: absolute;
  top: -42px; right: 0;
  background: transparent;
  border: 1px solid rgba(248,246,240,0.3);
  color: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.modal-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-soft);
  overflow: hidden;
  border: 1px solid rgba(79,195,217,0.3);
}
.modal-video-frame video {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}

/* ============================================================
   DEMO ROUTE PICKER — preview only
   ============================================================ */
.route-picker {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 30;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.route-picker .picker-label {
  color: var(--paper-whisper);
  padding: 0 6px 0 10px;
  letter-spacing: 0.22em;
}
.route-picker select {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(248,246,240,0.15);
  border-radius: 999px;
  padding: 6px 26px 6px 12px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23F8F6F0' stroke-width='1.3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.route-picker select:focus { outline: 1px solid rgba(79,195,217,0.5); }
@media (max-width: 600px) {
  .route-picker .picker-label { display: none; }
}
