/* =====================================================================
   THE TERRIGAL RESIDENCE
   Palette and type are set once here; change a token to restyle the site.
   ===================================================================== */
:root {
  --warm-white: #FBF9F5;
  --ivory: #F6F2EB;
  --sand: #EAE1D3;
  --limestone: #D9CFBF;
  --oak: #A9845A;
  --bronze: #8C6A47;
  --charcoal: #2A2724;
  --ink: #3B3631;
  --muted: #7B7268;
  --line: rgba(42, 39, 36, .16);
  --line-light: rgba(246, 242, 235, .22);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1300px;
  --section: clamp(88px, 13vw, 200px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--ivory); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--charcoal); margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.04; margin-bottom: .55em; text-wrap: balance; }
.lede { text-wrap: pretty; }
p { margin: 0 0 1.1em; }
.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .3em; text-transform: uppercase; color: var(--bronze);
  margin-bottom: 1.6em;
}
.lede {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.62rem); line-height: 1.45; color: var(--charcoal);
}
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--bronze);
  border-top: 1px solid var(--line); padding-top: .8em; margin-top: 1.6em;
}

/* ---------- Header & menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 242, 235, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  height: var(--header-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal); white-space: nowrap;
}
.wordmark__the { color: var(--muted); }
.nav__list { list-style: none; display: flex; gap: clamp(16px, 2vw, 32px); margin: 0; padding: 0; }
.nav__list a {
  font: 400 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 8px 0; position: relative;
  transition: color .3s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--charcoal); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__list .nav__enquire { color: var(--bronze); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 10px 0; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--ivory); padding: 32px var(--gutter); overflow-y: auto;
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a {
  display: flex; gap: 18px; align-items: baseline; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font: 300 1.7rem/1.2 var(--serif); color: var(--charcoal);
}
.menu__list span { font: 400 11px/1 var(--sans); letter-spacing: .2em; color: var(--bronze); min-width: 22px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Plates (photographs) ---------- */
.plate { margin: 0; }
.plate__btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--sand);
  cursor: zoom-in; overflow: hidden;
}
.plate__btn img { width: 100%; transition: transform 1.4s var(--ease), opacity .6s; }
.plate__btn:hover img { transform: scale(1.012); }
.plate figcaption {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted);
}
.plate__no { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); white-space: nowrap; }
.plate--bleed figcaption, .plate--hero figcaption { padding: 0 var(--gutter); }

/* ---------- 01 Arrival ---------- */
.arrival { position: relative; background: var(--ivory); }
.masthead {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 32px;
  padding: clamp(20px, 4.5vh, 56px) var(--gutter) clamp(20px, 3.6vh, 40px);
}
.masthead__title {
  font-size: clamp(2.9rem, 5.6vw, 6.4rem); line-height: .95; font-weight: 300; letter-spacing: -.012em;
  white-space: nowrap;
}
.masthead__aside { justify-self: end; text-align: right; padding-bottom: .6em; }
.masthead__headline {
  font: italic 300 clamp(1.25rem, 2.1vw, 1.9rem)/1.25 var(--serif); color: var(--charcoal); margin-bottom: .7em;
}
.masthead__place { font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bronze); margin: 0; }
.plate--hero .plate__btn { background: var(--sand); }
.plate--hero figcaption { padding-bottom: 18px; }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 22px;
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { display: block; width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--bronze);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

@media (max-width: 1080px) {
  .masthead { grid-template-columns: 1fr; gap: 18px; }
  .masthead__title { font-size: clamp(2.9rem, 9vw, 6rem); }
  .masthead__aside { justify-self: start; text-align: left; padding: 0; }
}
@media (max-width: 760px) {
  .masthead__title { white-space: normal; font-size: clamp(2.9rem, 13vw, 4.6rem); }
  .scroll-cue { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) var(--gutter) 0; }
.section-head { max-width: var(--max); margin: 0 auto clamp(40px, 6vw, 88px); }
.section-head--center { text-align: center; max-width: 820px; }
.section-head__sub { color: var(--muted); }
.section-head--split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: end;
}
.section-head--split h2 { margin-bottom: 0; }
.section-head--split .lede { margin-top: 0; }

.plate--wide { max-width: var(--max); margin: 0 auto; }
.plate--bleed { margin: 0 calc(var(--gutter) * -1); }
.plate--bleed .plate__btn img { width: 100%; }

/* 02 Residence */
.residence__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 130px); align-items: center;
}
.residence__text { max-width: 500px; }
.residence__levels {
  display: grid; margin-top: 2.4em; border-top: 1px solid var(--line);
  font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.residence__levels span { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* 03 Outlook */
.outlook__pair {
  max-width: var(--max); margin: clamp(56px, 9vw, 140px) auto 0;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.outlook__text { padding-top: clamp(0px, 6vw, 90px); }
.plate--offset { margin-right: calc(var(--gutter) * -1); }
.plate--offset figcaption { padding-right: var(--gutter); }

/* 04 Living */
.living__pair {
  max-width: var(--max); margin: clamp(56px, 9vw, 140px) auto 0;
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 8vw, 130px); align-items: center;
}
.living__plate { max-width: 500px; }
.materials { list-style: none; margin: 2em 0 0; padding: 0; border-top: 1px solid var(--line); }
.materials li {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* 05 Retreats */
.retreats { background: var(--ivory); padding-bottom: 0; margin-top: var(--section); }
.retreats__bedroom { margin-bottom: clamp(88px, 13vw, 200px); }
.retreats__grid {
  max-width: var(--max); margin: 0 auto clamp(64px, 10vw, 150px);
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(36px, 8vw, 130px); align-items: center;
}
.retreats__text { max-width: 480px; justify-self: end; }
/* sub-heading of section 05, styled to match the section headings */
.retreats__title { font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1.04; margin-bottom: .55em; text-wrap: balance; }
.retreats__plate { max-width: 520px; }
.retreats .plate--bleed { padding-bottom: clamp(24px, 3vw, 40px); }

/* 06 Connected */
.triptych {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 40px); align-items: start;
}
.triptych__b { margin-top: clamp(0px, 9vw, 140px); }
.triptych__c { margin-top: clamp(0px, 4.5vw, 70px); }
.triptych__a figcaption { color: var(--charcoal); }

/* 07 Details */
.details__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 4fr 6fr; gap: clamp(28px, 5vw, 80px) clamp(36px, 7vw, 110px);
}
.details__laundry { grid-row: span 2; }
.details__index { align-self: end; }
.details__intro { color: var(--muted); font-size: 15px; max-width: 420px; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: idx; }
.index li { counter-increment: idx; border-bottom: 1px solid var(--line); }
.index button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 12px;
  background: none; border: 0; padding: 15px 0; text-align: left; cursor: pointer;
}
.index button::before { content: counter(idx, decimal-leading-zero); font-size: 10px; letter-spacing: .2em; color: var(--bronze); }
.index__name { font: 400 1.35rem/1.2 var(--serif); color: var(--charcoal); transition: color .3s, transform .4s var(--ease); }
.index__ref { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.index button:hover .index__name { color: var(--bronze); transform: translateX(6px); }
.details__courtyard { align-self: start; }

/* 08 Glance */
.glance { background: var(--warm-white); }
.specs {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.specs > div {
  padding: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 28px);
  border-bottom: 1px solid var(--line); text-align: center;
}
.specs > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.specs dt { order: 2; margin-top: 4px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.specs dd { order: 1; margin: 0 0 12px; font: 300 clamp(2.6rem, 5vw, 4.4rem)/1 var(--serif); color: var(--charcoal); }
.specs dd.is-text { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.24; }
.specs > div { display: flex; flex-direction: column; align-items: center; }
.specs__note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
.specs__note sup, .specs dt sup { color: var(--bronze); }

/* Buyer questions, under the specifications */
.faq { max-width: 1100px; margin: clamp(64px, 9vw, 120px) auto 0; display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 5vw, 80px); }
.faq__title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.1; }
.faq__list { margin: 0; border-top: 1px solid var(--line); }
.faq__list > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq__list dt { font: 400 1.35rem/1.25 var(--serif); color: var(--charcoal); margin-bottom: 8px; }
.faq__list dd { margin: 0; font-size: 16px; color: var(--ink); }
.faq__list a { color: var(--bronze); }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* 09 Plans — interactive floor plans */
.fp {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start;
}
.fp__levels { position: sticky; top: calc(var(--header-h) + 24px); }
.fp__levels-title { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; }
/* listed bottom-up in the markup (Garage first); shown stacked like the building, Garage at the foot */
.fp__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column-reverse; }
.fp__item { border-bottom: 1px solid var(--line); }
.fp__item--drawing { margin-bottom: 22px; }
.fp__item:has(+ .fp__item--drawing) { border-top: 1px solid var(--line); }
.fp__item button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: none; border: 0; padding: 15px 0 15px 16px; text-align: left; cursor: pointer; position: relative;
}
.fp__item button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: var(--limestone);
  transition: width .4s var(--ease), background .3s;
}
.fp__item-name { font: 400 1.3rem/1.2 var(--serif); color: var(--muted); transition: color .3s; }
.fp__item-rl { font-size: 10px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.fp__item button:hover .fp__item-name { color: var(--charcoal); }
.fp__item button[aria-pressed="true"] .fp__item-name { color: var(--charcoal); }
.fp__item button[aria-pressed="true"]::before { width: 10px; background: var(--bronze); }

.fp__main { min-width: 0; }
.fp__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.fp__rl { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--bronze); margin: 0 0 6px; }
.fp__name { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.fp__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.fp__tool {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--warm-white); color: var(--charcoal); cursor: pointer;
  font: 400 18px/1 var(--sans); text-decoration: none; transition: background .3s, border-color .3s;
}
.fp__tool--text { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.fp__tool:hover { background: var(--ivory); border-color: var(--limestone); }
.fp__tool[hidden] { display: none; }

.fp__stage {
  position: relative; overflow: hidden; background: #FBF9F5; border: 1px solid var(--line);
  height: min(78vh, 860px); touch-action: pan-y; cursor: default; outline-offset: -1px;
}
.fp__stage.is-wide { height: min(62vh, 640px); }
.fp__stage.is-zoomed { cursor: grab; touch-action: none; }
.fp__stage.is-zoomed:active { cursor: grabbing; }
.fp__canvas { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.fp__canvas svg { display: block; width: 100%; height: 100%; }
.fp__canvas .plan-label { font-weight: 400; }
.fp__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 13px; }
.fp__hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; pointer-events: none;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  background: rgba(251, 249, 245, .9); padding: 6px 12px; white-space: nowrap;
}
.fp__close { display: none; }
.fp__rooms { margin: 16px 0 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 2; }

/* full screen */
.fp.is-full {
  position: fixed; inset: 0; z-index: 95; max-width: none; margin: 0; background: var(--warm-white);
  padding: 20px var(--gutter); grid-template-columns: 200px 1fr; overflow: auto;
}
.fp.is-full .fp__levels { top: 0; }
.fp.is-full .fp__main { display: flex; flex-direction: column; height: calc(100vh - 40px); height: calc(100dvh - 40px); }
.fp.is-full .fp__stage, .fp.is-full .fp__stage.is-wide { flex: 1; height: auto; touch-action: none; }
.fp.is-full .fp__rooms { margin-top: 10px; }

.fp-foot { max-width: var(--max); margin: 28px auto 0; display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 64px); }
.fp-foot__note { grid-column: 2; margin: 0; max-width: 720px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* 10 Lifestyle */
.lifestyle { background: var(--sand); margin-top: var(--section); padding-top: 0; padding-bottom: var(--section); }
.lifestyle .plate--bleed figcaption { color: var(--ink); }
.lifestyle__text {
  max-width: var(--max); margin: clamp(48px, 8vw, 120px) auto 0;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 100px); align-items: start;
}

/* 11 Inspections */
.inspections {
  background: var(--charcoal); color: var(--sand);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
.inspections__plate .plate__btn { background: #1f1d1b; }
.inspections__plate figcaption { color: rgba(234, 225, 211, .6); padding: 0 var(--gutter) 20px; }
.inspections__text { padding: clamp(56px, 8vw, 120px) var(--gutter); max-width: 640px; }
.inspections h2 { color: var(--ivory); }
.inspections .lede { color: var(--sand); }
.inspections .eyebrow { color: var(--limestone); }
.actions { display: grid; gap: 12px; margin: 2.6em 0 1.6em; max-width: 440px; }
.btn {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--line-light); text-decoration: none;
  font: 500 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory);
  background: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.btn::after { content: "→"; letter-spacing: 0; transition: transform .4s var(--ease); }
.btn:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn:hover::after { transform: translateX(4px); }
.btn--primary { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn--primary:hover { background: var(--sand); }
.btn--pending {
  cursor: not-allowed; color: rgba(234, 225, 211, .55); border-style: dashed; background: none;
  flex-direction: column; align-items: flex-start; gap: 6px;
}
.btn--pending::after { content: none; }
.btn--pending:hover { background: none; color: rgba(234, 225, 211, .55); border-color: var(--line-light); }
.btn__note { font-size: 10px; letter-spacing: .14em; color: var(--oak); text-transform: none; font-weight: 400; letter-spacing: .04em; }

/* Owner's contact card */
.contact-card { margin: 2.4em 0 0; padding: 26px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.contact-card p { margin: 0; }
.contact-card__label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--limestone); margin-bottom: 12px !important; }
.contact-card__name { font: 300 1.9rem/1.15 var(--serif); color: var(--ivory); }
.contact-actions { display: grid; gap: 12px; margin-top: 22px; max-width: 440px; }
.btn__stack { display: flex; flex-direction: column; gap: 6px; }
.btn__detail { font: 400 15px/1.2 var(--sans); letter-spacing: .03em; text-transform: none; overflow-wrap: anywhere; }
.btn--primary .btn__detail { color: var(--bronze); }
.btn:not(.btn--primary) .btn__detail { color: var(--sand); }
.btn:not(.btn--primary):hover .btn__detail { color: var(--bronze); }

/* Enquiry form */
.enquiry { margin: 3em 0 0; }
.enquiry__title { color: var(--ivory); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; margin-bottom: 1em; }
.enquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: end; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--limestone); margin-bottom: 6px; }
.field__opt { letter-spacing: .06em; text-transform: none; color: rgba(217, 207, 191, .6); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; background: rgba(246, 242, 235, .04); border: 0; border-bottom: 1px solid var(--line-light);
  color: var(--ivory); font: 400 16px/1.5 var(--sans); padding: 10px 12px; border-radius: 0;
  transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sand); background: rgba(246, 242, 235, .08); }
.field input:focus-visible, .field textarea:focus-visible { outline: 1px solid var(--oak); outline-offset: 2px; }
.field [aria-invalid="true"] { border-bottom-color: #d9a07a; }
.field textarea::placeholder { color: rgba(217, 207, 191, .45); }
.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input[type="date"] { color-scheme: dark; min-height: 47px; }
.enquiry__privacy { font-size: 12px; line-height: 1.6; color: rgba(217, 207, 191, .75); margin: 4px 0 20px; }
.enquiry__privacy a { color: var(--sand); }
.enquiry__submit { width: 100%; max-width: 440px; }
.enquiry__submit:disabled { opacity: .6; }
.enquiry__submit.btn--pending, .enquiry__submit.btn--pending:hover { flex-direction: row; align-items: center; background: none; color: rgba(234, 225, 211, .55); border-color: var(--line-light); opacity: 1; }
.enquiry__status { font-size: 14px; line-height: 1.6; margin: 14px 0 0; min-height: 1.6em; color: var(--limestone); }
.enquiry__status.is-ok { color: var(--ivory); }
.enquiry__status.is-error { color: #e2b393; }
.enquiry__status.is-pending { color: var(--oak); font-size: 12px; }
.inspections .actions { margin-top: 2.6em; }

/* Call / enquire bar: phones only, slides up once past the opening photograph */
.quick-contact { display: none; }
@media (max-width: 760px) {
  .quick-contact {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; background: rgba(42, 39, 36, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line-light); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .quick-contact[hidden] { display: none; }
  .quick-contact.is-shown { transform: none; }
  .quick-contact a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
    text-decoration: none; color: var(--ivory); font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  }
  .quick-contact a + a { border-left: 1px solid var(--line-light); }
  .quick-contact__num { font: 400 15px/1 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--sand); }
  .quick-contact__call { flex: 1.6 !important; }
  .site-footer { padding-bottom: calc(64px + 54px); }
  .enquiry__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .quick-contact { transition: none; } }
.text-link {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--limestone);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}

/* Footer */
.site-footer {
  background: #211F1C; color: rgba(234, 225, 211, .6); text-align: center;
  padding: 56px var(--gutter) 64px; font-size: 13px;
}
.site-footer p { margin: 0 0 .5em; }
.site-footer__name { font: 300 1.5rem/1.2 var(--serif); color: var(--sand); }
.site-footer__links a { color: var(--sand); text-decoration: none; border-bottom: 1px solid var(--line-light); }
.site-footer__fine { max-width: 640px; margin: 1.4em auto 0 !important; font-size: 11px; line-height: 1.7; }

/* ---------- Viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 90; background: rgba(24, 22, 20, .97); color: var(--sand);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh;
}
.viewer[hidden] { display: none; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.viewer__count { margin: 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--limestone); }
.viewer__close {
  background: none; border: 0; cursor: pointer; padding: 10px 0; color: var(--sand);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; display: flex; gap: 10px; align-items: center;
}
.viewer__close span { font-size: 22px; line-height: 1; letter-spacing: 0; }
.viewer__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); }
.viewer__img {
  max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain;
  transition: opacity .35s var(--ease); touch-action: pan-y;
}
.viewer__img.is-loading { opacity: 0; }
.viewer__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 1px solid var(--line-light); border-radius: 50%;
  background: rgba(24, 22, 20, .4); color: var(--sand); cursor: pointer; font-size: 18px;
  transition: background .3s, color .3s;
}
.viewer__nav:hover { background: var(--ivory); color: var(--charcoal); }
.viewer__nav--prev { left: clamp(8px, 2vw, 28px); }
.viewer__nav--next { right: clamp(8px, 2vw, 28px); }
.viewer__caption { text-align: center; margin: 0; padding: 16px var(--gutter) 24px; font: italic 300 1.15rem/1.4 var(--serif); color: var(--sand); }
@media (max-width: 760px) {
  .viewer__nav { top: auto; bottom: 8px; transform: none; width: 46px; height: 46px; }
  .viewer__stage { padding: 0 0 64px; }
  .viewer__img { max-height: calc(100vh - 236px); max-height: calc(100dvh - 236px); }
}

/* ---------- Reveal on scroll (only when JS runs and motion is welcome) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i::after { animation: none; top: 0; height: 100%; }
  .plate__btn img, .index__name, .btn::after, .viewer__img { transition: none; }
  .plate__btn:hover img { transform: none; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .residence__grid, .outlook__pair, .living__pair, .retreats__grid,
  .section-head--split, .details__grid, .lifestyle__text, .inspections {
    grid-template-columns: 1fr;
  }
  .residence__text, .retreats__text, .living__plate, .retreats__plate { max-width: none; justify-self: stretch; }
  .outlook__text { padding-top: 0; }
  .plate--offset { margin-right: calc(var(--gutter) * -1); }
  .living__plate { order: 2; }
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych__a { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  .triptych__b, .triptych__c { margin-top: 0; }
  .details__laundry { grid-row: auto; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div:not(:nth-child(3n)) { border-right: 0; }
  .specs > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .fp, .fp.is-full, .fp-foot { grid-template-columns: minmax(0, 1fr); }
  .fp__levels, .fp.is-full .fp__levels { position: static; min-width: 0; }
  .fp__levels-title { display: none; }
  .fp__list { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; border: 0; padding-bottom: 4px; scrollbar-width: none; }
  .fp__item, .fp__item--drawing { border: 1px solid var(--line); margin: 0; flex: 0 0 auto; }
  .fp__item button { padding: 10px 14px; flex-direction: column; gap: 2px; }
  .fp__item button::before { display: none; }
  .fp__item button[aria-pressed="true"] { background: var(--charcoal); }
  .fp__item button[aria-pressed="true"] .fp__item-name, .fp__item button[aria-pressed="true"] .fp__item-rl { color: var(--ivory); }
  .fp__item-name { font-size: 1.05rem; }
  .fp__stage { height: min(72vh, 640px); }
  .fp__tools { gap: 4px; }
  .fp__tool { min-width: 36px; height: 36px; padding: 0 9px; }
  .fp__tool--text { font-size: 9px; letter-spacing: .14em; }
  .fp.is-full { padding: 12px 12px 16px; gap: 10px; }
  .fp.is-full .fp__main { height: auto; flex: 1; min-height: 0; }
  .fp.is-full { display: flex; flex-direction: column; overflow-x: hidden; }
  .fp.is-full > * { min-width: 0; max-width: 100%; }
  .fp-foot__note { grid-column: 1; }
  .inspections__plate { max-width: 560px; justify-self: center; width: 100%; padding-top: 24px; }
}
@media (max-width: 520px) {
  .triptych { grid-template-columns: 1fr; }
}
