/* QUINCEL design system
   Fonts: Cormorant Garamond (SIL OFL 1.1), Inter (SIL OFL 1.1) — self-hosted.
   Contrast (vs ivory #F7F5F0): ink 14.4, forest 11.2, olive-text 6.0, brass-text 5.3, muted 5.9.
   Brass #AF9268 and olive #7D8972 are decorative only (rules, icons, large display). */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); }

:root {
  --ivory: #F7F5F0; --forest: #173C32; --forest-2: #1F4A3E; --ink: #202420; --stone: #E7E2D8; --stone-2: #EFEBE3;
  --olive: #7D8972; --brass: #AF9268; --olive-text: #56614D; --brass-text: #7A6140; --muted: #5B605A;
  --white: #FFFFFF; --line: #D9D3C6; --line-strong: #BDB5A5;
  --danger: #9B2C1F; --danger-bg: #F6E7E3; --ok: #2F5D3A; --ok-bg: #E5EEE4; --warn: #7A5310; --warn-bg: #F5ECD9; --info-bg: #E8ECE4;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --radius: 2px; --radius-2: 4px;
  --t: 180ms cubic-bezier(.2,.6,.2,1);
  --wrap: 1280px; --measure: 64ch;
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-variant-numeric: lining-nums; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; font-feature-settings: 'ss01', 'cv11'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--forest); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 1px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--ivory); }
::selection { background: var(--forest); color: var(--ivory); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--forest); color: var(--ivory); padding: var(--s3) var(--s4); text-decoration: none; }
.skip-link:focus { top: var(--s4); }

/* Typography */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.06; margin: 0 0 var(--s4); color: var(--ink); text-wrap: balance; }
h1, .h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem); }
h2, .h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
h3, .h3 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.15; }
h4, .h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 var(--s2); letter-spacing: 0; }
p { margin: 0 0 var(--s4); max-width: var(--measure); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.eyebrow { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-text); margin: 0 0 var(--s4); display: flex; align-items: center; gap: var(--s3); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--brass); }
.on-dark .eyebrow { color: var(--stone); }
em.serif, .serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--brass-text); }

/* Layout */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 860px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.section-sm { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-stone { background: var(--stone-2); }
.section-forest { background: var(--forest); color: var(--ivory); }
.section-forest h1, .section-forest h2, .section-forest h3 { color: var(--ivory); }
.section-forest .lead, .section-forest .muted { color: #D4DAD2; }
.section-head { display: grid; grid-template-columns: 1fr; gap: var(--s4); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--s7); } }
.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.brass-rule { width: 48px; height: 1px; background: var(--brass); border: 0; margin: var(--s5) 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,240,.96); border-bottom: 1px solid transparent; transition: background var(--t), border-color var(--t), box-shadow var(--t); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(247,245,240,.9); backdrop-filter: saturate(140%) blur(10px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: var(--header-h); transition: height var(--t); }
.is-scrolled .header-inner { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; color: var(--forest); transition: width var(--t), height var(--t); }
.is-scrolled .brand-mark { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .32em; margin-right: -.32em; }
.brand-desc { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, .5rem + 1.5vw, 2.2rem); }
.primary-nav a { text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .01em; padding: .5rem 0; position: relative; color: var(--ink); }
.primary-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); }
.primary-nav a[aria-current] { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: var(--s4); }
.portal-link { font-size: .84rem; color: var(--muted); text-decoration: none; }
.portal-link:hover { color: var(--forest); text-decoration: underline; }
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .primary-nav, .header-actions .portal-link, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 1px solid var(--line-strong); padding: .55rem .9rem; min-height: 44px; cursor: pointer; font-size: .9rem; border-radius: var(--radius); }
  .menu-toggle .bars { width: 18px; height: 10px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
  .menu-toggle .bars::before { top: 0; } .menu-toggle .bars::after { bottom: 0; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--ivory); display: flex; flex-direction: column; padding: var(--s4) 1.25rem var(--s6); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.mobile-menu nav ul { list-style: none; padding: 0; margin: var(--s6) 0; }
.mobile-menu nav a { display: block; font-family: var(--serif); font-size: 2.2rem; text-decoration: none; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current] { color: var(--forest); font-style: italic; }
.mobile-menu .mm-contact { margin-top: auto; display: grid; gap: var(--s3); }
.icon-btn { background: none; border: 1px solid var(--line-strong); width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; border-radius: var(--radius); }

.demo-banner { background: var(--ink); color: var(--stone); font-size: .8rem; text-align: center; padding: .5rem 1rem; }
.demo-banner strong { color: var(--ivory); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.5rem; border: 1px solid var(--forest); background: var(--forest); color: var(--ivory); text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .02em; cursor: pointer; border-radius: var(--radius); transition: background var(--t), color var(--t), border-color var(--t); white-space: nowrap; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn-secondary { background: transparent; color: var(--forest); }
.btn-secondary:hover { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn-light { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn-light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: rgba(247,245,240,.7); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn-quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--stone); color: var(--ink); border-color: var(--line-strong); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-sm { min-height: 38px; padding: .45rem .9rem; font-size: .84rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: none; color: var(--forest); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.link-arrow:hover { border-bottom-color: var(--forest); }
.on-dark .link-arrow, .section-forest .link-arrow { color: var(--ivory); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: var(--ivory); isolation: isolate; margin-top: calc(-1 * var(--header-h)); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,28,23,.78) 0%, rgba(16,28,23,.55) 38%, rgba(16,28,23,.12) 70%, rgba(16,28,23,0) 100%), linear-gradient(180deg, rgba(16,28,23,.45) 0%, rgba(16,28,23,0) 22%, rgba(16,28,23,0) 60%, rgba(16,28,23,.7) 100%); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(180deg, rgba(16,28,23,.55) 0%, rgba(16,28,23,.62) 40%, rgba(16,28,23,.86) 100%); } }
.hero-content { padding-top: calc(var(--header-h) + 6rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero h1 { color: var(--ivory); max-width: 11.5em; font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); margin-bottom: var(--s5); }
.hero .lead { color: #EAE7DF; max-width: 54ch; }
.hero .eyebrow { color: var(--stone); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-caption { position: absolute; right: 1.25rem; bottom: .75rem; font-size: .72rem; color: #EAE7DF; letter-spacing: .04em; opacity: .9; }
.home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; }
.home .site-header:not(.is-scrolled) .brand, .home .site-header:not(.is-scrolled) .primary-nav a, .home .site-header:not(.is-scrolled) .portal-link, .home .site-header:not(.is-scrolled) .brand-desc { color: var(--ivory); }
.home .site-header:not(.is-scrolled) .brand-mark { color: var(--ivory); }
.home .site-header:not(.is-scrolled) .primary-nav a::after { background: var(--ivory); }
.home .site-header:not(.is-scrolled) .btn { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.home .site-header:not(.is-scrolled) .menu-toggle { color: var(--ivory); border-color: rgba(247,245,240,.6); }
.home .site-header:not(.is-scrolled) :focus-visible { outline-color: var(--ivory); }

/* Search panel */
.search-panel { background: var(--ivory); color: var(--ink); padding: clamp(1rem, .8rem + 1vw, 1.5rem); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
@media (min-width: 900px) { .search-panel { grid-template-columns: 1.6fr 1fr 1fr 1fr auto; align-items: end; } }
.search-panel .field { margin: 0; }
.search-panel .field:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .search-panel .field:first-child { grid-column: auto; } }
.search-panel .btn { grid-column: 1 / -1; }
@media (min-width: 900px) { .search-panel .btn { grid-column: auto; } }

/* Forms */
.field { display: grid; gap: .4rem; margin-bottom: var(--s5); }
.field > label, .field > .label, fieldset > legend { font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin: 0; }
.req { color: var(--danger); margin-left: 2px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color var(--t), box-shadow var(--t); font-size: 1rem; }
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
select { appearance: none; 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 1.5l5 5 5-5' stroke='%23202420' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,60,50,.18); }
[aria-invalid="true"] { border-color: var(--danger) !important; background: #FFFCFB; }
.field-error { color: var(--danger); font-size: .84rem; margin: 0; display: flex; gap: .4rem; align-items: flex-start; }
.field-error::before { content: '!'; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; margin-top: .15rem; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
fieldset > legend { margin-bottom: var(--s3); padding: 0; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; cursor: pointer; font-size: .95rem; }
.choice input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--forest); flex: 0 0 auto; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .2rem 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr; column-gap: var(--s5); }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); background: var(--stone-2); padding: var(--s3) var(--s4); border-left: 2px solid var(--brass); margin-bottom: var(--s5); }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--ivory) transparent var(--ivory) transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Alerts */
.alert { padding: var(--s4) var(--s5); border-left: 3px solid; margin-bottom: var(--s5); font-size: .95rem; background: var(--info-bg); border-color: var(--olive); }
.alert h2, .alert h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: var(--danger-bg); border-color: var(--danger); }
.alert-success { background: var(--ok-bg); border-color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn); }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .55rem; background: var(--ivory); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); white-space: nowrap; line-height: 1.2; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.badge-available::before { background: var(--ok); }
.badge-offer::before, .badge-let_agreed::before { background: var(--brass); }
.badge-let::before, .badge-withdrawn::before { background: var(--muted); }
.badge-sample { background: var(--ink); color: var(--ivory); border-color: var(--ink); letter-spacing: .06em; text-transform: none; font-weight: 500; }
.badge-forest { background: var(--forest); color: var(--ivory); border-color: var(--forest); }

/* Property cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(32,36,32,.45); }
.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 600ms cubic-bezier(.2,.6,.2,1); }
.card:hover .card-media img { transform: scale(1.025); }
.card-badges { position: absolute; left: .75rem; top: .75rem; display: flex; gap: .4rem; flex-wrap: wrap; max-width: calc(100% - 4.5rem); }
.fav-btn { position: absolute; right: .6rem; top: .6rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(247,245,240,.94); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background var(--t), color var(--t); }
.fav-btn:hover { background: var(--ivory); color: var(--forest); }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn[aria-pressed="true"] { color: var(--forest); }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }
.card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-loc { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-text); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.card-title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.12; margin: 0; font-weight: 500; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 2px solid var(--forest); outline-offset: 3px; }
.card-price { font-size: 1.05rem; font-weight: 600; margin: 0; }
.card-price .freq { font-weight: 400; color: var(--muted); font-size: .9rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .86rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.card-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.card-meta svg { width: 16px; height: 16px; color: var(--olive-text); }
.card-feature { font-size: .88rem; margin: .2rem 0 0; color: var(--ink); border-top: 1px solid var(--line); padding-top: .7rem; }
.card-avail { font-size: .82rem; color: var(--muted); margin: 0; }
.results.list-view { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .results.list-view .card { flex-direction: row; }
  .results.list-view .card-media { width: 42%; flex: 0 0 42%; aspect-ratio: auto; min-height: 260px; }
}

/* Two journeys */
.journey { position: relative; min-height: 560px; display: grid; align-items: end; color: var(--ivory); isolation: isolate; overflow: hidden; }
.journey picture, .journey img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.journey::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,28,23,.2) 0%, rgba(16,28,23,.55) 40%, rgba(16,28,23,.92) 100%); }
.journey-body { padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.journey h2 { color: var(--ivory); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); max-width: 16ch; }
.journey p { color: #E7E5DD; }

/* Principles strip */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { padding: var(--s6) var(--s5) var(--s6) 0; }
.principle + .principle { border-left: 1px solid var(--line); padding-left: var(--s5); }
@media (max-width: 960px) { .principle + .principle { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .principle { padding: var(--s5) 0; } }
.principle svg { width: 28px; height: 28px; color: var(--brass-text); margin-bottom: var(--s3); }
.principle h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.principle p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: var(--brass-text); line-height: 1; }
.steps h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .2rem; }
.steps p { margin: 0; font-size: .92rem; color: var(--muted); }
.section-forest .steps li { border-color: rgba(231,226,216,.22); }
.section-forest .steps li::before { color: var(--brass); }
.section-forest .steps p { color: #CFD6CE; }
.section-forest .steps h3 { color: var(--ivory); }

/* Service tiles */
.tile { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s3); }
.tile h3 { margin: 0; }
.tile .link-arrow { margin-top: auto; align-self: flex-start; }
.num { font-family: var(--serif); font-size: 1rem; color: var(--brass-text); letter-spacing: .1em; }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.compare th, .compare td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; }
.compare thead th { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; background: var(--stone-2); }
.compare td.yes, .compare td.no { text-align: center; width: 22%; }
.compare .tick { color: var(--forest); font-weight: 700; }
.compare .dash { color: var(--muted); }
.compare tfoot td { background: var(--stone-2); font-size: .9rem; }

/* Image split */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.wide { aspect-ratio: 16 / 10; }
.illus-note { position: absolute; left: .75rem; bottom: .75rem; font-size: .7rem; background: rgba(247,245,240,.92); padding: .2rem .5rem; color: var(--ink); }

/* Page header */
.page-head { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { max-width: 60ch; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: var(--s5); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Search results page */
.search-layout { display: grid; gap: var(--s6); padding-block: var(--s6) var(--s8); }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 290px 1fr; gap: var(--s7); } }
.filters { align-self: start; }
@media (min-width: 1024px) { .filters { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: .5rem; } .filters .drawer-head, .filters .drawer-foot { display: none; } }
@media (max-width: 1023px) {
  .filters { position: fixed; inset: 0; height: 100vh; height: 100dvh; max-height: none; z-index: 90; background: var(--ivory); padding: 0 1.25rem; overflow-y: auto; display: none; }
  .filters.is-open { display: block; }
  .filters .drawer-head { display: flex; justify-content: space-between; align-items: center; min-height: 68px; position: sticky; top: 0; background: var(--ivory); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); z-index: 1; }
  .filters .drawer-foot { position: sticky; bottom: 0; background: var(--ivory); padding: var(--s4) 0; border-top: 1px solid var(--line); display: flex; gap: var(--s3); }
}
.filter-toggle { display: none; }
@media (max-width: 1023px) { .filter-toggle { display: inline-flex; } }
.filters h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: 0 0 var(--s4); }
.filters .field { margin-bottom: var(--s4); }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.results-count { font-size: .95rem; margin: 0; }
.results-count strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.view-toggle a { padding: .5rem .8rem; min-height: 40px; display: inline-flex; align-items: center; font-size: .84rem; text-decoration: none; }
.view-toggle a[aria-current] { background: var(--forest); color: var(--ivory); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s5); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .5rem .35rem .8rem; background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; text-decoration: none; min-height: 36px; }
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip .x { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--stone); font-size: .8rem; }
.empty-state { text-align: center; padding: clamp(2.5rem, 2rem + 4vw, 5rem) 1.25rem; background: var(--stone-2); border: 1px solid var(--line); }
.empty-state h2, .empty-state h3 { margin-inline: auto; }
.empty-state p { margin-inline: auto; }
.empty-state svg { width: 48px; height: 48px; color: var(--brass-text); margin: 0 auto var(--s4); }

/* Property detail */
.gallery { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: min(68vh, 620px); } .gallery .g-main { grid-row: 1 / 3; } }
.gallery button { padding: 0; border: 0; background: var(--stone); cursor: zoom-in; position: relative; overflow: hidden; display: block; width: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
@media (min-width: 860px) { .gallery img { aspect-ratio: auto; } }
.gallery { position: relative; }
.gallery .g-count { position: absolute; left: .75rem; bottom: .75rem; pointer-events: none; background: rgba(247,245,240,.94); padding: .35rem .7rem; font-size: .8rem; }
.gallery .g-hide-mobile { display: none; }
@media (min-width: 860px) { .gallery .g-hide-mobile { display: block; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,24,21,.96); display: grid; grid-template-rows: auto 1fr auto; color: var(--ivory); }
.lightbox[hidden] { display: none; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; }
.lightbox .lb-stage { display: grid; place-items: center; padding: 0 1rem; min-height: 0; }
.lightbox .lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox .lb-nav { display: flex; justify-content: center; gap: 1rem; padding: 1rem; }
.lightbox .icon-btn { border-color: rgba(247,245,240,.5); color: var(--ivory); }
.detail-layout { display: grid; gap: var(--s7); padding-block: var(--s6) var(--s8); }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s8); } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--s5) 0 var(--s6); }
.facts div { padding: var(--s4) var(--s3) var(--s4) 0; }
.facts dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-text); font-weight: 600; }
.facts dd { margin: .25rem 0 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.detail-section { padding-block: var(--s6); border-top: 1px solid var(--line); }
.detail-section h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; margin: 0; }
.kv dt, .kv dd { padding: .7rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); padding-right: 1rem; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .25rem 1.5rem; }
.feature-list li { padding: .55rem 0 .55rem 1.4rem; position: relative; border-bottom: 1px solid var(--line); font-size: .95rem; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 1px; background: var(--brass); }
.enquiry-panel { align-self: start; background: var(--white); border: 1px solid var(--line); padding: var(--s5); }
@media (min-width: 1024px) { .enquiry-panel { position: sticky; top: 88px; } }
.enquiry-panel .price { font-family: var(--serif); font-size: 2.3rem; line-height: 1; margin: 0; }
.enquiry-panel .price .freq { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.agent { display: flex; gap: var(--s3); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--s4) 0; }
.agent .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: var(--ivory); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; flex: 0 0 auto; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ivory); border-top: 1px solid var(--line); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); display: flex; gap: .6rem; align-items: center; }
.mobile-bar .mb-price { flex: 1; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.mobile-bar .mb-price span { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
@media (max-width: 1023px) { body.has-mobile-bar { padding-bottom: 76px; } }
.status-banner { padding: var(--s4) var(--s5); background: var(--stone); border-left: 3px solid var(--forest); margin-bottom: var(--s5); }
.location-card { background: var(--stone-2); border: 1px solid var(--line); padding: var(--s5); display: grid; gap: var(--s2); }

/* Dialog */
dialog.modal { border: 0; padding: 0; max-width: min(640px, calc(100vw - 2rem)); width: 100%; background: var(--ivory); color: var(--ink); max-height: calc(100vh - 2rem); }
dialog.modal::backdrop { background: rgba(20,24,21,.6); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--ivory); z-index: 1; }
.modal-head h2 { font-size: 1.7rem; margin: 0; }
.modal-body { padding: var(--s5); }

/* Team */
.team-card { background: var(--white); border: 1px solid var(--line); }
.team-card .portrait { aspect-ratio: 4/5; background: var(--stone); display: grid; place-items: center; }
.team-card .portrait span { font-family: var(--serif); font-size: 4rem; color: var(--olive-text); }
.team-card .tc-body { padding: var(--s5); }
.placeholder-card { border: 1px dashed var(--line-strong); background: transparent; padding: var(--s5); }
.placeholder-card .portrait { border: 1px dashed var(--line-strong); aspect-ratio: 4/5; display: grid; place-items: center; margin-bottom: var(--s4); background: var(--stone-2); }
.placeholder-card .portrait svg { width: 56px; height: 56px; color: var(--line-strong); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s5) 2.5rem var(--s5) 0; position: relative; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; font-weight: 300; color: var(--brass-text); transition: transform var(--t); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding-bottom: var(--s5); }

/* Footer */
.site-footer { background: var(--ink); color: #D6D9D2; padding: clamp(3.5rem, 3rem + 3vw, 6rem) 0 var(--s6); font-size: .92rem; }
.site-footer a { color: #E7E9E3; text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.footer-top { display: grid; gap: var(--s6); grid-template-columns: 1fr; padding-bottom: var(--s7); border-bottom: 1px solid rgba(231,226,216,.16); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: #B9BEB5; font-weight: 600; margin-bottom: var(--s4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: var(--ivory); }
.site-footer .brand-desc { color: #B9BEB5; }
.site-footer .brand-mark { color: var(--brass); }
.footer-tag { font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); margin: var(--s5) 0 var(--s3); font-style: italic; }
.footer-bottom { padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; font-size: .8rem; color: #ADB2AA; }
.footer-bottom p { margin: 0; max-width: none; }

/* Closing CTA */
.closing { text-align: center; }
.closing h2 { max-width: 18ch; margin-inline: auto; }
.closing p { margin-inline: auto; }
.closing .row { justify-content: center; margin-top: var(--s5); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--stone) 0%, var(--stone-2) 50%, var(--stone) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
img.lazy-fade { opacity: 0; transition: opacity 400ms ease; }
img.lazy-fade.is-loaded { opacity: 1; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--ink); color: var(--ivory); padding: .75rem 1.1rem; font-size: .9rem; z-index: 120; border-radius: var(--radius); max-width: calc(100vw - 2rem); }
.toast[hidden] { display: none; }

/* ===================== Workspace (staff, landlord, tenant) ===================== */
.app { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: #F3F1EC; }
@media (min-width: 1024px) { .app { grid-template-columns: 248px 1fr; } }
.app-side { background: var(--forest); color: #DCE2DA; padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s5); }
@media (min-width: 1024px) { .app-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.app-side .brand { color: var(--ivory); }
.app-side .brand-mark { color: var(--brass); width: 28px; height: 28px; }
.app-side .brand-word { font-size: 1.2rem; }
.app-side .brand-desc { color: #B9C2B8; letter-spacing: .2em; font-size: .55rem; white-space: nowrap; }
.app-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.app-nav a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; color: #E2E7E0; text-decoration: none; font-size: .9rem; border-radius: var(--radius); min-height: 40px; }
.app-nav a:hover { background: rgba(247,245,240,.08); color: var(--ivory); }
.app-nav a[aria-current] { background: rgba(247,245,240,.14); color: var(--ivory); box-shadow: inset 2px 0 0 var(--brass); }
.app-nav .count { font-size: .72rem; background: rgba(247,245,240,.16); padding: .1rem .45rem; border-radius: 999px; }
.app-side .me { margin-top: auto; font-size: .82rem; border-top: 1px solid rgba(231,226,216,.18); padding-top: var(--s4); }
.app-side .me strong { display: block; color: var(--ivory); font-weight: 600; overflow-wrap: anywhere; }
.app-side .me a, .app-side .me button { color: #E2E7E0; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: .82rem; }
.app-side :focus-visible { outline-color: var(--ivory); }
@media (max-width: 1023px) { .app-nav ul { display: flex; flex-wrap: wrap; } .app-side { gap: var(--s3); } }
.app-main { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); min-width: 0; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); }
.app-head h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); margin: 0; }
.app-head .sub { color: var(--muted); margin: .3rem 0 0; font-size: .92rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s5); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; }
.panel-body { padding: var(--s5); }
.panel-body > :last-child { margin-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.stat { background: var(--white); border: 1px solid var(--line); padding: var(--s4); text-decoration: none; display: block; border-radius: var(--radius); transition: border-color var(--t); }
.stat:hover { border-color: var(--forest); color: var(--ink); }
.stat .n { font-family: var(--serif); font-size: 2.4rem; line-height: 1; display: block; }
.stat .l { font-size: .82rem; color: var(--muted); }
.stat.attn { border-left: 3px solid var(--warn); }
.table-wrap { overflow-x: auto; position: relative; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--stone-2); white-space: nowrap; }
table.data td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #FAF9F6; }
table.data a { font-weight: 500; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--stone); color: var(--ink); white-space: nowrap; }
.pill-new, .pill-requested, .pill-submitted, .pill-reported, .pill-under_review { background: #E4E9F2; color: #253A5E; }
.pill-confirmed, .pill-published, .pill-approved, .pill-active, .pill-resolved, .pill-done, .pill-let { background: var(--ok-bg); color: var(--ok); }
.pill-awaiting_info, .pill-awaiting_owner, .pill-awaiting_reply, .pill-requested-approval, .pill-under_offer, .pill-let_agreed, .pill-high, .pill-urgent, .pill-overdue { background: var(--warn-bg); color: var(--warn); }
.pill-declined, .pill-cancelled, .pill-withdrawn, .pill-spam, .pill-urgent { background: var(--danger-bg); color: var(--danger); }
.pill-sample { background: var(--ink); color: var(--ivory); }
.filters-inline { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.filters-inline .field { margin: 0; min-width: 160px; }
.filters-inline input, .filters-inline select { min-height: 40px; padding-block: .45rem; font-size: .9rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .6rem 0 .6rem 1.1rem; border-left: 1px solid var(--line); position: relative; font-size: .88rem; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: 1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.timeline time { color: var(--muted); font-size: .78rem; display: block; }
.two-col { display: grid; gap: var(--s5); }
@media (min-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.thumbs figure { margin: 0; background: var(--stone-2); border: 1px solid var(--line); }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.thumbs figcaption { padding: .4rem .5rem; font-size: .76rem; }
.lifecycle { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0 0 var(--s4); font-size: .78rem; }
.lifecycle li { padding: .35rem .7rem; border: 1px solid var(--line); margin-left: -1px; background: var(--white); color: var(--muted); }
.lifecycle li.done { background: var(--stone-2); color: var(--ink); }
.lifecycle li.current { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth-shell { grid-template-columns: 1fr 1fr; } }
.auth-art { position: relative; display: none; background: var(--forest); }
@media (min-width: 960px) { .auth-art { display: block; } }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.auth-form { display: grid; place-items: center; padding: var(--s6) 1.25rem; }
.auth-form > div { width: min(100%, 420px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .mobile-bar, .fav-btn, .demo-banner { display: none !important; } }

@media (max-width: 1023px) { .desktop-apply { display: none; } }
.desktop-apply { margin-top: var(--s4); }
.desktop-apply .btn { flex: 1 1 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 899px) { .search-panel .field:nth-child(4) { grid-column: 1 / -1; } .hero-content { padding-bottom: 2.75rem; } }
@media (max-width: 600px) { .compare th, .compare td { padding: .7rem .6rem; font-size: .88rem; } .compare thead th { font-size: 1.15rem; } }
.app-main img.lazy-fade { opacity: 1; }

/* ==========================================================================
   Refresh: softer geometry, depth, photography-led layouts, 3D hero
   ========================================================================== */
:root {
  --radius: 10px; --radius-2: 18px; --radius-3: 28px;
  --shadow-1: 0 1px 2px rgba(23,32,28,.05), 0 8px 24px -12px rgba(23,32,28,.14);
  --shadow-2: 0 2px 6px rgba(23,32,28,.06), 0 28px 60px -28px rgba(23,32,28,.35);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --forest-3: #0F2A22;
}
h1, h2, h3, .display { letter-spacing: -0.02em; }

/* Buttons: pill shape, lift on hover */
.btn { border-radius: 999px; padding-inline: 1.6rem; font-weight: 550; letter-spacing: .01em; transition: background var(--t), color var(--t), border-color var(--t), transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(23,60,50,.7); }
.btn:active { transform: translateY(0); }
.btn-sm { padding-inline: 1.05rem; }
.btn-light:hover { background: #fff; color: var(--forest); border-color: #fff; }
.btn-ghost-light { backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.icon-btn { border-radius: 999px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea { border-radius: var(--radius); border-color: var(--line); }
.form-card, .enquiry-panel, .location-card, .empty-state, .tile, .compare, .team-card, .placeholder-card { border-radius: var(--radius-2); }
.alert, .status-banner, .form-note { border-radius: var(--radius); }
.badge { border-radius: 999px; padding: .32rem .7rem; background: rgba(255,255,255,.94); border-color: transparent; box-shadow: 0 2px 10px -4px rgba(0,0,0,.25); }

/* Header */
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(23,32,28,.45); }
.primary-nav a::after { bottom: -.1rem; height: 1.5px; border-radius: 2px; }

/* Scroll reveal (only once site.js has loaded) */
/* Motion only, no fade: text keeps full contrast at every moment */
.js [data-reveal] { transform: translateY(32px); transition: transform 1000ms var(--ease-out); }
.js [data-reveal].is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { transform: none; transition: none; } }

/* ---------- 3D hero ---------- */
.hero.hero-3d { display: block; min-height: auto; padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 4rem)); padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); background: radial-gradient(120% 90% at 78% 30%, #24594A 0%, var(--forest) 38%, var(--forest-3) 100%); overflow: hidden; }
.hero.hero-3d::before { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; width: 60vw; height: 60vw; right: -12vw; top: -14vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,160,.22), rgba(255,214,160,0)); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(247,245,240,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(247,245,240,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 70% 45%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 45%, #000 0%, transparent 75%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 1rem + 2vw, 3rem); align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }
@media (min-width: 1024px) { .hero-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); min-height: min(68vh, 640px); } }
.hero-3d h1 { font-size: clamp(2.8rem, 1.7rem + 4.2vw, 5.6rem); line-height: .98; max-width: 10.5em; margin-bottom: var(--s5); color: var(--ivory); }
.hero-3d h1 em { color: #E8D3AE; }
.hero-3d .lead { color: rgba(247,245,240,.82); max-width: 46ch; }
.hero-points { list-style: none; padding: 0; margin: var(--s6) 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .88rem; color: rgba(247,245,240,.78); }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points svg { width: 18px; height: 18px; color: #E8D3AE; }
.hero-visual { position: relative; aspect-ratio: 5 / 4; min-height: 320px; border-radius: var(--radius-3); touch-action: pan-y; }
.hero-visual.is-3d { cursor: grab; }
.hero-visual.is-dragging { cursor: grabbing; }
.hero-fallback { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); transition: opacity 900ms var(--ease-out); }
.hero-fallback img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual.is-3d .hero-fallback { opacity: 0; pointer-events: none; }
.hero3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1200ms var(--ease-out); }
.hero-visual.is-3d .hero3d-canvas { opacity: 1; }
.hero-hint { position: absolute; left: 50%; bottom: .25rem; transform: translateX(-50%); margin: 0; display: none; align-items: center; gap: .55rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,245,240,.6); white-space: nowrap; pointer-events: none; }
.hero-hint span { width: 22px; height: 22px; border: 1px solid rgba(247,245,240,.45); border-radius: 50%; position: relative; }
.hero-hint span::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #E8D3AE; animation: hint 2.4s var(--ease-out) infinite; }
@keyframes hint { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .hero-hint span::after { animation: none; } }
.hero-visual.is-3d .hero-hint { display: inline-flex; }
.hero-3d .search-panel { position: relative; margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 22px; padding: 1rem; background: rgba(247,245,240,.97); box-shadow: 0 40px 80px -40px rgba(0,0,0,.65); }
@media (min-width: 900px) { .hero-3d .search-panel { padding: .85rem .85rem .85rem 1.4rem; } }
.search-panel .field > label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-text); }
.search-panel input, .search-panel select { background-color: var(--white); border-color: var(--line); }
.search-panel .btn { min-height: 52px; }

/* ---------- Principles ---------- */
.principles-band { padding-block: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.principles { border: 0; gap: clamp(1rem, .5rem + 1vw, 1.5rem); }
.principle, .principle + .principle { border: 0; padding: 1.6rem 1.5rem 1.7rem; background: var(--white); border-radius: var(--radius-2); box-shadow: var(--shadow-1); }
@media (max-width: 960px) { .principle + .principle { border-top: 0; padding-left: 1.5rem; } .principle { padding: 1.5rem; } }
.principle-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #EAF0E6, #DCE5D6); margin-bottom: 1rem; }
.principle-icon svg, .principle svg { width: 22px; height: 22px; color: var(--forest); margin: 0; }

/* ---------- Property cards ---------- */
.card { border: 0; border-radius: var(--radius-2); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow 400ms var(--ease-out), transform 400ms var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(10,20,16,.28)); pointer-events: none; }
.card-media img { transition: transform 1200ms var(--ease-out); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.3rem 1.4rem 1.45rem; }
.card-title { font-size: 1.6rem; }
.card-price { font-size: 1.15rem; color: var(--forest); }
.card-feature { border-top-color: var(--stone); }
.fav-btn { box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.card:has(.card-title a:focus-visible) { outline-offset: 4px; }

/* ---------- Bento showcase ---------- */
.bento { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; } .bento .b-tall { grid-row: span 2; } }
@media (min-width: 1024px) { .bento { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 280px; } }
.bento-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-2); min-height: 240px; isolation: isolate; box-shadow: var(--shadow-1); }
.bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1400ms var(--ease-out); }
.bento-item:hover img { transform: scale(1.05); }
.bento-item::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,16,0) 30%, rgba(10,20,16,.55) 62%, rgba(10,20,16,.85) 100%); }
.bento-item figcaption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; color: var(--ivory); display: grid; gap: .15rem; }
.bento-item figcaption strong { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; line-height: 1.1; }
.bento-item figcaption span { font-size: .86rem; color: rgba(247,245,240,.85); }

/* ---------- Journeys ---------- */
.journeys { padding-block: clamp(4rem, 3rem + 5vw, 8rem) 0; }
.journeys .grid { gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); }
.journey { border-radius: var(--radius-3); min-height: 600px; box-shadow: var(--shadow-2); }
.journey img { transition: transform 1600ms var(--ease-out); }
.journey:hover img { transform: scale(1.04); }
.journey::before { background: linear-gradient(180deg, rgba(10,20,16,.05) 0%, rgba(10,20,16,.35) 45%, rgba(10,20,16,.9) 100%); }

/* ---------- Services ---------- */
.service-card { background: var(--white); border-radius: var(--radius-2); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media .num { position: absolute; left: 1rem; top: 1rem; background: rgba(247,245,240,.94); color: var(--forest); border-radius: 999px; padding: .25rem .7rem; font-size: .9rem; }
.service-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.service-body h3 { margin: 0; }
.service-body .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- How it works ---------- */
.section-forest { background: radial-gradient(100% 80% at 10% 0%, #24594A 0%, var(--forest) 45%, var(--forest-3) 100%); }
.how .how-col { background: rgba(247,245,240,.04); border: 1px solid rgba(247,245,240,.1); border-radius: var(--radius-3); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.how .how-col > h3 { color: var(--ivory); margin-bottom: 1rem; }
.how .steps li:first-child { border-top: 0; }

/* ---------- About photo stack ---------- */
.photo-stack { position: relative; padding: 0 12% 14% 0; }
.photo-stack .ps-back { border-radius: var(--radius-3); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-2); }
.photo-stack .ps-front { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--radius-2); overflow: hidden; border: 6px solid var(--ivory); box-shadow: var(--shadow-2); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Commitments ---------- */
.tile { border: 0; box-shadow: var(--shadow-1); }
.tile.commit .principle-icon { background: linear-gradient(145deg, #F3EBDD, #E8DCC6); }
.tile.commit .principle-icon svg { color: var(--brass-text); }

/* ---------- Closing band ---------- */
.closing-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 4rem + 6vw, 10rem); text-align: center; color: var(--ivory); }
.closing-media, .closing-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.closing-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,42,34,.72), rgba(15,42,34,.88)); }
.closing-inner { display: grid; justify-items: center; }
.closing-inner .eyebrow { justify-content: center; }
.closing-inner h2 { color: var(--ivory); max-width: 16ch; font-size: clamp(2.3rem, 1.6rem + 3vw, 4.2rem); }
.closing-inner .lead { color: rgba(247,245,240,.88); margin-inline: auto; }
.closing-inner .row { justify-content: center; margin-top: var(--s4); }

/* ---------- Inner pages ---------- */
.page-head { position: relative; border-bottom: 0; background: linear-gradient(180deg, var(--stone-2), var(--ivory)); overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -10%; top: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(175,146,104,.16), transparent); pointer-events: none; }
.frame { border-radius: var(--radius-3); box-shadow: var(--shadow-2); }
.frame.wide { border-radius: var(--radius-2); }
@media (min-width: 1024px) { .filters form { background: var(--white); border-radius: var(--radius-2); padding: 1.4rem; box-shadow: var(--shadow-1); } }
.view-toggle { border-radius: 999px; overflow: hidden; border-color: var(--line); }
.chip { border-color: var(--line); }

/* Property detail */
.gallery { border-radius: var(--radius-3); overflow: hidden; }
.gallery button img { transition: transform 1200ms var(--ease-out); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .g-count { border-radius: 999px; padding: .45rem .9rem; font-weight: 500; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.facts { border: 0; gap: .75rem; }
.facts div { background: var(--white); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-1); }
.enquiry-panel { border: 0; box-shadow: var(--shadow-2); padding: 1.75rem; }
.agent { border-color: var(--stone); }

/* Footer */
.site-footer { background: var(--forest-3); }

/* ==========================================================================
   Logo: arched-doorway Q monogram + italic serif wordmark
   ========================================================================== */
.brand { gap: .85rem; --mark-tail: var(--brass); }
.brand-mark { width: 40px; height: 40px; overflow: visible; }
.brand-mark .mark-tail { transition: transform 400ms var(--ease-out); transform-origin: 41px 47px; }
.brand:hover .brand-mark .mark-tail { transform: translate(2px, 2px); }
.is-scrolled .brand-mark { width: 34px; height: 34px; }
.brand-rule { width: 1px; align-self: stretch; margin-block: .35rem; background: currentColor; opacity: .22; }
.brand-word { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.95rem; letter-spacing: 0; margin-right: 0; line-height: .9; }
.brand-desc { font-size: .56rem; letter-spacing: .34em; margin-top: .3rem; }
@media (max-width: 420px) { .brand-rule { display: none; } .brand-word { font-size: 1.7rem; } }

/* ==========================================================================
   Load intro: the logo extrudes from a plaster wall like raised acrylic letters
   Pure CSS timeline (ends itself); intro-gate.js decides whether it plays.
   ========================================================================== */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 300; overflow: hidden; cursor: default;
  animation: intro-out 650ms cubic-bezier(.65,0,.35,1) 3.45s forwards; }
.intro.is-skipping { animation: intro-out 420ms ease forwards !important; }
.intro-wall { position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    radial-gradient(130% 110% at 22% 8%, #FBF9F4 0%, #EEE9DF 46%, #D9D1C1 100%);
  animation: intro-zoom 4.1s cubic-bezier(.25,.1,.25,1) forwards; }
/* Fine plaster grain */
.intro-wall::before { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .36 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.intro-stage { position: relative; display: flex; align-items: center; gap: clamp(1rem, .5rem + 2vw, 2rem); padding: 2rem; color: var(--forest); --mark-tail: #9C7F55; }
.intro-mark { width: clamp(96px, 60px + 9vw, 184px); height: auto; overflow: visible; opacity: 0;
  animation: extrude-mark 1s cubic-bezier(.2,.7,.2,1) .35s forwards; }
.intro-type { display: grid; gap: clamp(.4rem, .3rem + .4vw, .7rem); }
.intro-word { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(3.6rem, 2rem + 8vw, 8.5rem); line-height: .85; white-space: nowrap; }
.intro-desc { font-family: var(--sans); font-weight: 600; font-size: clamp(.62rem, .5rem + .5vw, .95rem); letter-spacing: .42em; white-space: nowrap; padding-left: .2em; color: #2A4A40; }
.intro-word span, .intro-desc span { display: inline-block; opacity: 0; }
.intro-word span { animation: extrude-letter 950ms cubic-bezier(.2,.7,.2,1) calc(.75s + var(--i) * 95ms) forwards; }
.intro-desc span { animation: extrude-small 700ms cubic-bezier(.2,.7,.2,1) calc(2.05s + var(--i) * 34ms) forwards; }

/* Depth: stacked hard shadows form the acrylic edge; two soft shadows fall on the wall */
@keyframes extrude-letter {
  0%   { opacity: 0; transform: translate(0, 0); text-shadow: 0 0 0 rgba(10,32,25,0), 0 0 0 rgba(10,32,25,0), 0 0 0 rgba(10,32,25,0), 0 0 0 rgba(10,32,25,0), 0 0 0 rgba(10,32,25,0), 0 0 0 rgba(60,45,25,0), 0 0 0 rgba(60,45,25,0); }
  18%  { opacity: 1; }
  100% { opacity: 1; transform: translate(-.03em, -.03em); text-shadow: .008em .008em 0 #0F2B23, .016em .016em 0 #0E2820, .024em .024em 0 #0D261E, .032em .032em 0 #0C231C, .04em .04em 0 #0B2019, .07em .09em .075em rgba(60,45,25,.30), .13em .19em .25em rgba(60,45,25,.22); }
}
@keyframes extrude-small {
  0%   { opacity: 0; transform: translate(0, 0); text-shadow: 0 0 0 rgba(10,32,25,0), 0 0 0 rgba(10,32,25,0), 0 0 0 rgba(60,45,25,0); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: translate(-.08em, -.08em); text-shadow: .06em .06em 0 #0F2B23, .12em .12em 0 #0C231C, .25em .38em .38em rgba(60,45,25,.28); }
}
@keyframes extrude-mark {
  0%   { opacity: 0; transform: translate(0, 0); filter: drop-shadow(0 0 0 rgba(10,32,25,0)) drop-shadow(0 0 0 rgba(10,32,25,0)) drop-shadow(0 0 0 rgba(10,32,25,0)) drop-shadow(0 0 0 rgba(60,45,25,0)); }
  18%  { opacity: 1; }
  100% { opacity: 1; transform: translate(-3px, -3px); filter: drop-shadow(1.5px 1.5px 0 #0E2820) drop-shadow(1.5px 1.5px 0 #0C231C) drop-shadow(1px 1px 0 #0B2019) drop-shadow(8px 12px 12px rgba(60,45,25,.32)); }
}
@keyframes intro-zoom { from { transform: scale(1); } to { transform: scale(1.055); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@media (max-width: 640px) { .intro-stage { flex-direction: column; text-align: center; } .intro-desc { padding-left: .42em; } }
@media (prefers-reduced-motion: reduce) { .intro-on .intro { display: none; } }
