:root {
  --ink: #231f19;
  --cream: #efe7d9;
  --linen: #e2d2bb;
  --stone: #c6b79f;
  --wood: #86664a;
  --deep: #10120e;
  --veil: rgba(13, 14, 10, 0.42);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  color: #fffaf1;
  background: var(--wood);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  color: var(--cream);
  background: var(--deep);
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero,
.visit-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--deep);
}

.hero-media,
.hero-fallback,
.hero-veil {
  position: absolute;
  inset: 0;
}

.hero-media,
.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
  filter: saturate(1.02) contrast(1.02) brightness(1.04);
}

.hero-media {
  z-index: -2;
}

.hero.is-video-unavailable .hero-media {
  display: none;
}

.hero-fallback {
  z-index: -3;
  background: url("../assets/images/hero-poster.jpg") center / cover;
}

.hero-veil {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 56%, rgba(17, 20, 15, 0.08), rgba(17, 20, 15, 0.34) 58%, rgba(17, 20, 15, 0.64)),
    linear-gradient(180deg, rgba(17, 20, 15, 0.06), rgba(17, 20, 15, 0.16) 52%, rgba(17, 20, 15, 0.4));
}

.hero-identity {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: clamp(8rem, 18vh, 13rem) 0 clamp(5rem, 12vh, 8rem);
  color: rgba(255, 249, 238, 0.94);
  text-align: center;
  text-shadow: 0 22px 90px rgba(0, 0, 0, 0.34);
}

.hero-name,
.hero-location,
.hero-rule,
.hero-statement {
  opacity: 0;
  transform: translateY(18px);
  animation: heroReveal 1900ms cubic-bezier(0.16, 0.78, 0.22, 1) forwards;
}

.hero-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
  animation-delay: 2100ms;
}

.hero-location {
  margin: clamp(1.25rem, 2.8vw, 2rem) 0 0;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation-delay: 3400ms;
}

.hero-rule {
  display: block;
  width: min(17rem, 42vw);
  height: 1px;
  margin: clamp(2rem, 4vw, 3rem) auto;
  background: rgba(255, 249, 238, 0.64);
  animation-delay: 4600ms;
}

.hero-statement {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  animation-delay: 5600ms;
}

.hero-statement + .hero-statement {
  margin-top: 0.45rem;
  animation-delay: 6300ms;
}

.visit-section {
  min-height: min(100svh, 980px);
  background: var(--cream);
}

.photo-break {
  position: relative;
  min-height: clamp(560px, 82svh, 880px);
  overflow: hidden;
  background: var(--deep);
  isolation: isolate;
}

.photo-break .media {
  position: absolute;
  inset: 0;
}

.photo-break::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 18, 14, 0.04), rgba(16, 18, 14, 0.18));
  pointer-events: none;
}

.oliviers-break {
  min-height: clamp(520px, 76svh, 820px);
}

.water-break {
  min-height: clamp(620px, 86svh, 920px);
}

.final-break {
  min-height: clamp(520px, 72svh, 780px);
}

.layout-a,
.layout-d {
  min-height: 100svh;
}

.layout-a > .media,
.layout-d > .media,
.layout-a > img,
.layout-d > img,
.hero-media {
  position: absolute;
  inset: 0;
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.98) contrast(1.02);
}

.layout-b,
.layout-c {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(22rem, 1fr);
  align-items: stretch;
}

.layout-c {
  grid-template-columns: minmax(22rem, 1fr) minmax(0, 1.5fr);
}

.visit-image {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--stone);
}

.visit-image .media {
  position: absolute;
  inset: 0;
}

.visit-copy {
  display: grid;
  align-content: center;
  padding: clamp(4rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.58), transparent 22rem),
    linear-gradient(180deg, #f2eadc, #dcc9ad);
}

.overlay-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 780px);
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fff8ec;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.4);
}

.layout-a {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--deep);
}

.layout-a::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 18, 14, 0.62), rgba(16, 18, 14, 0.08) 58%),
    linear-gradient(180deg, rgba(16, 18, 14, 0.06), rgba(16, 18, 14, 0.55));
  pointer-events: none;
}

.overlay-right {
  margin-left: auto;
  text-align: right;
}

.facade {
  min-height: 102svh;
}

.pool .visit-image,
.terrace .visit-image,
.architecture .visit-image {
  min-height: 96svh;
}

.pool .media {
  object-position: center center;
}

.terrace .media {
  object-position: center center;
}

.architecture .media {
  object-position: center 56%;
}

.exteriors {
  min-height: 88svh;
}

.exteriors::after {
  background:
    linear-gradient(270deg, rgba(16, 18, 14, 0.58), rgba(16, 18, 14, 0.06) 58%),
    linear-gradient(180deg, rgba(16, 18, 14, 0.05), rgba(16, 18, 14, 0.44));
}

.closing {
  min-height: 86svh;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55), transparent 26rem),
    linear-gradient(180deg, #eee5d6, #d9c7ad);
}

.closing-inner {
  position: relative;
  z-index: 5;
  width: min(100%, 880px);
  text-align: center;
}

.section-word {
  margin: 0 0 clamp(1.8rem, 3.4vw, 2.8rem);
  color: rgba(35, 31, 25, 0.42);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.overlay-copy .section-word {
  color: rgba(255, 248, 236, 0.58);
}

.statement,
.short-line,
.closing-statement {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.55vw, 2.25rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: 0;
  text-wrap: balance;
}

.short-line {
  max-width: 620px;
}

.visit-copy .statement {
  max-width: 780px;
}

.overlay-copy .statement,
.overlay-copy .short-line {
  max-width: 720px;
}

.contact-signature {
  margin-top: clamp(3rem, 6vw, 4.6rem);
  color: rgba(35, 31, 25, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  line-height: 2.05;
  text-transform: uppercase;
}

.contact-signature p {
  margin: 0;
}

.final-actions {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem 2.2rem;
  margin-top: 2.8rem;
  pointer-events: auto;
}

.text-link {
  position: relative;
  z-index: 21;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  appearance: none;
  background: transparent;
  color: var(--wood);
  cursor: pointer;
  pointer-events: auto;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-link::after {
  width: 2.6rem;
  height: 1px;
  content: "";
  background: currentColor;
  pointer-events: none;
  transition: transform 260ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(0.28rem);
}

.final-actions .text-link {
  min-width: min(100%, 15rem);
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(134, 102, 74, 0.46);
}

.final-actions .text-link::after {
  display: none;
}

.reveal,
.reveal-visual {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.16, 0.78, 0.22, 1);
}

.reveal-visual {
  transform: translateY(18px);
  transition-duration: 1900ms;
}

.reveal.is-visible,
.reveal-visual.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-name,
  .hero-location,
  .hero-rule,
  .hero-statement,
  .reveal,
  .reveal-visual {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .layout-b,
  .layout-c {
    grid-template-columns: 1fr;
  }

  .layout-c .visit-copy {
    order: 2;
  }

  .layout-c .visit-image {
    order: 1;
  }

  .visit-image,
  .pool .visit-image,
  .terrace .visit-image,
  .architecture .visit-image {
    min-height: 68svh;
  }

  .visit-copy {
    min-height: auto;
    padding: clamp(3rem, 12vw, 5rem) clamp(1.2rem, 7vw, 2.4rem);
  }

  .layout-a,
  .layout-d,
  .facade,
  .exteriors,
  .closing,
  .photo-break {
    min-height: 78svh;
    padding: clamp(1.2rem, 7vw, 2.4rem);
  }

  .photo-break {
    padding: 0;
  }

  .overlay-copy {
    width: min(100%, 720px);
    padding: clamp(1.5rem, 6vw, 2.8rem) 0;
  }

  .overlay-right {
    margin-left: 0;
    text-align: left;
  }

  .hero-identity {
    padding-inline: 1rem;
  }

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

  .hero-statement {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .statement,
  .short-line,
  .closing-statement {
    font-size: clamp(1.38rem, 5.6vw, 1.7rem);
    line-height: 1.34;
  }

  .closing {
    min-height: 78svh;
  }
}

@media (max-width: 540px) {
  .hero-location,
  .contact-signature,
  .text-link {
    letter-spacing: 0.13em;
  }

  .hero-statement br {
    display: none;
  }

  .final-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
