:root {
  --red: #d72638;
  --red-deep: #971b2b;
  --cream: #f4ebdd;
  --ink: #202522;
  --sun: #f5c64e;
  --sea: #35b5c7;
  --paper: #f7f4ef;
  --font-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-sans: Manrope, "Avenir Next", "Helvetica Neue", sans-serif;
  --header-h: 106px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
}

.loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background: var(--paper);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), visibility 700ms;
}

.loader img {
  width: 170px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(19%) sepia(89%) saturate(3399%) hue-rotate(344deg) brightness(92%) contrast(89%);
  opacity: 1;
}

.loader p {
  margin: 0;
  color: rgba(32, 37, 34, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.loader__line {
  width: 170px;
  height: 1px;
  overflow: hidden;
  background: rgba(32, 37, 34, 0.12);
}

.loader__line span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--red);
  animation: loading-line 1.5s ease-in-out infinite;
}

body.is-ready .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  place-items: start center;
  padding: 18px 3.2vw 0;
  pointer-events: none;
}

.floating-nav {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(980px, 90vw);
  min-height: 72px;
  grid-template-columns: 128px 1px minmax(220px, 1fr) 190px;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  overflow: hidden;
  padding: 10px 24px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.76), rgba(247, 243, 238, 0.58) 52%, rgba(255, 255, 255, 0.7));
  box-shadow:
    0 14px 44px rgba(35, 23, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(85, 68, 58, 0.08);
  backdrop-filter: blur(28px) saturate(1.18) contrast(1.03);
  -webkit-backdrop-filter: blur(28px) saturate(1.18) contrast(1.03);
  pointer-events: auto;
}

.floating-nav::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px 12% auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

.floating-nav > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: grid;
  place-items: center;
  width: 128px;
  height: 50px;
  pointer-events: auto;
}

.brand img {
  width: auto;
  height: 50px;
  max-width: 126px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(19%) sepia(89%) saturate(3399%) hue-rotate(344deg) brightness(92%) contrast(89%);
  opacity: 1;
}

.floating-nav__separator {
  width: 1px;
  height: 38px;
  background: rgba(32, 37, 34, 0.14);
}

.location-ticker {
  min-width: 0;
}

.location-ticker__name-viewport {
  display: block;
  height: 27px;
  overflow: hidden;
}

.location-ticker strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 27px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-ticker__descriptor-viewport {
  display: block;
  height: 16px;
  overflow: hidden;
}

.location-ticker__descriptor {
  display: block;
  overflow: hidden;
  color: rgba(32, 37, 34, 0.64);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-ticker strong.is-changing,
.location-ticker__descriptor.is-changing {
  animation: location-change 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-world {
  position: relative;
  height: 1100vh;
}

.world-stage {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  background: #a17860;
  isolation: isolate;
}

.world-media {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.world-video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.world-shade {
  position: fixed;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 11, 10, 0.78) 0%, rgba(14, 11, 10, 0.48) 34%, rgba(14, 11, 10, 0.14) 58%, transparent 72%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.3), transparent 25%, transparent 62%, rgba(12, 10, 9, 0.62));
  pointer-events: none;
}

.intro-copy,
.scene-copy {
  --presence: 0;
  position: fixed;
  z-index: 5;
  left: 7vw;
  top: 50%;
  width: min(660px, 48vw);
  opacity: var(--presence);
  transform: translate3d(0, calc(-50% + (1 - var(--presence)) * 30px), 0);
  filter: blur(calc((1 - var(--presence)) * 3px));
  pointer-events: none;
  will-change: opacity, transform, filter;
  isolation: isolate;
}

.intro-copy::before,
.scene-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -76px -110px -80px -72px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 34% 50%,
    rgba(7, 6, 5, 0.66) 0%,
    rgba(7, 6, 5, 0.48) 38%,
    rgba(7, 6, 5, 0.18) 62%,
    transparent 78%
  );
  filter: blur(18px);
  pointer-events: none;
}

.intro-copy {
  width: min(820px, 62vw);
}

.intro-copy h1,
.scene-copy h2,
.desktop-fallback h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.95;
  text-wrap: balance;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.34),
    0 8px 30px rgba(0, 0, 0, 0.82),
    0 20px 62px rgba(0, 0, 0, 0.56);
}

.intro-copy h1 em,
.scene-copy h2 em,
.desktop-fallback h1 em {
  font-weight: 400;
  font-style: italic;
}

.intro-copy h1 {
  font-size: clamp(64px, 6.2vw, 108px);
}

.scene-copy h2 {
  font-size: clamp(50px, 4.4vw, 76px);
}

.lead,
.scene-copy > p,
.desktop-fallback p {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.62;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.96),
    0 5px 22px rgba(0, 0, 0, 0.84),
    0 12px 38px rgba(0, 0, 0, 0.58);
}

.scene-copy--final h2 {
  font-size: clamp(48px, 4.2vw, 70px);
}

.signature {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.84), 0 8px 30px rgba(0, 0, 0, 0.58);
}

.signature span {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journey-nav {
  position: relative;
  display: flex;
  width: 190px;
  height: 24px;
  align-items: center;
  justify-content: space-between;
}

.journey-nav__track {
  position: absolute;
  top: 50%;
  right: 10px;
  left: 10px;
  height: 1px;
  overflow: hidden;
  background: rgba(32, 37, 34, 0.2);
  transform: translateY(-50%);
}

.journey-nav__track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 100ms linear;
}

.journey-nav button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(248, 245, 241, 0.88);
  box-shadow: 0 2px 8px rgba(38, 29, 25, 0.12);
  cursor: pointer;
  transition: border-color 240ms, background 240ms, box-shadow 240ms, transform 240ms;
}

.journey-nav button span {
  width: 11px;
  height: 11px;
  border: 0;
  background: rgba(32, 37, 34, 0.42);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 7.2 8 1.8l6.5 5.4v7H9.8v-4.2H6.2v4.2H1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 7.2 8 1.8l6.5 5.4v7H9.8v-4.2H6.2v4.2H1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background 240ms;
}

.journey-nav button.is-active,
.journey-nav button:hover,
.journey-nav button:focus-visible {
  border-color: rgba(215, 38, 56, 0.2);
  background: #fff;
  box-shadow: 0 4px 14px rgba(54, 37, 30, 0.16), 0 0 0 3px rgba(215, 38, 56, 0.08);
  transform: translateY(-1px);
}

.journey-nav button.is-active span,
.journey-nav button:hover span,
.journey-nav button:focus-visible span {
  background: var(--red);
  transform: scale(1.12);
}

.stage-footer {
  position: fixed;
  z-index: 8;
  right: 3.2vw;
  bottom: 28px;
  left: 3.2vw;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.contact-card {
  display: grid;
  width: min(860px, calc(100vw - 300px));
  grid-template-columns: auto minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  min-width: 0;
  margin: 0;
  padding: 12px 18px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 2px solid var(--red);
  border-radius: 4px 18px 18px 4px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(15, 12, 11, 0.3);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  font-size: clamp(9px, 0.74vw, 11px);
  font-style: normal;
  line-height: 1.35;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.64);
}

.contact-card__brand {
  color: #fff;
  font-size: 0.88em;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card__address,
.contact-card__phones,
.contact-card__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card__phones {
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-card__phones i {
  color: var(--red);
  font-style: normal;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: #fff;
  outline: none;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue__mouse {
  display: grid;
  width: 18px;
  height: 29px;
  place-items: start center;
  padding-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
}

.scroll-cue__mouse i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: #fff;
  animation: scroll-dot 1.5s ease-in-out infinite;
}

.desktop-fallback {
  display: none;
}

.mobile-preview,
.mobile-contacts {
  display: none;
}

noscript {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 14px;
  color: var(--ink);
  background: var(--cream);
  text-align: center;
}

@keyframes loading-line {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; }
  70% { opacity: 1; transform: translateY(8px); }
}

@keyframes location-change {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  html,
  body {
    min-height: 100%;
    background: var(--paper);
  }

  .loader,
  .site-header,
  .scroll-world {
    display: none;
  }

  .desktop-fallback {
    position: relative;
    display: block;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background-color: #211913;
    background-image:
      linear-gradient(
        180deg,
        rgba(247, 244, 239, 0.94) 0%,
        rgba(247, 244, 239, 0.68) 15%,
        rgba(27, 20, 16, 0.04) 38%,
        rgba(20, 15, 12, 0.57) 60%,
        rgba(15, 12, 10, 0.93) 81%,
        rgba(12, 10, 9, 0.99) 100%
      ),
      url("public/media/stills/mobile-property-preview.jpg");
    background-position: center;
    background-size: cover;
  }

  .mobile-preview {
    position: relative;
    display: grid;
    width: min(100%, 520px);
    min-height: 100svh;
    margin: 0 auto;
    padding:
      calc(34px + env(safe-area-inset-top))
      24px
      calc(20px + env(safe-area-inset-bottom));
    grid-template-rows: auto minmax(120px, 1fr) auto auto;
    gap: 22px;
  }

  .mobile-preview__header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .mobile-preview__logo {
    width: 166px;
    height: auto;
    filter: brightness(0) saturate(100%);
    opacity: 0.92;
  }

  .mobile-preview__content {
    max-width: 450px;
    align-self: end;
  }

  .mobile-preview__content h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(50px, 13.4vw, 68px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.9;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.38);
  }

  .mobile-preview__content h1 em {
    color: var(--red);
    font-weight: 400;
    font-style: italic;
  }

  .mobile-preview__content > p {
    max-width: 440px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.58;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  }

  .mobile-preview__content > .mobile-preview__desktop-copy {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(19px, 5vw, 24px);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
  }

  .mobile-preview__desktop-copy svg {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--red);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
  }

  .mobile-preview__content > .mobile-preview__site-copy {
    max-width: 420px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    line-height: 1.55;
  }

  .mobile-preview__site-copy strong {
    color: #fff;
    font-weight: 700;
  }

  .mobile-contacts {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 18px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-style: normal;
    line-height: 1.5;
  }

  .mobile-contacts strong {
    grid-column: 1 / -1;
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mobile-contacts__address {
    align-self: start;
  }

  .mobile-contacts__phones {
    display: grid;
    justify-items: end;
    gap: 2px;
  }

  .mobile-contacts a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 200ms;
  }

  .mobile-contacts__email {
    grid-column: 1 / -1;
    width: max-content;
    max-width: 100%;
    font-weight: 700;
  }

  .mobile-contacts a:hover,
  .mobile-contacts a:focus-visible {
    color: var(--red);
    outline: none;
  }
}

@media (max-width: 380px), (max-height: 760px) and (max-width: 899px) {
  .mobile-preview {
    gap: 15px;
    padding-top: calc(28px + env(safe-area-inset-top));
    padding-right: 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    padding-left: 20px;
    grid-template-rows: auto minmax(64px, 0.65fr) auto auto;
  }

  .mobile-preview__logo {
    width: 148px;
  }

  .mobile-preview__content h1 {
    font-size: clamp(44px, 12.5vw, 56px);
  }

  .mobile-preview__content > p {
    margin-top: 14px;
    font-size: 13px;
  }

  .mobile-preview__content > .mobile-preview__desktop-copy {
    margin-top: 13px;
    font-size: clamp(17px, 5vw, 21px);
  }

  .mobile-preview__content > .mobile-preview__site-copy {
    margin-top: 13px;
    padding-top: 12px;
    font-size: 12px;
  }

  .mobile-contacts {
    padding-top: 12px;
  }
}

@media (max-width: 340px) {
  .mobile-contacts {
    grid-template-columns: 1fr;
  }

  .mobile-contacts__phones {
    justify-items: start;
  }

  .mobile-contacts__email {
    grid-column: 1;
  }
}
