/* PresentTool™ Storytelling — section: tour (Home Tour) v1.0.0
   A cinematic, narrated guided walk-through hosted by an on-screen presenter.
   ──────────────────────────────────────────────────────────── */

.story-section--tour {
  position: relative;
  width: 100vw;
  background: radial-gradient(120% 90% at 50% 0%, #15110c 0%, #0A0906 60%, #060504 100%);
  color: #fff;
  padding: 76px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pt-tour__head {
  text-align: center;
  margin-bottom: 22px;
  padding: 0 24px;
}
.pt-tour__kicker {
  font-family: var(--pt-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--story-accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pt-tour__kicker::before,
.pt-tour__kicker::after {
  content: "";
  width: 26px; height: 1px;
  background: rgba(200, 149, 108, 0.5);
}
.pt-tour__title {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
  color: #fff;
}
.pt-tour__lede {
  max-width: 52ch;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.pt-tour__benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 20px;
  max-width: 720px;
}
.pt-tour__benefit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  min-width: 140px;
}
.pt-tour__benefit strong {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--story-accent);
}
.pt-tour__benefit span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.68);
}

/* ────── Chapter rail ────── */
.pt-tour__rail {
  display: flex;
  gap: 8px;
  max-width: 1280px;
  width: 100%;
  padding: 0 24px;
  margin: 0 auto 18px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.pt-tour__rail::-webkit-scrollbar { display: none; }
.pt-tour__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(242, 240, 235, 0.72);
  font-family: var(--pt-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pt-tour__chip:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.pt-tour__chip.is-active {
  background: linear-gradient(135deg, rgba(200, 149, 108, 0.30), rgba(200, 149, 108, 0.16));
  border-color: rgba(200, 149, 108, 0.6);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(200, 149, 108, 0.25), 0 8px 22px rgba(200, 149, 108, 0.18);
}
.pt-tour__chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  font-family: var(--pt-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(242, 240, 235, 0.85);
}
.pt-tour__chip.is-active .pt-tour__chip-num {
  background: var(--story-accent);
  color: #1a1208;
}
.pt-tour__chip-ico { width: 15px; height: 15px; opacity: 0.85; }

/* ────── Stage / video ────── */
.pt-tour__stage {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  isolation: isolate;
}
.pt-tour__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: #000;
  object-fit: cover;
  transition: opacity 0.42s ease;
}
.pt-tour__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(130% 120% at 50% 35%, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 22%, transparent 60%, rgba(0,0,0,0.55) 100%);
}

/* ────── Intro overlay ────── */
.pt-tour__intro {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 32px;
  background: radial-gradient(90% 90% at 50% 50%, rgba(10, 9, 6, 0.55) 0%, rgba(10, 9, 6, 0.82) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.pt-tour__intro[data-state="hidden"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pt-tour__persona {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.pt-tour__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pt-serif);
  font-size: 22px;
  font-weight: 600;
  color: #1a1208;
  background: linear-gradient(135deg, #E6C094, var(--story-accent));
  box-shadow: 0 6px 20px rgba(200, 149, 108, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.pt-tour__persona-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.pt-tour__persona-role {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--story-accent);
}
.pt-tour__persona-name {
  font-family: var(--pt-serif);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.pt-tour__blurb {
  max-width: 460px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(242, 240, 235, 0.82);
}
.pt-tour__start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(200, 149, 108, 0.5);
  background: linear-gradient(135deg, rgba(200, 149, 108, 0.95), rgba(176, 122, 80, 0.95));
  color: #1a1208;
  font-family: var(--pt-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(200, 149, 108, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: pt-tour-breath 3.4s ease-in-out infinite;
}
.pt-tour__start:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 16px 40px rgba(200, 149, 108, 0.5);
}
.pt-tour__start svg { width: 18px; height: 18px; }
@keyframes pt-tour-breath {
  0%, 100% { box-shadow: 0 10px 30px rgba(200, 149, 108, 0.35); }
  50%      { box-shadow: 0 10px 44px rgba(200, 149, 108, 0.6); }
}

/* ────── Narration lower-third ────── */
.pt-tour__caption {
  position: absolute;
  left: 0; right: 0; bottom: 72px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 8%;
  text-align: center;
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.pt-tour__caption[data-state="hidden"] { opacity: 0; visibility: hidden; }
.pt-tour__caption[data-state="out"]    { opacity: 0; transform: translateY(8px); }
.pt-tour__caption[data-state="shown"]  { opacity: 1; transform: translateY(0); }
.pt-tour__caption-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--pt-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--story-accent);
}
.pt-tour__caption-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--story-accent);
  box-shadow: 0 0 0 0 rgba(200, 149, 108, 0.6);
  animation: pt-tour-pulse 2.2s ease-out infinite;
}
@keyframes pt-tour-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 149, 108, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(200, 149, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 149, 108, 0); }
}
.pt-tour__caption-text {
  margin: 0;
  max-width: 760px;
  font-family: var(--pt-serif);
  font-size: clamp(16px, 2.1vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ────── Done overlay ────── */
.pt-tour__done {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(90% 90% at 50% 50%, rgba(10, 9, 6, 0.5) 0%, rgba(10, 9, 6, 0.85) 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.pt-tour__done[data-state="hidden"] { opacity: 0; visibility: hidden; pointer-events: none; }
.pt-tour__done-label {
  font-family: var(--pt-serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 30px);
  color: #fff;
}
.pt-tour__replay {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--pt-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease;
}
.pt-tour__replay:hover { background: rgba(255, 255, 255, 0.14); }
.pt-tour__replay svg { width: 16px; height: 16px; }

/* ────── Controls ────── */
.pt-tour__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pt-tour__controls[data-state="shown"],
.pt-tour__stage:hover .pt-tour__controls,
.pt-tour__stage:focus-within .pt-tour__controls {
  opacity: 1;
  transform: translateY(0);
}

/* Segmented progress */
.pt-tour__seg {
  display: flex;
  gap: 4px;
  width: 100%;
}
.pt-tour__seg-cell {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  overflow: hidden;
}
.pt-tour__seg-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--story-accent);
  border-radius: 999px;
  transition: width 0.12s linear;
}

.pt-tour__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pt-tour__btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease;
  padding: 0;
}
.pt-tour__btn:hover,
.pt-tour__btn:focus-visible { background: rgba(255, 255, 255, 0.20); outline: none; }
.pt-tour__btn svg { width: 15px; height: 15px; pointer-events: none; }
.pt-tour__play .pt-tour__i-pause { display: none; }
.pt-tour__play.is-playing .pt-tour__i-play { display: none; }
.pt-tour__play.is-playing .pt-tour__i-pause { display: block; }
.pt-tour__mute .pt-tour__i-vol-off { display: none; }
.pt-tour__mute.is-muted .pt-tour__i-vol-on { display: none; }
.pt-tour__mute.is-muted .pt-tour__i-vol-off { display: block; }

.pt-tour__chapter-now {
  font-family: var(--pt-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(242, 240, 235, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42%;
}
.pt-tour__spacer { flex: 1; }
.pt-tour__time {
  font-family: var(--pt-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-tour__time-sep { opacity: 0.5; }

/* ────── Mobile ────── */
@media (max-width: 720px) {
  .story-section--tour { padding: 40px 0 34px; }
  .pt-tour__head { margin-bottom: 16px; padding: 0 18px; }
  .pt-tour__title { font-size: 25px; }
  .pt-tour__kicker { font-size: 10.5px; }
  .pt-tour__rail { padding: 0 16px; margin-bottom: 12px; }
  .pt-tour__chip-txt { display: none; }
  .pt-tour__chip { padding: 8px 10px; }
  .pt-tour__stage { border-radius: 0; box-shadow: none; max-width: 100%; }
  .pt-tour__caption { bottom: 64px; padding: 0 6%; }
  .pt-tour__caption-text { font-size: 16px; }
  .pt-tour__avatar { width: 44px; height: 44px; font-size: 18px; }
  .pt-tour__persona-name { font-size: 17px; }
  .pt-tour__blurb { font-size: 13.5px; }
  .pt-tour__chapter-now { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-tour__start { animation: none; }
  .pt-tour__caption-dot { animation: none; }
  .pt-tour__intro, .pt-tour__done, .pt-tour__caption, .pt-tour__controls { transition: none; }
}
