:root {
  color-scheme: dark;
  --bg: oklch(0.075 0 0);
  --surface: oklch(0.135 0.012 115);
  --surface-2: oklch(0.19 0.018 115);
  --ink: oklch(0.965 0 0);
  --muted: oklch(0.78 0.018 115);
  --primary: oklch(0.78 0.158 113);
  --primary-dark: oklch(0.42 0.118 113);
  --accent: oklch(0.68 0.16 31);
  --line: oklch(0.33 0.022 115);
  --shadow: 0 18px 38px oklch(0 0 0 / 0.34);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1180px;
  font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-width: 320px;
  overflow-x: hidden;
}

body::selection {
  background: var(--primary);
  color: var(--bg);
}

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

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

button,
input,
textarea {
  font: inherit;
}

code {
  color: var(--primary);
  font-size: 0.92em;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  block-size: 3px;
  inline-size: calc(var(--scroll, 0) * 100%);
  background: var(--primary);
  z-index: 60;
  transform-origin: left;
}

.topbar {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin-inline: auto;
  padding: 10px 10px 10px 14px;
  border: 1px solid oklch(1 0 0 / 0.16);
  background: oklch(0.08 0 0 / 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.filters {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 760;
}

.nav {
  gap: 6px;
}

.nav a,
.mobile-menu a {
  color: var(--muted);
  padding: 10px 12px;
  transition: color 220ms var(--ease), background 220ms var(--ease);
}

.nav a:hover,
.mobile-menu a:hover {
  color: var(--ink);
  background: oklch(1 0 0 / 0.08);
}

.menu-button {
  display: none;
  inline-size: 42px;
  block-size: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  place-items: center;
  cursor: pointer;
}

.menu-button span:not(.visually-hidden) {
  display: block;
  inline-size: 22px;
  block-size: 2px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 78px 24px auto;
  z-index: 45;
  display: none;
  padding: 8px;
  border: 1px solid oklch(1 0 0 / 0.16);
  background: oklch(0.08 0 0 / 0.92);
}

.hero {
  position: relative;
  min-block-size: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero picture {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  z-index: -3;
  transform: scale(1.03);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, oklch(0.02 0 0 / 0.92), oklch(0.02 0 0 / 0.45) 48%, oklch(0.02 0 0 / 0.2)),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%);
}

.hero-content {
  inline-size: min(760px, calc(100% - 40px));
  margin: 0 auto clamp(120px, 16vh, 180px);
  transform: translateX(clamp(-190px, -10vw, 0px));
  animation: heroIn 1100ms var(--ease) both;
}

.signal {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 760;
}

.signal.dark {
  color: var(--primary-dark);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  line-height: .96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-inline-size: 11ch;
  font-size: clamp(3.7rem, 10vw, 6rem);
}

h2 {
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
}

h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.hero-text {
  max-inline-size: 670px;
  margin: 24px 0 0;
  color: oklch(0.89 0.012 115);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-block-start: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 760;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

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

.button.primary {
  background: var(--primary);
  color: var(--bg);
}

.button.ghost {
  border-color: oklch(1 0 0 / 0.28);
  background: oklch(0.08 0 0 / 0.55);
  color: var(--ink);
}

.hero-panel {
  position: absolute;
  inset: auto 28px 28px auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-inline-size: 430px;
}

.hero-panel span {
  padding: 10px 12px;
  background: oklch(0.09 0 0 / 0.72);
  border: 1px solid oklch(1 0 0 / 0.14);
  color: var(--muted);
  backdrop-filter: blur(16px);
}

.section {
  padding: clamp(74px, 10vw, 132px) max(20px, calc((100vw - var(--max)) / 2));
}

.section-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.54fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-inline: 20px;
}

.section-copy.wide {
  grid-template-columns: 1fr;
  max-inline-size: 880px;
}

.section-copy p:not(.signal) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.routes {
  background: oklch(0.97 0.006 115);
  color: oklch(0.14 0.012 115);
}

.routes .section-copy p:not(.signal),
.route-item span,
.route-stage p,
.route-stage span {
  color: oklch(0.38 0.028 115);
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(34px, 6vw, 70px) 20px 0;
  background: oklch(0.75 0.018 115);
}

.route-item {
  border: 0;
  padding: clamp(18px, 3vw, 28px);
  background: oklch(0.94 0.008 115);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 240ms var(--ease), color 240ms var(--ease);
}

.route-item.active,
.route-item:hover {
  background: var(--primary);
  color: var(--bg);
}

.route-item span {
  display: block;
  margin-block-end: 10px;
  font-weight: 760;
}

.route-item strong {
  display: block;
  max-inline-size: 18ch;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.route-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  min-block-size: 430px;
  margin: 1px 20px 0;
  background: oklch(0.91 0.01 115);
  overflow: hidden;
}

.route-stage img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.route-stage div {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(24px, 4vw, 44px);
}

.route-stage h3 {
  margin-block: 10px 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

.inverted {
  background: var(--bg);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: clamp(34px, 6vw, 70px) 20px 0;
}

.video-card {
  background: var(--surface);
  overflow: hidden;
}

.video-cover {
  position: relative;
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
}

.video-cover img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.video-cover:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.04);
}

.play {
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 58px;
  block-size: 58px;
  transform: translate(-50%, -50%);
  background: var(--primary);
  clip-path: polygon(32% 22%, 32% 78%, 80% 50%);
  box-shadow: 0 0 0 18px oklch(0.78 0.158 113 / 0.24);
}

.video-meta {
  padding: 20px;
}

.video-meta span {
  color: var(--primary);
  font-weight: 760;
}

.video-meta h3 {
  margin-block: 8px 10px;
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.photos {
  background: oklch(0.965 0 0);
  color: oklch(0.12 0 0);
}

.photos .section-copy p:not(.signal) {
  color: oklch(0.36 0 0);
}

.filters {
  gap: 8px;
  flex-wrap: wrap;
  margin: 34px 20px 22px;
}

.filter {
  min-block-size: 40px;
  padding: 0 14px;
  border: 1px solid oklch(0.78 0 0);
  background: transparent;
  color: oklch(0.18 0 0);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: oklch(0.14 0 0);
  color: oklch(0.98 0 0);
  border-color: oklch(0.14 0 0);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 10px;
  margin-inline: 20px;
}

.photo {
  position: relative;
  grid-column: span 1;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: oklch(0.88 0 0);
  cursor: zoom-in;
  overflow: hidden;
}

.photo.wide {
  grid-column: span 2;
}

.photo.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease), filter 650ms var(--ease);
}

.photo::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 10px 10px;
  padding: 9px 10px;
  background: oklch(0.08 0 0 / 0.7);
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.photo:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.photo:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.photo.hidden {
  display: none;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(64px, 8vw, 110px) max(40px, calc((100vw - var(--max)) / 2 + 20px));
  background: var(--primary);
  color: var(--bg);
}

.contact .signal {
  color: oklch(0.22 0.06 113);
}

.contact h2 {
  max-inline-size: 12ch;
  font-size: clamp(2.35rem, 5.4vw, 4.9rem);
}

.contact .button.primary {
  background: var(--bg);
  color: var(--ink);
}

.lightbox,
.video-modal {
  inline-size: min(980px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lightbox::backdrop,
.video-modal::backdrop {
  background: oklch(0 0 0 / 0.82);
}

.lightbox img {
  inline-size: 100%;
  max-block-size: 78vh;
  object-fit: contain;
  background: oklch(0.02 0 0);
}

.lightbox p {
  margin: 0;
  padding: 16px 18px 18px;
  color: var(--muted);
}

.close {
  position: absolute;
  inset: 10px 10px auto auto;
  z-index: 2;
  inline-size: 42px;
  block-size: 42px;
  border: 0;
  background: oklch(0.08 0 0 / 0.8);
  color: var(--ink);
  font-size: 1.65rem;
  cursor: pointer;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: oklch(0.02 0 0);
}

.video-shell video {
  inline-size: 100%;
  block-size: 100%;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(135deg, oklch(0.11 0.02 115), oklch(0.05 0 0));
}

.video-fallback p {
  max-inline-size: 46ch;
  margin: 0;
  color: var(--muted);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateX(clamp(-190px, -10vw, 0px)) translateY(22px); filter: blur(10px); }
  to { opacity: 1; transform: translateX(clamp(-190px, -10vw, 0px)) translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 880px) {
  .topbar {
    inset: 12px 14px auto;
  }

  .nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-menu.open {
    display: grid;
  }

  .hero {
    min-block-size: 94svh;
  }

  .hero-content {
    transform: none;
    animation-name: heroMobileIn;
    margin-block-end: 150px;
  }

  .hero-panel {
    inset: auto 20px 22px;
  }

  .section-copy,
  .route-stage,
  .contact {
    grid-template-columns: 1fr;
  }

  .route-strip {
    grid-template-columns: 1fr;
  }

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

  .photo.wide {
    grid-column: span 2;
  }

  .contact {
    display: grid;
    align-items: start;
    padding-inline: 20px;
  }
}

@keyframes heroMobileIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .button {
    inline-size: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

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

  .photo,
  .photo.wide,
  .photo.tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}
