/* Alternative Estates
   ---------------------------------------------------------------
   Brand system shared with alternativefs.co.uk: deep teal-navy,
   butterfly blue #0082AF, Calibri. The one signature is the
   Coventry night skyline with the angled teal band from the
   original site; everything around it stays quiet.
*/

:root {
  --navy-950: #001520;
  --navy-900: #002233;
  --navy-800: #004460;
  --navy-700: #005676;
  --brand: #0082af;
  --brand-deep: #006b91;   /* text-safe on white (5.6:1) */
  --brand-light: #80c9e4;
  --mist: #eef6fb;
  --mist-2: #d4ecf7;
  --white: #ffffff;
  --ink: #0f2a37;
  --muted: #4d6672;
  --line: #d4e3ec;
  --danger: #b3261e;

  --on-dark: rgba(212, 236, 247, 0.86);
  --on-dark-soft: rgba(212, 236, 247, 0.66);

  --font: Calibri, 'Carlito', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Modular scale (1.2) on an 18px base */
  --t-xs: 0.78rem;
  --t-sm: 0.889rem;
  --t-md: 1rem;
  --t-lg: 1.2rem;
  --t-xl: 1.44rem;
  --t-2xl: clamp(1.5rem, 1.3rem + 0.8vw, 1.728rem);
  --t-3xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.074rem);
  --t-4xl: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --t-5xl: clamp(2.3rem, 1.4rem + 3.6vw, 3.6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --wrap: 75rem;
  --measure: 68ch;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 5rem;
  --shadow: 0 18px 40px -18px rgba(0, 21, 32, 0.45);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-900); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--mist-2); color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
small { font-size: var(--t-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--navy-900); padding: 0.6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.icon--fill { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 700 var(--t-md)/1.2 var(--font); letter-spacing: 0.005em;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-deep); color: var(--white); }
.btn--blue { background: var(--navy-900); color: var(--white); }
.btn--blue:hover { background: var(--navy-800); color: var(--white); }
.btn--line { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn--line:hover { background: var(--navy-900); color: var(--white); }
.btn--outline-light { border-color: rgba(212, 236, 247, 0.55); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn--block { width: 100%; }

/* -------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: var(--white); border-bottom: 1px solid rgba(128, 201, 228, 0.14); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 3.1rem; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 0.3em;
  padding: 0.55rem 0.7rem; border: 0; background: none; cursor: pointer;
  font: 700 var(--t-sm)/1.2 var(--font); color: var(--on-dark); text-decoration: none; border-radius: var(--radius-sm);
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current='page'], .nav__link.is-current { color: var(--white); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav__link .icon { width: 0.85em; height: 0.85em; opacity: 0.7; }
.nav__menu {
  list-style: none; margin: 0; padding: 0.4rem; position: absolute; left: 0; top: 100%; min-width: 15rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: none;
}
.nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu, .nav__item.is-open > .nav__menu { display: block; }
.nav__menu a { display: block; padding: 0.55rem 0.8rem; color: var(--ink); text-decoration: none; font-size: var(--t-sm); border-radius: var(--radius-sm); }
.nav__menu a:hover, .nav__menu a[aria-current='page'] { background: var(--mist); color: var(--brand-deep); }

.header-call { display: flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--white); flex: none; font-weight: 700; font-size: var(--t-md); }
.header-call small { display: none; }
.header-call::before {
  content: ''; width: 1.1rem; height: 1.1rem; flex: none;
  background: var(--brand-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h3.2l1.6 4.4-2.2 1.4a11.5 11.5 0 0 0 7.6 7.6l1.4-2.2L21 15.8V19a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h3.2l1.6 4.4-2.2 1.4a11.5 11.5 0 0 0 7.6 7.6l1.4-2.2L21 15.8V19a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.header-call:hover { color: var(--brand-light); }
.header-cta { flex: none; min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: var(--t-sm); }
.menu-toggle { display: none; }

@media (max-width: 70rem) { .header-cta { display: none; } }
@media (max-width: 62rem) {
  :root { --header-h: 4.25rem; }
  .brand img { height: 2.6rem; }
  .header-call { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.4rem 0.8rem;
    font: 700 var(--t-sm) var(--font); color: var(--white); background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 236, 247, 0.3); border-radius: var(--radius-sm); cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; background: var(--navy-900);
    overflow-y: auto; padding: 1rem var(--gutter) 3rem; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(212, 236, 247, 0.12); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem 0; font-size: var(--t-md); border-radius: 0; }
  .nav__link:hover, .nav__item:focus-within > .nav__link { background: none; }
  .nav__link[aria-current='page'], .nav__link.is-current { box-shadow: none; color: var(--brand-light); }
  .nav__menu { position: static; background: none; box-shadow: none; padding: 0 0 0.75rem 0.75rem; min-width: 0; }
  .nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu { display: none; }
  .nav__item.is-open > .nav__menu { display: block; }
  .nav__menu a { color: var(--on-dark); font-size: var(--t-md); padding: 0.6rem 0; }
  .nav__menu a:hover, .nav__menu a[aria-current='page'] { background: none; color: var(--white); }
  .nav__mobile-cta { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
  .nav__mobile-cta .btn--line { border-color: rgba(212, 236, 247, 0.55); color: var(--white); }
}
@media (min-width: 62.01rem) { .nav__mobile-cta { display: none; } }
@media (max-width: 30rem) { .menu-toggle span { display: none; } .header-call { font-size: var(--t-sm); } }

/* ------------------------------------------------ hero: bright video */

.hero { position: relative; isolation: isolate; background: var(--navy-900); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--navy-800); }

/* Slideshow of current listings. The zoom runs on the GPU (transform only),
   so it moves at sub-pixel precision rather than stepping like a video does. */
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide.is-prev { opacity: 1; z-index: 1; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  transform: scale(var(--z0, 1.04)) translate3d(var(--x0, 0), var(--y0, 0), 0);
  will-change: transform; backface-visibility: hidden;
}
.hero-slide.is-moving img { animation: ken-burns var(--dur, 9s) cubic-bezier(0.33, 0, 0.67, 1) forwards; }
@keyframes ken-burns {
  from { transform: scale(var(--z0, 1.04)) translate3d(var(--x0, 0), var(--y0, 0), 0); }
  to { transform: scale(var(--z1, 1.16)) translate3d(var(--x1, 0), var(--y1, 0), 0); }
}
.is-paused .hero-slide img { animation-play-state: paused; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 21, 32, 0.55) 0, rgba(0, 21, 32, 0) 9rem),
    linear-gradient(90deg, rgba(0, 21, 32, 0.66) 0%, rgba(0, 34, 51, 0.38) 42%, rgba(0, 34, 51, 0) 70%),
    linear-gradient(0deg, rgba(0, 21, 32, 0.5) 0%, rgba(0, 21, 32, 0) 30%);
}
.hero--video { min-height: min(94vh, 54rem); display: grid; grid-template-rows: 1fr auto; padding-top: var(--header-h); }
.hero__body { align-self: center; padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.hero h1 { color: var(--white); max-width: 19ch; margin-bottom: 0.4em; font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.4rem); line-height: 1.05; text-shadow: 0 2px 24px rgba(0, 21, 32, 0.45); }
.hero__lede { max-width: 50ch; font-size: var(--t-xl); line-height: 1.45; color: var(--white); margin-bottom: 1.9rem; text-shadow: 0 1px 14px rgba(0, 21, 32, 0.55); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__foot { position: relative; }
.btn--glass { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* Caption for the home on screen, and the pause control, sitting above the search bar */
.hero-meta { position: absolute; right: 0; bottom: calc(100% + 0.9rem); display: flex; align-items: center; gap: 0.6rem; max-width: 100%; }
.hero-caption {
  display: grid; gap: 0.1rem; padding: 0.55rem 0.95rem; border-radius: var(--radius); color: var(--white); text-decoration: none; line-height: 1.25;
  background: rgba(0, 21, 32, 0.5); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity 0.5s ease, background-color 0.2s;
}
.hero-caption span { font-size: var(--t-xs); color: var(--mist-2); }
.hero-caption strong { font-size: var(--t-sm); }
.hero-caption:hover { color: var(--white); background: rgba(0, 21, 32, 0.72); }
.hero-caption.is-changing { opacity: 0; }
.video-toggle {
  font: 700 var(--t-xs)/1 var(--font); color: var(--white); cursor: pointer; white-space: nowrap;
  background: rgba(0, 21, 32, 0.45); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0.5rem 0.9rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.video-toggle:hover { background: rgba(0, 21, 32, 0.7); }
.video-toggle__play, .video-toggle[aria-pressed='true'] .video-toggle__pause { display: none; }
.video-toggle[aria-pressed='true'] .video-toggle__play { display: inline; }

/* Home: header floats over the video, then turns solid on scroll */
.is-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.is-home .site-header.is-solid { background: var(--navy-900); border-bottom-color: rgba(128, 201, 228, 0.14); box-shadow: 0 8px 24px -16px rgba(0, 21, 32, 0.6); }

.finder {
  display: grid; grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.75rem; align-items: end;
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 0 24px 50px -20px rgba(0, 21, 32, 0.55);
}
.finder .btn { min-height: 3rem; }
.finder__switch { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--navy-900); border-radius: var(--radius-sm); margin: 0; padding: 0; overflow: hidden; height: 3rem; min-inline-size: 0; }
.finder__switch label { position: relative; cursor: pointer; display: grid; }
.finder__switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.finder__switch span { display: grid; place-items: center; height: 100%; padding: 0 1.1rem; font-weight: 700; color: var(--navy-900); }
.finder__switch input:checked + span { background: var(--navy-900); color: var(--white); }
.finder__switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: -4px; }
@media (max-width: 62rem) {
  .finder { grid-template-columns: 1fr 1fr; }
  .finder__switch, .finder__q, .finder .btn { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------- forms */

.field { display: grid; gap: 0.35rem; align-content: start; }
.field label, .field .label { font-weight: 700; font-size: var(--t-sm); color: var(--navy-900); }
.field .hint { font-size: var(--t-sm); color: var(--muted); margin: -0.15rem 0 0.1rem; }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #a9bfcb; border-radius: var(--radius-sm);
}
.textarea { min-height: 8rem; resize: vertical; }
.select { appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23002233' stroke-width='1.8'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.65rem center; background-size: 1rem; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 0; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-weight: 700; font-size: var(--t-sm); margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }
.honeypot { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.25rem; border-left: 4px solid var(--danger); background: #fbeceb; margin-bottom: 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.alert--ok { border-color: var(--brand); background: var(--mist); }
.alert h2, .alert h3 { font-size: var(--t-lg); margin-bottom: 0.3rem; }
.alert p:last-child { margin-bottom: 0; }
.form-note { font-size: var(--t-sm); color: var(--muted); }
/* Google allows hiding the reCAPTCHA badge when .recaptcha-note is shown on the form. */
.grecaptcha-badge { visibility: hidden; }

/* ----------------------------------------------------------- sections */

.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section--paper { background: var(--mist); }
.section--ink { background: var(--navy-900); color: var(--on-dark); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink a:not(.btn) { color: var(--white); }
.section--photo { background: linear-gradient(rgba(0, 21, 32, 0.86), rgba(0, 21, 32, 0.9)), var(--photo) center 70% / cover no-repeat, var(--navy-950); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section__head > div { flex: 1 1 28rem; max-width: 60ch; }
.section__head h2 { margin: 0; max-width: 24ch; }
.section__head p { margin: 0.4rem 0 0; color: var(--muted); max-width: 54ch; }
.section--ink .section__head p { color: var(--on-dark-soft); }
.link-strong { font-weight: 700; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }

/* ------------------------------------------------------ property tiles */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.75rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.tile:hover { border-color: #b4cbd7; box-shadow: var(--shadow); }
.tile > :not(.tile__photo) { margin-inline: 1.25rem; }
.tile__photo { position: relative; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; margin-bottom: 1rem; }
.tile__photo img { width: 100%; height: 100%; object-fit: cover; }
.tile__count { position: absolute; right: 0.6rem; bottom: 0.6rem; display: inline-flex; gap: 0.3rem; align-items: center; background: rgba(0, 21, 32, 0.78); color: var(--white); font-size: var(--t-xs); padding: 0.2rem 0.5rem; border-radius: 3px; }
.tile__qualifier { display: block; font-size: var(--t-sm); color: var(--muted); line-height: 1.3; }
.tile__price { font-weight: 700; font-size: var(--t-xl); color: var(--navy-900); line-height: 1.2; letter-spacing: -0.01em; }
.tile__price small { font-size: var(--t-sm); font-weight: 700; color: var(--muted); }
.tile__title { font-size: var(--t-md); line-height: 1.35; margin: 0.3rem 0 0.1rem; letter-spacing: 0; }
.tile__title a { color: var(--brand-deep); text-decoration: none; }
.tile__title a::after { content: ''; position: absolute; inset: 0; }
.tile:hover .tile__title a { text-decoration: underline; }
.tile:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.tile__title a:focus-visible { outline: none; }
.tile__where { color: var(--muted); margin: 0 0 0.9rem; font-size: var(--t-sm); }
.facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; margin: auto 0 0; padding: 0.8rem 0 1rem; font-size: var(--t-sm); color: var(--ink); border-top: 1px solid var(--line); }
.tile .facts { margin-inline: 1.25rem; }
.facts li { display: inline-flex; align-items: center; gap: 0.4rem; }
.facts .icon { color: var(--brand); }

/* Status tag, as the original site marks SSTC in the photo corner */
.tag {
  position: absolute; left: 0.75rem; top: 0.75rem;
  background: var(--navy-900); color: var(--white);
  font: 700 var(--t-xs)/1 var(--font); letter-spacing: 0.02em;
  padding: 0.45rem 0.65rem; border-radius: 3px;
}
.tag--let-agreed, .tag--under-offer { background: var(--brand-deep); }
.tag--lg { font-size: var(--t-sm); padding: 0.55rem 0.85rem; left: 1rem; top: 1rem; }

.empty { padding: 2.5rem; background: var(--mist); border-radius: var(--radius); max-width: 44rem; }
.empty h2 { font-size: var(--t-xl); }

/* ---------------------------------------------- page heads & listings */

.page-head {
  position: relative; color: var(--on-dark);
  background:
    linear-gradient(90deg, var(--navy-900) 30%, rgba(0, 34, 51, 0.88) 55%, rgba(0, 34, 51, 0.55) 100%),
    url(/img/hero-skyline-960.jpg) right 35% / cover no-repeat,
    var(--navy-900);
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 130, 175, 0) 40%, rgba(0, 130, 175, 0.4) 100%);
  clip-path: polygon(45% 100%, 100% 62%, 100% 74%, 62% 100%);
}
.page-head h1 { color: var(--white); font-size: var(--t-5xl); max-width: 20ch; margin-bottom: 0.3em; }
.page-head__lede { font-size: var(--t-lg); max-width: 60ch; margin: 0; color: var(--on-dark); }
.page-head__lede + .page-head__lede { margin-top: 0.75rem; }
.page-head__lede a { color: var(--white); }
.crumbs { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: var(--t-sm); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.5; }
.page-head .crumbs { color: var(--on-dark-soft); }
.page-head .crumbs a { color: var(--on-dark); }
.page-head .wrap { position: relative; z-index: 1; }

.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 0.75rem; align-items: end; margin-top: 1.75rem; background: var(--white); padding: 1.1rem 1.25rem; border-radius: var(--radius); }
.filters .btn { min-height: 3rem; }
.filters__extra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.25rem; }
.check { display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer; font-weight: 700; font-size: var(--t-sm); color: var(--navy-900); }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); }
.result-count { margin: 0; font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 62rem) { .filters { grid-template-columns: 1fr 1fr; } .filters .field:first-child { grid-column: 1 / -1; } .filters .btn { grid-column: 1 / -1; } }

.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; justify-content: center; margin-top: 3rem; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--navy-900); font-weight: 700; }
.pager a:hover { border-color: var(--brand); color: var(--brand-deep); }
.pager [aria-current] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ------------------------------------------------------- property page */

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; margin-top: 1.25rem; }
.gallery__main { position: relative; grid-row: span 2; aspect-ratio: 3 / 2; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.gallery__main img, .gallery__side img { width: 100%; height: 100%; object-fit: cover; }
.gallery__side { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery__main > button, .gallery__side > button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.gallery__main > button:focus-visible, .gallery__side > button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.gallery__all { position: absolute; right: 0.9rem; bottom: 0.9rem; }
.gallery__all .btn { background: var(--white); color: var(--navy-900); min-height: 2.5rem; padding: 0.4rem 0.95rem; font-size: var(--t-sm); }
.gallery__all .btn:hover { background: var(--mist); }
@media (max-width: 48rem) { .gallery { grid-template-columns: 1fr; } .gallery__side { display: none; } .gallery__main { grid-row: auto; } }

.lightbox { border: 0; padding: 0; background: rgba(0, 21, 32, 0.97); width: 100vw; height: 100vh; max-width: none; max-height: none; color: var(--white); }
.lightbox::backdrop { background: rgba(0, 21, 32, 0.9); }
.lightbox__stage { position: absolute; inset: 3.5rem 4rem 4.5rem; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 1rem; }
.lightbox__btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); background: transparent; color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: var(--white); color: var(--navy-900); }
.lightbox__close { position: absolute; top: 0.75rem; right: 0.75rem; }
@media (max-width: 40rem) { .lightbox__stage { inset: 3.5rem 0.5rem 5rem; } }

.prop { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: 2.25rem 4rem; }
.prop__head h1 { font-size: var(--t-4xl); margin-bottom: 0.2em; }
.prop__type { font-size: var(--t-lg); color: var(--muted); margin: 0 0 1.5rem; }
.prop__status { display: inline-block; background: var(--navy-900); color: var(--white); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.02em; padding: 0.4rem 0.65rem; border-radius: 3px; margin-bottom: 0.9rem; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); border-block: 1px solid var(--line); margin: 0 0 2.5rem; padding: 0; }
.keyfacts div { padding: 1rem 1rem 1rem 0; }
.keyfacts dt { font-size: var(--t-sm); color: var(--muted); }
.keyfacts dd { margin: 0; font-weight: 700; font-size: var(--t-lg); color: var(--navy-900); }
.prop section { margin-bottom: 3rem; }
.prop h2 { font-size: var(--t-2xl); }
.prop__desc { max-width: var(--measure); }
.rooms { margin: 0; max-width: var(--measure); }
.rooms > div { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rooms dt { font-weight: 700; color: var(--navy-900); }
.rooms .dims { color: var(--muted); font-size: var(--t-sm); text-align: right; }
.rooms dd { grid-column: 1 / -1; margin: 0; }
@media (max-width: 40rem) { .rooms > div { grid-template-columns: 1fr; } .rooms .dims { text-align: left; } }
.notes { font-size: var(--t-sm); color: var(--muted); max-width: var(--measure); }
.notes summary { cursor: pointer; font-weight: 700; color: var(--navy-900); }
.doc-links { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); }

.prop__aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
.panel { border: 1px solid var(--line); border-top: 3px solid var(--brand); background: var(--white); padding: 1.5rem; border-radius: var(--radius-sm); }
.panel + .panel { margin-top: 1rem; }
.panel__price { font-weight: 700; font-size: var(--t-3xl); color: var(--navy-900); line-height: 1.1; letter-spacing: -0.015em; margin: 0.15rem 0 0.35rem; }
.panel__price small { font-size: var(--t-md); color: var(--muted); }
.panel h2 { font-size: var(--t-xl); }
.panel .field { margin-bottom: 0.9rem; }
.panel .btn + .btn { margin-top: 0.6rem; }
@media (max-width: 62rem) { .prop { grid-template-columns: 1fr; } .prop__aside { position: static; } }

/* ------------------------------------------------------ content pages */

.content { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (max-width: 62rem) { .content { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: var(--measure); }
.prose > section { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.prose > section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.75rem; color: var(--brand-deep); font-size: var(--t-lg); }
.prose h2 + h3 { margin-top: 0.5rem; }
.prose .lead { font-size: var(--t-lg); color: var(--navy-800); }
.prose ul:not([class]) { padding-left: 1.2rem; }
.prose ul:not([class]) li::marker { color: var(--brand); }
.prose li + li { margin-top: 0.3rem; }

.ticks { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; align-items: start; }
.ticks li::before {
  content: ''; width: 1.25rem; height: 1.25rem; margin-top: 0.12rem; border-radius: 50%; background: var(--mist)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230082af' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
  box-shadow: inset 0 0 0 1px var(--mist-2);
}
.ticks--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); column-gap: 1.5rem; }

.defs { display: grid; gap: 0; margin: 1.25rem 0 0; }
.defs > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.prose > section > .defs:last-child > div:last-child { border-bottom: 0; padding-bottom: 0; }
.defs dt { font-weight: 700; font-size: var(--t-lg); color: var(--navy-900); margin-bottom: 0.2rem; }
.defs dd { margin: 0; }

.callout { background: var(--mist); border-left: 4px solid var(--brand); padding: 1.5rem 1.75rem; margin: 1.75rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout--feature { background: var(--navy-900); color: var(--on-dark); border-left-color: var(--brand); }
.prose .callout--feature h3 { color: var(--white); font-size: var(--t-xl); }
.small-print { font-size: var(--t-sm); color: var(--muted); }
.warning { font-weight: 700; font-size: var(--t-md); color: var(--navy-900); border: 1.5px solid var(--navy-900); padding: 1rem 1.25rem; border-radius: var(--radius-sm); }

.steps { list-style: none; padding: 0; counter-reset: step; margin: 1.5rem 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy-900); color: var(--white); font-weight: 700; }
.prose .steps h3 { margin: 0.1rem 0 0.2rem; font-size: var(--t-lg); color: var(--navy-900); }
.steps p { margin: 0; }

.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--t-lg); color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: var(--t-xl); line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0.6rem 0 0; }

.rail { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1rem; }
.rail .panel h2 { font-size: var(--t-lg); margin-bottom: 0.6rem; }
.rail__phone { display: block; font-weight: 700; font-size: var(--t-2xl); letter-spacing: -0.01em; color: var(--navy-900); text-decoration: none; margin-bottom: 0.25rem; }
.rail__phone:hover { color: var(--brand-deep); }
.rail ul { list-style: none; padding: 0; margin: 0; }
.rail li + li { margin-top: 0.45rem; }
@media (max-width: 62rem) { .rail { position: static; } }

/* ------------------------------------------------------------ home */

.routes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.routes li { background: var(--white); }
.routes a { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; padding: 1.75rem 2rem; text-decoration: none; color: var(--ink); height: 100%; }
.routes h3 { font-size: var(--t-2xl); margin: 0; }
.routes p { grid-column: 1 / -1; margin: 0; color: var(--muted); max-width: 46ch; }
.routes .icon { width: 1.4rem; height: 1.4rem; color: var(--brand); transition: transform 0.2s; }
.routes a:hover { background: var(--mist); }
.routes a:hover h3 { color: var(--brand-deep); }
.routes a:hover .icon { transform: translateX(4px); }
@media (max-width: 44rem) { .routes { grid-template-columns: 1fr; } .routes a { padding: 1.5rem; } }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1rem; font-size: var(--t-md); }
.quote blockquote::before { content: '“'; display: block; font: 700 3.5rem/0.5 Georgia, serif; color: var(--brand); margin-top: 1.25rem; height: 1.6rem; }
.quote figcaption { font-weight: 700; font-size: var(--t-sm); color: var(--navy-900); }
.quote figcaption span { display: block; color: var(--muted); font-weight: 400; }
.section--ink .quote blockquote { color: var(--on-dark); }
.section--ink .quote figcaption { color: var(--white); }
.section--ink .quote figcaption span { color: var(--on-dark-soft); }
.section--ink .quote blockquote::before { color: var(--brand-light); }

.reviews { columns: 3 20rem; column-gap: 2.5rem; }
.reviews .quote { break-inside: avoid; padding-bottom: 2rem; }

.cta-band { background: var(--brand-deep); color: var(--white); padding-block: clamp(2.5rem, 6vw, 3.75rem); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { margin: 0 0 0.3rem; color: var(--white); max-width: 24ch; }
.cta-band p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, 0.86); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn--primary { background: var(--white); color: var(--navy-900); }
.cta-band .btn--primary:hover { background: var(--mist); color: var(--navy-900); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.timeline li { padding-top: 1.1rem; border-top: 2px solid var(--brand); }
.timeline strong { display: block; font-size: var(--t-4xl); line-height: 1; letter-spacing: -0.02em; color: var(--navy-900); margin-bottom: 0.5rem; }
@media (max-width: 44rem) { .timeline { grid-template-columns: 1fr; } }

.trust { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; list-style: none; padding: 0; margin: 0; }
.trust a { font-weight: 700; }

/* ------------------------------------------------------------ team */

.ivr { background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 3rem; }
.ivr > p { color: var(--on-dark-soft) !important; }
.ivr__phone { font-weight: 700; font-size: var(--t-4xl); letter-spacing: -0.02em; color: var(--white); text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }
.ivr__phone:hover { color: var(--brand-light); }
.ivr ol { list-style: none; padding: 1.5rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 1.5rem; border-top: 1px solid rgba(212, 236, 247, 0.15); }
.ivr li { display: grid; grid-template-columns: auto 1fr; gap: 0 0.9rem; align-items: start; }
.key { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: var(--white); font-weight: 700; font-size: var(--t-lg); grid-row: span 2; }
.ivr li strong { display: block; color: var(--white); }
.ivr li span:not(.key) { color: var(--on-dark-soft); font-size: var(--t-sm); }

.people { list-style: none; padding: 0; margin: 0; }
.person { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 17rem); gap: 0.25rem 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); align-items: start; }
.person:last-child { border-bottom: 1px solid var(--line); }
.person__mono { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--brand-deep); font-weight: 700; font-size: var(--t-lg); grid-row: span 2; box-shadow: inset 0 0 0 1px var(--mist-2); }
.person h3 { margin: 0; font-size: var(--t-2xl); }
.person__role { margin: 0.1rem 0 0.5rem; color: var(--brand-deep); font-weight: 700; }
.person__role small { font-weight: 400; color: var(--muted); }
.person__remit { margin: 0; }
.person__contact { list-style: none; padding: 0; margin: 0; font-size: var(--t-sm); grid-column: 3; grid-row: 1 / span 2; }
.person__contact li { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.person__contact .icon { color: var(--brand); }
.option { display: inline-block; padding: 0.05rem 0.45rem; background: var(--mist); color: var(--navy-900); border-radius: 3px; font-weight: 700; font-size: var(--t-xs); margin-left: 0.25rem; white-space: nowrap; }
@media (max-width: 48rem) {
  .person { grid-template-columns: 3rem 1fr; }
  .person__mono { width: 3rem; height: 3rem; font-size: var(--t-md); grid-row: span 1; }
  .person__contact { grid-column: 1 / -1; grid-row: auto; margin-top: 0.75rem; }
  .person__remit { grid-column: 1 / -1; }
}

.team-message { max-width: 46rem; margin-top: 3rem; scroll-margin-top: 6rem; }

.repairs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 3rem; }
.repairs > div { padding: clamp(1.25rem, 4vw, 1.75rem); border-radius: var(--radius); overflow-wrap: anywhere; }
.repairs__emergency { background: #fdf2f1; border: 1px solid #f0c9c6; border-left: 4px solid var(--danger); }
.repairs__routine { background: var(--mist); border: 1px solid var(--mist-2); border-left: 4px solid var(--brand); }
.repairs h2 { font-size: var(--t-2xl); }
.repairs .big { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--t-2xl); color: var(--navy-900); text-decoration: none; margin-bottom: 0.75rem; }
@media (max-width: 48rem) { .repairs { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.details { margin: 0; }
.details > div { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2rem 1fr; gap: 0 0.5rem; }
.details dt { grid-row: span 2; color: var(--brand); padding-top: 0.15rem; }
.details dd { margin: 0; }
.details .label { font-weight: 700; display: block; color: var(--navy-900); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.35rem 0; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; font-weight: 700; }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--navy-950); color: var(--on-dark-soft); font-size: var(--t-sm); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(212, 236, 247, 0.35); }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { font-size: var(--t-md); color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 0.45rem; }
.footer-logo { width: 8.5rem; margin-bottom: 1.5rem; }
.footer-phone { display: block; font-weight: 700; font-size: var(--t-xl); color: var(--white) !important; text-decoration: none; margin-bottom: 0.35rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.socials a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(212, 236, 247, 0.25); border-radius: 50%; }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.footer-docs { border-top: 1px solid rgba(212, 236, 247, 0.12); margin-top: 3rem; padding-block: 1.5rem; }
.footer-docs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.footer-docs a { font-weight: 700; }
.footer-legal { border-top: 1px solid rgba(212, 236, 247, 0.12); padding-block: 1.25rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; color: rgba(212, 236, 247, 0.5); }
.footer-legal p { margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.site-footer .link-button { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(212, 236, 247, 0.35); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.site-footer .link-button:hover { color: var(--white); }
@media (max-width: 62rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- 404 & misc */

.notfound { padding-block: clamp(3rem, 10vw, 7rem); max-width: 42rem; }

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

@media print {
  .site-header, .site-footer, .prop__aside, .gallery__side, .cta-band, .map { display: none !important; }
  .prop { display: block; }
}

/* Phones: the video sits behind the copy, so the wash has to carry legibility */
@media (max-width: 48rem) {
  .hero::before { background: linear-gradient(180deg, rgba(0, 21, 32, 0.6) 0%, rgba(0, 21, 32, 0.45) 45%, rgba(0, 21, 32, 0.75) 100%); }
  .hero--video { min-height: 0; }
  .page-head::after { display: none; }
  .page-head { background: linear-gradient(180deg, rgba(0, 34, 51, 0.9), var(--navy-900)), url(/img/hero-skyline-960.jpg) center 35% / cover no-repeat, var(--navy-900); }
  .filters .field:nth-of-type(4) { grid-column: 1 / -1; }
  .hero__foot { display: flex; flex-direction: column; }
  .hero-meta { position: static; order: -1; justify-content: space-between; margin-bottom: 0.75rem; }
  .hero-caption strong { font-size: var(--t-xs); }
}

/* ================================================================
   Home page components
   ================================================================ */

.section__head--center { justify-content: center; text-align: center; }
.section__head--center > div { flex: 0 1 44rem; }
.section__head--center h2, .section__head--center p { margin-inline: auto; }

/* ---- centre-focus property carousel ---- */
.showcase { overflow: hidden; }
.carousel { --slide-w: min(46rem, 82vw); position: relative; }
.carousel__track {
  display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); margin: 0; padding: 1rem calc((100% - var(--slide-w)) / 2) 1.5rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 var(--slide-w); scroll-snap-align: center; transform: scale(0.88); filter: grayscale(1) brightness(1.05); opacity: 0.65; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s, opacity 0.6s; }
.slide.is-active { transform: none; filter: none; opacity: 1; }
.slide__link { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; box-shadow: 0 30px 50px -30px rgba(0, 21, 32, 0.6); }
.slide__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.slide.is-active .slide__link:hover img { transform: scale(1.04); }
.slide__link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 21, 32, 0.78) 0%, rgba(0, 21, 32, 0) 50%); }
.slide__status { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.5vw, 2.6rem); text-shadow: 0 2px 20px rgba(0, 21, 32, 0.6); background: rgba(0, 21, 32, 0.25); }
.slide__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1rem, 3vw, 1.75rem); display: grid; gap: 0.2rem; }
.slide__title { font-weight: 700; font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.5rem); line-height: 1.2; }
.slide__price { font-size: var(--t-lg); font-weight: 700; color: var(--mist-2); }
.slide__price small { font-weight: 400; font-size: var(--t-sm); }
.slide__link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
.carousel__btn { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--navy-900); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.carousel__btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.carousel__dots { display: flex; gap: 0.25rem; }
.carousel__dot { width: 1.75rem; height: 1.75rem; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.carousel__dot::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 999px; background: #b8cbd5; transition: width 0.3s, background-color 0.3s; }
.carousel__dot[aria-selected='true']::before { width: 1.6rem; background: var(--brand); }
.showcase__all { text-align: center; margin: 2rem 0 0; }

/* ---- about: overlapping collage ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__text h2 { font-size: var(--t-4xl); max-width: 16ch; }
.split__text .lead { font-size: var(--t-lg); color: var(--navy-800); }
.split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.collage { position: relative; aspect-ratio: 6 / 5; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 21, 32, 0.55); }
.collage__a { top: 0; left: 0; width: 78%; aspect-ratio: 4 / 3; }
.collage__b { right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border: 6px solid var(--white); }
.collage__badge { position: absolute; left: 6%; bottom: 4%; background: var(--navy-900); color: var(--on-dark); padding: 1rem 1.25rem; border-radius: var(--radius); font-size: var(--t-sm); line-height: 1.3; box-shadow: var(--shadow); max-width: 11rem; }
.collage__badge strong { display: block; font-size: var(--t-4xl); line-height: 1; color: var(--white); letter-spacing: -0.02em; }
@media (max-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr); } .collage { max-width: 36rem; } }

/* ---- services: image with overlapping card ---- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.feature__img { grid-column: 1 / 9; grid-row: 1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.feature__card { grid-column: 7 / 13; grid-row: 1; position: relative; z-index: 1; background: var(--white); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(0, 21, 32, 0.45); border-top: 3px solid var(--brand); }
.feature__card h2 { font-size: var(--t-3xl); }
.feature--flip .feature__img { grid-column: 5 / 13; }
.feature--flip .feature__card { grid-column: 1 / 7; }
@media (max-width: 56rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__img, .feature--flip .feature__img { grid-column: 1; }
  .feature__card, .feature--flip .feature__card { grid-column: 1; grid-row: 2; margin: -3rem 1rem 0; }
}

.quicklinks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.quicklinks a { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; height: 100%; padding: 1.25rem 1.25rem 1.4rem; border-radius: var(--radius); background: var(--mist); text-decoration: none; color: var(--ink); border-top: 3px solid transparent; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.quicklinks strong { font-size: var(--t-lg); color: var(--navy-900); }
.quicklinks span { grid-column: 1; font-size: var(--t-sm); color: var(--muted); }
.quicklinks .icon { grid-column: 2; grid-row: 1; color: var(--brand); transition: transform 0.2s; }
.quicklinks a:hover { border-top-color: var(--brand); background: var(--white); box-shadow: var(--shadow); }
.quicklinks a:hover .icon { transform: translateX(4px); }
@media (max-width: 62rem) { .quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .quicklinks { grid-template-columns: minmax(0, 1fr); } }

/* ---- reviews: card carousel ---- */
.reviews-band { background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.cards-scroller { position: relative; }
.review-cards {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 2.25rem 0.25rem 2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.review-cards::-webkit-scrollbar { display: none; }
.review-card { position: relative; flex: 0 0 min(23rem, 84%); scroll-snap-align: start; background: var(--white); border-radius: var(--radius); padding: 2.6rem 1.75rem 1.75rem; text-align: center; box-shadow: 0 20px 40px -26px rgba(0, 21, 32, 0.4); display: flex; flex-direction: column; }
.review-card::before { content: '\201C'; position: absolute; right: 1.25rem; top: 0.9rem; font: 700 2.5rem/1 Georgia, serif; color: var(--mist-2); }
.review-card__avatar { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: var(--t-lg); border: 3px solid var(--white); box-shadow: 0 6px 16px -6px rgba(0, 21, 32, 0.5); }
.avatar-0 { background: var(--brand); }
.avatar-1 { background: var(--navy-800); }
.avatar-2 { background: #3d9060; }
.avatar-3 { background: var(--brand-deep); }
.review-card blockquote { margin: 0 0 1.25rem; font-style: italic; color: var(--ink); flex: 1; }
.review-card blockquote p { margin: 0; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__who { margin: 0; font-size: var(--t-sm); }
.review-card__who strong { display: block; color: var(--navy-900); font-size: var(--t-md); }
.review-card__who span { color: var(--muted); }
.cards-scroller__nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }

/* ---- scroll reveal (only when JS is running) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide { transition: none; }
}
@media (max-width: 30rem) {
  .carousel__controls { gap: 0.5rem; }
  .carousel__dots { gap: 0; }
  .carousel__dot { width: 1.25rem; }
  .carousel__dot[aria-selected='true']::before { width: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-moving img { animation: none; }
  .hero-slide { transition-duration: 0.01s; }
}
