/* ============================================================
   ASHWORTH & VALE — 2026 Catalogue
   Design system: quiet paper, ink, bronze hairlines.
   ============================================================ */

:root {
  --paper: #f8f5ef;
  --paper-deep: #f1ece2;
  --ink: #1b1813;
  --ink-soft: #2c2822;
  --muted: #6e675a;
  --faint: #9a927f;
  --hairline: #ddd5c4;
  --hairline-dark: rgba(27, 24, 19, 0.16);
  --bronze: #9c7c4c;
  --bronze-deep: #7d6238;
  --bronze-pale: #c9a86a;
  --white: #fffdf9;
  --error: #9a3b2e;
  --success: #4a6b46;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--bronze); color: var(--white); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 10px 20px; font-size: 13px; letter-spacing: 0.08em;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 1.5px solid var(--bronze);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--bronze);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.04;
  letter-spacing: 0.005em;
}
.display em { font-style: italic; font-weight: 400; }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
}
.section-title em { font-style: italic; }

.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-soft);
}

.rule { border: none; border-top: 1px solid var(--hairline); }

/* ---------- Layout primitives ---------- */

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 72px); }

main { min-height: 70vh; }

.view { animation: viewIn 0.7s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
  position: relative;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--bronze-deep); border-color: var(--bronze-deep); }
.btn-light { border-color: rgba(248, 245, 239, 0.6); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.link-line {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px; position: relative;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform-origin: right; transition: transform 0.5s var(--ease);
}
.link-line:hover::after { transform: scaleX(0.35); transform-origin: left; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: transform 0.55s var(--ease), background 0.55s var(--ease), border-color 0.55s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.site-header.hidden { transform: translateY(-100%); }
.site-header.on-dark:not(.scrolled) { color: var(--paper); }
.site-header.on-dark:not(.scrolled) .menu-toggle span { background: var(--paper); }
.site-header.on-dark:not(.scrolled) .brand,
.site-header.on-dark:not(.scrolled) .main-nav a,
.site-header.on-dark:not(.scrolled) .btn-enquire { text-shadow: 0 1px 16px rgba(12, 10, 7, 0.75); }

.header-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 72px);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.12em;
  border: 1px solid currentColor; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-name {
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand-name .amp { font-style: italic; color: var(--bronze); }

.main-nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.main-nav a {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 6px 2px; position: relative;
  display: inline-flex; align-items: center; gap: 8px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.shortlist-count {
  font-size: 10px; letter-spacing: 0.08em;
  border: 1px solid currentColor; border-radius: 50%;
  width: 19px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateY(-1px);
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.btn-enquire { padding: 12px 22px; }
.site-header.on-dark:not(.scrolled) .btn-enquire { border-color: rgba(248,245,239,0.65); color: var(--paper); }
.site-header.on-dark:not(.scrolled) .btn-enquire:hover { background: var(--paper); color: var(--ink); }

.menu-toggle {
  display: none;
  background: none; border: none;
  width: 34px; height: 30px;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), background 0.4s var(--ease);
}
.menu-toggle span:first-child { top: 10px; }
.menu-toggle span:last-child { top: 19px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 14.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 14.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 34px; font-weight: 300;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu nav a:hover { color: var(--bronze-pale); }
.mobile-menu .btn { margin-top: 10px; border-color: var(--paper); color: var(--paper); }
.mobile-menu .btn:hover { background: var(--paper); color: var(--ink); }
.mobile-menu-foot {
  position: absolute; bottom: 34px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(248, 245, 239, 0.55);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: var(--paper);
}
.hero-media { position: absolute; inset: -6% 0; z-index: 0; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroDrift 26s var(--ease-io) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.4%, -1.8%); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(15, 12, 8, 0.72) 0%, rgba(15, 12, 8, 0.22) 42%, rgba(15, 12, 8, 0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-content .kicker { color: var(--bronze-pale); }
.hero-content .kicker::before { background: var(--bronze-pale); }
.hero-title { margin: 26px 0 30px; max-width: 12ch; }
.hero-sub {
  max-width: 46ch; font-size: 15px; font-weight: 300;
  color: rgba(248, 245, 239, 0.82); line-height: 1.8;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-anim { opacity: 0; transform: translateY(30px); animation: heroUp 1.1s var(--ease) forwards; }
.hero-anim:nth-child(1) { animation-delay: 0.25s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.55s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; right: clamp(20px, 4.5vw, 72px); bottom: clamp(48px, 8vh, 96px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(248, 245, 239, 0.7);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 56px; background: rgba(248, 245, 239, 0.5);
  animation: cuePulse 2.4s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes cuePulse { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 11vw, 150px) 0; }
.section-deep { background: var(--paper-deep); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .kicker { color: var(--bronze-pale); }
.section-ink .kicker::before { background: var(--bronze-pale); }

.section-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .section-title { margin-top: 22px; }
.section-head p.lede { margin-top: 22px; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px); align-items: center;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); margin-top: clamp(40px, 6vw, 72px); }
.stat { padding: 30px 26px 8px 0; }
.stat + .stat { border-left: 1px solid var(--hairline); padding-left: 26px; }
.stat-num { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 60px); font-weight: 300; line-height: 1; }
.stat-num sup { font-size: 0.45em; color: var(--bronze); }
.stat-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- Property cards ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px) clamp(18px, 2.4vw, 36px); }

.card { position: relative; display: block; }
.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.9s var(--ease);
  opacity: 0;
}
.card-media img.loaded { opacity: 1; }
.card:hover .card-media img { transform: scale(1.055); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 8, 0.34), transparent 46%);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.card:hover .card-media::after { opacity: 1; }

.card-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--paper-deep) 40%, #e9e2d3 50%, var(--paper-deep) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -20% 0; } }

.card-band {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  color: var(--paper);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.card:hover .card-band, .card:focus-visible .card-band { opacity: 1; transform: none; }
.card-band .view-link { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.card-band .card-price-on { font-family: var(--serif); font-style: italic; font-size: 17px; }

.save-btn {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px;
  border: none; border-radius: 50%;
  background: rgba(248, 245, 239, 0.92);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.save-btn:hover { background: var(--white); transform: scale(1.08); }
.save-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.4; transition: fill 0.3s, stroke 0.3s; }
.save-btn.saved svg { fill: var(--bronze); stroke: var(--bronze); }
.save-btn.saved { animation: savePop 0.45s var(--ease); }
@keyframes savePop { 40% { transform: scale(1.22); } }

.card-body { padding-top: 20px; }
.card-region { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); }
.card-name {
  font-family: var(--serif); font-size: clamp(23px, 2vw, 28px); font-weight: 400;
  margin-top: 8px; line-height: 1.15;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left calc(100% - 0.08em);
  transition: background-size 0.6s var(--ease);
  display: inline;
}
.card:hover .card-name { background-size: 100% 1px; }
.card-loc { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card-facts {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em;
}
.card-facts .dot { color: var(--bronze); }
.card-price { margin-left: auto; font-family: var(--serif); font-size: 18px; color: var(--ink); white-space: nowrap; }
.card-price.por { font-style: italic; font-size: 15px; color: var(--muted); }

/* ---------- Collection toolbar ---------- */

.collection-hero { padding: calc(var(--header-h) + clamp(48px, 8vh, 88px)) 0 clamp(30px, 4vw, 48px); }
.collection-hero .display { font-size: clamp(38px, 5.4vw, 68px); margin-top: 20px; }
.collection-hero .lede { margin-top: 18px; max-width: 58ch; }

.toolbar {
  background: rgba(248, 245, 239, 0.94);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.toolbar-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.search-box { position: relative; flex: 1 1 200px; min-width: 170px; }
.search-box input {
  width: 100%; border: none; border-bottom: 1px solid var(--hairline-dark);
  background: transparent; padding: 10px 30px 10px 2px;
  font-size: 14px; font-weight: 300; color: var(--ink);
  transition: border-color 0.4s var(--ease);
}
.search-box input::placeholder { color: var(--faint); font-style: normal; letter-spacing: 0.04em; }
.search-box input:focus { outline: none; border-bottom-color: var(--ink); }
.search-box svg { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--faint); fill: none; stroke-width: 1.5; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  border: none; border-bottom: 1px solid var(--hairline-dark);
  background: transparent;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  padding: 10px 26px 10px 2px;
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
  max-width: 180px;
}
.select-wrap select:focus { outline: none; border-bottom-color: var(--ink); }
.select-wrap select.active { border-bottom-color: var(--bronze); color: var(--bronze-deep); }
.select-wrap::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 7px; height: 7px; pointer-events: none;
  border-right: 1px solid var(--faint); border-bottom: 1px solid var(--faint);
  transform: translateY(-70%) rotate(45deg);
}

.toolbar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.fav-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: none;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); padding: 10px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s, border-color 0.35s;
}
.fav-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.fav-toggle.on { color: var(--bronze-deep); border-bottom-color: var(--bronze); }
.fav-toggle.on svg { fill: var(--bronze); stroke: var(--bronze); }

.result-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 26px 0 34px;
}
.result-count { font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--muted); }
.result-count strong { font-style: normal; color: var(--ink); font-weight: 500; }
.reset-link {
  background: none; border: none;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--hairline-dark);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.reset-link:hover { color: var(--ink); border-color: var(--ink); }

.empty-state {
  text-align: center; padding: clamp(70px, 12vw, 130px) 20px;
  border: 1px solid var(--hairline);
  margin-bottom: clamp(60px, 9vw, 110px);
}
.empty-state .serif { font-size: clamp(26px, 3vw, 36px); font-style: italic; color: var(--ink-soft); }
.empty-state p { color: var(--muted); font-size: 14.5px; margin: 16px auto 30px; max-width: 44ch; }

/* ---------- Property detail ---------- */

.gallery {
  position: relative; height: 92vh; height: 92svh; min-height: 540px;
  background: var(--ink); overflow: hidden;
}
.gallery-track { position: absolute; inset: 0; }
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.03);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
  pointer-events: none;
}
.gallery-slide.current { opacity: 1; transform: none; pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15,12,8,0.55), transparent 34%),
              linear-gradient(to bottom, rgba(15,12,8,0.5), transparent 26%);
}

.gallery-ui { position: absolute; inset: 0; z-index: 5; color: var(--paper); pointer-events: none; }
.gallery-ui > * { pointer-events: auto; }

.gallery-top {
  position: absolute; top: calc(var(--header-h) + 18px); left: clamp(20px, 4.5vw, 72px); right: clamp(20px, 4.5vw, 72px);
  display: flex; justify-content: space-between; align-items: center;
}
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.back-link .arrow { transition: transform 0.45s var(--ease); display: inline-block; }
.back-link:hover .arrow { transform: translateX(-5px); }

.gallery-counter {
  position: absolute; left: clamp(20px, 4.5vw, 72px); bottom: 34px;
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.14em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.gallery-counter .total { color: rgba(248,245,239,0.6); }
.gallery-caption {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: rgba(248,245,239,0.9);
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
  max-width: 40ch; text-align: center;
  transition: opacity 0.6s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(248,245,239,0.4);
  background: rgba(15,12,8,0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-nav:hover { background: rgba(248,245,239,0.92); color: var(--ink); border-color: transparent; }
.gallery-nav:active { transform: translateY(-50%) scale(0.94); }
.gallery-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.gallery-nav.prev { left: clamp(16px, 3vw, 40px); }
.gallery-nav.next { right: clamp(16px, 3vw, 40px); }

.gallery-dots {
  position: absolute; right: clamp(20px, 4.5vw, 72px); bottom: 38px;
  display: flex; gap: 10px;
}
.gallery-dots button {
  width: 22px; height: 22px; border: none; background: none; position: relative;
}
.gallery-dots button::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1.5px;
  background: rgba(248,245,239,0.45);
  transition: background 0.4s var(--ease), height 0.4s var(--ease);
}
.gallery-dots button.current::after { background: var(--paper); height: 2.5px; }

.gallery .save-btn { top: calc(var(--header-h) + 76px); }

.detail-head { padding: clamp(48px, 7vw, 90px) 0 clamp(34px, 4vw, 54px); }
.detail-head-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.detail-title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; margin-top: 20px; }
.detail-loc { font-size: 14px; color: var(--muted); margin-top: 14px; letter-spacing: 0.05em; }
.detail-price-block { text-align: right; padding-bottom: 6px; }
.detail-price { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 400; white-space: nowrap; }
.detail-price.por { font-style: italic; font-size: clamp(22px, 2.4vw, 30px); color: var(--muted); }
.detail-ref { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

.facts-bar {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.fact { padding: 26px 20px 26px 0; }
.fact + .fact { border-left: 1px solid var(--hairline); padding-left: 22px; }
.fact-label { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); }
.fact-value { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); margin-top: 8px; white-space: nowrap; }
.fact-value small { font-size: 0.55em; color: var(--muted); margin-left: 3px; }

.detail-body { padding: clamp(56px, 8vw, 110px) 0; }
.detail-cols { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 100px); }

.prose p { margin-bottom: 26px; font-size: 16.5px; line-height: 1.85; color: var(--ink-soft); max-width: var(--measure); }
.prose p:first-child::first-letter {
  font-family: var(--serif); font-size: 4.6em; line-height: 0.78;
  float: left; padding: 8px 14px 0 0; color: var(--ink); font-weight: 300;
}

.detail-aside { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.agent-card { border: 1px solid var(--hairline); padding: 32px 30px; background: var(--white); }
.agent-card .kicker { margin-bottom: 20px; display: block; }
.agent-name { font-family: var(--serif); font-size: 26px; }
.agent-role { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.agent-contact { margin: 20px 0 26px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--muted); line-height: 2; }
.agent-contact a { border-bottom: 1px solid var(--hairline-dark); transition: border-color 0.3s, color 0.3s; }
.agent-contact a:hover { color: var(--ink); border-color: var(--ink); }
.agent-card .btn { width: 100%; }
.aside-note { font-size: 12.5px; color: var(--faint); line-height: 1.9; margin-top: 18px; }

/* Highlights */
.highlights { border-top: 1px solid var(--hairline); }
.highlight-row {
  display: grid; grid-template-columns: 90px minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.highlight-num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--bronze); }
.highlight-title { font-family: var(--serif); font-size: clamp(23px, 2.4vw, 30px); font-weight: 400; line-height: 1.2; }
.highlight-text { font-size: 15px; color: var(--muted); line-height: 1.85; max-width: 56ch; }

/* Spec table */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(30px, 5vw, 80px); }
.spec-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.spec-row dt { color: var(--muted); letter-spacing: 0.06em; }
.spec-row dd { text-align: right; color: var(--ink); }

.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  font-size: 11.5px; letter-spacing: 0.1em;
  border: 1px solid var(--hairline); padding: 9px 16px;
  color: var(--ink-soft);
  transition: border-color 0.35s, background 0.35s, color 0.35s;
}
.chip:hover { border-color: var(--bronze); color: var(--bronze-deep); background: rgba(201, 168, 106, 0.06); }

.coords-line {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-top: clamp(40px, 6vw, 70px);
}

/* Prev / next */
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hairline); }
.pn-link { padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px); position: relative; overflow: hidden; }
.pn-link + .pn-link { border-left: 1px solid var(--hairline); text-align: right; }
.pn-link .kicker { margin-bottom: 14px; display: block; transition: color 0.3s; }
.pn-name { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); font-weight: 300; transition: transform 0.6s var(--ease); display: inline-block; }
.pn-link:hover .pn-name { transform: translateX(10px); color: var(--bronze-deep); }
.pn-link.next:hover .pn-name { transform: translateX(-10px); }

/* ---------- Featured band (home) ---------- */

.featured-media { position: relative; overflow: hidden; aspect-ratio: 4/3.4; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity 0.9s var(--ease); opacity: 0; }
.featured-media img.loaded { opacity: 1; }
.featured-media:hover img { transform: scale(1.04); }
.featured-copy .section-title { margin: 20px 0 22px; }
.featured-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.85; max-width: 52ch; margin-bottom: 30px; }
.featured-facts { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 34px; font-size: 12.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* Pull quote */
.pull-quote { text-align: center; max-width: 900px; margin: 0 auto; }
.pull-quote blockquote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.35;
}
.pull-quote cite {
  display: block; margin-top: 30px;
  font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}

/* Editorial / about */
.editorial-img { position: relative; overflow: hidden; }
.editorial-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease); }
.editorial-img img.loaded { opacity: 1; }
.editorial-img.tall { aspect-ratio: 3/3.8; }

.about-list { border-top: 1px solid var(--hairline); }
.about-row { display: grid; grid-template-columns: 70px 1fr 2fr; gap: clamp(16px, 3vw, 48px); padding: 30px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.about-row .num { font-family: var(--serif); font-style: italic; color: var(--bronze); font-size: 19px; }
.about-row h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; }
.about-row p { color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 60ch; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band .section-title { max-width: 18ch; margin: 24px auto 34px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(248, 245, 239, 0.78); }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 110px);
  padding: clamp(64px, 9vw, 120px) 0 clamp(44px, 6vw, 72px);
}
.footer-brand .brand-name { font-size: 30px; color: var(--paper); }
.footer-brand .brand-mark { color: var(--paper); }
.footer-brand p { font-size: 14px; line-height: 1.9; max-width: 40ch; margin-top: 24px; color: rgba(248,245,239,0.6); }

.newsletter { margin-top: 34px; max-width: 380px; }
.newsletter label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-pale); display: block; margin-bottom: 14px; }
.newsletter-row { display: flex; border-bottom: 1px solid rgba(248,245,239,0.3); }
.newsletter input {
  flex: 1; background: none; border: none; color: var(--paper);
  font-size: 14px; font-weight: 300; padding: 12px 2px;
}
.newsletter input::placeholder { color: rgba(248,245,239,0.4); }
.newsletter input:focus { outline: none; }
.newsletter button {
  background: none; border: none; color: var(--paper);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0 4px; transition: color 0.3s;
}
.newsletter button:hover { color: var(--bronze-pale); }
.newsletter-msg { font-size: 12.5px; margin-top: 12px; min-height: 18px; }
.newsletter-msg.ok { color: #a8c39a; }
.newsletter-msg.err { color: #d99a8c; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bronze-pale); font-weight: 500; margin-bottom: 22px; }
.footer-col address { font-style: normal; font-size: 13.5px; line-height: 2; color: rgba(248,245,239,0.6); margin-bottom: 18px; }
.footer-col address a { color: rgba(248,245,239,0.85); border-bottom: 1px solid rgba(248,245,239,0.25); transition: color 0.3s, border-color 0.3s; }
.footer-col address a:hover { color: var(--bronze-pale); border-color: var(--bronze-pale); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 13.5px; color: rgba(248,245,239,0.6); width: fit-content; transition: color 0.3s, transform 0.4s var(--ease); }
.footer-nav a:hover { color: var(--paper); transform: translateX(4px); }

.footer-bottom {
  border-top: 1px solid rgba(248,245,239,0.14);
  padding: 26px 0 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.14em; color: rgba(248,245,239,0.42);
}
.footer-bottom .legal { display: flex; gap: 26px; }
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: var(--bronze-pale); }

/* ---------- Modal ---------- */

.modal-root { position: relative; z-index: 200; }
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 17, 12, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.modal-overlay.open { opacity: 1; }
.modal {
  background: var(--paper);
  width: min(620px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  padding: clamp(30px, 5vw, 54px);
  transform: translateY(26px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  position: relative;
}
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border: none; background: none;
  font-size: 22px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, transform 0.4s var(--ease);
}
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }
.modal .kicker { display: block; margin-bottom: 18px; }
.modal-title { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; margin-bottom: 8px; }
.modal-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 30px; line-height: 1.7; }
.modal-sub strong { color: var(--ink); font-weight: 500; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--bronze); }
.field input, .field select, .field textarea {
  border: none; border-bottom: 1px solid var(--hairline-dark);
  background: transparent; padding: 10px 2px;
  font-size: 15px; font-weight: 300; color: var(--ink);
  transition: border-color 0.35s var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--error); }
.field-error { font-size: 11.5px; color: var(--error); min-height: 15px; letter-spacing: 0.03em; }

.form-foot { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form-foot .privacy { font-size: 11.5px; color: var(--faint); max-width: 30ch; line-height: 1.7; }

.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 1.5px solid rgba(248,245,239,0.35); border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-outline.btn-loading::after { border-color: rgba(27,24,19,0.25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.confirm-panel { text-align: center; padding: 16px 0 6px; }
.confirm-seal {
  width: 72px; height: 72px; margin: 0 auto 26px;
  border: 1px solid var(--bronze); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: sealIn 0.7s var(--ease) both 0.15s;
}
@keyframes sealIn { from { transform: scale(0.6); opacity: 0; } }
.confirm-seal svg { width: 26px; height: 26px; stroke: var(--bronze-deep); fill: none; stroke-width: 1.6; }
.confirm-panel .modal-title { margin-bottom: 14px; }
.confirm-ref {
  display: inline-block; margin: 6px 0 20px;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  border: 1px solid var(--hairline); padding: 10px 20px; color: var(--bronze-deep);
}
.confirm-panel p { font-size: 14px; color: var(--muted); line-height: 1.85; max-width: 42ch; margin: 0 auto 28px; }

/* ---------- Toasts ---------- */

.toast-root {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 250; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--paper);
  font-size: 12.5px; letter-spacing: 0.08em;
  padding: 14px 26px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 40px rgba(15,12,8,0.3);
  animation: toastIn 0.5s var(--ease) both;
}
.toast.out { animation: toastOut 0.4s var(--ease) both; }
.toast svg { width: 14px; height: 14px; stroke: var(--bronze-pale); fill: none; stroke-width: 1.6; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Page hero (shortlist / about) ---------- */

.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vh, 100px)) 0 clamp(40px, 5vw, 60px); }
.page-hero .display { font-size: clamp(38px, 5.4vw, 68px); margin-top: 20px; }
.page-hero .lede { margin-top: 18px; max-width: 56ch; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts-bar { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-left: none; padding-left: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--hairline); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .btn-enquire { display: none; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .detail-cols { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .detail-head-grid { grid-template-columns: 1fr; }
  .detail-price-block { text-align: left; }
  .highlight-row { grid-template-columns: 60px 1fr; }
  .highlight-text { grid-column: 2; }
  .about-row { grid-template-columns: 46px 1fr; }
  .about-row p { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery-caption { display: none; }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .pn-nav { grid-template-columns: 1fr; }
  .pn-link + .pn-link { border-left: none; border-top: 1px solid var(--hairline); text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; }
  .toolbar-inner { gap: 10px 14px; }
  .toolbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .gallery { height: 78vh; height: 78svh; min-height: 480px; }
  .gallery-nav { width: 46px; height: 46px; }
  .gallery-dots { display: none; }
  .gallery-counter { bottom: 22px; }
  .facts-bar { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 20px 14px 20px 0; }
  .fact + .fact { padding-left: 14px; }
  .fact:nth-child(odd) { border-left: none; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .fact:nth-child(4) { border-left: 1px solid var(--hairline); padding-left: 14px; }
  .footer-cols { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
