:root {
  --ink: #0b1113;
  --ink-soft: #243034;
  --paper: #f4f3ef;
  --white: #ffffff;
  --pool: #40bfd0;
  --line: rgba(11, 17, 19, 0.16);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.03; letter-spacing: -0.035em; }
h1 { max-width: 920px; font-size: clamp(3.4rem, 8.5vw, 8rem); }
h2 { font-size: clamp(2.6rem, 5.3vw, 5.2rem); }
p { margin: 0; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem clamp(1.25rem, 4vw, 4rem); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.24); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; letter-spacing: .08em; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: .92rem; }
.brand small { margin-top: .32rem; font-size: .56rem; letter-spacing: .28em; }
.brand-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; font-family: Georgia, serif; font-size: 1.35rem; font-style: italic; }
.site-header nav { display: flex; gap: clamp(1rem, 2.4vw, 2.5rem); }
.site-header nav a { color: inherit; text-decoration: none; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--pool); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; }
.hero-shade { background: linear-gradient(180deg, rgba(5,12,14,.2) 5%, rgba(5,12,14,.12) 35%, rgba(5,12,14,.82) 100%), linear-gradient(90deg, rgba(5,12,14,.28), transparent 68%); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: 9rem 0 5.5rem; }
.eyebrow, .section-kicker { margin-bottom: 1.2rem; font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow { color: rgba(255,255,255,.8); }
.hero-copy { max-width: 670px; margin-top: 1.6rem; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.8vw, 1.34rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }
.button { display: inline-flex; min-height: 3.45rem; align-items: center; justify-content: center; padding: .8rem 1.45rem; border: 1px solid transparent; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: .25s ease; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--pool); }
.button-ghost { border-color: rgba(255,255,255,.62); color: var(--white); }
.button-ghost:hover, .button-ghost:focus-visible { background: rgba(255,255,255,.12); border-color: var(--white); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover, .button-dark:focus-visible { background: var(--ink-soft); }
.scroll-hint { position: absolute; right: clamp(1.25rem, 4vw, 4rem); bottom: 3rem; z-index: 2; display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.75); text-decoration: none; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-hint span { display: block; width: 1px; height: 3rem; background: rgba(255,255,255,.55); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; border-bottom: 1px solid var(--line); }
.facts div { display: grid; gap: .25rem; padding: 2rem clamp(.7rem, 2vw, 2rem); border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { font-family: Georgia, serif; font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 400; }
.facts span { color: #617075; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.section { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-kicker { color: #557076; }
.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(3rem, 8vw, 9rem); align-items: end; }
.intro-grid h2 { max-width: 780px; }
.intro-grid > div { display: grid; gap: 1.25rem; color: #4b595d; font-size: 1.08rem; }

.signature-image { position: relative; min-height: min(78vw, 880px); overflow: hidden; color: var(--white); background: var(--ink); }
.signature-image > img { width: 100%; height: 100%; min-height: min(78vw, 880px); object-fit: cover; }
.signature-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,11,13,.72), rgba(5,11,13,.08) 72%); }
.signature-copy { position: absolute; z-index: 1; left: max(1.25rem, calc((100% - var(--max)) / 2)); bottom: clamp(3rem, 8vw, 7rem); width: min(610px, calc(100% - 2.5rem)); }
.signature-copy h2 { margin-bottom: 1.3rem; }
.signature-copy > p:last-child { max-width: 470px; color: rgba(255,255,255,.82); font-size: 1.08rem; }

.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 7vw, 8rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading > p { max-width: 470px; color: #56666b; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.gallery figure, .plan-grid figure { position: relative; margin: 0; overflow: hidden; background: #dde1df; }
.gallery figure { aspect-ratio: 4 / 3; }
.gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .7rem; background: rgba(8,14,16,.72); color: white; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(8px); }

.feature-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; background: var(--ink); color: var(--white); }
.feature-copy { align-self: center; max-width: 620px; padding: clamp(4rem, 8vw, 9rem); }
.feature-copy h2 { margin-bottom: 1.7rem; font-size: clamp(2.7rem, 4.8vw, 5rem); }
.feature-copy > p:not(.section-kicker) { color: rgba(255,255,255,.72); }
.feature-copy ul { display: grid; gap: .7rem; margin: 2rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; }
.feature-copy li { position: relative; padding-left: 1.4rem; color: rgba(255,255,255,.86); }
.feature-copy li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--pool); }
.feature-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.15); }
.feature-images img { width: 100%; height: 100%; object-fit: cover; }

.film-heading { max-width: 840px; margin-bottom: 3rem; }
.full-film { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }

.plans { border-top: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.plan-grid figure { display: grid; grid-template-rows: 1fr auto; min-height: 430px; padding: 1rem; background: var(--white); }
.plan-grid img { width: 100%; height: 100%; object-fit: contain; }
.plan-grid figcaption { padding: 1rem .25rem .35rem; border-top: 1px solid var(--line); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.plan-open { position: relative; display: block; width: 100%; min-height: 0; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.plan-open img { display: block; transition: transform .35s ease; }
.plan-open:hover img, .plan-open:focus-visible img { transform: scale(1.025); }
.plan-open:focus-visible { outline: 2px solid var(--pool); outline-offset: 3px; }
.zoom-label { position: absolute; right: .7rem; bottom: .7rem; padding: .55rem .75rem; background: rgba(7,17,19,.86); color: var(--white); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.dialog-open { overflow: hidden; }
.plan-dialog { width: min(94vw, 1450px); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--ink); }
.plan-dialog::backdrop { background: rgba(3,10,12,.88); backdrop-filter: blur(4px); }
.plan-dialog-frame { position: relative; display: grid; justify-items: center; padding: 1rem; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.plan-dialog img { display: block; width: 100%; height: min(82vh, 1050px); object-fit: contain; background: #f5f6f5; }
.plan-dialog p { margin: .85rem 0 .1rem; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; }
.plan-dialog-close { position: absolute; z-index: 1; top: 1.6rem; right: 1.6rem; width: 2.8rem; height: 2.8rem; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(7,17,19,.88); color: var(--white); font: 300 1.8rem/1 Georgia, serif; cursor: pointer; }
.plan-dialog-close:hover, .plan-dialog-close:focus-visible { background: var(--pool-dark); outline: 2px solid var(--white); outline-offset: 2px; }

.location { display: grid; grid-template-columns: 1.25fr .75fr; background: #dce7e7; }
.location > img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; }
.location-copy { align-self: center; padding: clamp(4rem, 8vw, 8rem); }
.location-copy h2 { margin-bottom: 1.6rem; }
.location-copy > p:last-child { max-width: 530px; color: #4d5c60; }

.contact { text-align: center; }
.contact h2 { max-width: 900px; margin: 0 auto 1.5rem; }
.contact > p:not(.section-kicker) { max-width: 650px; margin: 0 auto; color: #56666b; font-size: 1.08rem; }
.contact-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; }
.contact-link { font-family: Georgia, serif; font-size: 1.4rem; text-decoration: none; border-bottom: 1px solid var(--ink); }
.agent-card { display: inline-flex; align-items: center; gap: 1rem; margin-top: 4.5rem; text-align: left; }
.brand-mark.dark { border-color: var(--ink); color: var(--ink); }
.agent-card > div { display: grid; line-height: 1.35; }
.agent-card span { color: #68777b; font-size: .83rem; }
.agent-card a { color: #52666b; font-size: .83rem; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; padding: 2.5rem clamp(1.25rem, 4vw, 4rem); background: var(--ink); color: rgba(255,255,255,.75); font-size: .78rem; }
footer > div { display: grid; }
footer > div:nth-child(2) { text-align: right; }
footer p { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.48); }

@media (max-width: 900px) {
  .site-header nav a:not(:last-child) { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-grid, .section-heading, .feature-band, .location { grid-template-columns: 1fr; }
  .intro-grid { align-items: start; }
  .feature-copy { padding: 5rem 1.25rem; }
  .feature-images { min-height: 520px; }
  .location > img { min-height: 60vw; }
  .location-copy { padding: 5rem 1.25rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-grid figure { min-height: 360px; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  h2 { font-size: clamp(2.3rem, 11vw, 3.5rem); }
  .site-header { padding: 1rem 1.25rem; }
  .hero-content { padding-bottom: 3.4rem; }
  .hero-actions .button { width: 100%; }
  .scroll-hint { display: none; }
  .facts { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .feature-images { grid-template-columns: 1fr; }
  .feature-images img:last-child { display: none; }
  footer { grid-template-columns: 1fr; }
  footer > div:nth-child(2) { text-align: left; }
  footer p { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero { background: linear-gradient(180deg, rgba(5,12,14,.18), rgba(5,12,14,.8)), url("./assets/villa-dusk.webp") center / cover; }
  .gallery img { transition: none; }
}
