:root {
  --black: #040507;
  --ink: #0a0c0f;
  --panel: rgba(7, 9, 12, 0.76);
  --gold: #c49c4d;
  --gold-soft: #ead19b;
  --cream: #fff8ea;
  --muted: #d6cab2;
  --line: rgba(234, 209, 155, 0.34);
  --glass: rgba(7, 9, 12, 0.64);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Manrope, Arial, sans-serif;
  color: var(--cream);
  background: var(--black);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: Cinzel, Georgia, serif;
  margin: 0;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 94px;
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 4, 6, 0.96), rgba(3, 4, 6, 0.68));
  backdrop-filter: blur(12px);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.38s ease, opacity 0.38s ease;
}

.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.brand {
  width: 292px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.brand img {
  width: auto;
  height: 100%;
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav-links a,
.quote-link {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.quote-link {
  grid-column: 2;
  justify-self: end;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-soft);
}

.intro {
  min-height: 100vh;
  height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 112px 28px 88px;
  overflow: hidden;
  text-align: center;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(4, 5, 7, 0.08), rgba(4, 5, 7, 0.58) 52%, rgba(4, 5, 7, 0.88)),
    linear-gradient(180deg, rgba(4, 5, 7, 0.3), rgba(4, 5, 7, 0.82)),
    var(--intro-bg, url("./assets/camps-bay-rocks-table-mountain-sunset.jpg")) center/cover no-repeat;
  transform: scale(1.04);
  animation: introDrift 16s ease-in-out infinite alternate;
  transition: opacity 0.42s ease;
}

.intro-bg.is-changing {
  opacity: 0;
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  min-height: calc(100vh - 200px);
  display: grid;
  align-content: center;
  justify-items: center;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.intro-copy.is-changing {
  opacity: 0;
  transform: translateY(14px);
}

.eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.intro h1 {
  margin-top: 8px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.hero-inline-image {
  width: min(360px, 58vw);
  aspect-ratio: 3 / 2;
  margin-top: 18px;
  border: 1px solid rgba(234, 209, 155, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.06), rgba(4, 5, 7, 0.2)),
    var(--image) center/cover no-repeat;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.intro-copy > p:last-of-type {
  width: min(720px, 100%);
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(4, 5, 7, 0.48);
  backdrop-filter: blur(4px);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.54;
}

.primary-action {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 248, 234, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, #f4ddaa, #bf9143);
  color: #151514;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.hero-contact-form {
  width: min(560px, 100%);
  margin-top: 16px;
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(234, 209, 155, 0.22);
  border-radius: 18px;
  background: rgba(4, 5, 7, 0.42);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-contact-form label {
  display: grid;
  gap: 7px;
  text-align: left;
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.hero-contact-form input,
.hero-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(234, 209, 155, 0.3);
  border-radius: 10px;
  background: rgba(4, 5, 7, 0.72);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-contact-form input {
  min-height: 42px;
  padding: 0 13px;
}

.hero-contact-form textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px 13px;
}

.hero-contact-form input::placeholder,
.hero-contact-form textarea::placeholder {
  color: rgba(255, 248, 234, 0.42);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-contact-form input:focus,
.hero-contact-form textarea:focus {
  outline: none;
  border-color: rgba(244, 221, 170, 0.68);
  background: rgba(4, 5, 7, 0.84);
  box-shadow: 0 0 0 3px rgba(191, 145, 67, 0.14);
}

.hero-contact-form button {
  min-height: 44px;
  margin-top: 2px;
  border: 1px solid rgba(255, 248, 234, 0.52);
  border-radius: 999px;
  background: linear-gradient(135deg, #f4ddaa, #bf9143);
  color: #151514;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.hero-contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  display: grid;
  gap: 8px;
  text-align: center;
}

.form-message h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  color: var(--cream);
}

.form-message p {
  margin: 0;
}

.form-message-error {
  margin: 0;
  color: #f4ddaa;
  text-align: center;
  font-size: 0.86rem;
}

.hero-contact-button {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 11px;
}

.enquiry-contact-button {
  justify-self: start;
  align-self: center;
  min-height: 56px;
  padding-inline: 30px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.intro-preview {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  transform: translateX(-50%);
}

.intro-preview button {
  min-width: 112px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
  text-transform: inherit;
  font: inherit;
}

.intro-preview button.active {
  background: var(--gold);
  color: #111;
  border-color: rgba(255, 248, 234, 0.76);
}

.depth-track {
  height: 760vh;
  position: relative;
}

.depth-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #050608;
}

.ambient-layer,
.horizon-image,
.depth-vignette {
  position: absolute;
  inset: 0;
}

.ambient-layer {
  z-index: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(234, 209, 155, 0.1), transparent 26%),
    linear-gradient(120deg, #050608, #11110d 48%, #07090d);
}

.horizon-image {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.24), rgba(5, 6, 8, 0.72)),
    var(--active-bg, url("./assets/chapmans-peak-drive-road.png")) center/cover no-repeat;
  transform: scale(var(--bg-scale, 1.04)) translate3d(var(--bg-x, 0), var(--bg-y, 0), 0);
  filter: saturate(0.95) contrast(1.08);
}

.depth-vignette {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 3, 4, 0.8), transparent 30%, transparent 70%, rgba(2, 3, 4, 0.8)),
    radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(2, 3, 4, 0.78), transparent 28%, rgba(2, 3, 4, 0.84));
  pointer-events: none;
}

.route-corridor {
  display: none;
}

.route-corridor::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10vh;
  width: min(44vw, 560px);
  height: 82vh;
  transform: translateX(-50%) rotateX(71deg);
  transform-origin: center bottom;
  background:
    linear-gradient(90deg, rgba(234, 209, 155, 0.12), transparent 12% 88%, rgba(234, 209, 155, 0.12)),
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(234, 209, 155, 0.42) 28px 38px, transparent 38px 78px);
  clip-path: polygon(46% 0, 54% 0, 96% 100%, 4% 100%);
  filter: blur(0.4px);
}

.route-corridor span {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(234, 209, 155, 0.78);
  box-shadow: 0 0 20px rgba(234, 209, 155, 0.42);
  animation: depthSpark 4.6s linear infinite;
}

.route-corridor span:first-child {
  margin-left: -21vw;
}

.route-corridor span:last-child {
  margin-left: 21vw;
  animation-delay: -2.3s;
}

.depth-hud {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 30;
  width: min(300px, calc(100% - 44px));
}

.depth-title {
  position: absolute;
  top: 82px;
  left: 50%;
  z-index: 34;
  width: min(720px, calc(100% - 64px));
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.depth-title.is-changing {
  opacity: 0;
  transform: translate(-50%, -8px);
}

.depth-title.is-hidden {
  opacity: 0;
  transform: translate(-50%, -8px);
}

.depth-title p {
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.depth-title h2 {
  color: var(--cream);
  font-size: 42px;
  line-height: 0.95;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.progress-shell {
  position: relative;
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.18);
}

.progress-shell span {
  display: block;
  width: calc(var(--progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: inherit;
}

.progress-car {
  position: absolute;
  left: calc(var(--progress, 0) * 100%);
  top: 50%;
  color: var(--gold-soft);
  font-size: 20px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.65));
  transform: translate(-50%, -88%);
  transition: left 0.12s linear;
}

.camera-shell {
  position: absolute;
  inset: 94px 0 0;
  z-index: 10;
  display: grid;
  place-items: center;
  perspective: 820px;
  perspective-origin: 50% 48%;
}

.depth-world {
  position: relative;
  width: 100vw;
  height: 64vh;
  transform-style: preserve-3d;
}

.portal-cards {
  display: contents;
}

.plane {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.hero-plane {
  width: min(660px, calc(100vw - 36px));
  text-align: center;
  pointer-events: none;
}

.hero-plane h2 {
  margin-top: 8px;
  font-size: clamp(1.85rem, 5vw, 4.3rem);
  line-height: 0.94;
}

.hero-plane p:last-child {
  width: min(500px, 100%);
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

.portal-plane {
  width: min(460px, 34vw);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--glass);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.portal-plane.wide {
  width: min(540px, 38vw);
}

.portal-plane.tall {
  width: min(420px, 32vw);
}

.portal-media {
  min-height: 190px;
  border-radius: 10px;
  background: var(--image) center/cover no-repeat;
  border: 1px solid rgba(255, 248, 234, 0.16);
}

.portal-plane.tall .portal-media {
  min-height: 240px;
}

.portal-copy {
  padding: 4px 4px 0;
}

.portal-copy span {
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.portal-copy h3 {
  margin-top: 8px;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
}

.portal-copy p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.46;
}

.enquiry-plane {
  width: min(840px, calc(100vw - 42px));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 248, 234, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(10, 12, 15, 0.94), rgba(20, 17, 10, 0.84)),
    radial-gradient(circle at 10% 0%, rgba(196, 156, 77, 0.24), transparent 34%);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(12px);
  z-index: 8;
  pointer-events: auto;
}

.enquiry-plane * {
  pointer-events: auto;
}

.enquiry-copy h2 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1;
}

.enquiry-copy p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.enquiry-form {
  display: grid;
  gap: 10px;
}

.enquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.enquiry-form input,
.enquiry-form textarea {
  min-height: 44px;
  border: 1px solid rgba(234, 209, 155, 0.32);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(4, 5, 7, 0.9);
  color: var(--cream);
  font: inherit;
}

.enquiry-form textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.enquiry-form button {
  min-height: 46px;
  border: 1px solid rgba(255, 248, 234, 0.56);
  border-radius: 10px;
  background: linear-gradient(135deg, #f5dfad, #bd8f3e);
  color: #161616;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.destination-rail {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.rail-stop {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.72);
  color: var(--gold-soft);
  cursor: pointer;
  backdrop-filter: blur(8px);
  position: relative;
}

.rail-stop span {
  position: absolute;
  right: 52px;
  min-width: max-content;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.88);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rail-stop:hover span,
.rail-stop.active span {
  opacity: 1;
  transform: translateX(0);
}

.rail-stop.active {
  background: var(--gold);
  color: #111;
}

.closing {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 22px;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.9), rgba(4, 5, 7, 0.78)),
    url("./assets/cape-winelands-table-mountain.png") center/cover no-repeat;
}

.closing h2 {
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1;
}

.closing p {
  width: min(620px, 100%);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

@keyframes introDrift {
  from {
    transform: scale(1.04) translate3d(-0.4%, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(0.8%, -0.5%, 0);
  }
}

@keyframes depthSpark {
  0% {
    transform: translate3d(0, 26vh, 0) scale(1.8);
    opacity: 0;
  }

  22% {
    opacity: 0.9;
  }

  100% {
    transform: translate3d(0, -54vh, 0) scale(0.2);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 86px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 18px;
  }

  .brand {
    width: 236px;
    height: 58px;
    justify-content: center;
  }

  .brand img {
    width: auto;
    height: 100%;
    margin-inline: auto;
  }

  .nav-links,
  .quote-link {
    display: none;
  }

  .intro {
    padding: 98px 18px 84px;
    min-height: 100vh;
    height: 100vh;
  }

  .intro-copy {
    min-height: calc(100vh - 184px);
  }

  .intro h1 {
    font-size: 3rem;
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .intro-copy > p:last-of-type {
    width: min(340px, 100%);
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-contact-form {
    width: min(350px, 100%);
    margin-top: 13px;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .hero-contact-form input {
    min-height: 40px;
  }

  .hero-contact-form textarea {
    min-height: 104px;
  }

  .hero-inline-image {
    width: min(250px, 72vw);
    margin-top: 14px;
  }

  .intro-preview {
    width: calc(100% - 28px);
    overflow-x: auto;
    justify-content: center;
    padding-bottom: 4px;
  }

  .depth-title {
    top: 44px;
    width: min(330px, calc(100% - 40px));
  }

  .depth-title p {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .depth-title h2 {
    font-size: 27px;
  }

  .camera-shell {
    inset: 86px 0 0;
    perspective: 720px;
  }

  .portal-plane,
  .portal-plane.wide,
  .portal-plane.tall {
    width: min(360px, 86vw);
  }

  .portal-media,
  .portal-plane.tall .portal-media {
    min-height: 210px;
  }

  .enquiry-plane {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .destination-rail {
    display: none;
  }

  .rail-stop {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 560px) {
  .depth-track {
    height: 680vh;
  }

  .depth-hud {
    left: 16px;
    bottom: 16px;
    width: calc(100% - 92px);
  }

  .destination-rail {
    gap: 8px;
  }

  .rail-stop span {
    display: none;
  }

  .hero-plane h2 {
    font-size: 2rem;
  }

  .intro h1 {
    font-size: 2.65rem;
  }

  .intro-preview button {
    min-width: max-content;
  }

  .portal-copy p {
    font-size: 0.9rem;
  }
}

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