:root {
  --ink: #0b111d;        /* page base: the logo navy, taken almost to black */
  --ink-2: #121a2b;      /* raised surfaces */
  --navy: #1f3358;       /* logo navy */
  --gold: #c5a059;       /* logo gold, lifted for dark backgrounds */
  --stone: #e8e3d9;      /* main text on dark */
  --mute: #9aa3b5;       /* secondary text */
  --line: rgba(232, 227, 217, 0.16);
  --pad: clamp(20px, 5vw, 72px);
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--stone);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

section[id] { scroll-margin-top: 96px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--stone); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--pad);
  transition: background 0.4s, padding 0.4s;
}
.top.is-solid { background: rgba(11, 17, 29, 0.92); backdrop-filter: blur(10px); padding-block: 10px; }
.brand { grid-column: 2; display: grid; justify-items: center; text-decoration: none; gap: 2px; }
.brand-mark { width: 46px; height: 24px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .m-a { stroke: var(--stone); }
.brand-mark .m-b { stroke: var(--gold); }
.brand-name { font-size: 24px; letter-spacing: 0.42em; margin-right: -0.42em; font-weight: 400; }
.brand-sub { font-size: 11px; letter-spacing: 0.3em; margin-right: -0.3em; text-transform: uppercase; color: var(--gold); }
.menu-btn {
  grid-column: 3; justify-self: end;
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; color: inherit; font: inherit; font-size: 15px; cursor: pointer; padding: 10px 0;
}
.menu-btn-bars { width: 26px; height: 9px; border-block: 1.5px solid currentColor; transition: height 0.3s; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { height: 0; border-bottom: 0; }

.menu {
  position: fixed; inset: 0; z-index: 30;
  background: var(--ink);
  padding: 130px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: 6px; }
.menu li a { font-size: clamp(28px, 5vw, 52px); text-decoration: none; line-height: 1.25; display: inline-block; border-bottom: 1px solid transparent; }
.menu li a:hover { color: var(--gold); border-color: var(--gold); }
.menu-contact { display: flex; gap: 28px; margin-top: 32px; font-size: 16px; }

/* ---------- Hero films ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.films, .film, .shot, .film-shade { position: absolute; inset: 0; }
.film { opacity: 0; transition: opacity 1.2s ease; }
.film.is-active { opacity: 1; }
.shot {
  background-image: var(--img); background-size: cover; background-position: var(--pos);
  opacity: 0; transform: scale(var(--from));
  transition: opacity 1.8s ease;
  will-change: transform, opacity;
}
.shot.is-on { opacity: 1; animation: drift 9s linear forwards; }
.shot.is-out { opacity: 0; animation: drift 9s linear forwards; }
@keyframes drift {
  from { transform: scale(var(--from)) translate(0, 0); }
  to { transform: scale(var(--to)) translate(var(--dx), var(--dy)); }
}
.films.is-paused .shot { animation-play-state: paused; }
.film-shade {
  background:
    linear-gradient(90deg, rgba(11,17,29,0.7) 0%, rgba(11,17,29,0.35) 45%, rgba(11,17,29,0) 75%),
    linear-gradient(180deg, rgba(11,17,29,0.78) 0%, rgba(11,17,29,0.25) 24%, rgba(11,17,29,0.4) 50%, rgba(11,17,29,0.96) 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding: 150px var(--pad) 0; }
.hero-copy { max-width: 880px; padding-bottom: clamp(28px, 5vh, 56px); }
.hero h1 { font-size: clamp(40px, 7vw, 92px); letter-spacing: -0.015em; text-wrap: balance; }
.hero-copy p { font-size: clamp(18px, 1.6vw, 22px); max-width: 34em; margin: 22px 0 30px; color: #f3efe7; }
.hero-copy.is-swapping > * { opacity: 0; transform: translateY(8px); }
.hero-copy > * { transition: opacity 0.35s, transform 0.35s; }

.film-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.film-tabs button {
  position: relative; text-align: left;
  background: none; border: 0; border-right: 1px solid var(--line);
  color: var(--mute); font: inherit; font-size: 17px; font-weight: 400;
  padding: 22px 20px 26px 0; cursor: pointer;
}
.film-tabs button + button { padding-left: 20px; }
.film-tabs button:last-child { border-right: 0; }
.film-tabs button:hover, .film-tabs button[aria-selected="true"] { color: var(--stone); }
.film-tabs i { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--gold); }
.film-tabs button[aria-selected="true"] i { width: 100%; animation: fill var(--film-length, 27s) linear; }
.is-paused-tabs button[aria-selected="true"] i { animation: none; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

.film-toggle {
  position: absolute; z-index: 3; right: var(--pad); top: 50%;
  writing-mode: vertical-rl;
  background: none; border: 0; color: var(--stone); opacity: 0.7; font: inherit; font-size: 13px; cursor: pointer; padding: 8px 4px;
}
.film-toggle:hover { opacity: 1; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; font: inherit; font-size: 16px; font-weight: 400;
  padding: 15px 28px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--gold); transition: background 0.25s, color 0.25s;
}
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--stone); border-color: var(--stone); }
.btn-line { background: transparent; color: var(--stone); border-color: var(--line); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.link { color: var(--gold); text-underline-offset: 6px; font-weight: 400; }
.link:hover { color: var(--stone); }

/* ---------- Statement ---------- */
.statement {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(72px, 11vw, 150px) var(--pad);
  align-items: end;
}
.statement-lead { font-size: clamp(24px, 2.9vw, 40px); line-height: 1.32; max-width: 24em; }
.statement-side img { width: 100%; max-width: 320px; height: auto; margin-bottom: 20px; }
.statement-side p { color: var(--mute); font-size: 17px; max-width: 22em; }

/* ---------- Service panels ---------- */
.panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 78vh; }
.panel-flip .panel-media { order: 2; }
.panel-media { overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.panel-body { background: var(--ink-2); padding: clamp(36px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.panel-body p { max-width: 30em; }
.panel-body ul { display: grid; gap: 12px; color: var(--mute); font-size: 17px; max-width: 30em; }
.panel-body li { padding-left: 22px; position: relative; }
.panel-body li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--gold); }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head p { color: var(--mute); max-width: 30em; justify-self: end; }
.section-head a { color: var(--gold); text-underline-offset: 5px; }

/* ---------- Properties ---------- */
.properties { padding: clamp(72px, 10vw, 140px) var(--pad); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px) clamp(16px, 2vw, 32px); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.tag { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--stone); font-size: 13px; font-weight: 400; padding: 4px 10px; }
.card-place { color: var(--mute); font-size: 16px; margin-top: 4px; }
.card-meta { color: var(--gold); font-size: 16px; font-weight: 400; margin-top: 10px; }

/* ---------- Listing picker ---------- */
.listing-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-bottom: clamp(28px, 4vw, 56px); }
.listing-picker button {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; text-align: left;
  background: none; border: 0; border-top: 2px solid var(--line); padding: 16px 0 0; color: var(--mute); font: inherit; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.listing-picker button:hover { color: var(--stone); }
.listing-picker button[aria-selected="true"] { color: var(--stone); border-top-color: var(--gold); }
.listing-picker img { width: 112px; height: 76px; object-fit: cover; opacity: 0.7; transition: opacity 0.2s; }
.listing-picker button:hover img, .listing-picker button[aria-selected="true"] img { opacity: 1; }
.picker-text { display: grid; gap: 2px; font-size: 15px; }
.picker-text strong { font-weight: 400; font-size: 17px; color: var(--stone); }
.picker-price { color: var(--gold); }
.listing-text { display: grid; gap: 14px; }

/* ---------- Single listing ---------- */
.listing { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.gallery-main { margin: 0; position: relative; background: var(--ink-2); }
.gallery-main img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-main figcaption { position: absolute; left: 0; bottom: 0; background: rgba(11,17,29,0.82); padding: 8px 16px; font-size: 15px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.2s; }
.gallery-thumbs button:hover, .gallery-thumbs button[aria-current="true"] { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { box-shadow: 0 2px 0 var(--gold); }
.gallery-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.listing-body { display: grid; gap: 20px; }
.listing-price { color: var(--gold); font-size: 20px; font-weight: 400; }
.listing-body h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; }
.facts { margin: 4px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--mute); }
.facts dd { margin: 0; font-weight: 400; }
.listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 6px; }

/* ---------- Reviews ---------- */
.reviews { padding: clamp(72px, 10vw, 140px) var(--pad); background: var(--ink-2); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px) clamp(32px, 6vw, 96px); }
.review { margin: 0; display: grid; gap: 14px; align-content: start; }
.stars { color: var(--gold); letter-spacing: 0.2em; font-size: 16px; }
.review blockquote { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; }
.review figcaption { font-weight: 400; font-size: 16px; }
.review figcaption span { color: var(--mute); font-weight: 300; margin-left: 10px; }

/* ---------- Areas ---------- */
.areas { padding: clamp(72px, 10vw, 140px) var(--pad); border-top: 1px solid var(--line); }
.areas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.areas-grid h3 { color: var(--gold); margin-bottom: 18px; }
.area-list li { font-size: clamp(22px, 2.4vw, 32px); padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---------- Private list ---------- */
.private { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 70vh; }
.private-media { background: url(assets/terrace-sunset.jpg) 70% 50% / cover; }
.private-body { background: var(--navy); padding: clamp(40px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.private-body > p { max-width: 28em; }

/* ---------- Forms ---------- */
label, legend { font-size: 15px; font-weight: 400; color: var(--stone); }
.opt { color: var(--mute); font-weight: 300; }
input:not([type="radio"]):not([type="checkbox"]), textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--stone);
  background: transparent; border: 0; border-bottom: 1px solid rgba(232,227,217,0.4);
  padding: 10px 0; border-radius: 0;
}
input::placeholder { color: var(--mute); opacity: 0.8; }
input:focus-visible, textarea:focus-visible { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
[aria-invalid="true"] { border-bottom-color: #f0907c !important; }
.form-note { font-size: 16px; min-height: 1.6em; color: var(--stone); }
.form-note.is-error { color: #f0907c; }
.inline-form { margin-top: 8px; max-width: 520px; display: grid; gap: 8px; }
.inline-row { display: flex; gap: 16px; align-items: end; }
.inline-row input { flex: 1; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 110px); padding: clamp(72px, 10vw, 140px) var(--pad); }
.contact-intro { display: grid; gap: 22px; align-content: start; }
.contact-intro > p { color: var(--mute); max-width: 24em; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 12px; }
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; align-items: end; }
.enquiry > .roles, .enquiry > .field-wide, .enquiry > .check, .enquiry > .form-note { grid-column: 1 / -1; }
.enquiry > .btn { justify-self: start; }
.field { display: grid; gap: 4px; }
.roles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.roles legend { margin-bottom: 12px; padding: 0; }
.roles label { cursor: pointer; }
.roles input { position: absolute; opacity: 0; }
.roles span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); font-size: 16px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.roles input:checked + span { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.roles input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px var(--pad) 110px; display: grid; grid-template-columns: auto 1fr; gap: 28px 64px; align-items: start; }
.foot-brand { display: grid; gap: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; font-size: 16px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.foot-legal { grid-column: 1 / -1; color: var(--mute); font-size: 14px; max-width: 70em; display: grid; gap: 4px; }
.foot-legal { gap: 12px; }
.foot-legal address { font-style: normal; color: var(--stone); font-size: 15px; }
.foot-redress { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-redress img { width: 150px; height: auto; background: #fff; padding: 8px 10px; }
[data-todo] { color: #f0c27c; }

.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  background: var(--stone); color: var(--ink); text-decoration: none; font-weight: 400; font-size: 15px;
  padding: 12px 22px; border-radius: 40px;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s;
}
.float-cta.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .menu-btn-label { display: none; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 38px; height: 20px; }
  .film-tabs { grid-template-columns: repeat(2, 1fr); }
  .film-tabs button { padding: 16px 12px 18px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .film-tabs button + button { padding-left: 12px; }
  .film-tabs button:nth-child(2n) { border-right: 0; }
  .film-tabs button:nth-child(2n+1) { padding-left: 0; }
  .film-shade { background: linear-gradient(180deg, rgba(11,17,29,0.8) 0%, rgba(11,17,29,0.15) 22%, rgba(11,17,29,0.45) 46%, rgba(11,17,29,0.96) 78%); }
  .film-tabs button:nth-child(n+3) { border-bottom: 0; }
  .film-toggle { top: 96px; right: 12px; writing-mode: horizontal-tb; }
  .statement, .panel, .section-head, .areas-grid, .private, .contact, .enquiry, .listing { grid-template-columns: minmax(0, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-picker, .review-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-picker button { grid-template-columns: 88px minmax(0, 1fr); padding-top: 12px; }
  .listing-picker img { width: 88px; height: 60px; }
  .panel { min-height: 0; }
  .panel-flip .panel-media { order: 0; }
  .panel-media img { aspect-ratio: 4 / 3; min-height: 0; }
  .section-head p { justify-self: start; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .private-media { min-height: 260px; }
  .inline-row { flex-direction: column; align-items: stretch; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .shot.is-on, .shot.is-out { animation: none; transition: none; }
  .film, .hero-copy > *, .card-media img { transition: none; }
  .film-tabs button[aria-selected="true"] i { animation: none; width: 100%; }
  .film-toggle { display: none; }
}

/* Hidden spam trap field: never shown to people. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Property attached to a viewing request, shown at the top of the enquiry form. */
.viewing-for { grid-column: 1 / -1; margin: 0; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; border: 1px solid var(--gold); color: var(--stone); font-size: 17px; }
.viewing-for[hidden] { display: none; }
.viewing-for strong { font-weight: 500; color: #fff; }
.viewing-for button { background: none; border: 0; padding: 4px 0; color: var(--gold); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }

/* ---------- Market intelligence preview on the home page ---------- */
.mi-preview { padding: clamp(72px, 10vw, 140px) var(--pad); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.mi-preview-copy { display: grid; gap: 20px; justify-items: start; }
.mi-preview-copy > p { color: var(--mute); max-width: 26em; }
.mi-preview-stats { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.mi-preview-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mi-preview-stats dt { color: var(--mute); font-size: 16px; }
.mi-preview-stats dd { margin: 0; font-size: clamp(24px, 2.6vw, 34px); text-align: right; }
.mi-preview-note { color: var(--mute); font-size: 14px; margin-top: 14px; }

@media (max-width: 860px) {
  .mi-preview { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Market intelligence link beside the hero tabs ---------- */
.film-nav { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.film-nav .film-tabs { display: contents; }
.film-nav .film-tabs button:last-child { border-right: 1px solid var(--line); }
.film-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 22px 0 26px 20px; font-size: 17px; text-decoration: none; color: var(--gold);
}
.film-link:hover { color: var(--stone); }
.film-link-arrow { font-size: 20px; line-height: 1; }
@media (max-width: 1100px) {
  .film-nav .film-tabs button, .film-link { font-size: 15px; }
}
@media (max-width: 860px) {
  .film-nav { grid-template-columns: repeat(2, 1fr); }
  .film-nav .film-tabs button:last-child { border-right: 0; }
  .film-nav .film-tabs button:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .film-link { grid-column: 1 / -1; padding: 16px 0 18px; font-size: 16px; }
}

/* ---------- Private Buyer Network section on the home page ---------- */
.private-body .btn { align-self: flex-start; }
.private-small { font-size: 16px; color: #c9d0de; }
.private-small a { color: var(--gold); text-underline-offset: 4px; }
