/* ===== Explainer v3 — Cinematic Experience ===== */

.explainer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0a0a0a;
  display: none;
  overflow: hidden;
}
.explainer.active { display: block; }

.explainer__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #C4A97D, #E8C847);
  width: 0%;
  z-index: 100;
}

.explainer__skip {
  position: absolute;
  top: 28px;
  right: 36px;
  z-index: 100;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  background: transparent;
  transition: all 0.3s ease;
}
.explainer__skip:hover { color: white; border-color: rgba(255,255,255,0.3); }

.explainer__canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ===== Scenes ===== */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.scene.active { pointer-events: auto; }
.scene__inner {
  width: 100%;
  max-width: 1000px;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

/* ===== Explainer v4 — centered cinematic ===== */
.exp-scene { text-align: center; }
.exp-col { max-width: 840px; margin: 0 auto; text-align: center; }
.exp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
}
.exp-bg::after { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 12, 0.64); }
.exp-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #C4A97D;
  margin-bottom: 30px;
}
.exp-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.28;
  color: #fff;
  max-width: 760px;
  margin: 0 auto 18px;
  opacity: 0;
}
.exp-line em { color: #C4A97D; font-style: italic; }
.exp-line--muted {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.9vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 620px;
  margin-top: 8px;
}
.exp-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
}
.exp-stat__num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: #C4A97D; line-height: 1; }
.exp-stat__label { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: rgba(255, 255, 255, 0.4); margin-top: 8px; }
.exp-cards {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px auto;
  opacity: 0;
}
.exp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 22px;
  text-align: left;
  min-width: 200px;
}
.exp-card__name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: #fff; }
.exp-card__why { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: #6BCF7F; margin-top: 4px; }
.exp-logo { margin-bottom: 30px; }
.exp-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 36px;
  border-radius: 100px;
  background: #C4A97D;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0;
}
.exp-cta:hover { background: #d4bb8e; }

/* ===== Scene 1: Travel World ===== */
.world-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
}
.world-photo.active {
  animation: kenBurns 12s ease-out forwards;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.world-text {
  position: relative;
  z-index: 3;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: white;
  line-height: 1.3;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  opacity: 0;
}
.world-text em { font-weight: 300; }
.world-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

/* ===== Scene 2: Sarah's Frustration ===== */
.scene--sarah {
  background: #F5F3EF;
}
.sarah-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 900px;
}
.sarah-photo-side {
  text-align: center;
}
.sarah-photo-lg {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #C4A97D;
  opacity: 0;
}
.sarah-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #6B6762;
  margin-top: 16px;
  opacity: 0;
}
.sarah-thoughts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sarah-thought {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.4;
  opacity: 0;
  padding-left: 16px;
  border-left: 2px solid transparent;
}
/* Colors set by .sarah-thought-row:nth-child in filter-fail section */

/* Filter cascade */
.filter-cascade {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  opacity: 0;
}
.filter-box {
  background: white;
  border: 1px solid #E0DDD7;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: #8A8680;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-20px);
}
.filter-box::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid #C8C4BC;
  border-radius: 2px;
  flex-shrink: 0;
}
/* Filter fail — animated mismatch with connecting line */
.sarah-thought-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}
.sarah-thought-row .sarah-thought {
  margin-bottom: 0;
  padding-left: 14px;
}
.filter-connector {
  position: relative;
  height: 2px;
  opacity: 0;
}
.filter-connector__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #D4D0C8;
  transform: scaleX(0);
  transform-origin: left;
}
.filter-connector__dot {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D4D0C8;
  opacity: 0;
}
/* Different colors per row */
.sarah-thought-row:nth-child(1) .sarah-thought { border-color: #E86B8A; }
.sarah-thought-row:nth-child(2) .sarah-thought { border-color: #E8C847; }
.sarah-thought-row:nth-child(3) .sarah-thought { border-color: #6BCF7F; }
.sarah-thought-row:nth-child(4) .sarah-thought { border-color: #7B9EC4; }
.sarah-thought-row:nth-child(1) .filter-fail__strike { background: #E86B8A; }
.sarah-thought-row:nth-child(2) .filter-fail__strike { background: #E8C847; }
.sarah-thought-row:nth-child(3) .filter-fail__strike { background: #6BCF7F; }
.sarah-thought-row:nth-child(4) .filter-fail__strike { background: #7B9EC4; }
.sarah-thought-row:nth-child(1) .filter-fail__why { color: #E86B8A; }
.sarah-thought-row:nth-child(2) .filter-fail__why { color: #C4A030; }
.sarah-thought-row:nth-child(3) .filter-fail__why { color: #4A9B5A; }
.sarah-thought-row:nth-child(4) .filter-fail__why { color: #5A8AAF; }
.filter-fail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(10px);
}
.filter-fail__box {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #8A8680;
  padding: 8px 14px;
  border: 1.5px solid #E0DDD7;
  border-radius: 6px;
  background: white;
  position: relative;
}
.filter-fail__box::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 1.5px solid #C8C4BC;
  border-radius: 2px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.filter-fail__strike {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #E86B8A;
  transform: scaleX(0);
  transform-origin: left;
}
.filter-fail__why {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: #E86B8A;
  padding-left: 4px;
  opacity: 0;
}

.frustration-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #8A8680;
  text-align: center;
  margin-top: 32px;
  opacity: 0;
}

/* Browser mockup + tabs (Scene 2) */
.browser-mock {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E0DDD7;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
}
.browser-mock__bar {
  height: 28px;
  background: #F0EEEA;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  border-bottom: 1px solid #E0DDD7;
}
.browser-mock__dot { width: 7px; height: 7px; border-radius: 50%; background: #D4D4D4; }
.browser-mock__tabs {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}
.browser-mock__tab {
  padding: 3px 10px;
  background: #E8E4DB;
  border-radius: 4px 4px 0 0;
  font-size: 0.5rem;
  color: #8A8680;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(5px);
}
.browser-mock__body { padding: 12px; }
.browser-mock__line {
  height: 6px;
  background: #F0EEEA;
  border-radius: 3px;
  margin-bottom: 5px;
}

/* ===== Scene 3: The Shift ===== */
.shift-logo {
  margin: 0 auto 40px;
  opacity: 0;
}
.shift-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: white;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
}
.shift-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 20px;
  opacity: 0;
}

/* ===== Scene 4: The Conversation ===== */
.conv-mockup {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
}
.conv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #F5F3EF;
  border-bottom: 1px solid #E8E4DB;
}
.conv-brand {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a1a1a;
}
.conv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.conv-chat {
  padding: 20px;
  background: #FAF9F7;
  border-right: 1px solid #E8E4DB;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.conv-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0;
}
.conv-msg--bot {
  background: white;
  color: #1a1a1a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid #E8E4DB;
}
.conv-msg--user {
  background: #1a1a1a;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.conv-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  opacity: 0;
}
.conv-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C8C4BC;
  animation: typingDot 1.2s infinite;
}
.conv-typing span:nth-child(2) { animation-delay: 0.2s; }
.conv-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Results panel */
.conv-results {
  padding: 20px;
  background: white;
}
.conv-advisor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  opacity: 0;
}
.conv-advisor img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.conv-advisor__name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a1a1a;
}
.conv-advisor__role {
  font-size: 0.65rem;
  color: #8A8680;
}
.conv-shimmer {
  height: 200px;
  background: linear-gradient(90deg, #F5F3EF 25%, #E8E4DB 50%, #F5F3EF 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.5s infinite;
  opacity: 0;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.conv-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #E8E4DB;
  margin-bottom: 10px;
  opacity: 0;
  transform: perspective(600px) rotateY(60deg);
}
.conv-card img {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.conv-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a1a1a;
}
.conv-card__loc {
  font-size: 0.62rem;
  color: #8A8680;
  margin: 2px 0 6px;
}
.conv-card__match {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.conv-card__match--gold { background: rgba(232,200,71,0.12); color: #C4A030; }
.conv-card__match--green { background: rgba(107,207,127,0.12); color: #4A9B5A; }
.conv-card__feats {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.conv-card__feat {
  font-size: 0.62rem;
  color: #6B6762;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
}
.conv-card__feat::before {
  content: '✓';
  color: #C4A97D;
  font-weight: 700;
}

/* Detail page + third card (Scene 4) */
.conv-detail {
  position: absolute;
  inset: 0;
  background: white;
  z-index: 5;
  padding: 24px;
  opacity: 0;
  transform: scale(0.95);
  display: flex;
  gap: 24px;
}
.conv-detail__photo {
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
  height: 280px;
}
.conv-detail__info { flex: 1; }
.conv-detail__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.conv-detail__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: #8A8680;
  margin-bottom: 20px;
}
.conv-detail__section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C4A97D;
  margin-bottom: 10px;
}
.conv-detail__reason {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #4A4743;
  padding: 8px 0;
  border-bottom: 1px solid #F0EEEA;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
}
.conv-detail__reason::before {
  content: '✓';
  color: #C4A97D;
  font-weight: 700;
  flex-shrink: 0;
}
.conv-refine {
  opacity: 0;
  margin-top: 8px;
}

/* ===== Scene 5: Engine + Particle Network ===== */
.engine-scene-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C4A97D;
  text-align: center;
  margin-bottom: 12px;
  opacity: 0;
}
/* Reuses engine-svg, engine-node, engine-path, engine-label, engine-particle, engine-stat from main */

/* Particle network (Scene 5) */
.particle-field {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 0 auto;
  max-width: 800px;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.particle-container {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: particleRotate 80s linear infinite;
}
@keyframes particleRotate {
  from { transform: rotateY(0deg) rotateX(3deg); }
  to { transform: rotateY(360deg) rotateX(3deg); }
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  opacity: 0;
  transform-style: preserve-3d;
}
.particle--hub {
  width: 6px;
  height: 6px;
}
.particle-line {
  position: absolute;
  height: 1px;
  background: rgba(255,255,255,0.06);
  transform-origin: left center;
  opacity: 0;
}
.particle-cluster-label {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  opacity: 0;
  white-space: nowrap;
}
.particle-data {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
}

/* ===== Scene 6: Opportunity ===== */
.opp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}
.opp-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.8); }
.opp-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  opacity: 0;
}
.opp-gap {
  width: 40px;
  height: 2px;
  background: #E86B8A;
  opacity: 0;
  animation: gapFlash 1s ease-in-out;
}
@keyframes gapFlash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.opp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 48px auto;
  max-width: 800px;
}
.opp-node {
  padding: 20px 24px;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}
.opp-node__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.opp-node__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
}
.opp-line {
  width: 40px;
  height: 2px;
  opacity: 0;
  transform: scaleX(0);
}
.opp-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 48px;
}
.opp-stat {
  text-align: center;
  opacity: 0;
}
.opp-stat__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
}
.opp-stat__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}
.opp-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.opp-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  opacity: 0;
}

/* ===== Scene 7: CTA ===== */
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.75); }
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-logo { opacity: 0; margin: 0 auto 36px; }
.cta-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: white;
  line-height: 1.3;
  margin-bottom: 36px;
  opacity: 0;
}
.cta-tagline em { font-weight: 300; }
.cta-btn {
  display: inline-flex;
  padding: 14px 40px;
  background: #C4A97D;
  color: #0a0a0a;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
}

/* ===== Button ===== */
.btn-explainer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s;
}
.btn-explainer:hover { color: var(--text); }
.btn-explainer svg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  padding: 7px;
  transition: all 0.3s;
}
.btn-explainer:hover svg {
  border-color: var(--text);
  background: var(--text);
  color: var(--cream);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sarah-split { grid-template-columns: 1fr; gap: 32px; }
  .conv-body { grid-template-columns: 1fr; }
  .conv-results { display: none; }
  .opp-flow { flex-direction: column; }
  .opp-line { width: 2px; height: 24px; }
  .opp-stats { flex-direction: column; gap: 24px; }
  .scene__inner { padding: 0 24px; }
}
