* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: sans-serif;
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#hero {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background-color: #1a1a1a;
  color: #ffffff;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Positioned as a percentage of the hero's height so it lines up with the
   person in the footage. Starts partway between the top of the head (65%)
   and the previous higher start point (57.67%) — 61.34% is the midpoint. */
.hero-content {
  position: absolute;
  left: 50%;
  top: 61.34%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-name {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
  /* Starting state: fully invisible for the first 5s (see main.js), then
     jumps to 4% opacity, then fades in slowly while the wrapper's "top"
     position (above) carries it upward. */
  opacity: 0;
}

.skip-intro-btn {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.skip-intro-btn:hover {
  background-color: #ffffff;
  color: #111111;
}

/* ===================================================================
   TRAVEL SECTION — layout template modeled on the reference video:
   full-bleed background photo, location info bottom-left, a row of
   destination cards bottom-right, pagination bar along the very bottom.
=================================================================== */
.travel {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  color: #ffffff;
  background-color: #111111;
  display: block;
}

.travel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 25%;
}

/* Darkens the bottom of the frame so the text/cards stay legible over any photo. */
.travel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.travel-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.75rem;
  padding: 3rem 4vw 2.25rem;
  text-align: left;
  /* Entrance state: main.js adds "is-visible" once this scrolls into view. */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.travel-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.travel-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  /* Fixed width (not max-width) so this box is exactly the same size for
     every destination regardless of how long its title/description is. */
  width: 32rem;
  max-width: 100%;
}

/* A short dash sits above the caption (reference layout) rather than a
   vertical rule beside it. */
.travel-caption {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.travel-caption::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background-color: #ffffff;
}

.travel-title {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.travel-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 26rem;
}

.travel-cta-wrap {
  position: relative;
  display: inline-block;
}

/* Hover-to-reveal video thumbnail, shown above the button (see main.js for
   the hover/click wiring). Destinations without a "youtube" link never
   show or populate this, so the button just does nothing for them. */
.travel-video-preview {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.75rem);
  width: 220px;
  max-width: 60vw;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.travel-video-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.travel-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.travel-cta {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.75rem 0.7rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.travel-cta:hover {
  background-color: #ffffff;
  color: #111111;
}

.travel-cta-icon {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #f5c94e, #e08a2e);
}

/* ===================================================================
   SCRUBBER — a full-width bar of one segment per destination, replacing
   the old always-visible card row. Hovering a segment raises that
   destination's card above the bar; clicking jumps to it.
=================================================================== */
.travel-scrubber-wrap {
  position: relative;
  width: 100%;
  /* Nudges the whole row (tick bar + arrows + count) up/down independently
     of the title/description/button above it, without disturbing their
     layout — positive moves it down, negative moves it up. */
  top: 0;
}

.travel-scrubber-row {
  display: flex;
  /* Aligns everything to the bottom of .travel-scrubber's tall invisible
     hover box — i.e. the same baseline the visible tick line itself sits
     on, since the ticks are only 3-11px tall and hug that bottom edge
     (see .travel-scrubber below). Getting the arrows' visual *center* onto
     that same line (not just their bottom edge) is handled separately by
     .travel-arrow's own "top" offset below. */
  align-items: flex-end;
  gap: 1rem;
}

.travel-scrubber {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  /* Taller than the visible ticks so there's a generous hover target —
     the ticks themselves sit along the bottom of this box. */
  height: 2.5rem;
}

.travel-scrub-seg {
  flex: 1 1 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}

/* The visible tick. Sized/painted here rather than on the button itself so
   the button can stay a tall invisible hit area above it. */
.travel-scrub-seg::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 0.2s ease, background-color 0.2s ease;
}

/* Everything up to and including the active destination reads as "progress". */
.travel-scrub-seg.is-filled::after {
  background: rgba(255, 255, 255, 0.7);
}

.travel-scrub-seg.is-active::after {
  height: 7px;
  background: #ffffff;
}

.travel-scrub-seg:hover::after {
  height: 11px;
  background: #ffffff;
}

/* The card that pops up above the hovered segment. main.js sets its left
   position (the -50% keeps it centered on that segment) and its photo. */
.travel-scrub-preview {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  width: clamp(120px, 12vw, 168px);
  aspect-ratio: 3 / 4.2;
  border-radius: 14px;
  overflow: hidden;
  background-color: #1c1c1c;
  background-size: cover;
  background-position: center 25%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.travel-scrub-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Darkens the bottom so the label stays readable over any photo. */
.travel-scrub-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 55%);
}

.travel-scrub-preview-label {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.travel-arrow {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  /* Shifts the arrows down by half their own height, so their visual
     *center* lands on the tick baseline (flex-end above only lines up
     their bottom edge with it). From this centered starting point, change
     this value to nudge both arrows up/down further if needed — positive
     moves down, negative moves up. */
  position: relative;
  top: .8rem;
}

.travel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

