@font-face {
  font-family: "Montserrat";
  src: url("./assets/brand/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #060606;
  --ink-soft: #181818;
  --paper: #ffffff;
  --mist: #f1f1ed;
  --mist-deep: #e4e4de;
  --line: #c9c9c2;
  --muted: #64645f;
  --signal: #d8ff62;
  --white-line: rgba(255, 255, 255, 0.28);
  --font: "Montserrat", Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 3rem, 1480px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.8rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.button-light:hover {
  background: transparent;
  color: #fff;
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: transparent;
  color: var(--ink);
}

.text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 104px;
  padding: 1.35rem clamp(1.5rem, 3vw, 3.8rem);
  color: #fff;
  transition: min-height 200ms ease, padding 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  position: fixed;
  min-height: 72px;
  padding-block: 0.7rem;
  background: rgba(6, 6, 6, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: block;
  justify-self: start;
}

.brand img {
  width: clamp(150px, 13vw, 210px);
  height: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.6rem);
}

.site-header nav a,
.header-cta {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a::after {
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition: right 180ms ease;
}

.site-header nav a:hover::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.35) 52%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 40%),
    url("./assets/brand/hero-zebras.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-top: 5rem;
}

.hero h1,
.intro-grid h2,
.designer-heading h2,
.results-heading h2,
.lead-copy h2,
.source-copy h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(4.6rem, 9vw, 9.4rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 690px;
  margin: 2rem 0 2.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
}

.hero-proof {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4.5rem);
  bottom: 2rem;
  left: clamp(1.5rem, 4vw, 4.5rem);
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 2.4rem;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-proof strong {
  margin-right: 0.35rem;
  color: #fff;
  font-size: 1rem;
}

.intro-section {
  padding-block: clamp(6rem, 11vw, 11rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: clamp(4rem, 9vw, 10rem);
  align-items: end;
}

.intro-grid h2 {
  max-width: 980px;
  font-size: clamp(3rem, 6.3vw, 7rem);
  line-height: 0.93;
}

.intro-copy {
  padding: 0.5rem 0 0.5rem 2.2rem;
  border-left: 2px solid var(--ink);
  color: #4e4e49;
  line-height: 1.8;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.designer-section {
  padding-block: clamp(5rem, 8vw, 8rem);
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.designer-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.45fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.designer-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.4rem;
}

.designer-heading h2 {
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.94;
}

.designer-heading > p:last-child {
  max-width: 510px;
  margin: 0 0 0.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.simulator {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  min-height: 850px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
}

.progress-panel {
  padding: 2.5rem 1.5rem;
  background: var(--ink);
  color: #fff;
}

.progress-kicker {
  margin: 0 0 3rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress-list {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.6rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.38);
  transition: color 180ms ease;
}

.progress-list li.is-current,
.progress-list li.is-complete {
  color: #fff;
}

.progress-list li.is-current span {
  color: var(--signal);
}

.progress-list span {
  font-size: 0.68rem;
  font-weight: 800;
}

.progress-list button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.progress-list button:disabled {
  cursor: default;
}

.progress-meter {
  height: 2px;
  margin-top: 3rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.progress-meter span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--signal);
  transition: width 320ms ease;
}

.progress-caption {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
}

.designer-workspace {
  display: grid;
  grid-template-columns: minmax(570px, 1.35fr) minmax(300px, 0.65fr);
  min-width: 0;
}

.designer-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(2.2rem, 4vw, 4.8rem);
}

.form-step {
  animation: step-in 280ms ease both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-number {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-step h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.step-intro {
  max-width: 670px;
  margin: 1rem 0 2.4rem;
  color: var(--muted);
}

.choice-fieldset {
  min-width: 0;
  margin: 0 0 2.5rem;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  width: 100%;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.country-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.country-choice {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  background-color: #222;
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
}

.country-choice::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.79), rgba(0, 0, 0, 0.22));
  content: "";
  transition: background 180ms ease;
}

.country-choice::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  content: "";
}

.country-choice:has(input:checked)::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.83), rgba(0, 0, 0, 0.42));
}

.country-choice:has(input:checked)::after {
  border-color: var(--signal);
  background: var(--signal);
  content: "✓";
}

.country-choice input,
.interest-grid input,
.level-grid input,
.stacked-radio input,
.budget-grid input,
.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.country-choice > span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
}

.country-choice small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.country-choice strong {
  font-size: 1rem;
}

.country-tanzania { background-image: url("./assets/trips/comfort-zanzibar.jpg"); }
.country-kenya { background-image: url("./assets/trips/tanzania-infinita.jpg"); }
.country-uganda { background-image: url("./assets/trips/uganda.jpg"); }
.country-south-africa { background-image: url("./assets/trips/cape-town-aerial.jpg"); }
.country-namibia { background-image: url("./assets/trips/namibia-wild-luxury.jpg"); }
.country-southern { background-image: url("./assets/trips/southern-africa-four-countries.jpg"); }
.country-islands { background-image: url("./assets/trips/tanzania-maldives.jpg"); }
.country-surprise { background-image: url("./assets/brand/karibu-pattern.jpg"); }

.field-error,
.lead-error {
  min-height: 1.25rem;
  margin: -1.6rem 0 1.2rem;
  color: #b42020;
  font-size: 0.78rem;
  font-weight: 700;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.segmented-control label {
  position: relative;
}

.segmented-control span {
  display: grid;
  min-height: 62px;
  place-items: center;
  padding: 0.8rem;
  border-right: 1px solid var(--line);
  font-size: 0.77rem;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

.segmented-control label:last-child span {
  border-right: 0;
}

.segmented-control input:checked + span {
  background: var(--ink);
  color: #fff;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.interest-grid label {
  position: relative;
}

.interest-grid span {
  display: grid;
  min-height: 78px;
  align-content: center;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.interest-grid input:checked + span {
  border-color: var(--ink);
  background: var(--mist);
  box-shadow: inset 4px 0 0 var(--ink);
}

.interest-grid b {
  font-size: 0.87rem;
}

.interest-grid small {
  color: var(--muted);
  font-size: 0.7rem;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.level-grid label {
  position: relative;
}

.level-grid span {
  display: flex;
  min-height: 195px;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--line);
  cursor: pointer;
}

.level-grid input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.level-grid small {
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.level-grid input:checked + span small,
.level-grid input:checked + span em {
  color: rgba(255, 255, 255, 0.62);
}

.level-grid b {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.level-grid em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.5;
}

.two-column-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.compact-fieldset {
  margin-bottom: 0;
}

.stacked-radio {
  border-top: 1px solid var(--line);
}

.stacked-radio label {
  position: relative;
}

.stacked-radio span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.stacked-radio input:checked + span {
  background: var(--ink);
  color: #fff;
}

.stacked-radio small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.stacked-radio input:checked + span small {
  color: rgba(255, 255, 255, 0.62);
}

.traveller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.traveller-row > span {
  display: grid;
}

.traveller-row b {
  font-size: 0.85rem;
}

.traveller-row small {
  color: var(--muted);
  font-size: 0.66rem;
}

.counter {
  display: grid;
  grid-template-columns: 38px 46px 38px;
  height: 40px;
  border: 1px solid var(--line);
}

.counter button,
.counter input {
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.counter button:hover {
  background: var(--mist);
}

.counter input {
  width: 100%;
  border-inline: 1px solid var(--line);
  appearance: textfield;
}

.counter input::-webkit-inner-spin-button,
.counter input::-webkit-outer-spin-button {
  appearance: none;
}

.date-grid,
.lead-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-field {
  display: grid;
  gap: 0.5rem;
}

.input-field > span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input-field input,
.input-field select,
.input-field textarea {
  width: 100%;
  min-height: 55px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 0.9rem;
}

.input-field select {
  padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  appearance: none;
}

.date-grid {
  margin-bottom: 2.5rem;
}

.range-fieldset {
  padding: 1.4rem;
  background: var(--mist);
}

.range-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.range-value output {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.range-value span,
.range-labels {
  color: var(--muted);
  font-size: 0.68rem;
}

.range-fieldset input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 0;
  background: linear-gradient(to right, var(--ink) var(--range-progress, 29%), var(--line) var(--range-progress, 29%));
  appearance: none;
}

.range-fieldset input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  appearance: none;
}

.range-fieldset input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.budget-grid label {
  position: relative;
}

.budget-grid span {
  display: grid;
  min-height: 55px;
  place-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.budget-grid input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.review-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--line);
}

.review-item {
  min-height: 105px;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review-item:nth-child(even) {
  border-right: 0;
}

.review-item small {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-item strong {
  font-size: 0.88rem;
  line-height: 1.5;
}

.review-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  background: var(--mist);
}

.review-note > span {
  font-size: 1.4rem;
}

.review-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.review-note strong {
  color: var(--ink);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2.5rem;
}

.form-actions .button {
  margin-left: auto;
}

.live-journey {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 850px;
  padding: clamp(1.8rem, 3vw, 3rem);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.live-journey::before {
  position: absolute;
  right: -20%;
  bottom: 5%;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(216, 255, 98, 0.12);
  animation: live-pulse 1.8s ease infinite;
}

@keyframes live-pulse {
  50% { box-shadow: 0 0 0 10px rgba(216, 255, 98, 0); }
}

.live-kicker {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-journey h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.live-description {
  position: relative;
  z-index: 1;
  min-height: 3.5rem;
  margin: 1rem 0 1.8rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.6;
}

.live-route {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  min-height: 48px;
  padding-block: 0.75rem;
  border-block: 1px solid var(--white-line);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.live-route i {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.live-route .route-destination {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.live-route .route-destination::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.route-placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.live-collage {
  position: relative;
  z-index: 1;
  height: 210px;
  margin-block: 1.8rem;
}

.live-collage img {
  position: absolute;
  width: 70%;
  height: 82%;
  object-fit: cover;
  transition: opacity 240ms ease, transform 240ms ease;
}

.live-collage img:first-child {
  inset: 0 auto auto 0;
}

.live-collage img:last-child {
  right: 0;
  bottom: 0;
  width: 54%;
  height: 62%;
  border: 7px solid var(--ink);
}

.live-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--white-line);
}

.live-facts div {
  padding: 1rem 0.5rem 1rem 0;
  border-right: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
}

.live-facts div:nth-child(even) {
  padding-left: 1rem;
  border-right: 0;
}

.live-facts dt {
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-facts dd {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
}

.live-moments {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.3rem;
}

.live-moments span {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.61rem;
  font-weight: 700;
}

.live-journey.is-updating [data-live-title] {
  animation: live-update 300ms ease;
}

@keyframes live-update {
  50% { opacity: 0.25; transform: translateY(4px); }
}

.results-section {
  padding-block: clamp(6rem, 10vw, 10rem);
  background: #fff;
}

.results-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.42fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

.results-heading h2 {
  max-width: 1000px;
  font-size: clamp(3.2rem, 6.6vw, 7rem);
  line-height: 0.9;
}

.results-heading > p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.result-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}

.result-card.is-best {
  border-color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  transform: translateY(-1rem);
}

.result-image {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #222;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.result-card:hover .result-image img {
  transform: scale(1.045);
}

.result-rank,
.result-affinity {
  position: absolute;
  z-index: 1;
  top: 1rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-rank {
  left: 1rem;
  background: #fff;
  color: var(--ink);
}

.result-affinity {
  right: 1rem;
  background: var(--signal);
  color: var(--ink);
}

.result-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.result-kicker {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-content h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.result-intro {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.match-reasons {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.match-reasons li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.match-reasons li::before {
  position: absolute;
  left: 0;
  color: var(--muted);
  content: "·";
}

.result-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.result-facts div:last-child {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.result-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-facts strong {
  font-size: 0.9rem;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.result-actions button,
.result-actions a {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.result-actions > * + * {
  border-left: 1px solid var(--line);
}

.result-actions .primary-action {
  background: var(--ink);
  color: #fff;
}

.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.lead-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: clamp(5rem, 9vw, 9rem);
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--ink);
  color: #fff;
}

.lead-copy h2 {
  max-width: 680px;
  font-size: clamp(2.8rem, 5.2vw, 5.7rem);
  line-height: 0.92;
}

.lead-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.lead-copy ul {
  display: grid;
  gap: 0.7rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.lead-copy li {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--white-line);
  font-size: 0.78rem;
  font-weight: 700;
}

.lead-form {
  align-self: center;
}

.lead-form .input-field > span {
  color: rgba(255, 255, 255, 0.65);
}

.lead-form .input-field input,
.lead-form .input-field select,
.lead-form .input-field textarea {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: transparent;
  color: #fff;
}

.lead-form .input-field select {
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
}

.lead-form option {
  color: var(--ink);
}

.message-field {
  margin-top: 1rem;
}

.message-field textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1.4rem 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  line-height: 1.5;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--signal);
}

.lead-error {
  min-height: 1.4rem;
  margin: 0 0 0.6rem;
  color: #ff9a9a;
}

.lead-submit {
  width: 100%;
}

.form-privacy {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  text-align: center;
}

.lead-success {
  align-self: center;
  padding: 2rem;
  border: 1px solid var(--white-line);
}

.lead-success h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.lead-success > p:not(.eyebrow) {
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.lead-success .button {
  width: 100%;
  margin-top: 0.65rem;
}

.source-section {
  padding-block: clamp(6rem, 11vw, 11rem);
  background: var(--mist);
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
}

.source-image {
  position: relative;
  min-height: 700px;
  background-image: url("./assets/brand/karibu-grafismo-negro.png");
  background-size: cover;
}

.source-image img {
  position: absolute;
  inset: 8% 9%;
  width: 82%;
  height: 84%;
  object-fit: cover;
}

.source-copy h2 {
  max-width: 800px;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 0.93;
}

.source-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 1.6rem 0 2.6rem;
  color: var(--muted);
  line-height: 1.75;
}

.source-copy ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.source-copy li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.source-copy li > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.source-copy strong {
  font-size: 0.88rem;
}

.source-copy li p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.trip-dialog {
  width: min(1100px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
}

.trip-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: fixed;
  top: max(1.4rem, env(safe-area-inset-top));
  right: max(1.4rem, env(safe-area-inset-right));
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--ink);
  color: #fff;
  font-size: 1.7rem;
}

.dialog-hero {
  position: relative;
  min-height: 440px;
  color: #fff;
}

.dialog-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.12));
  content: "";
}

.dialog-hero-copy {
  position: absolute;
  right: 3rem;
  bottom: 2.5rem;
  left: 3rem;
  z-index: 1;
}

.dialog-hero h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.dialog-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
  padding: 3rem;
}

.dialog-intro {
  margin-top: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.detail-block {
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.detail-block h3,
.dialog-aside h3 {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-block p,
.detail-block li {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.detail-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.journey-segments {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.journey-segments li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.journey-segments span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.journey-segments strong {
  color: var(--ink);
}

.dialog-aside {
  align-self: start;
  padding: 1.5rem;
  background: var(--mist);
}

.dialog-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 1.5rem;
}

.dialog-facts div {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.dialog-facts dt {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.dialog-note {
  color: var(--muted);
  font-size: 0.7rem;
}

.dialog-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.dialog-actions a {
  width: 100%;
}

.dialog-actions .dossier-link {
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  padding-block: 4rem 1.5rem;
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-grid img {
  width: 190px;
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-grid span {
  margin-bottom: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--white-line);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.65rem;
}

@media (max-width: 1280px) {
  .simulator {
    grid-template-columns: 185px minmax(0, 1fr);
  }

  .designer-workspace {
    grid-template-columns: minmax(500px, 1fr) minmax(270px, 0.58fr);
  }

  .designer-form {
    padding: 2.8rem;
  }

  .live-journey {
    padding: 2rem;
  }

  .result-image {
    height: 280px;
  }
}

@media (max-width: 1080px) {
  .site-header nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .simulator {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 2rem;
    align-items: center;
    padding: 1.2rem 1.5rem;
  }

  .progress-kicker,
  .progress-caption {
    display: none;
  }

  .progress-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
  }

  .progress-list li {
    grid-template-columns: auto 1fr;
  }

  .progress-list button {
    font-size: 0.66rem;
  }

  .progress-meter {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .designer-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-journey {
    position: relative;
    order: -1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
  }

  .live-status {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .live-kicker,
  .live-journey h3,
  .live-description,
  .live-route {
    grid-column: 1;
  }

  .live-collage {
    grid-column: 2;
    grid-row: 2 / span 4;
    height: 220px;
    margin: 0;
  }

  .live-facts,
  .live-moments {
    grid-column: 1 / -1;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-card:last-child {
    grid-column: 1 / -1;
  }

  .result-card.is-best {
    transform: none;
  }

  .lead-panel,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .source-image {
    min-height: 600px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 1.5rem, 1480px);
  }

  .site-header,
  .site-header.is-scrolled {
    min-height: 72px;
    padding: 0.8rem 1rem;
  }

  .brand img {
    width: 142px;
  }

  .header-cta {
    padding: 0.65rem 0.75rem;
    font-size: 0.62rem;
  }

  .hero {
    min-height: 700px;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
  }

  .hero-lede {
    max-width: 96%;
    font-size: 1rem;
  }

  .hero-proof {
    justify-content: space-between;
    gap: 0.6rem;
  }

  .intro-grid,
  .designer-heading,
  .results-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-grid h2,
  .designer-heading h2,
  .results-heading h2,
  .source-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.7rem);
  }

  .intro-copy {
    padding-left: 1.2rem;
  }

  .designer-heading .eyebrow {
    grid-column: auto;
    margin-bottom: -1rem;
  }

  .simulator {
    width: 100%;
  }

  .progress-panel {
    overflow: hidden;
    padding-inline: 0.8rem;
  }

  .progress-list {
    gap: 0;
  }

  .progress-list li {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.1rem;
  }

  .progress-list button {
    font-size: 0.56rem;
  }

  .live-journey {
    position: sticky;
    top: 70px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
    padding: 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  }

  .live-status {
    grid-column: 1 / -1;
    margin-bottom: 0.3rem;
  }

  .live-kicker,
  .live-description,
  .live-route,
  .live-collage,
  .live-facts,
  .live-moments {
    display: none;
  }

  .live-journey h3 {
    grid-column: 1;
    font-size: 1.55rem;
  }

  .live-journey::after {
    grid-column: 2;
    align-self: center;
    color: var(--signal);
    font-size: 0.66rem;
    font-weight: 800;
    content: "EN DIRECTO";
  }

  .designer-form {
    padding: 2rem 1rem 2.5rem;
  }

  .form-step h3 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .country-fieldset,
  .interest-grid,
  .level-grid,
  .two-column-fields,
  .date-grid,
  .budget-grid,
  .review-card,
  .lead-field-grid {
    grid-template-columns: 1fr;
  }

  .country-choice {
    min-height: 112px;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .segmented-control span {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .segmented-control label:last-child span {
    border-bottom: 0;
  }

  .level-grid span {
    min-height: 145px;
  }

  .two-column-fields {
    gap: 2.5rem;
  }

  .review-item,
  .review-item:nth-child(even) {
    border-right: 0;
  }

  .form-actions {
    position: relative;
    flex-wrap: wrap;
  }

  .form-actions .button {
    flex: 1;
    margin-left: 0;
  }

  .generate-button {
    width: 100%;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-card:last-child {
    grid-column: auto;
  }

  .result-image {
    height: 310px;
  }

  .lead-panel {
    width: 100%;
    padding: 2.5rem 1rem;
  }

  .source-image {
    min-height: 440px;
  }

  .trip-dialog {
    width: 100%;
    max-height: 100dvh;
    margin: 0;
  }

  .dialog-hero {
    min-height: 360px;
  }

  .dialog-hero-copy {
    right: 1.2rem;
    bottom: 1.5rem;
    left: 1.2rem;
  }

  .dialog-body {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
