:root {
  --paper: #ebe7df;
  --surface: #fbfaf6;
  --ink: #111111;
  --muted: #6d6a64;
  --line: #e3ddd2;
  --red: #ef1748;
  --moss: #80a982;
  --blue: #0b2637;
  --shadow: 0 28px 90px rgba(23, 19, 13, 0.16);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 23, 72, 0.08), transparent 24%),
    linear-gradient(135deg, #f2eee7, #e7e0d5);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(22px, 5vw, 68px) 0;
}

.hero-card {
  position: relative;
  min-height: min(780px, calc(100vh - 60px));
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 34%;
  width: 270px;
  height: 220px;
  opacity: 0.08;
  background:
    linear-gradient(30deg, transparent 40%, #111 41% 42%, transparent 43%),
    linear-gradient(145deg, transparent 40%, #111 41% 42%, transparent 43%);
  background-size: 28px 28px;
  transform: rotate(-9deg);
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 42px) clamp(22px, 5vw, 62px) 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span {
  font-size: 1.55rem;
}

.brand em {
  color: #77736b;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
}

.topbar nav {
  display: none;
  gap: 30px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.hero-copy,
.media-panel,
.trip-card,
.note-panel,
.booking-panel {
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}

.topbar nav a {
  transition: color 180ms ease;
}

.topbar nav a:hover {
  color: var(--red);
}

.menu-button {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 19px;
  height: 2px;
  background: var(--ink);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 5vw, 60px) clamp(22px, 5vw, 62px) clamp(28px, 4vw, 44px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 500px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.label::after {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--red);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 3.3rem;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.intro {
  max-width: 420px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1rem;
}

.coordinates {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coordinates strong {
  margin-left: 5px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button,
.round-button {
  border: 0;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button.primary {
  background: var(--red);
  box-shadow: 0 18px 42px rgba(239, 23, 72, 0.24);
}

.round-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.round-button.muted {
  background: var(--moss);
}

.button:hover,
.round-button:hover {
  transform: translate3d(0, -2px, 0);
}

.button.primary:hover {
  box-shadow: 0 22px 58px rgba(239, 23, 72, 0.32);
}

.media-panel {
  position: relative;
  min-height: 330px;
}

.media-frame {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #08131c;
  transform: translateZ(0);
}

.scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.98) contrast(1.1);
  transform: translate3d(0, 0, 0) scale(1.08);
  transition:
    opacity 1100ms ease,
    transform 5200ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1100ms ease;
  will-change: opacity, transform;
}

.scene-image.is-active {
  opacity: 1;
  filter: saturate(1.08) contrast(1.12);
  transform: translate3d(0, 0, 0) scale(1.015);
}

.media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 75% 28%, rgba(239, 23, 72, 0.18), transparent 20%),
    linear-gradient(90deg, rgba(2, 7, 11, 0.12), rgba(2, 7, 11, 0.5));
}

.slide-number {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #fff;
  font-weight: 1000;
}

.slide-number span {
  font-size: 2.25rem;
  line-height: 1;
}

.slide-number small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.route-card {
  position: relative;
  z-index: 3;
  width: min(360px, calc(100% - 34px));
  margin: -48px 18px 0 auto;
  padding: 20px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 44px rgba(20, 9, 8, 0.18);
}

.route-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.8;
}

.route-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.route-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
  opacity: 0.82;
}

.trip-strip {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 1px;
  padding: 0 clamp(22px, 5vw, 62px) clamp(24px, 4vw, 42px);
}

.trip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  padding: 18px;
  background: #f3f0ea;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.trip-card span {
  grid-row: span 2;
  color: var(--red);
  font-weight: 1000;
}

.trip-card h2,
.trip-card p {
  margin-bottom: 0;
}

.trip-card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.trip-card.is-active {
  background: var(--ink);
  color: #fff;
  transform: translate3d(0, -4px, 0);
}

.trip-card.is-active p {
  color: rgba(255, 255, 255, 0.66);
}

.content-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.note-panel,
.booking-panel {
  padding: clamp(26px, 5vw, 54px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.note-panel h2,
.booking-panel h2 {
  max-width: 720px;
  font-size: 2.2rem;
}

.note-panel p {
  max-width: 680px;
  color: var(--muted);
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-form label {
  display: grid;
  gap: 7px;
}

.booking-form span {
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #f5f2ec;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 23, 72, 0.1);
}

@media (min-width: 760px) {
  .topbar nav {
    display: flex;
  }

  h1 {
    font-size: 5.65rem;
  }

  .hero-grid {
    grid-template-columns: minmax(330px, 0.74fr) minmax(420px, 1.26fr);
  }

  .hero-copy {
    margin-right: -120px;
  }

  .media-frame {
    min-height: 500px;
  }

  .trip-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .note-panel h2,
  .booking-panel h2 {
    font-size: 3.45rem;
  }

  .booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-form label:first-child,
  .booking-form .button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .hero-card {
    min-height: 760px;
  }

  h1 {
    font-size: 7.65rem;
  }

  .hero-grid {
    padding-top: 46px;
  }

  .note-panel h2,
  .booking-panel h2 {
    font-size: 4.35rem;
  }

  .media-panel {
    margin-left: -20px;
  }
}

@media (max-width: 759px) {
  .brand em {
    display: none;
  }

  .hero-copy {
    max-width: none;
  }

  .route-card {
    margin-top: -28px;
  }

  .topbar nav {
    position: absolute;
    inset: calc(100% + 10px) 20px auto;
    display: grid;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 220ms ease, visibility 180ms;
  }

  .topbar nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
  }

  .topbar.is-menu-open nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .booking-form input,
  .booking-form select {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.topbar nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
