:root {
  color-scheme: light;
  --ink: #151817;
  --muted: #5f6660;
  --paper: #f8f7f3;
  --stone: #d8d0c3;
  --pine: #1f4a3b;
  --sea: #446f76;
  --clay: #a95637;
  --shadow: rgba(12, 18, 16, 0.22);
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

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

#villa-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.v2-page #villa-scene {
  opacity: 0.58;
  mix-blend-mode: normal;
}

.villa-scene-lite {
  overflow: hidden;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.villa-scene-plane {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(240px, 34vw, 520px);
  height: clamp(300px, 42vw, 620px);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 26px 80px rgba(12, 18, 16, 0.18);
  opacity: 0.24;
  transform: translate3d(var(--base-x), var(--base-y), 0) rotateY(var(--base-rotate)) scale(var(--base-scale));
  transition: opacity 90ms linear;
  will-change: opacity, transform;
}

.villa-scene-plane:nth-child(2),
.villa-scene-plane:nth-child(5) {
  aspect-ratio: 4 / 3;
  height: clamp(220px, 28vw, 440px);
}

.villa-scene-plane:nth-child(3) {
  width: clamp(220px, 30vw, 460px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 36px;
  color: #fff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    text-shadow 180ms ease;
}

.site-header.is-on-light {
  background: rgba(248, 247, 243, 0.9);
  box-shadow: 0 12px 36px rgba(12, 18, 16, 0.12);
  color: var(--ink);
  text-shadow: none;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-grid;
  gap: 2px;
  line-height: 1;
}

.brand span,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  font-size: 1.05rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 148px 7vw 74px;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 15, 14, 0.72), rgba(7, 15, 14, 0.14) 64%),
    linear-gradient(0deg, rgba(7, 15, 14, 0.62), rgba(7, 15, 14, 0) 52%);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  transform: scale(calc(1.02 + var(--progress) * 0.025));
  transform-origin: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: color-mix(in srgb, currentColor 82%, var(--clay));
}

h1,
h2 {
  margin: 0;
  max-width: 11em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: 4.6rem;
}

h2 {
  font-size: 3.15rem;
}

p {
  margin: 22px 0 0;
  max-width: 640px;
  color: color-mix(in srgb, currentColor 78%, var(--muted));
  font-size: 1.05rem;
  line-height: 1.7;
}

.primary-link {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
  font-weight: 800;
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  margin-top: 34px;
}

.handoff-actions .primary-link {
  margin-top: 0;
}

.story-section {
  min-height: 108svh;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 7vw;
  align-items: center;
  padding: 11vh 7vw;
  background: color-mix(in srgb, var(--paper) 92%, white);
  overflow: hidden;
}

.section-copy {
  position: relative;
  z-index: 2;
}

.approach {
  padding-top: 14vh;
}

.image-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.76fr);
  gap: 22px;
  align-items: end;
  perspective: 1200px;
}

.image-rail img:first-child {
  aspect-ratio: 4 / 5;
  transform: translateY(calc(var(--progress) * -28px)) rotateY(-5deg);
}

.image-rail img:last-child {
  aspect-ratio: 1 / 1.18;
  transform: translateY(58px) rotateY(7deg);
}

.stone {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  background: #e9e5dd;
}

.wide-photo {
  min-height: 74vh;
  overflow: hidden;
}

.wide-photo img {
  height: 74vh;
  transform: translateY(calc(var(--progress) * -34px)) scale(1.04);
}

.immersive-strip {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  padding: 10vh 7vw;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.immersive-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 18, 22, 0.42);
}

.immersive-strip img {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 112%;
  transform: translateY(calc(var(--progress) * -90px));
}

.immersive-strip h2 {
  max-width: 10em;
}

.living {
  background: #f4f0e8;
}

.room-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  grid-template-rows: 44vh 32vh;
  gap: 20px;
}

.room-grid img {
  height: 100%;
}

.room-grid img:first-child {
  grid-row: span 2;
}

.features-section {
  display: grid;
  gap: 52px;
  padding: 10vh 7vw;
  background: #ece7dd;
  overflow: hidden;
}

.features-copy {
  max-width: 840px;
}

.feature-grid {
  counter-reset: feature;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  counter-increment: feature;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 226px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 22px;
  background: var(--feature-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 58px rgba(12, 18, 16, 0.18);
  color: #fff;
}

.feature-grid li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 16, 0.08), rgba(8, 18, 16, 0.74)),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 34%);
}

.feature-grid li::before {
  content: counter(feature, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-grid strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.feature-grid span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.closing {
  display: grid;
  gap: 56px;
  padding: 12vh 7vw 8vh;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.closing-copy {
  max-width: 880px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.booking-panel {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 22px;
  background: rgba(248, 247, 243, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.booking-fields,
.booking-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-panel label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  font-weight: 800;
}

.booking-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  color-scheme: light;
}

.booking-panel input:focus-visible,
.booking-actions button:focus-visible {
  outline: 3px solid rgba(217, 245, 223, 0.9);
  outline-offset: 2px;
}

.booking-note,
.booking-disclaimer {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.55;
}

.booking-note {
  color: rgba(255, 255, 255, 0.86);
}

.booking-disclaimer {
  color: rgba(255, 255, 255, 0.62);
}

.booking-actions button {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.booking-actions button[type="submit"] {
  border-color: transparent;
  background: #d9f5df;
  color: #12321f;
}

.booking-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.contact-actions a,
.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.action-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: currentColor;
}

.contact-actions a[href*="wa.me"] {
  color: #d9f5df;
}

.detail-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.8fr;
  gap: 18px;
  align-items: end;
}

.detail-row img {
  aspect-ratio: 4 / 5;
}

.detail-row img:nth-child(2) {
  aspect-ratio: 1 / 1;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 7vw;
  align-items: center;
  padding: 10vh 7vw;
  background: #f2f0ea;
  overflow: hidden;
}

.location-copy {
  max-width: 760px;
}

.location-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.location-highlights li {
  min-height: 118px;
  border: 1px solid rgba(31, 74, 59, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.location-highlights strong,
.location-highlights span {
  display: block;
}

.location-highlights strong {
  color: var(--pine);
  font-size: 1rem;
}

.location-highlights span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.location-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-top: 34px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
  color: var(--pine);
  font-weight: 800;
}

.map-preview {
  position: relative;
  min-height: 58vh;
  border-radius: 8px;
  overflow: hidden;
  background: #d9ded2;
  box-shadow: 0 28px 80px rgba(12, 18, 16, 0.2);
  transform: perspective(1000px) rotateY(-5deg) translateY(calc(var(--progress) * -20px));
}

.map-preview iframe {
  width: 100%;
  height: 58vh;
  min-height: 420px;
  border: 0;
}

.v2-page .feature-grid li {
  contain: layout paint style;
  min-height: 206px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  transform: translateZ(0);
}

.v2-page .feature-grid li::after {
  background: linear-gradient(180deg, rgba(8, 18, 16, 0.14), rgba(8, 18, 16, 0.76));
}

.v2-page .closing {
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.78fr);
  gap: 6vw;
  align-items: center;
  padding: 10vh 7vw;
}

.v2-page .closing-copy {
  max-width: 760px;
}

.v2-page .detail-row {
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: minmax(190px, 31vh) minmax(190px, 31vh);
  gap: 16px;
}

.v2-page .detail-row img {
  height: 100%;
}

.v2-page .detail-row img:first-child {
  grid-row: span 2;
}

.v2-page .detail-row img:nth-child(2),
.v2-page .detail-row img:nth-child(3) {
  aspect-ratio: auto;
}

.v2-page .location-section {
  min-height: 88svh;
  padding: 11vh 7vw;
}

.v2-page .map-preview,
.v2-page .map-preview iframe {
  min-height: 500px;
}

.v2-page .hero-image {
  transform: scale(1.02);
}

.v2-page .image-rail img:first-child {
  transform: rotateY(-4deg);
}

.v2-page .image-rail img:last-child {
  transform: translateY(42px) rotateY(5deg);
}

.v2-page .wide-photo img {
  transform: scale(1.03);
}

.v2-page .immersive-strip img {
  height: 100%;
  transform: none;
}

.v2-page .map-preview {
  transform: perspective(1000px) rotateY(-3deg);
}

@media (max-width: 860px) {
  #villa-scene {
    opacity: 0.52;
  }

  .site-header {
    padding: 16px 18px;
  }

  nav {
    gap: 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 90svh;
    padding: 118px 22px 58px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  p {
    font-size: 1rem;
  }

  .story-section,
  .stone {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 86px 22px;
  }

  .approach .section-copy {
    order: -1;
  }

  .image-rail {
    gap: 14px;
  }

  .image-rail img:last-child {
    transform: translateY(30px) rotateY(4deg);
  }

  .wide-photo,
  .wide-photo img {
    min-height: 0;
    height: 56vh;
  }

  .immersive-strip {
    min-height: 78svh;
    padding: 86px 22px;
  }

  .room-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .room-grid img,
  .room-grid img:first-child {
    grid-row: auto;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .features-section {
    gap: 38px;
    padding: 86px 22px;
  }

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

  .closing {
    padding: 86px 22px 56px;
  }

  .v2-page .closing {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 86px 22px 56px;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .v2-page .detail-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 10px;
  }

  .detail-row img,
  .detail-row img:nth-child(2),
  .v2-page .detail-row img,
  .v2-page .detail-row img:nth-child(2),
  .v2-page .detail-row img:nth-child(3) {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .v2-page .detail-row img:first-child {
    grid-row: auto;
  }

  .location-section {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 86px 22px;
  }

  .v2-page .location-section {
    min-height: auto;
    padding: 86px 22px;
  }

  .location-highlights {
    grid-template-columns: 1fr;
  }

  .map-preview {
    min-height: 48vh;
    transform: none;
  }

  .v2-page .map-preview {
    transform: none;
  }

  .map-preview iframe,
  .v2-page .map-preview,
  .v2-page .map-preview iframe {
    height: 48vh;
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 236px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .brand strong {
    font-size: 0.98rem;
  }

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

  .feature-grid li {
    min-height: 196px;
  }

  .location-actions,
  .contact-actions {
    display: grid;
  }

  .booking-fields,
  .booking-actions {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-image,
  .image-rail img,
  .wide-photo img,
  .immersive-strip img,
  .map-preview {
    transform: none !important;
  }
}

.v3-page {
  --v3-scroll: 0;
  --header-offset: 92px;
  background: #f7f4ec;
  color: #17201c;
  scroll-padding-top: var(--header-offset);
}

.v3-page .site-header {
  padding: 18px 36px;
  background: rgba(17, 32, 28, 0.58);
  box-shadow: 0 12px 34px rgba(12, 18, 16, 0.12);
  backdrop-filter: blur(14px);
}

.v3-page .site-header.is-on-light {
  background: rgba(247, 244, 236, 0.92);
}

.v3-page nav {
  gap: 16px;
}

.v3-page .nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 13px;
}

.v3-page section[id] {
  scroll-margin-top: var(--header-offset);
}

.v3-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 150px 7vw 88px;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.v3-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 20, 18, 0.78), rgba(10, 20, 18, 0.22) 58%, rgba(10, 20, 18, 0.42)),
    linear-gradient(0deg, rgba(10, 20, 18, 0.72), rgba(10, 20, 18, 0) 54%);
}

.v3-hero-loop,
.v3-rhythm-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #22342f;
}

.v3-hero-loop img,
.v3-rhythm-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 900ms ease,
    transform 5200ms ease;
}

.v3-hero-loop img.is-active,
.v3-rhythm-media img.is-active {
  opacity: 1;
  transform: scale(1.1);
}

.v3-hero-loop img:first-child {
  object-position: 50% 78%;
}

.v3-hero-copy {
  max-width: 760px;
}

.v3-hero h1 {
  max-width: 8em;
  font-size: 7.2rem;
  line-height: 0.9;
}

.v3-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.v3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  margin-top: 34px;
}

.v3-hero-actions .primary-link {
  margin-top: 0;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  padding: 10px 15px;
  color: #fff;
  font-weight: 800;
}

.v3-next-cue {
  position: absolute;
  right: 7vw;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
}

.v3-route {
  min-height: 100svh;
  background: #f7f4ec;
}

.v3-duo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: end;
}

.v3-duo img,
.v3-wide-photo,
.v3-room-grid img,
.v3-sunset-card,
.v3-rhythm {
  border-radius: 8px;
  overflow: hidden;
}

.v3-duo img:first-child {
  aspect-ratio: 4 / 5;
  transform: translateY(calc(var(--v3-scroll) * -24px));
}

.v3-duo img:last-child {
  aspect-ratio: 1 / 1.08;
  transform: translateY(52px);
}

.v3-stone {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  min-height: 96svh;
  background: #e5eadf;
}

.v3-wide-photo {
  min-height: 72vh;
  box-shadow: 0 26px 76px rgba(17, 32, 27, 0.18);
}

.v3-wide-photo img {
  height: 72vh;
  transform: scale(1.03);
}

.v3-rhythm {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  margin: 0;
  padding: 10vh 7vw;
  isolation: isolate;
  color: #fff;
}

.v3-rhythm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 19, 17, 0.76), rgba(9, 19, 17, 0.2) 68%),
    linear-gradient(0deg, rgba(9, 19, 17, 0.68), transparent 56%);
}

.v3-rhythm-copy {
  max-width: 680px;
}

.v3-rhythm-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.v3-living {
  background: #f2ede3;
}

.v3-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  grid-template-rows: 34vh 34vh;
  gap: 16px;
}

.v3-room-grid img {
  height: 100%;
}

.v3-room-grid img:first-child {
  grid-row: span 2;
}

.v3-reservation {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.64fr);
  gap: 6vw;
  align-items: center;
  background:
    linear-gradient(135deg, #14231e, #263a32 58%, #613a2a);
}

.v3-reservation .booking-panel {
  background: rgba(255, 255, 255, 0.1);
}

.v3-reservation .booking-panel[data-valid-range="false"] [data-whatsapp-submit] {
  filter: grayscale(0.2);
}

.v3-sunset-card {
  min-height: 62vh;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.v3-sunset-card img {
  height: 62vh;
}

.v3-location {
  background: #f7f4ec;
}

@media (max-width: 860px) {
  .v3-page {
    --header-offset: 76px;
  }

  .v3-page .site-header {
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
  }

  .v3-page nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 9px;
    justify-content: flex-end;
    max-width: calc(100vw - 128px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    font-size: 0.84rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .v3-page nav::-webkit-scrollbar {
    display: none;
  }

  .v3-page nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .v3-page .nav-cta {
    padding: 7px 10px;
  }

  .v3-hero {
    min-height: 88svh;
    padding: 112px 22px 72px;
  }

  .v3-hero h1 {
    font-size: 4rem;
  }

  .v3-hero-actions {
    display: grid;
    gap: 16px;
    justify-items: start;
  }

  .v3-hero-actions .primary-link,
  .secondary-link {
    max-width: 100%;
    line-height: 1.35;
  }

  .v3-next-cue {
    right: auto;
    left: 22px;
  }

  .v3-route,
  .v3-stone,
  .v3-living {
    min-height: auto;
  }

  .v3-duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  }

  .v3-duo img:last-child {
    transform: translateY(26px);
  }

  .v3-stone {
    grid-template-columns: 1fr;
  }

  .v3-stone .section-copy {
    order: -1;
  }

  .v3-wide-photo,
  .v3-wide-photo img {
    min-height: 0;
    height: 56vh;
  }

  .v3-rhythm {
    min-height: 76svh;
    padding: 86px 22px;
    border-radius: 0;
  }

  .v3-room-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .v3-room-grid img,
  .v3-room-grid img:first-child {
    grid-row: auto;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .v3-reservation {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .v3-sunset-card,
  .v3-sunset-card img {
    min-height: 0;
    height: 52vh;
  }
}

@media (max-width: 700px) {
  .v3-duo {
    grid-template-columns: 1fr;
  }

  .v3-duo img,
  .v3-duo img:first-child,
  .v3-duo img:last-child {
    aspect-ratio: 4 / 5;
    transform: none;
  }
}

@media (max-width: 520px) {
  .v3-page {
    --header-offset: 72px;
  }

  .v3-page .site-header {
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
  }

  .v3-page nav {
    max-width: calc(100vw - 118px);
    gap: 8px;
    font-size: 0.8rem;
  }

  .v3-page .nav-cta {
    padding: 7px 9px;
  }

  .v3-hero {
    min-height: 86svh;
    padding: 100px 18px 64px;
  }

  .v3-hero h1 {
    font-size: 3.12rem;
  }

  .v3-hero p {
    font-size: 0.98rem;
  }

  .secondary-link {
    min-height: 42px;
    padding: 9px 13px;
  }

  .v3-wide-photo,
  .v3-wide-photo img,
  .v3-sunset-card,
  .v3-sunset-card img {
    height: 44vh;
  }

  .v3-rhythm {
    min-height: 68svh;
    padding: 76px 18px;
  }

  .v3-rhythm::after {
    background:
      linear-gradient(90deg, rgba(9, 19, 17, 0.84), rgba(9, 19, 17, 0.34) 76%),
      linear-gradient(0deg, rgba(9, 19, 17, 0.74), transparent 58%);
  }

  .v3-room-grid {
    gap: 12px;
  }

  .v3-reservation {
    gap: 32px;
  }

  .v3-reservation .contact-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .v3-reservation .contact-actions a,
  .v3-location .phone-link {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .v3-hero-loop img,
  .v3-rhythm-media img {
    transform: none !important;
    transition: none !important;
  }
}
