/**
 * RELIV JOURNEY — VERTICAL EDITORIAL STYLESHEET
 * Inspired by Lando Norris Editorial Polish & Grab&Go Smooth Physics
 */

:root {
  /* Brand Tokens (Exact Parity with Main Website premium.css) */
  --brand-orange:  #E25A0C;
  --burnt-orange:  #C84C06;
  --orange:        #E25A0C;
  --orange-hover:  #C84C06;
  --orange-bright: #FF7A1A;
  --orange-light:  #FFF1E4;
  --orange-subtle: #FFF7EE;
  --peach:         #FFE2C8;

  --ivory:         #FFFAF4;
  --cream:         #FFFAF4;
  --cream-2:       #FFF3E6;
  --surface:       #FFFFFF;
  --bg-page:       var(--cream);
  --bg-alt:        #FFF3E6;
  --bg-subtle:     #FFF6EC;

  --ink:           #1B1410;
  --ink-secondary: #5A4D44;
  --muted-gray:    #8B7D71;
  --muted:         #8B7D71;
  --thin-line:     #EFE3D6;
  --border:        #EFE3D6;
  --border-light:  #F6ECE1;
  --card-border:   #EFE3D6;

  --mint:          #258C73;

  --radius-sm:     8px;
  --radius-cta:    999px; /* Pill buttons matching main website */
  --radius-md:     16px;
  --radius-card:   22px;
  --radius-lg:     22px;
  --radius-xl:     30px;

  /* Typography Matching Main Website premium.css */
  --font-display:  "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif:    "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:       cubic-bezier(0.76, 0, 0.24, 1);
  --shadow-soft:   0 1px 2px rgba(60, 30, 10, 0.04), 0 12px 40px -12px rgba(120, 60, 20, 0.14);
  --shadow-lift:   0 2px 6px rgba(60, 30, 10, 0.05), 0 30px 60px -20px rgba(226, 90, 12, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #F36C21 #FFF9F4;
}

body.reliv-journey-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Film Grain Noise Overlay */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.12;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.2' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography Helpers */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: -0.01em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =====================================================================
   TOPBAR
   ===================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(255, 249, 244, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--thin-line);
  z-index: 100;
  transition: background 0.3s ease;
}

.topbar-inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 28px;
  width: auto;
}

.fallback-wordmark {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.fallback-wordmark b {
  color: var(--orange);
}

.brand-divider {
  color: rgba(226, 90, 12, 0.35);
  font-weight: 300;
  font-size: 16px;
}

.brand-subtitle {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #9A7159;
  text-transform: uppercase;
}

/* Route Switcher in Header */
.header-left, .topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.left-nav-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 90, 12, 0.2);
  color: var(--ink);
  height: 42px;
  padding: 0 16px 0 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(90, 40, 10, 0.04);
  transition: all 0.35s var(--ease-out);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 650;
}

.left-nav-btn:hover {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(226, 90, 12, 0.28);
}

.left-nav-btn:active {
  transform: scale(0.96);
}

.left-nav-dots {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.left-nav-dots span {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--orange);
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}

.left-nav-btn:hover .left-nav-dots span:nth-child(1) { transform: translateY(-1.5px); }
.left-nav-btn:hover .left-nav-dots span:nth-child(2) { transform: scale(1.3); }
.left-nav-btn:hover .left-nav-dots span:nth-child(3) { transform: translateY(1.5px); }

.route-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(90, 40, 10, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 4px;
}

.route-pill {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease-out);
  background: transparent;
}

.route-pill .route-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.25s;
}

.route-pill:hover {
  color: var(--orange);
  background: var(--orange-subtle);
}

.route-pill.active {
  background: linear-gradient(135deg, #FF7A1A 0%, #E25A0C 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(226, 90, 12, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.route-pill.active .route-dot {
  background: #FFFFFF !important;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8) !important;
}

.back-text-mobile {
  display: none !important;
}

.back-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(226, 90, 12, 0.08);
  border: 1px solid rgba(226, 90, 12, 0.24);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(226, 90, 12, 0.08);
  transition: all 0.3s var(--ease-out);
}

.back-link:hover {
  background: var(--orange) !important;
  color: #FFFFFF !important;
  border-color: var(--orange) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(226, 90, 12, 0.35);
}

.back-link:hover .back-arrow {
  transform: translate(2px, -2px);
}

/* Top Progress Track */
.top-progress-track {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.top-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFB067, var(--orange));
  transform-origin: 0 50%;
  transition: width 0.08s linear;
}

/* =====================================================================
   INTRO HERO SECTION
   ===================================================================== */
.intro-hero {
  padding: clamp(140px, 18vh, 190px) 24px clamp(48px, 8vh, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro-inner {
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--orange-tint);
  border: 1px solid rgba(226, 90, 12, 0.22);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.8vw, 7rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 24px;
}

.intro-lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.65;
  color: var(--muted-gray);
  max-width: 620px;
  margin: 0 auto 36px;
}

.intro-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scroll-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: var(--radius-cta);
  background: var(--brand-orange);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(243, 108, 33, 0.28);
  transition: all 0.25s var(--ease-out);
}

.scroll-prompt-btn:hover {
  background: var(--burnt-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 68, 23, 0.36);
}

.prompt-arrow {
  font-size: 16px;
  animation: prompt-bob 2s ease-in-out infinite;
}

@keyframes prompt-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.scroll-hint {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A57C63;
}

/* =====================================================================
   STORY & VERTICAL STOPS
   ===================================================================== */
.story-wrapper {
  position: relative;
  width: 100%;
}

.story {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  isolation: isolate;
  padding: 20px 0 16vh;
  transition: opacity 0.3s ease;
}

.story.is-switching {
  opacity: 0.25;
}

/* Dynamic Ambient Glow Canvas behind Story */
.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(255, 230, 210, 0.45) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Flow SVG (Full Story Height) — Positioned behind cards in the runway */
.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.flow-path-base {
  fill: none;
  stroke: #F4DCB8;
  stroke-width: 3.5;
  stroke-dasharray: 4 12;
  stroke-linecap: round;
  opacity: 0.85;
}

.flow-path-highlight {
  fill: none;
  stroke: var(--orange-light);
  stroke-width: 4.8;
  stroke-dasharray: 4 12;
  stroke-linecap: round;
  opacity: 0.98;
  filter: drop-shadow(0 0 5px rgba(255, 122, 26, 0.7));
}

/* Stop Element */
.stop {
  position: relative;
  z-index: 2;
  padding: 32px clamp(16px, 3.5vw, 40px);
}

.stop-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Editorial Split Card per Blueprint: 65% clean space, square-ish 18px radius, tactile paper grain */
.stop-card {
  width: 100%;
  background-color: var(--surface);
  background-image: 
    radial-gradient(circle at top right, rgba(255, 246, 237, 0.75) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  border: 1px solid var(--thin-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.2vw, 42px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.stop-card::before,
.outro-app-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -200px) var(--mouse-y, -200px), rgba(226, 90, 12, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.stop-card:hover::before,
.outro-app-box:hover::before {
  opacity: 1;
}

.stop-card:hover,
.outro-app-box:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lift) !important;
  border-color: rgba(226, 90, 12, 0.35) !important;
}

/* Editorial Copy Column (Left) */
.stop-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 0.85;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stop.visible .stop-copy {
  opacity: 1;
  transform: translateY(0);
}

.card-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--thin-line);
  color: var(--burnt-orange);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-serial-tag {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9C8372;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(234, 226, 217, 0.45);
  border: 1px solid rgba(234, 226, 217, 0.85);
}

.badge-index {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--brand-orange);
}

.badge-sep {
  opacity: 0.4;
  font-weight: 300;
}

.badge-label {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.14em;
}

/* Lando Norris Architectural Precision Crosshairs */
.card-crosshair, .corner-bracket {
  position: absolute;
  font-family: monospace;
  font-size: 14px;
  line-height: 1;
  color: #C8BDB2;
  pointer-events: none;
  user-select: none;
  z-index: 4;
}

.card-crosshair.top-left, .corner-bracket.top-left {
  top: 12px;
  left: 14px;
}

.card-crosshair.bottom-right, .corner-bracket.bottom-right {
  bottom: 12px;
  right: 14px;
}

.stop-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 16px;
}

.stop-lead {
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.65;
  color: var(--muted-gray);
  margin: 0 0 24px;
}

/* Campus Route Selector inside Stop 1 Copy */
.campus-options-bar {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(246, 230, 218, 0.6);
  border: 1px solid rgba(226, 90, 12, 0.22);
  margin-bottom: 20px;
}

.campus-btn {
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #6C5B4F;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.campus-btn:hover {
  background: #FFF0E4;
  color: var(--orange);
}

.campus-btn[aria-pressed="true"] {
  background: var(--orange);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(226, 90, 12, 0.35);
}

/* Handoff Micro-Pill */
.stop-handoff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #9A5A35;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 240, 228, 0.5);
  border: 1px solid rgba(226, 90, 12, 0.14);
}

.handoff-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 10px;
}

/* Visual Stage Column (Right) */
.stop-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #FFF5EC;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  aspect-ratio: 16 / 10;
}

.stop-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  transform: scale(0.99);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stop.visible .stop-art {
  opacity: 1;
  transform: scale(1);
}

/* Edge Tag Badge */
.edge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 250, 245, 0.95);
  border: 1px solid rgba(226, 90, 12, 0.25);
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(67, 39, 22, 0.08);
  backdrop-filter: blur(8px);
}

/* Invisible Pin Anchor inside the Media Frame */
.pin-anchor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

/* Handoff Pill under card */
.stop-handoff {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #9A5A35;
  letter-spacing: 0.02em;
}

.handoff-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-tint);
  border: 1px solid rgba(226, 90, 12, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 12px;
}

/* =====================================================================
   CALIBRATED RUNWAY (NO EMPTY ABYSS)
   ===================================================================== */
.runway {
  height: clamp(180px, 26vh, 260px);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.runway-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(226, 90, 12, 0.16);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A76742;
  box-shadow: 0 4px 14px rgba(67, 39, 22, 0.05);
}

.runway-arrow {
  color: var(--orange);
  font-size: 13px;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* =====================================================================
   TRAVELING OBJECT (GRAB&GO SMOOTH PHYSICS)
   ===================================================================== */
.traveler {
  position: absolute;
  z-index: 50;
  left: 0;
  top: 0;
  width: var(--traveler-size, 220px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.traveler-halo {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.traveler-card {
  width: 100%;
  filter: drop-shadow(0 20px 30px rgba(131, 62, 22, 0.28));
  display: flex;
  justify-content: center;
}

.traveler-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.traveler-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid rgba(226, 90, 12, 0.25);
  box-shadow: 0 4px 16px rgba(131, 62, 22, 0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

/* =====================================================================
   STOP 05 STREAMLINED COMPANION ACTION (PHONE STAGE)
   ===================================================================== */
.stop-companion-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 22px;
  flex-wrap: wrap;
}

.stop-companion-box .btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 13.5px;
}

.companion-telemetry-pill {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-gray);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-alt);
  border: 1px solid var(--thin-line);
}

/* Precision Viewfinder Scan Frame */
.scan-frame {
  position: relative;
  padding: 4px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 90, 12, 0.24);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(67, 39, 22, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-frame.mini-scan-frame {
  padding: 3px;
  border-radius: 8px;
}

.scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--orange-bright) 50%, transparent 100%);
  box-shadow: 0 0 6px var(--orange-bright);
  animation: scan-laser 2.8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes scan-laser {
  0% { top: 4px; opacity: 0.2; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0.2; }
}

.app-qr-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.app-qr-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #9A7159;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-platform-guides {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Lando Norris / Apple / Android Vector Hardware Chips */
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 90, 12, 0.18);
  box-shadow: 0 2px 8px rgba(67, 39, 22, 0.04);
  font-size: 11.5px;
  color: var(--ink);
  transition: all 0.25s var(--ease-out);
}

.platform-chip.mini-chip {
  padding: 6px 12px;
  font-size: 11px;
}

.platform-chip.inline-chip {
  padding: 8px 16px;
  border-radius: 100px;
}

.platform-chip:hover {
  background: #FFF7EE;
  border-color: var(--orange);
  transform: translateY(-1px);
}

.platform-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(226, 90, 12, 0.08);
  color: var(--ink);
  flex-shrink: 0;
}

.platform-svg.laptop-icon {
  color: var(--primary);
  background: rgba(226, 90, 12, 0.1);
}

.platform-svg.apple-icon {
  color: #1B1410;
  background: rgba(0, 0, 0, 0.06);
}

.platform-svg.android-icon {
  color: #2E7D32;
  background: rgba(46, 125, 50, 0.1);
}

.platform-chip strong {
  color: var(--ink);
  font-weight: 700;
}

/* =====================================================================
   KINETIC TELEMETRY TICKER (LANDO NORRIS EDITORIAL MARQUEE)
   ===================================================================== */
.telemetry-ticker-band {
  width: 100%;
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--thin-line);
  border-bottom: 1px solid var(--thin-line);
  padding: 13px 0;
  position: relative;
  z-index: 3;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-marquee 30s linear infinite;
}

.telemetry-ticker-band:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  white-space: nowrap;
}

.ticker-item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.ticker-sep {
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-orange);
  opacity: 0.6;
}

@keyframes ticker-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* =====================================================================
   OUTRO / CLOSING
   ===================================================================== */
.outro-section {
  position: relative;
  z-index: 2;
  border-top: none;
  background: var(--bg-alt); /* Studio ivory #F6F2ED chapter transition */
  padding: 80px 24px 110px;
  text-align: center;
}

.outro-inner {
  max-width: 760px;
  margin: 0 auto;
}

.outro-title {
  font-family: var(--font-display);
  margin: 20px 0 16px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.outro-lead {
  font-family: var(--font-sans);
  color: var(--muted-gray);
  font-size: clamp(15.5px, 1.2vw, 18px);
  line-height: 1.65;
  margin: 0 auto 32px;
  max-width: 640px;
}

.outro-app-box {
  max-width: 620px;
  margin: 0 auto 36px;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background-color: var(--surface);
  background-image: 
    radial-gradient(circle at top right, rgba(255, 246, 237, 0.75) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  border: 1px solid var(--thin-line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.outro-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.outro-qr-img {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(226, 90, 12, 0.16);
  padding: 4px;
  background: #FFFFFF;
}

.outro-qr-caption {
  font-size: 10px;
  font-weight: 750;
  color: #9A7159;
  text-align: center;
  max-width: 100px;
  line-height: 1.35;
}

.outro-app-info {
  flex: 1;
}

.outro-app-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.outro-app-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.outro-app-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}

.outro-platform-pills, .outro-download-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-chip.direct-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 90, 12, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.platform-chip.direct-chip:hover {
  background: #FFF7EE;
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(226, 90, 12, 0.12);
}

.direct-chip-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  text-align: left;
}

.direct-chip-text strong {
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.3;
}

.direct-chip-text span {
  font-size: 10.5px;
  color: var(--muted);
}

.chip-dl-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(226, 90, 12, 0.1);
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-out);
}

.platform-chip.direct-chip:hover .chip-dl-arrow {
  background: var(--orange);
  color: #FFFFFF;
  transform: translateY(2px);
}

.platform-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: rgba(255, 240, 228, 0.6);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(226, 90, 12, 0.12);
  width: fit-content;
}

.outro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Tactile Button System matching premium.css */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-cta); /* 14px soft rounded per blueprint */
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0 28px;
  min-height: 48px; /* Touch targets >= 44x44px */
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
  will-change: transform;
}

.btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #FF7A1A 0%, #E25A0C 100%) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 28px -8px rgba(226, 90, 12, 0.52), inset 0 1px 1px rgba(255, 255, 255, 0.42) !important;
  border-radius: 999px !important;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF6600 0%, #C84C06 100%) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 40px -8px rgba(226, 90, 12, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(226, 90, 12, 0.22) !important;
  color: var(--ink) !important;
  box-shadow: 0 2px 10px rgba(90, 40, 10, 0.04) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-radius: 999px !important;
  transition: all 0.35s var(--ease-out) !important;
}

.btn-secondary:hover {
  background: var(--orange-subtle) !important;
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px -8px rgba(226, 90, 12, 0.24) !important;
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 15px;
}

.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.btn-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* =====================================================================
   PROGRESS RAIL (RIGHT FIXED)
   ===================================================================== */
.progress-rail {
  position: fixed;
  right: clamp(12px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  group: rail-item;
}

.rail-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 250, 245, 0.95);
  border: 1px solid rgba(226, 90, 12, 0.22);
  padding: 4px 10px;
  border-radius: 100px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 4px 12px rgba(67, 39, 22, 0.08);
  white-space: nowrap;
}

.rail-item:hover .rail-label,
.rail-item.active .rail-label {
  opacity: 1;
  transform: translateX(0);
}

.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 100px;
  background: #E4BEA3;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rail-item:hover .rail-dot {
  background: var(--orange);
  transform: scale(1.3);
}

.rail-item.active .rail-dot {
  height: 26px;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(226, 90, 12, 0.5);
}

/* =====================================================================
   BOTTOM STATUS INDICATOR (LEFT FIXED)
   ===================================================================== */
.mode-indicator {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255, 249, 244, 0.94);
  border: 1px solid var(--thin-line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(85vw, 440px);
  pointer-events: auto;
  font-family: var(--font-display);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 8px rgba(243, 108, 33, 0.5);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-text {
  font-size: 11.5px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop,
.outro,
.intro-hero {
  scroll-margin-top: 80px;
}

/* =====================================================================
   RESPONSIVE DESIGN
   ===================================================================== */
@media (max-width: 920px) {
  .topbar-inner {
    padding: 0 16px;
  }
  .brand-subtitle,
  .brand-divider {
    display: none !important;
  }
  .stop {
    padding: 24px 16px;
  }
  .stop-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .stop-copy {
    align-items: center;
    text-align: center;
  }
  .card-telemetry-row {
    justify-content: center;
  }
  .stop-companion-box {
    justify-content: center;
  }
  .stop-title {
    font-size: clamp(26px, 6vw, 36px);
  }
  .stop-lead {
    margin: 0 auto 16px;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 60px;
  }
  .topbar-inner {
    padding: 0 12px;
    gap: 6px;
  }
  .brand img {
    width: 76px;
    height: auto;
  }
  .route-switcher {
    padding: 2px;
    gap: 2px;
  }
  .route-pill {
    padding: 5px 8px;
    font-size: 10.5px;
    min-height: 28px;
  }
  .back-text-mobile {
  display: none !important;
}

.back-link {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 100px;
    background: rgba(243, 108, 33, 0.08);
    border: 1px solid rgba(243, 108, 33, 0.22);
    color: var(--brand-orange);
    font-weight: 700;
    gap: 4px;
    white-space: nowrap;
  }
  .back-text-desktop {
    display: none !important;
  }
  .back-text-mobile {
    display: inline-block !important;
  }
  .intro-hero {
    padding: 95px 16px 36px;
  }
  .intro-title {
    font-size: clamp(34px, 9vw, 48px);
  }
  .intro-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .stop-card {
    border-radius: 20px;
    padding: 18px 14px;
  }
  .stop-media {
    min-height: 200px;
    aspect-ratio: 16 / 11;
  }
  .campus-options-bar {
    max-width: 100%;
    gap: 4px;
    padding: 4px;
  }
  .campus-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .runway {
    height: clamp(120px, 18vh, 160px);
  }
  .traveler {
    width: clamp(75px, 20vw, 95px) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }
  .traveler-card {
    border-radius: 14px;
    padding: 4px;
  }
  .traveler-img {
    max-height: 90px !important;
  }
  .traveler-badge {
    font-size: 8px;
    padding: 2px 7px;
    margin-top: 5px;
  }
  .progress-rail {
    display: none;
  }
  .mode-indicator {
    bottom: 12px;
    left: 12px;
    right: 12px;
    margin: 0 auto;
    width: fit-content;
    max-width: calc(100vw - 24px);
    font-size: 10.5px;
    padding: 7px 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 18px rgba(67, 39, 22, 0.15);
  }

  /* Outro Mobile Polish */
  .outro {
    padding-top: 50px;
    padding-bottom: 120px;
  }
  .outro-title {
    font-size: clamp(32px, 8.5vw, 44px);
  }
  .outro-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .outro-app-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    gap: 18px;
    max-width: 100%;
  }
  .outro-app-info {
    order: 1;
    width: 100%;
    text-align: center;
  }
  .outro-download-grid {
    width: 100%;
    gap: 10px;
  }
  .platform-chip.direct-chip {
    padding: 10px 14px;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
  }
  .direct-chip-text {
    text-align: left;
    flex: 1;
  }
  .outro-qr-col {
    order: 2;
    width: 100%;
    padding-top: 14px;
    border-top: 1px dashed var(--thin-line);
  }
  .outro-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .outro-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .prompt-arrow, .runway-arrow, .eyebrow-dot, .status-pulse, .ticker-track {
    animation: none;
  }
  .stop-copy, .stop-art, .stop-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* =====================================================================
   SLIDE-OUT NAVIGATION DRAWER (PARITY WITH MAIN WEBSITE)
   ===================================================================== */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 20, 16, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--cream);
  z-index: 9995;
  box-shadow: 20px 0 60px rgba(27, 20, 16, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-out);
  border-radius: 0 28px 28px 0;
  overflow: hidden;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-header {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.nav-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.nav-drawer-close:hover {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange);
  transform: rotate(90deg);
}

.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.drawer-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: dl;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--ease-out);
}

.drawer-link::before {
  counter-increment: dl;
  content: counter(dl, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 22px;
}

.drawer-link:hover {
  background: #FFFFFF;
  color: var(--orange);
  padding-left: 20px;
  box-shadow: 0 4px 14px rgba(60, 30, 10, 0.05);
}

.drawer-link-featured {
  background: rgba(226, 90, 12, 0.08) !important;
  border: 1px solid rgba(226, 90, 12, 0.22) !important;
  color: var(--orange) !important;
  font-weight: 700 !important;
}

.drawer-link-featured:hover {
  background: var(--orange) !important;
  color: #FFFFFF !important;
  border-color: var(--orange) !important;
}

.drawer-tag, .drawer-tag-gold {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: auto;
}

.drawer-tag {
  background: rgba(27, 20, 16, 0.06);
  color: var(--muted);
}

.drawer-tag-gold {
  background: rgba(226, 90, 12, 0.14);
  color: var(--orange);
  border: 1px solid rgba(226, 90, 12, 0.25);
}

.drawer-accreditation {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.drawer-acc-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 12px;
}

.drawer-acc-badge strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.drawer-acc-badge span {
  color: var(--muted);
  font-size: 11px;
}

.nav-drawer-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
}
