/* ==========================================================================
   Elite Manor — Design 02 "Gallery White"
   Ivory editorial minimalism. Playfair Display + Manrope.
   ========================================================================== */

:root {
  --ivory: #f7f4ef;
  --white: #ffffff;
  --ink: #1b1a18;
  --sand: #b9a381;        /* rules, focus ring, hover fills */
  --sand-deep: #7f6a47;   /* sand used as text (AA on ivory) */
  --sand-soft: #efe8dc;   /* soft sand block behind portraits */
  --stone: #8a847b;       /* lines, icons, placeholders */
  --stone-text: #6f6960;  /* secondary text (AA on ivory/white) */
  --rule: #e3ddd2;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1360px;
  --gutter: clamp(16px, 2vw, 28px);
  --margin: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 2.9vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sand-deep); }
.text-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--sand);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.text-link:hover { border-color: var(--ink); }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--ink); color: var(--ivory);
  padding: .6rem 1rem; z-index: 200; font-size: .85rem;
}
.skip-link:focus { top: 12px; outline-color: var(--sand); }

/* Layout primitives ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(28px, 4vw, 56px);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.hairline { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.measure { max-width: 60ch; }
.measure--wide { max-width: 72ch; }

.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand-deep);
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sand); }
.eyebrow--plain::before { display: none; }

.caption {
  font-size: .78rem;
  color: var(--stone-text);
  letter-spacing: .02em;
  margin-top: .7rem;
  line-height: 1.5;
}
.caption--num { font-variant-numeric: tabular-nums; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.5;
  font-weight: 400;
}
.muted { color: var(--stone-text); }
.small { font-size: .875rem; }
.italic { font-family: var(--serif); font-style: italic; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px;
  padding: .85rem 2rem;
  background: var(--ink); color: var(--ivory);
  border: 1px solid var(--ink);
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--sand); }
.btn[aria-disabled="true"], .btn:disabled {
  background: transparent; color: var(--stone-text); border-color: var(--rule);
  cursor: not-allowed;
}
.btn[aria-disabled="true"]:hover { background: transparent; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 239, .97);
  border-bottom: 1px solid var(--rule);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 150px; height: auto; }
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem);
}
.nav__list > li { position: relative; }
.nav__list a, .nav__list button {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: none; border: 0; padding: .6rem 0; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.nav__list a:hover, .nav__list button:hover,
.nav__list a[aria-current="page"] { color: var(--sand-deep); border-bottom-color: var(--sand); }
.nav__cta { border: 1px solid var(--ink) !important; padding: .55rem 1.1rem !important; }
.nav__cta:hover { background: var(--sand); border-color: var(--sand) !important; color: var(--ink) !important; }
.nav__dd-btn svg { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav__dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__dd {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: calc(100% + 6px); left: -1.2rem;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -20px rgba(27, 26, 24, .25);
  display: none;
}
.nav__dd[data-open="true"] { display: block; }
.nav__dd li a, .nav__dd li span {
  display: block; padding: .6rem 1.2rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 0;
}
.nav__dd li span { color: var(--stone-text); }
.nav__dd li span em { font-style: normal; font-size: .62rem; color: var(--sand-deep); margin-left: .4rem; }
.nav__dd li a:hover { background: var(--ivory); border-bottom: 0; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); width: 46px; height: 46px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 79px 0 0 0;
    background: var(--ivory);
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    padding: 1.5rem var(--margin) 3rem;
    z-index: 99;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--rule); }
  .nav__list a, .nav__list button {
    width: 100%; justify-content: space-between;
    font-size: .9rem; padding: 1.1rem 0; border-bottom: 0;
  }
  .nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: transparent; }
  .nav__cta { border: 0 !important; padding: 1.1rem 0 !important; }
  .nav__cta:hover { background: transparent; }
  .nav__dd {
    position: static; box-shadow: none; border: 0; background: transparent;
    padding: 0 0 .5rem 1rem; min-width: 0;
  }
  .nav__dd li a, .nav__dd li span { padding: .7rem 0; font-size: .8rem; }
  body.nav-open { overflow: hidden; }
}

/* Page head (inner pages) ----------------------------------------------- */
.page-head { padding-top: clamp(48px, 6vw, 96px); }
.page-head__title { grid-column: 1 / 8; }
.page-head__aside { grid-column: 9 / 13; align-self: end; }
.page-head h1 { margin-bottom: .3em; }
.page-head__media { grid-column: 1 / 13; }
.page-head__media--offset { grid-column: 3 / 13; }
.page-head__media--narrow { grid-column: 1 / 8; }

.figure { margin: 0; }
.figure img { width: 100%; height: auto; object-fit: cover; background: var(--sand-soft); }
.figure--3x2 img { aspect-ratio: 3 / 2; }
.figure--16x9 img { aspect-ratio: 16 / 9; }
.figure--3x4 img { aspect-ratio: 3 / 4; }
.figure--21x9 img { aspect-ratio: 21 / 9; }

/* Home hero -------------------------------------------------------------- */
.hero { padding-top: clamp(32px, 4vw, 56px); }
.hero__media { grid-column: 1 / 9; }
.hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__words {
  grid-column: 9 / 13;
  align-self: end;
  padding-bottom: clamp(8px, 2vw, 24px);
}
.hero__words .display {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero__words .display em { font-style: italic; color: var(--sand-deep); }
.hero__words .display .line, .hero__words .display .w { display: block; }
.hero__rule { grid-column: 1 / 13; }
.hero__meta { grid-column: 1 / 5; }
.hero__copy { grid-column: 5 / 12; }
.hero__copy h1 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin-bottom: .9em; }
.hero__copy p { font-size: 1.05rem; color: var(--ink); }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.hero__cta .caption { margin: 0; max-width: 34ch; }

/* Video ------------------------------------------------------------------ */
.video { grid-column: 2 / 12; }
.video__frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--sand-soft); overflow: hidden;
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer; display: block;
}
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--ivory); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(27, 26, 24, .5);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.video__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video__poster:hover .video__play, .video__poster:focus-visible .video__play { background: var(--sand); transform: translate(-50%, -50%) scale(1.04); }

/* Awards ----------------------------------------------------------------- */
.awards-intro { grid-column: 1 / 5; }
.awards-card {
  grid-column: 5 / 13;
  background: var(--white);
  border: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.award {
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 32px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.award + .award { border-left: 1px solid var(--rule); }
.award__badge { height: 250px; width: auto; object-fit: contain; margin-bottom: 1.5rem; }
.award__year {
  font-family: var(--serif); font-size: 1.55rem; line-height: 1; margin-bottom: .35rem;
}
.award__result {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-deep);
  margin-bottom: .6rem;
}
.award__category { font-size: .92rem; line-height: 1.4; margin: 0 0 .5rem; }
.award__organiser { font-size: .74rem; color: var(--stone-text); line-height: 1.45; margin: 0; }

/* About blurb ------------------------------------------------------------ */
.about-blurb__aside { grid-column: 1 / 5; }
.about-blurb__body { grid-column: 5 / 12; }
.about-blurb__body .lead { margin-bottom: 1.8rem; }

/* Projects ---------------------------------------------------------------- */
.projects-head { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.projects-head h2 { margin: 0; }
.project { display: flex; flex-direction: column; }
.project--lavish { grid-column: 1 / 8; }
.project--cornwell { grid-column: 9 / 13; }
.project__media { margin: 0; overflow: hidden; background: var(--sand-soft); }
.project__media img { width: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project--lavish .project__media img { aspect-ratio: 3 / 2; }
.project--cornwell .project__media img { aspect-ratio: 3 / 4; }
.project:hover .project__media img { transform: scale(1.025); }
.project__body { padding-top: 1.4rem; display: grid; gap: .75rem; }
.project__body > * { justify-self: start; }
.project__logo { height: 64px; width: auto; object-fit: contain; object-position: left; }
.project__logo--wide { height: 36px; }
.project__name { margin: 0; font-size: 1.4rem; }
.project__blurb { color: var(--stone-text); max-width: 46ch; margin: 0; }
.project__cta { margin-top: .4rem; }
.project--card {
  background: var(--white); border: 1px solid var(--rule); padding: clamp(18px, 2vw, 28px);
}

/* FAQ ---------------------------------------------------------------------- */
.faq__aside { grid-column: 1 / 5; }
.faq__list { grid-column: 5 / 13; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%; display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: baseline; gap: 1rem;
  background: none; border: 0; padding: 1.3rem 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink); line-height: 1.35;
}
.faq__num { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--sand-deep); }
.faq__icon { width: 14px; height: 14px; position: relative; align-self: center; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--ink); left: 0; top: 50%; width: 100%; height: 1px;
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 0 1.4rem 3.6rem; color: var(--stone-text); max-width: 64ch; }
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }

/* World clocks ------------------------------------------------------------ */
.clocks { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.clocks__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.clocks__list li { padding: 1.4rem 0; text-align: center; }
.clocks__list li + li { border-left: 1px solid var(--rule); }
.clock__city { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-text); margin-bottom: .35rem; }
.clock__time { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* Inner page bodies -------------------------------------------------------- */
.article__aside { grid-column: 1 / 5; }
.article__body { grid-column: 5 / 12; }
.article__body p { font-size: 1.05rem; }
.pullquote {
  grid-column: 2 / 12;
  text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.3;
  margin: 0;
}
.pullquote::after {
  content: ""; display: block; width: 44px; height: 1px; background: var(--sand); margin: 1.6rem auto 0;
}

/* Team --------------------------------------------------------------------- */
.person { grid-column: 1 / 13; background: var(--white); border: 1px solid var(--rule); }
.person__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.person__portrait {
  grid-column: 1 / 5;
  background: var(--sand-soft);
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 420px;
  position: relative;
}
.person__portrait img { width: 100%; max-width: 360px; height: 100%; max-height: 560px; object-fit: contain; object-position: bottom center; }
.person__text { grid-column: 5 / 13; padding: clamp(24px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px) clamp(12px, 2vw, 24px); }
.person__role { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand-deep); font-weight: 600; margin: 0 0 .5rem; }
.person__name { margin-bottom: 1.2rem; }
.person__bio { columns: 2; column-gap: clamp(24px, 3vw, 44px); font-size: .95rem; color: var(--ink); }
.person__bio p { margin: 0; }

.partners__head { grid-column: 1 / 5; }
.partner { grid-column: span 4; background: var(--white); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); }
.partner:first-of-type { grid-column: 5 / 9; }
.partner__logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; object-position: left; margin-bottom: 1.4rem; }
.partner h3 { font-size: 1.2rem; }
.partner p { color: var(--stone-text); font-size: .95rem; }

/* Lavish Estates ---------------------------------------------------------- */
.estate-head { padding-top: clamp(48px, 6vw, 96px); }
.estate-head__logo { grid-column: 1 / 13; display: flex; flex-direction: column; align-items: center; text-align: center; }
.estate-head__logo img { width: 300px; height: auto; }
.estate-head__media { grid-column: 1 / 13; }

.plan__head { grid-column: 1 / 5; }
.plan__meta { grid-column: 5 / 9; align-self: end; }
.plan__meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.plan__meta dt { color: var(--stone-text); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; align-self: baseline; }
.plan__meta dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.plan__figure { grid-column: 1 / 13; background: var(--white); border: 1px solid var(--rule); padding: clamp(10px, 1.6vw, 24px); }
.plan__figure img { width: 100%; height: auto; }
.plan__legend-head { grid-column: 1 / 5; }
.plan__legend { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.lots { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lots th, .lots td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.lots th { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-text); font-weight: 600; border-bottom-color: var(--ink); }
.lots td:first-child { font-family: var(--serif); font-size: 1rem; width: 4.5rem; }
.lots td:last-child, .lots th:last-child { text-align: right; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--sold { color: var(--stone-text); }
.status--available { color: var(--sand-deep); }
.status--available::before { background: var(--sand); box-shadow: 0 0 0 3px rgba(185, 163, 129, .25); }
.plan__summary { grid-column: 5 / 13; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.plan__summary div { display: flex; flex-direction: column; }
.plan__summary strong { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.plan__summary span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-text); margin-top: .4rem; }

.villas__head { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.villas__head h2 { margin: 0; }
.villa { grid-column: span 4; background: var(--white); border: 1px solid var(--rule); padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; }
.villa__index { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-deep); font-weight: 600; margin: 0 0 .7rem; }
.villa__name { margin-bottom: .3rem; font-size: clamp(1.7rem, 2.2vw, 2.1rem); }
.villa__rooms { color: var(--stone-text); font-size: .9rem; margin: 0 0 1.4rem; }
.villa__rooms b { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.15rem; }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.5rem; }
.spec th, .spec td { padding: .65rem 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.spec th { text-align: left; font-weight: 500; color: var(--stone-text); font-size: .8rem; letter-spacing: .04em; }
.spec td { text-align: right; font-variant-numeric: tabular-nums; }
.spec td small { color: var(--stone-text); font-size: .78em; margin-left: .2em; }
.spec tr:last-child td, .spec tr:last-child th { border-bottom: 1px solid var(--rule); }
.villa__features { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.villa__features li { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--rule); padding: .35rem .7rem; color: var(--ink); }
.villa__plans { margin-top: auto; display: grid; gap: 1rem; }
.villa__plans figure { margin: 0; }
.villa__plans img { width: 100%; height: auto; aspect-ratio: 579 / 414; object-fit: contain; background: var(--white); border: 1px solid var(--rule); }
.villa__plans figcaption { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-text); margin-top: .5rem; }

/* Gallery ------------------------------------------------------------------ */
.gallery__head { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.2rem 2rem; }
.gallery__head h2 { margin: 0; }
.filters { display: flex; gap: .25rem; border: 1px solid var(--rule); background: var(--white); padding: 4px; }
.filters button {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  background: none; border: 0; padding: .6rem 1.1rem; cursor: pointer; color: var(--stone-text);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.filters button span { margin-left: .35em; font-weight: 400; color: var(--stone-text); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.filters button[aria-pressed="true"] span { color: var(--sand); }
.filters button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.gallery__grid {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: var(--gutter);
  list-style: none; margin: 0; padding: 0;
}
.gallery__grid li[data-orientation="portrait"] { grid-row: span 2; }
.gallery__grid li[hidden] { display: none; }
.gallery__item {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--sand-soft);
  cursor: zoom-in; overflow: hidden; position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(247, 244, 239, .92); color: var(--ink);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .5rem .8rem;
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { transform: none; }
.gallery__grid figure { margin: 0; height: 100%; }

/* Lightbox ------------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ivory);
  display: none; flex-direction: column;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--margin); border-bottom: 1px solid var(--rule); }
.lightbox__count { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-text); font-variant-numeric: tabular-nums; }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem var(--margin); min-height: 0; position: relative; }
.lightbox__stage img { max-width: min(100%, 1400px); max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -40px rgba(27, 26, 24, .45); background: var(--white); }
.lightbox__caption { text-align: center; padding: 0 var(--margin) 1.4rem; font-size: .78rem; color: var(--stone-text); letter-spacing: .08em; text-transform: uppercase; }
.lightbox__btn {
  background: var(--white); border: 1px solid var(--rule); color: var(--ink);
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__btn:hover { background: var(--sand); border-color: var(--sand); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--margin); }
.lightbox__nav--next { right: var(--margin); }
body.lightbox-open { overflow: hidden; }

/* Forms --------------------------------------------------------------------- */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .5rem; }
.field label, .field legend, .field__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.field .req { color: var(--sand-deep); margin-left: .25em; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--stone); padding: .9rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(185, 163, 129, .35); }
.field input::placeholder, .field textarea::placeholder { color: var(--stone); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--white); border: 1px solid var(--stone); padding: .65rem 1rem; cursor: pointer;
  font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.choices label:hover { border-color: var(--sand); }
.choices input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.choices label:has(input:checked) { background: var(--sand-soft); border-color: var(--sand-deep); }
.choices label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(185, 163, 129, .35); }
.form__note { font-size: .8rem; color: var(--stone-text); line-height: 1.55; }
.form__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

.contact__media { grid-column: 1 / 6; }
.contact__form { grid-column: 7 / 13; }
.contact__details { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; border-top: 1px solid var(--rule); padding-top: clamp(28px, 4vw, 48px); }
.detail { grid-column: span 3; }
.detail h3 { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--stone-text); margin-bottom: .8rem; }
.detail p, .detail a { font-size: .98rem; line-height: 1.6; }
.detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.detail a { border-bottom: 1px solid var(--rule); transition: border-color .25s var(--ease); }
.detail a:hover { border-color: var(--sand); }

.register__form { grid-column: 1 / 7; }
.register__media { grid-column: 8 / 13; align-self: start; position: sticky; top: 100px; }
.register__fallback { grid-column: 1 / 7; }
.form-card { background: var(--white); border: 1px solid var(--rule); padding: clamp(24px, 3.4vw, 48px); }
details.embed { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.embed summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
details.embed summary::-webkit-details-marker { display: none; }
details.embed summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--sand-deep); }
details.embed[open] summary::after { content: "−"; }
details.embed .embed__frame { padding-bottom: 1.4rem; }
details.embed iframe { width: 100%; height: 900px; border: 1px solid var(--rule); background: var(--white); }

/* Privacy ------------------------------------------------------------------- */
.policy { grid-column: 4 / 12; }
.policy section { padding: 2rem 0; border-top: 1px solid var(--rule); }
.policy section:last-child { border-bottom: 1px solid var(--rule); }
.policy h2 { font-size: 1.45rem; margin-bottom: .8rem; }
.policy ul { padding-left: 1.2rem; color: var(--ink); }
.policy li { margin-bottom: .35rem; }
.policy li::marker { color: var(--sand-deep); }

/* Projects overview --------------------------------------------------------- */
.overview__intro { grid-column: 1 / 5; }
.overview__grid { grid-column: 5 / 13; display: grid; gap: var(--gutter); grid-template-columns: 1fr; }

/* CTA band ------------------------------------------------------------------- */
.cta-band { border-top: 1px solid var(--rule); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band__text { max-width: 44ch; }
.cta-band__text h2 { margin-bottom: .3em; }

/* Footer ----------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--ivory); }
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--sand); }
.site-footer__main { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); row-gap: 3rem; }
.footer__brand { grid-column: 1 / 5; }
.footer__brand img { width: 170px; height: auto; margin-bottom: 1.6rem; }
.footer__brand p { margin: 0; font-size: .9rem; color: rgba(247, 244, 239, .78); line-height: 1.65; }
.footer__brand p strong { color: var(--ivory); font-weight: 500; }
.footer__col { grid-column: span 3; }
.footer__col--projects { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col h3 { font-family: var(--sans); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); font-weight: 600; margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__col a, .footer__col span { font-size: .9rem; }
.footer__col span { color: rgba(247, 244, 239, .6); }
.footer__col span em { font-style: normal; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-left: .5rem; }
.site-footer__bottom { border-top: 1px solid rgba(247, 244, 239, .16); padding: 1.4rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; font-size: .78rem; color: rgba(247, 244, 239, .7); }
.site-footer__bottom a { color: rgba(247, 244, 239, .85); }
.social { display: flex; gap: .8rem; }
.social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(247, 244, 239, .22); transition: border-color .25s var(--ease), color .25s var(--ease); }
.social a:hover { border-color: var(--sand); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }

/* Reveal ----------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible, .no-anim .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Responsive ------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .awards-intro { grid-column: 1 / 13; }
  .awards-card { grid-column: 1 / 13; }
  .hero__meta { grid-column: 1 / 13; }
  .hero__copy { grid-column: 1 / 12; }
  .plan__legend { grid-column: 1 / 13; }
  .plan__legend-head { grid-column: 1 / 13; }
  .plan__summary { grid-column: 1 / 13; }
  .villa { grid-column: span 6; }
  .villa:last-child { grid-column: 4 / 10; }
  .partner:first-of-type { grid-column: 1 / 7; }
  .partner { grid-column: span 6; }
  .partners__head { grid-column: 1 / 13; }
  .detail { grid-column: span 6; }
  .policy { grid-column: 2 / 12; }
}

@media (max-width: 860px) {
  .hero__media { grid-column: 1 / 13; }
  .hero__words { grid-column: 1 / 13; padding: 0; }
  .hero__words .display { font-size: clamp(2.1rem, 9.5vw, 3.4rem); }
  .hero__words .display .w { display: inline; }
  .video { grid-column: 1 / 13; }
  .awards-card { grid-template-columns: 1fr; }
  .award + .award { border-left: 0; border-top: 1px solid var(--rule); }
  .about-blurb__aside, .about-blurb__body, .faq__aside, .faq__list,
  .article__aside, .article__body, .page-head__title, .page-head__aside,
  .page-head__media--offset, .page-head__media--narrow, .plan__head, .plan__meta,
  .contact__media, .contact__form, .register__form, .register__media, .register__fallback,
  .overview__intro, .overview__grid, .policy { grid-column: 1 / 13; }
  .register__media { position: static; }
  .project--lavish, .project--cornwell { grid-column: 1 / 13; }
  .project--cornwell .project__media img { aspect-ratio: 3 / 2; object-position: center 30%; }
  .pullquote { grid-column: 1 / 13; }
  .person__inner { grid-template-columns: 1fr; }
  .person__portrait { grid-column: auto; min-height: 0; padding-top: 2rem; }
  .person__portrait img { max-height: 420px; }
  .person__text { grid-column: auto; padding: clamp(24px, 5vw, 40px); }
  .person__bio { columns: 1; }
  .villa, .villa:last-child { grid-column: 1 / 13; }
  .partner, .partner:first-of-type { grid-column: 1 / 13; }
  .clocks__list { grid-template-columns: repeat(2, 1fr); }
  .clocks__list li { border-left: 0 !important; border-bottom: 1px solid var(--rule); }
  .clocks__list li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .clocks__list li:last-child { grid-column: span 2; border-bottom: 0; border-right: 0 !important; }
  .plan__legend { grid-template-columns: 1fr; }
  .lots--second th { display: none; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .faq__a p { padding-left: 0; }
  .faq__q { grid-template-columns: 2.2rem 1fr auto; }
  .detail { grid-column: 1 / 13; }
  .footer__brand, .footer__col, .footer__col--wide { grid-column: 1 / 13; }
  .site-footer__main { row-gap: 2.2rem; }
  .brand img { width: 128px; }
  .lightbox__stage { padding: 1rem var(--margin) 76px; }
  .lightbox__nav { top: auto; bottom: 12px; transform: none; }
  .lightbox__nav--prev { left: var(--margin); }
  .lightbox__nav--next { right: var(--margin); }
  .lightbox__caption { padding-bottom: 1rem; }
  .plan__figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan__figure img { min-width: 760px; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-auto-rows: 150px; gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .award__badge { height: 210px; }
  .clocks__list li { padding: 1rem 0; }
  .clock__time { font-size: 1.25rem; }
}
