/* ==========================================================================
   Boldogasszony Estate — design system
   Palette: ivory, stone, taupe, moss, charcoal. Serif: Cormorant Garamond.
   Sans: Inter. Motion: slow, restrained, reduced-motion aware.
   ========================================================================== */

:root {
  --ivory:      #f6f2e9;
  --linen:      #efeadd;
  --stone:      #e4ddcd;
  --taupe:      #726858;
  --moss:       #5c6650;
  --moss-deep:  #454d3a;
  --charcoal:   #26231d;
  --ink:        #2e2a23;
  --brass:      #96825c;
  --hairline:   rgba(46, 42, 35, 0.16);
  --hairline-strong: rgba(46, 42, 35, 0.32);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-slow: 1.1s;
  --dur-med:  0.7s;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--moss); color: var(--ivory); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 120; padding: 12px 18px; background: var(--ivory); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- shared text styles ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 1.6rem;
}

.eyebrow--light { color: rgba(246, 242, 233, 0.72); }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
}

.body-copy {
  max-width: 62ch;
  color: rgba(46, 42, 35, 0.86);
}

.small-caps-link {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  position: relative;
}

.small-caps-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.small-caps-link:hover::after { transform: scaleX(0.35); }

/* link-styled buttons (hero "Watch the film", setting link) */
.link-button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0 0 6px;
  margin: 0;
  font-family: var(--sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.7;
}

.link-button svg { display: block; flex: 0 0 auto; }

.btn {
  display: inline-block;
  padding: 17px 38px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

.btn:hover { background: var(--ink); color: var(--ivory); }

.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: transparent; color: var(--ink); }

/* ---------- reveal-on-scroll ---------- */
/* Hidden state only applies when JS is confirmed running (html.js),
   so content always renders even if scripts fail or are blocked. */

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Header and wordmark
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition:
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
  color: var(--ivory);
}

.site-header.solid,
.site-header.scrolled {
  background: rgba(246, 242, 233, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--hairline);
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

/* The wordmark is an inline SVG of the name in Cormorant Garamond small
   capitals; it takes the colour of its surroundings (ivory over the
   heroes, ink once the header turns solid). */
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
}

.wordmark {
  display: block;
  height: 18px;
  width: auto;
  max-width: 100%;
  fill: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.site-nav a {
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.4s ease;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}

.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }

/* language switch: a small mark set apart by a hairline */
.site-nav .lang-switch {
  margin-left: clamp(0px, 1vw, 8px);
  padding-left: clamp(20px, 3vw, 44px);
  letter-spacing: 0.2em;
}

.site-nav .lang-switch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 14px;
  width: 1px;
  background: currentColor;
  opacity: 0.35;
  transform: translateY(-50%);
}

.site-nav .lang-switch::after { left: auto; right: 0; width: calc(100% - clamp(20px, 3vw, 44px)); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  margin: 7px 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease-out), visibility 0s linear 0.55s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-menu a {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 4px;
}

.mobile-menu a.mobile-lang {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--taupe);
  border-bottom: 0;
  padding: 0 4px;
}

.mobile-menu .mobile-menu-footer {
  margin-top: 40px;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
}

body.menu-open { overflow: hidden; }

/* The header sits above the ivory menu: keep the wordmark and the close
   toggle in ink whether or not the page has scrolled. */
body.menu-open .site-header { color: var(--ink); }

@media (max-width: 960px) and (orientation: landscape) and (max-height: 520px) {
  .mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: clamp(32px, 8vw, 96px);
  }
  .mobile-menu a { font-size: clamp(1.4rem, 6vh, 2rem); line-height: 1.45; }
  .mobile-menu a.mobile-lang { margin-top: 0; align-self: center; }
  .mobile-menu .mobile-menu-footer { margin-top: 24px; }
}

body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-media img {
  transform: scale(1.08);
  animation: hero-settle 9s var(--ease-out) forwards;
}

/* The silent loop fades in over the poster once it is actually playing */
.hero-video {
  opacity: 0;
  transition: opacity 1.8s var(--ease-out);
}

.hero.video-playing .hero-video { opacity: 1; }

@keyframes hero-settle {
  to { transform: scale(1); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(24, 22, 17, 0.78) 0, rgba(24, 22, 17, 0.65) 80px, transparent 200px),
    linear-gradient(to top, rgba(24, 22, 17, 0.62) 0%, rgba(24, 22, 17, 0.18) 42%, rgba(24, 22, 17, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(64px, 10vh, 120px);
}

.hero-content .eyebrow { color: rgba(246, 242, 233, 0.78); }

.hero-title {
  color: var(--ivory);
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  font-weight: 500;
  max-width: 17ch;
  margin: 0 0 1.8rem;
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-style: italic;
  color: rgba(246, 242, 233, 0.88);
  max-width: 46ch;
  margin-bottom: 2.6rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-ctas .small-caps-link { color: var(--ivory); }

.hero-scrollcue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(64px, 10vh, 120px);
  z-index: 2;
  width: 1px;
  height: 72px;
  background: rgba(246, 242, 233, 0.35);
  overflow: hidden;
}

.hero-scrollcue::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--ivory);
  animation: scrollcue 2.8s var(--ease-out) infinite;
}

@keyframes scrollcue {
  0%   { top: -40%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* staged hero entrance */
.hero .stagger {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1.3s var(--ease-out) forwards;
}
.hero .stagger:nth-child(1) { animation-delay: 0.25s; }
.hero .stagger:nth-child(2) { animation-delay: 0.45s; }
.hero .stagger:nth-child(3) { animation-delay: 0.68s; }
.hero .stagger:nth-child(4) { animation-delay: 0.9s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sections — general rhythm
   ========================================================================== */

.section {
  padding-block: clamp(90px, 13vw, 170px);
}

.section--tight { padding-block: clamp(70px, 9vw, 120px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(44px, 6vw, 84px);
}

/* ---------- the portfolio ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.intro-stats {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}

.stat {
  padding: 28px 24px 6px 0;
  border-right: 1px solid var(--hairline);
  margin-right: 24px;
}

.stat:last-child { border-right: 0; margin-right: 0; }

.stat-value {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
}

.stat-label {
  margin-top: 10px;
  font-size: 0.6563rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- full-bleed plate ---------- */

.plate {
  padding-bottom: clamp(20px, 3vw, 40px);
}

.plate-figure { margin: 0; }

.plate-figure img {
  width: 100%;
  height: clamp(380px, 84vh, 920px);
  object-fit: cover;
  object-position: 50% 60%;
}

.plate-figure figcaption {
  margin-top: 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ==========================================================================
   Properties carousel
   ========================================================================== */

.properties {
  background: var(--linen);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.45s ease, border-color 0.45s ease, opacity 0.3s ease;
}

.carousel-btn svg { display: block; }

.carousel-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.carousel-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.carousel-viewport {
  /* full-bleed scroller whose padding aligns first card with the container */
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--edge);
  /* snap against the padded edge, so position 0 aligns the first card
     with the container instead of the viewport edge */
  scroll-padding-inline: var(--edge);
  padding-bottom: 8px;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-viewport.dragging .property-card { pointer-events: none; }

.property-card {
  flex: 0 0 min(520px, 82vw);
  scroll-snap-align: start;
  display: block;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.property-card:hover .card-media img { transform: scale(1.045); }

.card-index {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 0.6563rem;
  letter-spacing: 0.3em;
  color: rgba(246, 242, 233, 0.9);
  text-shadow: 0 1px 8px rgba(24, 22, 17, 0.35);
}

.card-body { padding-top: 26px; }

.card-setting {
  font-size: 0.6563rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 10px;
}

.card-name {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 10px;
}

.card-line {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  color: rgba(46, 42, 35, 0.78);
  margin-bottom: 14px;
  max-width: 42ch;
}

.card-facts {
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: rgba(46, 42, 35, 0.72);
  margin-bottom: 20px;
}

.card-facts span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--taupe);
}

.carousel-progress {
  margin-top: clamp(40px, 5vw, 64px);
  height: 1px;
  background: var(--hairline);
  position: relative;
}

.carousel-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  background: var(--ink);
  transition: width 0.3s ease;
}

/* ==========================================================================
   Portfolio asset profile — registered area by property
   ========================================================================== */

.estate-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.estate-text { position: sticky; top: 120px; }

.estate-images {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}

.figure { margin: 0; }

.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.figure--wide img { aspect-ratio: 16 / 10; }

.figure figcaption {
  margin-top: 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
}

.area-label {
  margin: clamp(40px, 5vw, 64px) 0 0;
  font-size: 0.6563rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--taupe);
}

.area-rows {
  margin-top: 14px;
  border-top: 1px solid var(--hairline);
}

.area-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 0 17px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.area-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: calc(var(--pct, 0) * 1%);
  background: var(--moss);
}

.area-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

.area-name:hover { color: var(--moss-deep); }

.area-ha, .area-pct {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(46, 42, 35, 0.72);
  font-variant-numeric: tabular-nums;
}

.area-pct { min-width: 52px; text-align: right; }

.area-note {
  margin-top: 18px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(46, 42, 35, 0.72);
  max-width: 52ch;
}

/* ==========================================================================
   The film — charcoal band
   ========================================================================== */

.film {
  background: var(--charcoal);
  color: var(--ivory);
  border-top: 1px solid var(--hairline);
}

.film .section-title { color: var(--ivory); }

.film .section-head { align-items: flex-end; }

.film-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.5);
  margin: 0 0 6px;
  white-space: nowrap;
}

.film-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #1a1813;
  cursor: pointer;
  color: var(--ivory);
}

.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 1.8s var(--ease-out), opacity 0.8s ease;
}

.film-poster:hover img,
.film-poster:focus-visible img { transform: scale(1.025); opacity: 1; }

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-play-ring {
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 233, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(24, 22, 17, 0.18);
  transition: background-color 0.5s ease, border-color 0.5s ease, transform 0.8s var(--ease-out);
}

.film-poster:hover .film-play-ring,
.film-poster:focus-visible .film-play-ring {
  background: rgba(246, 242, 233, 0.16);
  border-color: var(--ivory);
  transform: scale(1.06);
}

.film-poster:focus-visible { outline: 1px solid rgba(246, 242, 233, 0.6); outline-offset: 6px; }

.film-caption {
  position: absolute;
  left: clamp(18px, 2.5vw, 32px);
  bottom: clamp(16px, 2.2vw, 28px);
  font-size: 0.6563rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.85);
}

.film-note {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(246, 242, 233, 0.66);
  max-width: 60ch;
}

/* player overlay */
.film-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(24, 22, 17, 0.97);
  display: none;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(56px, 8vh, 90px) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}

.film-overlay.open {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.film-stage {
  width: min(1400px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 160px);
  background: #000;
}

.film-stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.film-overlay-caption {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(246, 242, 233, 0.6);
}

.film-close {
  position: absolute;
  top: 28px;
  right: clamp(12px, 3vw, 48px);
  background: none;
  border: 0;
  color: rgba(246, 242, 233, 0.7);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px;
  transition: color 0.3s ease;
}

.film-close:hover { color: var(--ivory); }

/* ==========================================================================
   In pictures
   ========================================================================== */

.picture-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px) clamp(10px, 1.4vw, 18px);
}

.picture {
  margin: 0;
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
}

.picture--wide { grid-column: span 4; }

.picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
  transition: transform 1.6s var(--ease-out);
}

.picture--wide img { aspect-ratio: 16 / 10; }
.picture--tall img { aspect-ratio: 4 / 5; }

.picture:hover img { transform: scale(1.02); }

.picture figcaption {
  margin-top: 12px;
  font-size: 0.6563rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Location — charcoal band, estate plan at full width
   ========================================================================== */

.location {
  background: var(--charcoal);
  color: var(--ivory);
}

.location h2, .location h3 { color: var(--ivory); }

.location .body-copy { color: rgba(246, 242, 233, 0.78); }

.location-plan {
  margin: 0 0 clamp(48px, 7vw, 96px);
}

.estate-map .location-plan { margin-bottom: 0; }

.location-plan img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(246, 242, 233, 0.14);
}

.location-plan figcaption {
  margin-top: 16px;
  font-size: 0.6563rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.5);
}

.location-text {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.distance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(246, 242, 233, 0.16);
}

.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(246, 242, 233, 0.16);
}

.distance-place { font-family: var(--serif); font-size: 1.15rem; }

.distance-value {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, 0.6);
  white-space: nowrap;
}

/* ==========================================================================
   Enquiries and the form
   ========================================================================== */

.enquiries { text-align: center; }

.enquiries .section-title { margin-bottom: 1.6rem; }

.enquiries .body-copy {
  margin-inline: auto;
  max-width: 56ch;
}

.enquiry-contact {
  margin-top: clamp(40px, 5vw, 60px);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgba(46, 42, 35, 0.72);
  line-height: 2.2;
}

.enquiry-contact a { border-bottom: 1px solid var(--hairline); transition: border-color 0.3s ease; }
.enquiry-contact a:hover { border-color: var(--ink); }

.enquiry-form {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 640px;
  text-align: left;
  display: grid;
  gap: 26px;
}

.enquiry-form .choice {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 0;
  padding: 0;
  border: 0;
  justify-content: center;
}

.enquiry-form .choice label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.enquiry-form .choice input {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.enquiry-form .choice input:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ivory);
}

.enquiry-form .choice input:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.form-hint {
  margin: -8px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  color: rgba(46, 42, 35, 0.72);
  max-width: 44ch;
}

.enquiry-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px clamp(24px, 4vw, 40px);
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(46, 42, 35, 0.68);
}

.field .optional {
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
  opacity: 1;
  margin-left: 6px;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  padding: 9px 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.4s ease;
}

.field select {
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232e2a23' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ink); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-bottom-color: var(--brass); }

.field-error {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--brass);
  min-height: 0;
}

.field-error:empty { display: none; }

.enquiry-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.enquiry-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 32px;
  margin-top: 6px;
}

.enquiry-form .btn:disabled { opacity: 0.55; cursor: default; }

.form-alt {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: rgba(46, 42, 35, 0.72);
}

.form-alt a { border-bottom: 1px solid var(--hairline); transition: border-color 0.3s ease; }
.form-alt a:hover { border-color: var(--ink); }

.form-status {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
  max-width: 44ch;
  margin: 0 auto;
  outline: none;
}

.form-status:empty { display: none; }
.form-status a { border-bottom: 1px solid var(--hairline-strong); transition: border-color 0.3s ease; }
.form-status a:hover { border-color: var(--ink); }

.enquiry-form.sent { gap: 22px; }
.enquiry-form [hidden] { display: none !important; }

/* the two brochure files, revealed once name and email are in */
.brochure-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.brochure-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 220px;
  padding: 16px 28px 14px;
  border: 1px solid var(--ink);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

.brochure-link small {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
  opacity: 0.85;
}

.brochure-link:hover,
.brochure-link:focus-visible { background: var(--ink); color: var(--ivory); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 7vw, 88px) 0 40px;
  color: var(--ink);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.footer-brand { max-width: 340px; }

.footer-brand .brand { color: var(--ink); margin-bottom: 22px; }
.footer-brand .wordmark { height: 22px; }

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(46, 42, 35, 0.7);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(46, 42, 35, 0.72);
  transition: color 0.3s ease;
}

.footer-nav a:hover { color: var(--ink); }

.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(46, 42, 35, 0.72);
}

.footer-notice {
  max-width: 72ch;
  font-size: 0.68rem;
  line-height: 1.8;
}

/* ==========================================================================
   Property detail page
   ========================================================================== */

.property-hero {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
  background: var(--charcoal);
}

.property-hero-media {
  position: absolute;
  inset: 0;
}

.property-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-settle 7s var(--ease-out) forwards;
}

.property-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(24, 22, 17, 0.78) 0, rgba(24, 22, 17, 0.65) 80px, transparent 200px),
    linear-gradient(to top, rgba(24, 22, 17, 0.66) 0%, rgba(24, 22, 17, 0.2) 45%, rgba(24, 22, 17, 0.14) 100%);
}

.property-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(140px, 20vh, 220px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.property-hero-content .back-link { color: rgba(246, 242, 233, 0.7); }
.property-hero-content .back-link:hover { color: var(--ivory); }
.property-hero-content .eyebrow { color: rgba(246, 242, 233, 0.78); }
.property-hero-content .property-title { color: var(--ivory); margin-bottom: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: clamp(32px, 4vw, 56px);
  transition: color 0.3s ease;
}

.back-link:hover { color: var(--ink); }

.property-title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  max-width: 18ch;
  margin-bottom: 1.4rem;
}

/* ---------- essence ---------- */

.property-intro { padding-bottom: 0; }

.property-lead {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline);
}

.property-essence {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.45;
  color: rgba(46, 42, 35, 0.8);
  max-width: 56ch;
  margin: 0;
}

.property-area {
  margin: 22px 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

.property-count {
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--taupe);
  text-align: right;
  margin: 0;
}

/* ---------- photographs: mosaic + lightbox ---------- */

.gallery-section .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.gallery-section .btn { white-space: nowrap; }

.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  background: var(--stone);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.mosaic-item:hover img { transform: scale(1.035); }

.mosaic-main {
  grid-row: 1 / 3;
  aspect-ratio: 4 / 3;
}

.mosaic-side { aspect-ratio: auto; min-height: 0; }
.mosaic-side img { position: absolute; inset: 0; height: 100%; }

/* two photographs: an equal pair */
.mosaic--two {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.mosaic--two .mosaic-item { aspect-ratio: 3 / 2; }

.mosaic-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mosaic-strip[hidden] { display: none; }

.mosaic-strip .mosaic-item { aspect-ratio: 3 / 2; }

.mosaic-more::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 17, 0.55);
  transition: background-color 0.4s ease;
}

.mosaic-more:hover::after { background: rgba(24, 22, 17, 0.42); }

.mosaic-more-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ivory);
  font-size: 0.6563rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.property-summary {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
}
.property-summary th, .property-summary td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.property-summary thead, .property-summary tfoot { background: var(--linen); }
.property-summary thead th { font-size: 0.8125rem; color: var(--moss-deep); }
.property-summary tbody th { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.3; }
.property-summary td, .property-summary thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.property-summary td { white-space: nowrap; }
.property-summary tfoot { font-weight: 600; }
.property-summary a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .pictures .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .property-summary th, .property-summary td { padding: 12px 8px; }
  .property-summary tbody th { font-size: 1.125rem; }
  .property-summary td, .property-summary tfoot th { font-size: 0.875rem; }
}

.gallery-note {
  margin-top: 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

.gallery-note[hidden] { display: none; }

/* ---------- facts with pictograms ---------- */

.facts-section { border-top: 1px solid var(--hairline); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--hairline);
}

.fact {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--hairline);
}

.pictogram {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--brass);
  margin-top: 1px;
}

.fact-value {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.fact-text {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(46, 42, 35, 0.72);
}

/* ---------- the story ---------- */

.story-section { border-top: 1px solid var(--hairline); }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.story { max-width: 68ch; }

.story h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 2.6em 0 0.9em;
}

.story h3:first-child { margin-top: 0; }

.story .body-copy { max-width: none; }

.story-list {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.story-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--hairline);
  color: rgba(46, 42, 35, 0.86);
}

.story-list li:last-child { border-bottom: 1px solid var(--hairline); }

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 14px;
  height: 1px;
  background: var(--brass);
}

.story-note {
  font-size: 0.84rem;
  color: rgba(46, 42, 35, 0.72);
}

/* ---------- floor plans ---------- */

.plans-section { border-top: 1px solid var(--hairline); }

.plans-section .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.plan { margin: 0; }

.plan-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--hairline);
  background: #fbfaf6;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.plan-item:hover,
.plan-item:focus-visible { border-color: var(--hairline-strong); }

.plan-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3507 / 2528;
  object-fit: contain;
  transition: transform 1.4s var(--ease-out);
}

.plan-item:hover img { transform: scale(1.02); }

.plan figcaption {
  margin-top: 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- next property ---------- */

.next-property {
  background: var(--linen);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.next-property a {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.next-property .next-label {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 18px;
}

.next-property .next-name {
  font-size: clamp(2rem, 4vw, 3.2rem);
  transition: color 0.4s ease;
}

.next-property a:hover .next-name { color: var(--moss-deep); }

.next-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stone);
}

.next-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.next-property a:hover .next-media img { transform: scale(1.045); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 22, 17, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.lightbox-stage {
  width: min(1200px, 88vw);
  height: min(76vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(246, 242, 233, 0.75);
  text-align: center;
  max-width: 70ch;
  padding-inline: var(--gutter);
}

.lightbox-counter {
  margin-top: 10px;
  font-size: 0.6563rem;
  letter-spacing: 0.3em;
  color: rgba(246, 242, 233, 0.45);
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 233, 0.6);
  background: #181611;
  color: var(--ivory);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.lightbox-btn:hover { background: #363229; border-color: var(--ivory); }

.lightbox.single .lightbox-btn { display: none; }

.lightbox-prev { left: clamp(12px, 3vw, 48px); }
.lightbox-next { right: clamp(12px, 3vw, 48px); }

.lightbox-close {
  position: absolute;
  top: 28px;
  right: clamp(12px, 3vw, 48px);
  background: none;
  border: 0;
  color: rgba(246, 242, 233, 0.7);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px;
  transition: color 0.3s ease;
}

.lightbox-close:hover { color: var(--ivory); }

/* Source plans and business plans share simple, keyboard-accessible controls. */
.plan-controls { position: absolute; top: 28px; left: clamp(12px, 3vw, 48px); display: flex; gap: 16px; }
.plan-controls[hidden] { display: none; }
.plan-controls button, .plan-controls a { color: var(--ivory); background: transparent; border: 1px solid currentColor; padding: 10px 12px; font: 500 0.75rem var(--sans); cursor: pointer; }
.plan-controls button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.lightbox-stage.zoomed { display: block; overflow: auto; overscroll-behavior: contain; }
.lightbox-stage.zoomed img { width: 1800px; max-width: none; max-height: none; height: auto; }
.lightbox-caption { max-height: 15vh; overflow: auto; }
.business-plan-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; }
.business-plan-links p { flex-basis: 100%; }
.document-viewer { position: fixed; inset: 0; width: min(1200px, 96vw); max-width: 96vw; height: 94dvh; max-height: 94dvh; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--hairline); background: var(--ivory); color: var(--ink); }
.document-viewer::backdrop { background: rgba(24, 22, 17, 0.85); }
.document-viewer[open] { display: flex; flex-direction: column; }
.document-toolbar { flex-shrink: 0; padding: 16px 20px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.document-toolbar h2 { font: 500 1.4rem var(--serif); margin: 0; }
.document-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.document-actions button, .document-actions a { color: var(--ink); background: transparent; border: 1px solid var(--hairline-strong); padding: 10px 12px; cursor: pointer; font: 500 0.75rem var(--sans); }
.document-actions button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.document-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #dcd9d2; padding: 18px; }
.document-pages { width: min(100%, 920px); margin: auto; }
.document-pages[hidden] { display: none; }
.document-pages.zoomed { width: 1400px; max-width: none; }
.document-page { margin: 0 0 22px; background: white; }
.document-page img { display: block; width: 100%; height: auto; }
.document-page figcaption { text-align: center; padding: 8px; font: 0.75rem var(--sans); }
.document-page details { padding: 10px 16px; font: 0.85rem/1.6 var(--sans); }
.document-page summary { cursor: pointer; }
.document-text { white-space: pre-wrap; overflow-wrap: anywhere; padding-block: 12px; }
.document-viewer :focus-visible, .lightbox :focus-visible { outline: 2px solid #a37c35; outline-offset: 3px; }
@media (max-width: 640px) {
  .document-toolbar { padding: 12px; }
  .document-scroll { padding: 8px; }
  .plan-controls { top: 18px; gap: 8px; }
  .plan-controls button, .plan-controls a { font-size: 0.625rem; padding: 8px; }
  .lightbox-close { top: 18px; letter-spacing: 0.1em; }
}

/* ---------- setting + enquiry band ---------- */

.setting-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.property-enquiry {
  text-align: center;
  border-top: 1px solid var(--hairline);
}

.property-enquiry .lede {
  max-width: 46ch;
  margin-inline: auto;
}

/* ---------- not found ---------- */

.not-found { padding-top: clamp(140px, 22vh, 220px); }
.not-found-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .intro-grid,
  .estate-grid,
  .location-text,
  .story-grid { grid-template-columns: 1fr; }

  .estate-text { position: static; }

  .intro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .stat { min-width: 0; margin-right: 12px; padding-right: 12px; }
  .stat:nth-child(even) { border-right: 0; margin-right: 0; padding-right: 0; }
  .stat-label { overflow-wrap: anywhere; }

  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .story-grid .eyebrow { margin-bottom: 0; }

  .next-property a { grid-template-columns: 1fr; }
  .next-media { order: -1; }

  .property-lead { grid-template-columns: 1fr; }
  .property-count { text-align: left; }
  .film .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .header-inner { padding-block: 20px; }
  .wordmark { height: 15px; }

  .hero-media img,
  .hero-media video { object-position: 50% 55%; }

  .plate-figure img { height: clamp(300px, 62vh, 520px); }

  .picture-grid { grid-template-columns: 1fr 1fr; }
  .picture,
  .picture--wide,
  .picture--tall { grid-column: span 2; }
  .picture img,
  .picture--wide img,
  .picture--tall img { aspect-ratio: 3 / 2; }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .mosaic-main { grid-row: auto; }
  .mosaic-side { display: none; }
  .mosaic--two .mosaic-item { display: block; }

  .mosaic-strip { grid-template-columns: repeat(3, 1fr); }
  .mosaic-strip .mosaic-item:nth-child(4) { display: none; }
  .mosaic-strip .mosaic-item.mosaic-more { display: block; }

  .facts-grid { grid-template-columns: 1fr; }

  .property-hero { min-height: 70vh; min-height: 70svh; }
  .property-hero-content { padding-top: 120px; }

  .film-overlay { padding: 70px 0 30px; }
  .film-stage { width: 100%; }

  .gallery-section .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .footer-grid { flex-direction: column; }

  .hero-scrollcue { display: none; }

  .carousel-btn { width: 44px; height: 44px; }

  .enquiry-form .form-row { grid-template-columns: 1fr; }
  .enquiry-form .choice { justify-content: flex-start; }
  .brochure-link { width: 100%; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero .stagger {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .hero-media img { animation: none; transform: none; }
  .hero-scrollcue::after { animation: none; }

  .card-media img,
  .mosaic-item img,
  .plan-item img,
  .next-media img,
  .picture img,
  .film-poster img { transition: none; }

  .property-hero-media img { animation: none; transform: none; }
  .hero-video { transition: none; }
  .lightbox, .film-overlay, .mobile-menu, .nav-toggle span { transition: none; }
}

.hero-motion { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; background: rgba(24, 22, 17, 0.78); color: var(--ivory); border: 1px solid currentColor; padding: 10px 14px; font: 500 0.75rem var(--sans); cursor: pointer; }
.hero-motion[hidden] { display: none; }
.area-note, .footer-legal { color: rgba(46, 42, 35, 0.72); }
.film-meta, .location-plan figcaption, .lightbox-counter { color: rgba(246, 242, 233, 0.72); }

/* Keep navigation beside the property cards it controls. */
.property-carousel-toolbar { display: flex; justify-content: flex-end; margin-bottom: 20px; }

/* A single supplied photograph fills the gallery without empty mosaic cells. */
.mosaic--one { grid-template-columns: 1fr; grid-template-rows: auto; }
.mosaic--one .mosaic-main { grid-row: auto; aspect-ratio: 3 / 2; }

/* Source qualifications remain visible alongside the map and financial document. */
.map-reference-note { margin: 20px 0 0; max-width: 90ch; font: 0.85rem/1.65 var(--sans); color: rgba(246, 242, 233, 0.85); }
.projection-note { flex-basis: 100%; padding: 20px; margin: 0 0 20px; border: 1px solid var(--hairline-strong); background: var(--ivory); color: var(--ink); font: 0.9rem/1.65 var(--sans); }
.projection-note h3 { margin: 0 0 8px; font: 500 1.25rem/1.3 var(--serif); }
.projection-note p { margin: 0 0 12px; }
.projection-note summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.projection-note ul { padding-left: 20px; margin-bottom: 0; }
.projection-note li + li { margin-top: 10px; }
